:root {
    --main-color: rgba(39, 245, 182, 0.8);
    --body-bg: #181616;
    --box-bg: #221f1f;
    --text-color: #fdfcfc;
    --chairman-header-color: #336699;
    --chairman-name-color: #000000;
    --chairman-occupation-color: #ff6600;
    --chairman-paragraph-color: #000000;

    --nav-height: 90px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Cairo", sans-serif;
    background-color: #fff6f6;
    color: var(--text-color);
    padding-top: var(--nav-height);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.main-color {
    color: var(--main-color);
}

.container {
    max-width: 1920px;
    padding: 0 90px;
    margin: auto;
}

.overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    max-width: 100px; 
    max-height: 50px;
    overflow: hidden; 
}

.logo img {
    max-width: 100%; /* Ensures the image scales within the container */
    max-height: 100%; /* Ensures the image scales within the container */
    height: auto; /* Maintains aspect ratio */
    width: auto; /* Maintains aspect ratio */
}

.nav .nav-menu li a.active {
    color: var(--main-color); 
}

.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    background-color: rgba(0, 0, 0); /* Start with some initial transparency */
    transition: background-color 0.3s ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-color);
    height: var(--nav-height);
    transition: padding 0.3s ease;
}

.nav-wrapper.sticky {
    background-color: rgba(0, 0, 0, 0.6); /* Change to more transparent when scrolled */
}

.nav.sticky {
    padding: 0 10px; /* Adjust padding on scroll */
}

.nav a {
    color: var(--text-color);

}

.nav-menu {
    list-style-type: none;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.nav-menu li ~ li {
    margin-left: 50px;
}

.nav-menu a {
    text-transform: uppercase;
    font-weight: 700;
}


.nav-menu a:hover {
    color: var(--main-color);
}

.nav-menu a.btn:hover, a.logo:hover {
    color: unset;
}

.btn {
    color: #ffffff;
    padding: .25rem 1.5rem;
    text-transform: uppercase;
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-flex;
    position: relative;
    align-items: center;
}

.btn-hover::before {
    z-index: 1;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: var(--main-color);
    transition: 0.3s ease-in-out;
}

.btn-hover:hover::before {
    width:100%;
}

.btn span {
    z-index: 1;

}

.hamburger-menu {
    --size: 30px;
    height: var(--size);
    width: var(--size);
    cursor: pointer;
    z-index: 101;
    position: relative;
    display: flex;
    align-items: center;
}

.hamburger {
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: var(--size);
    height: 3px;
    border-radius: 0.5rem;
    background-color: var(--text-color);
    transition: 0.4s;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -10px;
}

.hamburger::after {
    bottom: -10px;
}

.hamburger-menu.active .hamburger {
    background-color: transparent;
}

.hamburger-menu.active .hamburger::before {
    transform-origin: top left;
    transform: rotate(45deg);
    left: 6px;
}

.hamburger-menu.active .hamburger::after {
    transform-origin: bottom left;
    transform: rotate(-45deg);
    left: 6px;
}

/*        RESPONSIVE        */

@media only screen and (max-width: 850px) {
    html {
        font-size: 12px;
    }

    .hamburger-menu {
        display: grid;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: -100%;
        background-color: rgba(0, 0, 0, 0.6);
        flex-direction: column;
        width: 80%;
        height: 100vh;
        padding: 20px;
        transition: .5s ease-in-out;
    }

    .nav-menu li {
        margin: 10px 30px;
    }

    .nav-menu.active {
        left: 0;
    }
}

@media only screen and (min-width: 851px) {
    .hamburger-menu {
        display: none;
    }
}

.banner-image {
    position: relative;
    text-align: center; /* Center align text */
}

.banner-image img {
    width: 100%;
    vertical-align: middle; /* Align image vertically */
}

.banner-text {
    position: absolute;
    top: 50%; /* Align text vertically in the middle */
    left: 40%; /* Adjust left positioning */
    transform: translateY(-50%); /* Center text vertically */
    color: #ffffff; /* Text color */
    text-align: left; /* Align text to the left */
    width: 60%; /* Adjust width as needed */
    padding: 0 20px; /* Optional: Add padding for better readability */
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    overflow: hidden;
    max-width: 100%;
    max-height: fit-content;
}

.banner-heading, .banner-subheading {
    margin: 0;
    font-size: 3rem;
    color: #fff;
}

.banner-subheading {
    margin-top: 10px;
}

/* Media query for smaller screens */
@media screen and (max-width: 487px) {
    .banner-text {
        width: 75%; /* Adjust width as needed */
        padding: 0 10px; /* Optional: Add padding for better readability */
        font-size: 2px;
    }

    .banner-text h2 {
        font-size: 20px !important;
    }
}

/* Media query for smaller screens */
@media screen and (max-width: 425px) {
    .banner-text {
        width: 75%; /* Adjust width as needed */
        padding: 0 10px; /* Optional: Add padding for better readability */
    }

    .banner-text h2 {
        font-size: 20px !important;
    }
}

/* Media query for smaller screens */
@media screen and (max-width: 380px) {
    .banner-text {
        width: 80%; /* Adjust width as needed */
        padding: 0 10px; /* Optional: Add padding for better readability */
    }
    
    .banner-text h2 {
        font-size: 20px !important;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -70%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.banner-text h2 {
    font-size: 2.5rem; /* Adjust font size as needed */
    line-height: 1.5; /* Adjust line height for better spacing */
    font-weight: 700; /* Adjust font weight as needed */
}

/* Chairman Message Section */
.chairman-message {
    display: flex;
    width: 70%;
    margin: 0 auto; /* Center align horizontally */
    padding: 40px 0;
    box-sizing: border-box; /* Include padding in width calculation */
}

.chairman-image {
    flex: 0 0 auto; /* Prevent image from growing */
    margin-right: 70px; /* Space between image and text */
}

.chairman-image img {
    max-width: 100%; /* Ensure image stays within container */
    height: auto; /* Maintain aspect ratio */
}

.chairman-text {
    flex: 1; /* Grow to fill remaining space */
}

.chairman-header {
    display: flex;
    align-items: center;
    color: var(--main-color); /* Use variable for header color */
    font-size: 15px;
    font-weight: bold;
}

.chairman-header i {
    margin-right: 10px; /* Space between icon and text */
    font-size: 25px;
}

.chairman-name {
    color: var(--chairman-name-color); /* Use variable for name color */
    font-size: 25px;
    font-weight: bold;
}

.chairman-occupation {
    color: var(--main-color); /* Use variable for occupation color */
    font-size: 15px;
    font-weight: bold;
}

.chairman-paragraph {
    margin-top: 20px; /* Space between paragraphs */
}

.chairman-paragraph p {
    margin-bottom: 15px; /* Space between paragraphs */
    color: var(--chairman-paragraph-color); /* Use variable for paragraph text color */
    font-size: 16px;
}

.chairman-text i {
    color: var(--main-color);
}

/* Responsive Layout */
@media only screen and (max-width: 768px) {
    .chairman-message {
        flex-direction: column-reverse; /* Reverse the order on mobile */
        text-align: left; /* Center align text and image vertically */
    }

    .chairman-image,
    .chairman-text {
        width: 100%; /* Full width on mobile */
        margin: 0; /* Remove margin */
    }

    .chairman-image {
        margin-bottom: 20px; /* Space between image and text on mobile */
    }
}


.footer-certifications, .footer-subsidiary,
.footer-links, .footer-contact {
    width: 100%;
}

.grid-container {
    display: grid;
    justify-content: center;
    grid-template-columns: 100px 100px;
    grid-template-rows: auto auto;
    gap: 1px;
}

.item {
    padding: 20px;
    text-align: center;
}

.item:nth-child(1) {
    grid-column: span 2; /* Spanning two columns */
}

.item:nth-child(2),
.item:nth-child(3) {
    grid-column: span 1; /* Spanning one column */
}

.item:nth-child(4) {
    grid-column: span 2; /* Spanning one column */
}

.footer-subsidiary {
    color: var(--main-color);
}

.footer-subsidiary-image{
    width: 70%;
    margin-left: 0;
}

.footer h3 {
    color: var(--main-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.footer-links i, .footer-contact i {
    margin-right: 10px;
    color: var(--main-color);
}

.footer-links li a {
    color: #fff;
    font-size: 14px;
}

.footer-links li a:hover {
    color: var(--main-color);
    transition: 0.4s ease-in-out;
}

.footer-contact ul {
    list-style-type: none;
    padding: 0;
}

.footer-contact a {
    font-size: 35px;
}

/*   -------------------------------   */


footer{
    display: flex;
    flex-wrap: wrap;
    margin-top: auto;
    padding: 60px 10% 15px;
    background-image: url("images/footer-banner.jpg");
    background-size: cover; /* Ensures the image covers the entire footer area */
    background-position: center; /* Centers the image in the footer */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    overflow: hidden; /* Ensures content doesn't overflow the set height */
}

.footer-col {
    opacity: 0; /* Start as invisible */
    transform: translateY(20px); /* Move slightly down */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Transition effect */
}

.footer-col.visible {
    opacity: 1; /* Make visible */
    transform: translateY(0); /* Move to original position */
}

footer h3 {
    color: var(--main-color);
}

#footer-col-1 {
    width: 20%;
}

#footer-col-2 {
    width: 30%;
}

#footer-col-3 {
    width: 20%;
}

#footer-col-4 {
    width: 30%;
}

.footer-col h3{
    position: relative;
    margin-bottom: 30px;
    font-weight: 400;
    font-size: 28px;
    color: --main-color;
    text-transform: capitalize;
}

footer ul li:not(:last-child){
    margin-bottom: 8px;
}

@media (max-width: 740px) {
    #footer-col-1, #footer-col-2, #footer-col-3, #footer-col-4 {
        width: 50%;
        margin-bottom: 30px;
        text-align: center;
    }
}

@media (max-width: 555px) {
    #footer-col-1, #footer-col-2, #footer-col-3, #footer-col-4 {
        width: 100%;
    }
}

.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    color: #fff; 
}

.footer-bottom hr {
    border: 0;
    height: 1px;
    background: #fff; 
    margin-bottom: 10px;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: #fff; 
}

/*-----------ABOUT US------------*/

.banner-text-about {
    position: absolute;
    top: 50%; /* Align text vertically in the middle */
    left: 50%; /* Adjust left positioning */
    transform: translateY(-50%); /* Center text vertically */
    color: #ffffff; 
    text-align: center; 
    width: 60%; /* Adjust width as needed */
    padding: 0 20px; 
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    z-index: 1;
}

.banner-image-about {
    position: relative; /* Ensure the pseudo-element is positioned correctly */
    overflow: hidden; /* Hide anything that overflows the container */
}

.banner-image-about img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    opacity: 0; /* Start as invisible */
    transition: opacity 1s ease; /* Smooth transition */
}

.banner-image-about img.visible {
    opacity: 1; /* Fully visible when in view */
}

.banner-image-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 98%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay with 40% opacity */
    z-index: 1; /* Ensure the overlay is above the image but below any text */
}

.banner-text-about {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white; /* Adjust color based on your image */
}

.banner-heading-about {
    font-size: 5rem; /* Adjust based on your preference */
    font-weight: bold;
}

.about-section {
    display: flex;
    width: 70%;
    margin: 0 auto; /* Center align horizontally */
    padding: 40px 0;
    box-sizing: border-box; /* Include padding in width calculation */
}

.about-image {
    position: relative; /* Enable absolute positioning within this container */
    flex: 0 0 auto; /* Prevent image from growing */
    margin-right: 70px; /* Space between image and text */
}

.about-image img {
    max-width: 100%; /* Ensure image stays within container */
    height: auto; /* Maintain aspect ratio */
}

.about-text {
    flex: 1; /* Grow to fill remaining space */
}

.about-header {
    display: flex;
    align-items: center;
    color: #000000;
    font-size: 15px;
    font-weight: bold;
}

.about-header i {
    margin-right: 10px; /* Space between icon and text */
}

.about-paragraph {
    margin-top: 20px; /* Space between paragraphs */
}

.about-paragraph p {
    margin-bottom: 15px; /* Space between paragraphs */
    color: var(--chairman-paragraph-color); /* Use variable for paragraph text color */
    font-size: 16px;
}

.black-box {
    position: absolute;
    top: 60px; /* Adjust as needed */
    right: 10px; /* Adjust as needed */
    background-color: rgb(46, 44, 44);
    color: white;
    border-radius: 1px;
    width: 170px; 
    height: 150px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.black-box h4 {
    margin: 0;
    font-size: 30px; /* Increased font size */
    color: var(--main-color);
}

.black-box p {
    margin: 0;
    font-size: 18px; /* Increased font size */
}

/* Responsive Layout */
@media only screen and (max-width: 768px) {
    .about-section {
        flex-direction: column; /* Reverse the order on mobile */
        text-align: left; /* Center align text and image vertically */
    }

    .about-image,
    .about-text {
        width: 100%; /* Full width on mobile */
        margin: 0; /* Remove margin */
    }

    .about-image {
        margin-bottom: 20px; /* Space between image and text on mobile */
    }
}

/*--------------------PRODUCTS-------------------*/

.product-section {
    display: flex;
    width: 80%;
    margin: 0 auto; /* Center align horizontally */
    padding: 40px 0;
    box-sizing: border-box; /* Include padding in width calculation */
}

.product-image {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    margin-right: 70px; /* Space between image and text */
    width: 30%;
}

.product-image img {
    max-width: 100%; /* Ensure image stays within container */
    height: auto; /* Maintain aspect ratio */
    border: 5px solid var(--main-color);
}

.product-text {
    flex: 1; /* Grow to fill remaining space */
}

.product-header {
    display: flex;
    align-items: center;
    color: #000000;
    font-size: 15px;
    font-weight: bold;
}

.product-header i {
    margin-right: 10px; /* Space between icon and text */
}

.product-paragraph {
    margin-top: 20px; /* Space between paragraphs */
}

.product-paragraph p {
    margin-bottom: 15px; /* Space between paragraphs */
    color: var(--chairman-paragraph-color); /* Use variable for paragraph text color */
    font-size: 16px;
}

/* Responsive Layout */
@media only screen and (max-width: 768px) {
    .product-section {
        flex-direction: column; /* Reverse the order on mobile */
        text-align: left; /* Center align text and image vertically */
    }

    .product-image,
    .product-text {
        width: 100%; /* Full width on mobile */
        margin: 0; /* Remove margin */
    }

    .product-image {
        margin-bottom: 20px; /* Space between image and text on mobile */
    }
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px; 
    color: #000000;
}

.product-table th, .product-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.product-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    text-align: center;
}

.product-table td {
    background-color: #fff;
}

.product-table th[colspan="2"] {
    text-align: center;
}

/*--------------------HIGHLIGHTS----------------*/

*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.container-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    max-width: 100%;
    gap: 2rem;
    margin: 30px auto; /* Center horizontally with auto margins */
    box-sizing: border-box; /* Include padding and border in height calculation */
}

.card img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.card {
  display: flex;
  flex-direction: column;
  width: clamp(20rem, calc(20rem + 2vw), 22rem);
  overflow: hidden;
  box-shadow: 0 .1rem 1rem rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  background: #ECE9E6;
  background: linear-gradient(to right, #FFFFFF, #ECE9E6);
  border-bottom: 5px solid var(--main-color);
}

.card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  color:#000000;
  font-size: 1.2rem;
}

.card__body h4 a{
  font-size: 1.5rem;
  text-transform: capitalize;
  color: #000000;
}

.card__body h4 a:hover {
    color: var(--main-color);
    transition: 0.3s ease-in-out;
  }

.card__header figure {
	background: var(--main-color);
}
.card__header figure img {
	opacity: 1;
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}
.card__header figure:hover img {
	opacity: .5;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .card {
        width: clamp(16rem, calc(16rem + 2vw), 18rem);
    }
}

@media (max-width: 500px) {
    .container-card {
        flex-direction: column; /* Stack cards vertically on small screens */
        align-items: center; /* Center cards horizontally */
    }

    .card {
        width: 100%; /* Full width on very small screens */
        max-width: 90%; /* Limit width to prevent overflow */
    }
}

/* ------------------APPLY---------------- */

input[type=text], select, textarea {
    width: 100%; /* Full width */
    padding: 12px; /* Some padding */ 
    border: 1px solid #ccc; /* Gray border */
    border-radius: 4px; /* Rounded borders */
    box-sizing: border-box; /* Make sure that padding and width stays in place */
    margin-top: 6px; /* Add a top margin */
    margin-bottom: 16px; /* Bottom margin */
    resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
  }

  
  /* Style the submit button with a specific background color etc */
  input[type=submit] {
    background-color: var(--main-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  input[type=submit]:hover {
    background-color: rgb(75, 75, 72);
    transition: 0.3s ease-in;
  }

  form input[type="file"]::file-selector-button {
    background-color: white;
    color: #000000;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}
  
  .container-form {
    border-radius: 5px;
    padding: 20px;
  }

  form {
    width: 60%;
    margin: 0 auto;
    background-color: #ffffff; 
    padding: 30px;
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add a subtle border shadow */
}

.container-form label {
    color: #000000;
    font-weight: bold;
}

.container-form label span{
    color: red;
}

form input[type="text"]:focus,
form select:focus,
form textarea:focus,
form input[type="file"]:focus {
    border-color: var(--main-color); /* Red border on focus */
    outline: none; /* Remove default focus outline */
}

/*-----------------CONNECT---------------*/

.contact-paragraph {
    text-align: center;
    width: 80%;
    margin: 30px auto;
    padding-left: 5%;
    padding-right: 5%;
}

.contact-paragraph p {
    font-size: 18px;
    color: #000000;
}

.contact-us {
    display: flex;
    gap: 20px; /* Add space between contact-details and contact-form */
    margin: 0 auto;
    width: 80%;

}

.contact-details {
    flex: 0 0 40%; /* 40% width */
    padding: 40px;
    color: black; /* Set font color to black */
}

.contact-details h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

.contact-details ul {
    list-style-type: none;
    padding: 0;
}

.contact-details li {
    display: flex;
    align-items: center;
}

.contact-details li:not(:has(span)) {
    margin-bottom: 25px;
}

.contact-details li span {
    font-weight: bold;
    margin-left: 10px; /* Space between icon and text */
}

.contact-details li i {
    font-size: 2em; /* Make icon take the height of 2 li elements */
    color: var(--main-color);
}

.contact-form {
    flex: 1 1 60%;
    padding: 20px;
    color: black;
    width: 100%;
    overflow: hidden;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.contact-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 80%;
}

.contact-form form span {
    color: red;
}

.contact-form form div {
    display: flex;
    flex-direction: column;
}

.contact-form form div label {
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form form div select,
.contact-form form div input,
.contact-form form div textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
}

.contact-form form div.full-width {
    grid-column: span 2;
}

.contact-form form button {
    grid-column: span 2;
    padding: 10px;
    font-size: 16px;
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

.contact-form form button:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .contact-us {
        flex-direction: column;
    }

    .contact-form form {
        grid-template-columns: 1fr;
    }

    .contact-form form div.full-width,
    .contact-form form button {
        grid-column: span 1;
    }

    .contact-details, .contact-form {
        flex: 1 1 100%;
    }
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 30px;
    display: none;
    font-size: 24px;
    background-color: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.3s;
}

#back-to-top:hover {
    background-color: #444;
}

/* PRESS HIGHLIGHTS PAGE */

/* Keyframes for fade-in animation */
@keyframes fadeIn2 {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply the fade-in animation to the highlights-container and highlights-relatedposts */
.highlights-container,
.highlights-relatedposts {
    animation: fadeIn2 1s ease-in-out;
    animation-fill-mode: forwards;
    opacity: 0; /* Initially hidden */
}

.highlights-container {
    display: block;
    justify-content: center; 
    align-items: center;     
    margin: 40px;
    padding-left: 15%;
    padding-right: 15%;
}

.highlights-image img {
    width: 100%;
}

.highlights-content {
    color: #000000;
}

.highlights-content p {
    font-size: 15px;
}

.highlights-content p:not(:last-of-type) {
    margin-bottom: 20px; /* Adjust the value as needed */
}

.highlights-relatedposts {
    margin-top: 20px;
}

.highlights-relatedposts {
    color:#000000;
}

/* Default styling for larger screens */
.relatedposts-posts {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on larger screens */
    justify-content: space-between; /* Distribute space between items */
}

.relatedposts-posts figure {
    margin: 0;                /* Remove default margin from figure */
    flex: 1 1 20%;            /* Show more items on larger screens */
    max-width: 30%;           /* Ensure figure does not exceed 20% of the container width */
    background-color: var(--main-color);
}

.relatedposts-posts img {
    width: 100%;             /* Make image fill the width of the figure */
    height: 100%;            /* Maintain aspect ratio */
    object-fit: cover;       /* Ensure images cover the given width and height */
}

.relatedposts-posts figure img {
	opacity: 1;
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}

.relatedposts-posts figure:hover img {
	opacity: .5;
}

/* Hide slider controls by default */
.prev, .next {
    display: none;
}

/* Media query for smaller screens */
@media (max-width: 767px) {
    .relatedposts-posts {
        display: flex;
        flex-wrap: nowrap; /* Prevent wrapping in slider mode */
        justify-content: flex-start; /* Align items to the start of the container */
        transition: transform 0.3s ease; /* Smooth transition for sliding effect */
        gap: 10px;
    }

    .relatedposts-posts figure {
        margin: 0;                /* Remove default margin from figure */
        flex: 0 0 50%;            /* Show 2 items at once on mobile screens */
        max-width: 50%;           /* Ensure figure does not exceed 50% of the container width */
    }

    .relatedposts-posts img {
        width: 100%;             /* Make image fill the width of the figure */
        height: 100%;            /* Maintain aspect ratio */
        object-fit: cover;       /* Ensure images cover the given width and height */
    }

    .relatedposts-slider {
        position: relative;
        overflow: hidden; /* Hide overflow for mobile slider */
        display: block; /* Show slider on mobile screens */
    }

    .prev, .next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: var(--main-color); /* Use a contrasting color */
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
        z-index: 1;
        display: block; /* Show navigation buttons on mobile screens */
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}


