* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    
}

body{
    max-width: 100%;
    position: relative;
}


/* Mobile (320px - 480px) */
@media (max-width: 480px) {
    body{
        overflow-x: hidden;
    }
}

@media (max-width: 768px) {
    body{
        overflow-x: hidden;
    }
}


.watermark {
    content: "";
    background-image: url("photos/nessa ball.png");
    background-repeat: no-repeat;
    background-size: 80% auto; /* Cover about half the page */
    background-position: right 20vh; /* Adjust position as needed */
    position: fixed;
    top: 20;
    left: 40%;
    width: 70%;
    height: 100vh; /* Full viewport height */
    opacity: 0.1; /* Adjust opacity for a subtle effect */
    pointer-events: none; /* Allows interaction with other elements */
    z-index: -1; /* Keeps it behind all content */
}

/*---------Construction Page-----*/

#construction_link{
    color: #b83751;
    text-decoration: none;
}

#construction_img {
    max-width: 100%;
    height: 50vh;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

#construction_nessa_logos{
    max-width: 100%;
    height: 15vh;
    width: auto;
    display: block;
    position: absolute;
    bottom: 0px;
    right: 180px;
    margin-right: 5px;
}

#iso_img {
    max-width: 100%;
    height: 15vh;
    width: auto;
    display: block;
    position: absolute;
    right: 70px;
    bottom: 0px;
}

#construction_heading{
    white-space: nowrap;
    margin-left: auto;
    font-size: 80px;
}

#construction_paragraph{
    margin-left: 70px;
    font-size: 18px;
    font-weight: 300;
}

/* Construction page Media queries---*/

@media (max-width: 768px) {
    #construction_heading,
    #construction_paragraph,
    #construction_img {
        margin:auto;
        margin-left: 20px;
        margin-right: 20px;
    }

    #construction_heading {
        font-size: 42px;
        text-align: center;
    }

    #construction_paragraph {
        font-size: 16px;
        text-align: center;
    }

    #construction_img {
        height: auto;
    }
}

@media (max-width: 480px) {
    body{
        max-width: 100%;
        overflow-x: hidden;
    }

    .watermark {
        background-size: 100% auto;
        background-position: center 30vh;
        left: 0;
        top: 0;
        width: 100%;
    }

    .construction_content{
        margin: auto;
    }

    #construction_link {
    display: inline-block;
    position: relative;
    z-index: 2;
    }

    .grey-letter, .red-letter{
        font-size: 33.5px;
        font-weight: 700;
    }

    #construction_heading{
        padding-top: 0px;
        margin: auto;
        padding-right: 50px;
    }

    #construction_paragraph{
        font-size: 15px !important;
        margin-left: 50px;
        margin-right: 50px;
    }

    #construction_img {
        width: 55%;
        object-fit: contain; /* keeps image from stretching */
        transform: translateY(-80px) !important;
        padding-left: 15%;
    }

    #construction_nessa_logos{
        max-width: 100%;
        height: 10vh;
        width: auto;
        display: block;
        position: absolute;
        bottom: 90px;
        left: 5%;
        margin-right: 5px;
    }

    #iso_img{
        max-width: 100%;
        height: 10vh;
        width: auto;
        display: block;
        position: absolute;
        bottom: 90px;
        right: 5%;
        margin-right: 0px;
    }

    .watermark {
        background-size: 100% auto;
        background-position: center 30vh;
        left: 0;
        top: 0;
        width: 100%;
      }

}

@media (max-width: 1280px) {
    #construction_heading {
        font-size: 60px;
        margin-left: 50px;
    }

    #construction_paragraph {
        font-size: 16px;
        margin-left: 50px;
    }

    #construction_img {
        height: 40vh;
        margin-left: 50px;
    }
}


@media (max-width: 1920px) {
    #construction_heading {
        font-size: 70px;
        margin-left: 60px;
    }

    #construction_paragraph {
        font-size: 17px;
        margin-left: 60px;
    }

    #construction_img {
        height: 48vh;
        margin-left: 60px;
    }
}


/*--------Construction End-------*/

#about-watermark {
    content: "";
    background-image: url("photos/nessa ball.png");
    background-repeat: no-repeat;
    background-size: 80% auto; /* Cover about half the page */
    background-position: left 20vh; /* Mirror horizontally */
    position: fixed;
    top: 0;
    right: 40%; /* Align it to the right instead of left */
    width: 70%;
    height: 100vh; /* Full viewport height */
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

html {
    scroll-behavior: smooth;
}

/* Navigation Styles */
nav {
    display: flex;
    justify-content: space-between;
    padding: 2% 4%;
    background-color: white; /* White background for nav */
    position: relative;
    z-index: 1;
}

nav img {
    width: 50px;
    height: 70px;
}



.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 5px 12px;
    position: relative;
}

.nav-links ul li a {
    color: black; /* Black text for nav links */
    text-decoration: none;
    font-size: 13px;
}

/* Active Link Style */
.nav-links ul li a.active {
    color: #b83751; /* Red color for active links */
    font-weight: bold; /* Optional: Make the active link bold */
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: black;
    display: block;
    margin: auto;
}

.nav-links ul li:hover::after {
    width: 80%;
}

/* Hamburger icon */
.nav-links i{
    display: none;
} 

/* Close icon for the menu */
.fa-times {
    display: none;
}

nav .fa-bars {
    display: none;
}

/* Mobile Menu (Hamburger) */
@media (max-width: 480px) {
    /* Show bars icon only on mobile screens */
    nav .fa-bars {
        display: block;
        color: black;
        font-size: 23px;
        cursor: pointer;
        margin: auto 5px;
    }

    /* Hide the menu initially */
    .nav-links {
        display: none;
        width: 50%;
        position: absolute;
        top: 0;
        right: 0;
        background-color: white;
        border: 1px solid #ca3956;
        z-index: 2;
        padding-top: 50px;
        padding-left: 10px;
        margin-top: 5px;
        margin-right: 5px;
    }

    /* Show menu when active */
    .nav-links.active {
        display: block;
    }

    /* Menu items styling */
    .nav-links ul {
        display: flex;
        flex-direction: column;
    }

    .nav-links ul li {
        padding: 10px 0;
    }

    /* Close icon (X) */
    nav .fa-times {
        display: block;
        color: black;
        font-size: 23px;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
    }
}



/* Mobile Menu (Hamburger) */
/*---tablet*/
@media (max-width: 768px) {
    nav {
        display: flex;
        justify-content: space-between;
        padding: 2% 4%;
        background-color: white; /* White background for nav */
        position: relative;
        z-index: 1;
    }
    
    nav img {
        width: 40px;
        height: auto;
    }
    
    .nav-links {
        flex: 1;
        text-align: right;
    }
    
    .nav-links ul li {
        list-style: none;
        display: inline-block;
        padding: 5px 12px;
        position: relative;
    }
    
    .nav-links ul li a {
        color: black; /* Black text for nav links */
        text-decoration: none;
        font-size: 10px;
    }
    
    /* Active Link Style */
    .nav-links ul li a.active {
        color: #b83751; /* Red color for active links */
        font-weight: bold; /* Optional: Make the active link bold */
    }
    
    .nav-links ul li::after {
        content: '';
        width: 0%;
        height: 2px;
        background: black;
        display: block;
        margin: auto;
    }
    
    .nav-links ul li:hover::after {
        width: 80%;
    }
}




/* --------------hero section--------------*/
.hero-container {
    width: 100%;
    height: 80vh;
    margin-bottom: 50px; /* Adds space below the hero section */
    position: absolute;
}    

.prev-hero-slide {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    margin: 20px;
}

.next-hero-slide {
    position: absolute;
    top: 50%;
    right:10px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    margin: 20px;
}

.hero-container .hero-slide .hero-item {
    width: 200px;
    height: 300px;
    position: absolute;
    z-index: 0;
    top: 50%;
    transform: translate(70%, -20%);
    border-radius: 20px;
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
}

.hero-slide .hero-item:nth-child(1),
.hero-slide .hero-item:nth-child(2){
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.hero-slide .hero-item:nth-child(3){
    left: 50%;
}

.hero-slide .hero-item:nth-child(4){
    left: calc(50% + 220px);
}

.hero-slide .hero-item:nth-child(n + 5) {
    left: calc(50% + 660px);
    opacity: 0;
}

.hero-item .hero-content {
    position: absolute;
    top: 50%;
    left: 100px;
    width: 300px;
    text-align: left;
    color: #333;
    transform: translate(0, -50%);
    display: none;
}

.hero-slide .hero-item:nth-child(2) .hero-content {
    display: block;
}

.hero-content .name {
    font-size: 26px;
    text-transform: uppercase;
    font-weight: bold;
    color: #333;
    opacity: 0;
    animation: animate 1s ease-in-out 1 forwards;
}

.hero-content .des {
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: rgba(245, 245, 245, 0.591);
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
}

.hero-content button {
    padding: 10px 20px;
    border: none;
    margin: 2px;
    cursor: pointer;
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
}

@keyframes animate {
    from{
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to{
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

.button {
    width: 100%;
    text-align: center;
    position: relative;
    bottom: 20px;
}

.button button {
    width: 40px;
    height: 35px;
    border-radius: 10%;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border: 1px solid #000;
    transition: 0.3s;
}

.button button:hover {
    background: #ababab;
    color: #fff;
}

.hero-content a {
    text-decoration: none;
    color: #000;
}

/* ===== Media Queries for Responsiveness ===== */

/* Mobile (320px - 480px) */
@media (max-width: 480px) {
    .hero-container {
        height: 50vh;
        max-width: 100%;
        position: absolute;
    }

    /* Hide smaller hero items on mobile */
    .hero-slide .hero-item:nth-child(n + 3) {
        display: none;
    }

    .hero-item .hero-content {
        left: 40px;
        width: 80%;
        text-align: center;
        margin: auto 0;
    }

    .hero-content .name {
        font-size: 24px;
        text-align: center;
    }

    .hero-content button {
        padding: 8px 15px;
        font-size: 14px;
    }
}


/* Tablet (600px - 768px) */
@media (max-width: 768px) {
    .hero-container {
        height: 60vh;
    }

    .hero-item {
        width: 250px;
        height: 250px;
        transform: translate(50%, -10%);
    }

    .hero-content {
        left: 40px;
        width: 100%;
    }

    .hero-content .name {
        font-size: 28px;
    }

    .hero-slide .hero-item:nth-child(1),
    .hero-slide .hero-item:nth-child(2){
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
    }

    .hero-slide .hero-item:nth-child(3){
        left: 50%;
        height: 200px;
        width: 100px;
    }

    .hero-slide .hero-item:nth-child(4){
        left: calc(40% + 220px);
        height: 200px;
        width: 100px;
    }

    .hero-slide .hero-item:nth-child(n + 5) {
        left: calc(50% + 660px);
        opacity: 0;
    }

}

/* Small Laptops and Larger Tablets (1024px - 1280px) */
@media (max-width: 1280px) {
    .hero-container {
        height: 70vh;
    }

    .hero-item {
        width: 180px;
        height: 280px;
    }

    .hero-content {
        left: 80px;
        width: 50%;
    }
}

/* Large Desktops (1440px - 1920px) */
@media (min-width: 1440px) {
    .hero-content .name {
        font-size: 48px;
    }

    .hero-content button {
        padding: 12px 25px;
        font-size: 18px;
    }

    
}


/*--------------------new About Us-----*/
.about-us-heading {
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin: 15px auto;
    margin-top: 830px;
    margin-bottom: 5px;
}

.about-us-heading h1 {
    font-size: 30px;
    font-weight: 500;
    color: #000;
    margin-bottom: 20px;
    position: relative;
}

.about-us-heading h1::after {
    content:"";
    position: absolute;
    width: 100%;
    height: 4px;
    display: block;
    margin: 0 auto;
    background-color: #9f9f9f;
}

.about-us-heading p {
    font-size: 14px;
    color: #000;
    margin-bottom: 35px;
}

.about-us-container {
    width: 90%;
    margin:0 auto;
    margin-bottom: 80px;
    padding: 10px 20px;
}

.about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: white;
}

.about-picture {
    flex:1;
    overflow: hidden;
    font-weight: 300;
    
}

.about-picture img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: 0.5s ease;
}

.about-picture:hover img {
    transform: scale(1.2);
}

.about-content {
    flex: 1;
    padding: 20px;
    max-width: 50%;
}

.about-content h2 {
    font-size: 23px;
    margin-bottom: 10px;
    color: #333;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    font-weight: 300;
    color:#666;
}

.about:nth-child(even) {
    flex-direction: row-reverse;
}



/* Mobile Styles for screens less than 768px */
@media (max-width: 768px) {

    .about-us-heading {
        width: 90%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align: center;
        margin: 15px auto;
        margin-top: 500px;
        margin-bottom: 5px;
    }
    
    .about-us-heading h1 {
        font-size: 26px;
        font-weight: 500;
        color: #000;
        margin-bottom: 20px;
        position: relative;
    }
    
    .about-us-heading h1::after {
        content:"";
        position: absolute;
        width: 100%;
        height: 4px;
        display: block;
        margin: 0 auto;
        background-color: #9f9f9f;
    }
    
    .about-us-heading p {
        font-size: 14px;
        color: #000;
        margin-bottom: 35px;
    }
    
    .about-us-container {
        width: 90%;
        margin:0 auto;
        margin-bottom: 80px;
        padding: 10px 20px;
    }

    .about {
        flex-direction: column !important; /* Force column layout on all children */
        justify-content: center;
        align-items: center;
        text-align: center; /* Center align content */
        margin-bottom: 30px;
    }

    .about-picture {
        margin-right: 0; /* Remove side margin */
        margin-bottom: 20px; /* Add space below the image */
    }

    .about-content {
        text-align: center;
    }

    .about-picture img {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
        height: auto;
        display: block;
        transition: 0.5s ease;
    }
    
    .about-picture:hover img {
        transform: scale(1.2);
    }

    .about-content p {
        font-size: 16px;
        line-height: 1.8;
        font-weight: 300;
        color:#666;
        
    }
}

/* For very small screens (max-width: 480px) */
@media (max-width: 480px) {

    .about-us-heading {
        width: 90%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align: center;
        margin: 15px auto;
        margin-top: 680px;
        margin-bottom: 5px;
    }

    .about {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        margin-bottom: 30px;
    }

    /* Style for the picture section */
    .about-picture {
        position: relative;
        width: 100%;
        margin-bottom: 20px;
    }

    .about-picture img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 10px;
    }

    /* Overlay h2 on top of the image */
    .about-content h2 {
        position: absolute;
        top: 15%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #fff;
        background-color: rgba(0, 0, 0, 0.5); /* Optional: semi-transparent background for better readability */
        padding: 10px 20px;
        border-radius: 5px;
        font-size: 18px;
        z-index: 2;
        text-align: center;
    }

    /* Ensure the text content is below the image */
    .about-content {
        max-width: 100%;
        padding: 0 15px;
        text-align: center;
    }

    .about-content p {
        font-size: 14px;
        line-height: 1.8;
        color: #666;
        margin-top: 15px;
        text-align: justify;
        width: 100%;
    }
}

@media (min-width: 1920px) {
    .about-us-heading {
        width: 90%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align: center;
        margin: 15px auto;
        margin-top: 850px;
        margin-bottom: 5px;
    }
}



/*--------------- Our Services Section--------------- */
.our-services {
    width: 100%;
    max-width: 100%; /* Limit maximum width to center-align content */
    height: 90vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    margin: auto;
    margin-bottom: 5px;
}

.our-services h1 {
    margin-top: 15px;
    font-size: 28px;
    text-transform: uppercase;
}

.our-services p {
    color: #777;
    font-weight: 400;
    font-size: medium;
}

.our-services-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center content horizontally */
    gap: 20px; /* Add spacing between cards */
    width: 100%;
    margin: 0 auto; /* Center the row container */
}

.our-services-column {
    display: flex;
    height: 500px;
    width: 450px;
    padding: 0 1em 1em 1em;
    text-align: center;
    flex-direction: column;
    margin: auto;
    margin-top: 50px;
}

.card {
    width: 100%;
    height: 90%;
    padding: 2em 1.5em;
    background: linear-gradient(#ffffff 50%, #b3b2b2 50%);
    background-size: 100% 200%;
    background-position: 0 2.5%;
    border-radius: 5px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.12);
    transition: 0.5s;
    font-size: 14px;
}

.icon-wrapper {
    background-color: #ca3956;
    font-size: 30px;
    height: 2.5em;
    width: 2.5em;
    color: #ffffff;
    border-radius: 20%;
    display: grid;
    place-items: center;
    margin:auto;
    margin-bottom: 5px;
    margin-top: 2px;
    transition: 0.5s;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    margin-top: 10px;
    font-weight: 600;
}

.card p {
    font-weight: 300;
}

.card:nth-child(2) h3 {
    margin-bottom: 18px;
}

.card:hover {
    background-position: 0 100%;
}

.card:hover .icon-wrapper {
    background-color: #ffffff;
    color: #555;
}

.card:hover h3 {
    color: #ffffff;
}

.card:hover p {
    color: #ffffff;
}

.road-asset-btn {
    display: inline-block;
    text-decoration: underline;
    color: black;
    border: none;
    padding: 12px;
    font-size: 13px;
    background: transparent;
    width: 40%;
    text-align: center;
    cursor: pointer;
    margin-top: 20px;
}

.road-asset-btn:hover {
    border: none;
    background: #fff;
    transition: 1s;
    color: #ca3956;
}

@media (max-width: 768px) {
    .our-services {
        width: 100%;
        max-width: 100%; /* Limit maximum width to center-align content */
        height: 90vh;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        margin: auto;
        margin-bottom: 700px;
    }
    
    .our-services h1 {
        margin-top: 15px;
        font-size: 24px;
        text-transform: uppercase;
    }
    
    .our-services p {
        color: #777;
        font-weight: 400;
        font-size: 15px;
    }
    
    .our-services-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Center content horizontally */
        gap: 20px; /* Add spacing between cards */
        width: 100%;
        margin: 0 auto; /* Center the row container */
    }
    
    .our-services-column {
        display: flex;
        height: 500px;
        width: 350px;
        padding: 0 1em 1em 1em;
        text-align: center;
        flex-direction: column;
        margin: auto;
        margin-top: 50px;
    }

    .our-services-column:last-child{
        margin-top: 0px;
    }
    
    .card {
        width: 105%;
        height: 90%;
        padding: 2em 1.5em;
        background: linear-gradient(#ffffff 50%, #b3b2b2 50%);
        background-size: 100% 200%;
        background-position: 0 2.5%;
        border-radius: 5px;
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.12);
        transition: 0.5s;
        font-size: 14px;
    }
    
    .icon-wrapper {
        background-color: #ca3956;
        font-size: 24px;
        height: 2.5em;
        width: 2.6em;
        color: #ffffff;
        border-radius: 20%;
        display: grid;
        place-items: center;
        margin:auto;
        margin-bottom: 5px;
        margin-top: 2px;
        transition: 0.5s;
    }
    
    .card h3 {
        margin-bottom: 10px;
        font-size: 16px;
        margin-top: 10px;
        font-weight: 600;
    }
    
    .card p {
        font-weight: 300;
        font-size: 15px;
    }
    
    .card:nth-child(2) h3 {
        margin-bottom: 18px;
    }
    
    .card:hover {
        background-position: 0 100%;
    }
    
    .card:hover .icon-wrapper {
        background-color: #ffffff;
        color: #555;
    }
    
    .card:hover h3 {
        color: #ffffff;
    }
    
    .card:hover p {
        color: #ffffff;
    }
    
    .road-asset-btn {
        display: inline-block;
        text-decoration: underline;
        color: black;
        border: none;
        padding: 12px;
        font-size: 13px;
        background: transparent;
        width: 40%;
        text-align: center;
        cursor: pointer;
        margin-top: 20px;
    }
    
    .road-asset-btn:hover {
        border: none;
        background: #fff;
        transition: 1s;
        color: #ca3956;
    }
}

@media screen and (min-width: 992px) {
    .our-services {
        padding: 1em 3em;
    }
}

/*--mobile--*/
@media (max-width: 480px) {
    .our-services {
        padding-top: 20px;
        height: auto; /* Allow the height to adjust based on content */
        margin-bottom: 80px;
        
    }

    .our-services h1 {
        font-size: 24px;
        margin-bottom: 10px;
        margin-top: 15px;
    }

    .our-services p {
        font-size: 16px;
        font-weight: 400;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .our-services-row {
        flex-direction: column; /* Stack the service cards vertically */
        gap: 20px; /* Maintain spacing between the cards */
        align-items: center;
    }

    .our-services-column {
        width: 90%; /* Full width with some padding on mobile */
        height: auto; /* Adjust height to fit content */
        margin-top: 20px;
        padding: 0;
    }

    .card {
        width: 100%;
        padding: 1.5em 1em; /* Reduce padding for mobile */
        height: auto;
        font-size: 13px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }

    .icon-wrapper {
        font-size: 24px;
        height: 2.2em;
        width: 2.2em;
        
    }

    .card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .card p {
        font-size: 14px;
        line-height: 1.5;
    }

    .road-asset-btn {
        width: 70%;
        font-size: 12px;
        padding: 10px;
        margin-top: 15px;
    }
}

@media (min-width: 1920px) {

    .our-services h1 {
        margin-top: 30px;
        font-size: 28px;
        text-transform: uppercase;
    }
    
    .our-services p {
        color: #777;
        font-weight: 300;
        font-size: medium;
    }

    .our-services-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Center content horizontally */
        gap: 5px; /* Add spacing between cards */
        width: 100%;
        margin: 0 auto; /* Center the row container */
        margin-top: 50px;
    }
    
    .our-services-column {
        display: flex;
        height: 500px;
        width: 450px;
        padding: 0 1em 1em 1em;
        text-align: center;
        flex-direction: column;
        margin: auto;
        margin-top: 50px;
    }

    .card {
        width: 100%;
        height: 200%;
        padding: 2em 1.5em;
        background: linear-gradient(#ffffff 50%, #b3b2b2 50%);
        background-size: 100% 200%;
        background-position: 0 2.5%;
        border-radius: 5px;
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.12);
        transition: 0.5s;
        font-size: 16px;
    }
}


/* ----------Our Clients Section ----------------*/

.client-collection {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
}

.client-collection .client-content {
    height: 28rem;
    width: 300px;
    background-color: #ebe7e7;
    border: .2rem solid rgba(244, 71, 71, 0.1);
    border-radius: .7rem;
    overflow: hidden;
    /* padding: .2rem; */
}

.client-content img {
    width: 100%;
    height: 45%;
    border-bottom-left-radius: 4%;
    border-bottom-right-radius: 4%;
}

.client-text-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.client-text-content h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #ca3956;
    text-align: center;
    width: 80%;
}

.client-text-content p {
    max-width: 30rem;
    font-size: .9rem;
    font-weight: 400;
    align-content: center;
    margin: 10px;
}

.client-collection h2 {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    color: #000; /* Change to your preferred color */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.client-collection p{
    text-align: center;
    margin-bottom: 50px;
    width:50%;
    margin-left: auto;
    margin-right: auto;
}

/*---mobile--*/
@media (max-width: 480px) {
    .client-collection {
        height: auto; /* Allow height to adjust based on content */
        padding: 20px 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-top: 20px;
    }

    .swiper {
        width: 100%;
    }

    .swiper-slide {
        width: 90%; /* Ensure it fits within the screen without cropping */
        height: 90vh; /* Reduce height to appear more zoomed out */
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
        overflow: hidden; /* Prevent content from overflowing */
    }

    .client-content {
        height: 100%; 
        width: 100%;
        max-width: 320px; /* Slightly smaller width for mobile */
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }


    .client-content img {
        width: 100%;
        height: auto;
        object-fit: contain; /* Prevent zooming in on the image */
        border-bottom-left-radius: 4%;
        border-bottom-right-radius: 4%;
    }

    .client-text-content {
        padding: 10px;
        text-align: center;
    }

    .client-text-content h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .client-text-content p {
        font-size: 0.9rem;
        margin: 10px 0;
    }

    .client-collection h2 {
        font-size: 18px;
        margin-bottom: 10px;
        margin-top: 30px;
    }

    .client-collection p{
        text-align: center;
        margin-bottom: 50px;
        width:70%;
        margin-left: auto;
        margin-right: auto;
        font-size: 14px;
    }
    
}

@media (min-width: 1920px) {

    .client-collection {
        height: 90vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #fff;
    }
}




/*------------- More Info Section--------------- */

.about-us-hero {
    position: relative; /* Allows for absolute positioning of child elements */
    width: 100%;
    height: 80vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

/* Background video styling */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the entire section */
    z-index: 1; /* Video is in the background */
    pointer-events: none; /* Prevent video from blocking interactions */
}

/* Text box styling */
.text-box {
    position: relative;
    z-index: 2; /* Ensures text is above the video */
    color: white;
    text-align:start;
    margin-left: 0;
    padding: 20px;
    /* background-color: rgba(0, 0, 0, 0.5); Semi-transparent background for readability */
    border-radius: 10px;
}

.text-box p {
    margin: 10px 0;
    font-size: 1.2rem;
}

.text-box h1 {
    margin-bottom: 10px;
    font-size: 5rem;
    line-height: 1.2;
}

.text-box #first-p {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.red-letter {
    color: #ca3956; /* Apply red color to the letters */
}

.grey-letter {
    color: #666 /* Apply red color to the letters */
}

@media (max-width: 768px) {
    .about-us-hero {
        height: 60vh; /* Reduce height on smaller screens */
    }

    .text-box h1 {
        font-size: 2rem;
    }

    .text-box p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .text-box {
        padding: 15px;
    }

    .text-box h1 {
        font-size: 1.8rem;
    }

    .text-box p {
        font-size: 0.9rem;
    }

    
}

.services-section .content-wrapper h2{
    font-size: 30px;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
}

.services-section .content-wrapper h3{
    color: #777;
    font-weight: 380;
    text-align: center;
}
.accordion-container {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin-top: 100px auto;
    height: 80vh;
    align-items: center;
    gap: 10px;
    background: white;
}

/* Styling for the image */
.accordion-image {
    height: 80%;
    width: 40%;
    margin-left: 100px;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    transition: all 0.5s ease-in-out;
}

#accordian {
    width: 600px;
    display: block;
    flex-direction: row;
}

#accordian li {
    list-style: none;
    width: 100%;
    margin-bottom: 10px;
    background-color:#f0eeee;
    padding: 5px;
    border-radius: 4px;
}

#accordian li label {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    color: #ca3956;
}

#accordian li label span {
    transform: rotate(90deg);
    font-size: 22px;
    font-weight: 300;
    color: #ca3956;
}


#accordian label + input[type="radio"]{
    display: none;
}

#accordian .content {
    padding: 0 10px;
    line-height: 25px;
    font-size: 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s;
}


#accordian label + input[type="radio"]:checked + .content{
    max-height: 400px;
}

/*----mobile---*/
@media (max-width: 480px) {
    .services-section .content-wrapper h2 {
        font-size: 24px; /* Reduce heading size for mobile */
        text-align: center;
        margin-bottom: 0px;
    }

    .services-section .content-wrapper h3 {
        font-size: 14px; /* Reduce subheading size */
        text-align: center;
        margin-bottom: 20px;
    }

    /* Accordion Container */
    .accordion-container {
        flex-direction: column; /* Stack elements vertically */
        align-items: center;
        justify-content: flex-end;
        width: 90%; /* Reduce width for mobile */
        padding: 0;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 50px;
        height: auto;
    }

    /* Styling for the image */
.accordion-image {
    height: auto;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}

    /* Accordion styles */
    #accordian {
        max-width: 100%;
        width: 100%; /* Full width on mobile */
    }

    #accordian li {
        margin-bottom: 5px;
        padding: 10px;
        border-radius: 5px;
        background-color: #f0eeee;
    }

    #accordian li label {
        font-size: 14px;
        font-weight: 500;
        padding: 0px;    
    }

    #accordian li label span {
        font-size: 20px;
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }

    #accordian .content {
        padding: 5px;
        font-size: 14px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }

    #accordian label + input[type="radio"]:checked + .content {
        max-height: 300px; /* Adjust max-height for mobile */
    }

    #accordian label + input[type="radio"]:checked + label span {
        transform: rotate(90deg); /* Rotate arrow when checked */
    }
}

@media (min-width: 1920px) {
    #accordian {
        width: 900px;
        height: auto;
        display: block;
        flex-direction: row;
    }

    #accordian .content {
        padding: 0 10px;
        line-height: 25px;
        font-size: 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s;
    }
}


/*-------Our Approach Section----------------------- */


.approach-container {
    position: relative;
    box-sizing: border-box;
}

.approach-container .approah-slide-container .approach-slide {
    min-height: 80vh;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 9%;
    padding-bottom: 70px;
}

.approach-container .approah-slide-container .approach-slide .approach-content {
    flex: 1 1 350px;
    animation: slideContent .4s linear .6s backwards;
}

@keyframes slideContent{
    0%{
        opacity: 0;
        transform: translateX(-50px);
    }
}

.approach-container .approah-slide-container .approach-slide .approach-image {
    flex: 1 1 500px;
}

.approach-container .approah-slide-container .approach-slide .approach-image img {
    width: 500px;
    height: auto;
    animation: slideImage .4s linear;
}

@keyframes slideImage{
    0%{
        opacity: 0;
        transform: translateY(-50px);
    }
}

.approach-container .approah-slide-container .approach-slide .approach-content h3 {
    font-size: 35px;
    color: #333;
    
}

.approach-container .approah-slide-container .approach-slide .approach-content p {
    font-size: 16px;
    color: #666;
    padding: 10px 0;
    font-weight: 350;
    line-height: 1.8;
}

.approach-container .approah-slide-container{
    display: none;
}

.approach-container .approah-slide-container.active{
    display: block;
}

.approach-container .approah-slide-container:nth-child(1) .approach-slide{
    background:linear-gradient(90deg, #dfdbdb 70%, #5e5e5e 30.1%);
}

.approach-container .approah-slide-container:nth-child(2) .approach-slide{
    background:linear-gradient(90deg, #dfdbdb 70%, #ca3956 30.1%);
}

.approach-container .approah-slide-container:nth-child(3) .approach-slide{
    background:linear-gradient(90deg, #dfdbdb 70%, #c2bcbc 30.1%);
}

.approach-container #prev,
.approach-container #next{
    position: absolute;
    top: 50%;
    transform: translate(-50%);
    color: #fff;
    background-color: #333;
    height: 50px;
    width: 40px;
    line-height: 50px;
    font-size: 25px;
    text-align: center;
    cursor: pointer;
    font-weight: bolder;
}

.approach-container #prev:hover,
.approach-container #next:hover{
    background: #666;
}

.approach-container #prev{
    left:20px;
    margin-left: 35px;
}

.approach-container #next{
    right:20px;
}

@media (max-width: 480px) {

    /* Adjust the overall container padding for mobile */
    .approach-container .approah-slide-container .approach-slide {
        flex-direction: column; /* Stack content and image vertically */
        padding: 20px 5%; /* Reduce padding for smaller screens */
        gap: 20px; /* Add space between content and image */
        min-height: auto; /* Allow the height to adjust based on content */
    }

    /* Make the content section full-width */
    .approach-container .approah-slide-container .approach-slide .approach-content {
        flex: 1 1 100%;
        text-align: center; /* Center-align text for better readability */
    }

    /* Adjust heading size for mobile */
    .approach-container .approah-slide-container .approach-slide .approach-content h3 {
        font-size: 24px; /* Reduce font size for smaller screens */
    }

    /* Adjust paragraph size for mobile */
    .approach-container .approah-slide-container .approach-slide .approach-content p {
        font-size: 14px; /* Adjust font size for mobile readability */
        padding: 10px 0;
        line-height: 1.8;
        color: white;
    }

    /* Adjust image container for mobile */
    .approach-container .approah-slide-container .approach-slide .approach-image {
        flex: 1 1 100%;
        display: flex;
        justify-content: center; /* Center the image on mobile */
    }

    /* Make the image responsive */
    .approach-container .approah-slide-container .approach-slide .approach-image img {
        width: 100%;
        height: auto;
        max-width: 350px; /* Limit image width for smaller screens */
    }

    /* Adjust navigation buttons for mobile */
    .approach-container #prev,
    .approach-container #next {
        top: 90%; /* Position buttons below the content */
        transform: translate(0, -50%);
        width: 35px;
        height: 35px;
        font-size: 20px;
        line-height: 35px;
    }

    /* Position the buttons closer to the edges on mobile */
    .approach-container #prev {
        left: 10px;
        margin-left: 0;
    }

    .approach-container #next {
        right: 10px;
    }
}


/* ---------Management Systems Section---------- */

.section-title {
    text-align: center;
}

.section-title h1 {
    font-size: 30px;
    text-transform: uppercase;
}

.management-systems-wrapper {
    padding: 3% 10%;
}

#management-systems {
    padding: 5px 0;
    margin-bottom: 3%;
}

.management-systems-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.single-system {
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.single-system img {
    width: 100%;
    border-radius: 15px;
    display: block;
    transition: transform 0.5s;
    margin-top: 10px;
    height: 200px;
}

.overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
    color: #000;
    height: 0;
    background: linear-gradient(transparent 10%, rgba(255, 255, 255, 0.8) 35%);
    left: 0;
    bottom: 0;
    overflow: hidden;
}

.overlay h2 {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 20px;
}

.single-system:hover {
    transform: scale(1.4);
}

.single-system:hover .overlay {
    height: 100%;
}

@media (max-width: 480px) {

    /* Center align the section title and adjust font size */
    .section-title {
        text-align: center;
        margin-bottom: 20px;
    }

    .section-title h1 {
        font-size: 22px; /* Reduce font size for smaller screens */
        margin-top: 20px;
    }

    /* Adjust padding for the wrapper to reduce white space */
    .management-systems-wrapper {
        padding: 5% 3%; /* Less padding for smaller screens */
    }

    /* Adjust the grid for the management systems section */
    .management-systems-content {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        grid-gap: 20px; /* Reduce gap between items */
        margin-top: 20px; /* Reduce top margin */
        align-items: center;
    }

    /* Adjust each single system card to fit the screen */
    .single-system {
        width: 100%;
        margin: auto;
        border-radius: 10px; /* Slightly smaller border radius */
        position: relative;
    }

    /* Ensure the image fits within the card */
    .single-system img {
        height: auto;
        width: 80%;
        margin-top: 10px;
        border-radius: 10px; /* Consistent with the card */
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    /* Adjust the overlay for smaller screens */
    .overlay {
        font-size: 12px; /* Smaller font size */
        height: 0;
        transition: height 0.5s ease;
        width: 100%;
    }

    .overlay h2 {
        font-size: 18px; /* Adjust heading size */
    }

    .single-system:hover {
        transform: scale(1.05); /* Reduce hover scaling effect */
    }

    .single-system:hover .overlay {
        height: 100%;
    }
}

@media (min-width: 1920px) {
    .management-systems-wrapper {
        padding: 4% 3%; /* Less padding for smaller screens */
    }

    .single-system img {
        height: 250px;
        width: 80%;
        margin-top: 10px;
        border-radius: 10px; /* Consistent with the card */
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .section-title h1 {
        font-size: 35px;
        text-transform: uppercase;
    }

    .section-title p {
        font-size: 17px;
    }
}


/* ---------Road Asset Management Technologies Section---------- */
.road-asset-mamagement-technologies {
    max-width: 100%;
    padding: 50px;
    /*background-image: url(photos/Picture1.png);
    background-size: 20% auto; 
    background-repeat: no-repeat;
    background-position: bottom left;*/
}

.road-asset-mamagement-technologies h1{
    line-height: 1;
    margin-bottom: 2rem;
    font-size: 28px;
    text-transform: uppercase;
}

.road-asset-mamagement-technologies-container {
    display: grid; 
    grid-template-columns: 40% 55%;
}

.road-asset-mamagement-technologies_left {
    margin-right: 4rem;
}
.road-asset-mamagement-technologies_left p {
    margin: 1rem 0 3rem;
}

.road-asset-mamagement-technologies_right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.category {
    background-color: #dddada;
    padding: 2rem;
    border-radius: 2rem;
    transition: var(--transition)
}

.category:hover {
    box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.category:hover h5 {
    color:#ca3956;
}

.category:hover i {
    color:#ca3956;
}

.category_icon {
    background-color:rgba(0, 0, 0, 0.12);
    padding: 0.7rem;
    border-radius: 0.9rem;
}

.category h5 {
    margin: 2rem 0 1rem;
}

.category p {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    /* Adjust the layout of the section */
    .road-asset-mamagement-technologies-container {
        grid-template-columns: 1fr; /* Stack the sections vertically */
        padding: 20px;
    }

    .road-asset-mamagement-technologies_left {
        margin-right: 0;
        margin-bottom: 20px; /* Add space between left and right sections */
    }

    /* Adjust text for mobile */
    .road-asset-mamagement-technologies h1 {
        font-size: 28px; /* Adjust header size */
        margin-bottom: 1.5rem;
    }

    .road-asset-mamagement-technologies_left p {
        font-size: 1rem; /* Adjust paragraph size */
        margin-bottom: 1.5rem;
    }

    /* Adjust right section grid layout */
    .road-asset-mamagement-technologies_right {
        grid-template-columns: 1fr 1fr; /* Two columns instead of three */
    }

    .category {
        padding: 1.5rem;
        margin-bottom: 1rem; /* Add space between categories */
    }

    .category h5 {
        font-size: 1.2rem; /* Adjust category title size */
    }

    .category p {
        font-size: 1rem; /* Adjust description text size */
    }
}

/* Mobile (smaller than 480px) */
@media (max-width: 480px) {
    /* Adjust padding for smaller screens */
    .road-asset-mamagement-technologies {
        padding: 20px; /* Less padding for very small screens */
    }

    .road-asset-mamagement-technologies h1 {
        font-size: 24px; /* Further reduce header size */
    }

    .road-asset-mamagement-technologies_left p {
        font-size: 0.9rem; /* Smaller font for paragraphs */
        margin-bottom: 1rem;
    }

    .road-asset-mamagement-technologies_right {
        grid-template-columns: 1fr; /* Stack all items in a single column */
    }

    .category {
        padding: 1.1rem; /* Adjust padding */
    }

    .category h5 {
        font-size: 1.1rem; /* Adjust category title size */
    }

    .category p {
        font-size: 0.9rem; /* Adjust description text size */
    }
}

@media (min-width: 1920px) {

    .road-asset-mamagement-technologies_left {
        margin-right: 4rem;
    }

    .road-asset-mamagement-technologies_left h1{
        font-size: 35px;
    }

    .road-asset-mamagement-technologies_left p {
        margin: 2rem 0 4rem;
        font-size: 18px;
    }

    .category_icon {
        background-color:rgba(0, 0, 0, 0.12);
        padding: 0.7rem;
        border-radius: 0.9rem;
    }
    
    .category h5 {
        margin: 2rem 0 1rem;
        font-size: 1.05rem;
    }
    
    .category p {
        font-size: 0.95rem;
    }
}


/*-----------contact us--------*/

#contact-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 80vh; /* Allow height to adjust automatically */
    padding: 20px;
    background-color: #333;
}

#contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: #9f9f9f;
}

#contact-section .contact-us-container {
    position: relative;
    min-width: 1100px;
    min-height: 600px;
    display: flex;
    z-index: 1000;
}

#contact-section .contact-us-container .contactinfo{
    position: absolute;
    top: 40px;
    width: 350px;
    height: 90%;
    background: #333;
    z-index: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.2);
}

#contact-section .contact-us-container .contactinfo h2{
    color: #fff;
    font-size: 24px;
    font-weight: 500;
}

#contact-section .contact-us-container .contactinfo .info {
    position: relative;
    margin: 20px 0;
}

#contact-section .contact-us-container .contactinfo .info li {
    position: relative;
    list-style: none;
    display: flex;
    margin: 20px 0;
    cursor:auto;
    align-items: flex-start;
}

#contact-section .contact-us-container .contactinfo .info li span {
    font-size: 13px;
}

#contact-section .contact-us-container .contactinfo .info li span:nth-child(1) {
    width: 30px;
    min-width: 30px;
}

#contact-section .contact-us-container .contactinfo .info li span:nth-child(1) i {
    max-width: 100%;
    filter: invert(1);
    opacity: 0.5;
}

#contact-section .contact-us-container .contactinfo .info li span:nth-child(2) {
    color: #fff;
    margin-left: 10px;
    font-weight: 300;
    opacity: 0.5;
}

#contact-section .contact-us-container .contactinfo .info li:hover span:nth-child(1) i,
#contact-section .contact-us-container .contactinfo .info li:hover span:nth-child(2) {
    opacity: 1;
}

#contact-section .contact-us-container .contactinfo .sci {
    position: relative;
    display: flex;
}

#contact-section .contact-us-container .contactinfo .sci li{
    list-style: none;
}

#contact-section .contact-us-container .contactinfo .sci li a{
    text-decoration: none;
}

#contact-section .contact-us-container .contactinfo .sci li a i{
    filter: invert(1);
    opacity: 0.5;
}

#contact-section .contact-us-container .contactinfo .sci li:hover a i{
    opacity: 1;
}

#contact-section .contact-us-container .contactForm {
    position: absolute;
    padding: 70px 50px;
    background: #fff;
    margin-left: 150px;
    padding-left: 250px;
    width: calc(100% - 150px);
    height: 100%;
    box-shadow: 0 50px 50px rgba(0, 0, 0, 0.5);

}

#contact-section .contact-us-container .contactForm h2 {
    color:#ca3956;
    font-size: 24px;
    font-family: 500;
}

#contact-section .contact-us-container .contactForm .formBox {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 30px;
}

#contact-section .contact-us-container .contactForm .inputBox {
    position: relative;
    margin: 0 0 35px 0;
}

#contact-section .contact-us-container .contactForm .formBox .inputBox.w50 {
    width: 47%;
}

#contact-section .contact-us-container .contactForm .formBox .inputBox.w100 {
    width: 100%;
}

#contact-section .contact-us-container .contactForm .formBox .inputBox input,
#contact-section .contact-us-container .contactForm .formBox .inputBox textarea {
    width: 100% !important;
    padding: 5px 0;
    font-size: 18px;
    font-weight: 300;
    color: #666;
    border: none;
    border-bottom: 1px solid #666;
    outline: none;
}

#contact-section .contact-us-container .contactForm .formBox .inputBox textarea {
    min-height: 120px;
}

#contact-section .contact-us-container .contactForm .formBox .inputBox span {
    position: absolute;
    left: 0;
    padding: 5px 0;
    font-size: 18px;
    font-weight: 300;
    color:#666;
    transition: 0.5;
    pointer-events: none;
}

#contact-section .contact-us-container .contactForm .formBox .inputBox input:focus ~ span,
#contact-section .contact-us-container .contactForm .formBox .inputBox textarea:focus ~ span,
#contact-section .contact-us-container .contactForm .formBox .inputBox input:valid ~ span,
#contact-section .contact-us-container .contactForm .formBox .inputBox textarea:valid ~ span{
    transform: translateY(-20px);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    color:#ca3956;
}

#contact-section .contact-us-container .contactForm .formBox .inputBox input[type="submit"] {
    position: relative;
    cursor: pointer;
    background: #ca3956;
    border: none;
    max-width: 150px;
    padding: 12px;
    color: #fff;
}

#maps-section {
    margin: 5px;
    display: flex;
    justify-content: center;  
    
}

@media (max-width: 480px){
    #contact-section {
        flex-direction: column;
        align-items: center;
        padding: 20px 10px; /* Adjust padding */
    }

    #contact-section::before {
        width: 100%; /* Full width */
    }

    #contact-section .contact-us-container {
        min-width: 100% !important; /* Remove large min-width */
        flex-direction: column;
        align-items: center;
        min-height: auto;
        padding: 0; /* Remove unnecessary padding */
    }

    #contact-section .contact-us-container .contactinfo {
        position: relative;
        width: 100%; /* Full width */
        height: auto;
        text-align: center;
        padding: 20px;
        margin-bottom: 80px;
    }

    #contact-section .contact-us-container .contactinfo .info {
        text-align:left;
    }

    #contact-section .contact-us-container .contactinfo .sci {
        justify-content: center;
    }

    #contact-section .contact-us-container .contactForm {
        position: relative;
        width: 100%; /* Full width */
        margin: 0;
        margin-bottom: 40px;
        padding: 30px;
        box-shadow: none; /* Remove large shadow */
    }

    .contactForm h2 {
        display: flex;
        justify-content: center;
    }

    #contact-section .contact-us-container .contactForm .formBox {
        flex-direction: column; /* Stack inputs vertically */
    }

    #contact-section .contact-us-container .contactForm .formBox .inputBox.w50 {
        width: 100% !important; /* Make all input fields full width */
    }

    .sendBtn {
        margin: 0 auto;
        display: block;

    }

    /* Maps Section */
    #maps-section {
        display: flex;
        justify-content: center;
        width: 100vw;
    }

    iframe {
        width: 100vw;
        height: 300px;
        margin: auto;
        border-radius: 10px;
    }
}
    

/*---------------iFrame------------------*/
iframe{
    width: 48vw;
    height: 300px;
    margin: 5px;
    border-radius: 10px; 
}



/*---------------- Footer---------------- */
.footer {
    position: relative; /* Make the footer a positioned element */
    text-align: center;
    margin-bottom: 0px;
    padding-top: 20px;
    background-color: #ca3956;
    color: white;
    display: flex;
    justify-content: space-between; /* Align logos and content side by side */
    align-items: flex-start; /* Align items to the top */
    padding: 20px;
    background-color: #ca3956; /* Footer background */
    color: white;
    flex-wrap: wrap; /* Ensure content wraps on smaller screens */
    text-align: left;
    min-height: 290px;
}

.footer::before {
    content: '';
    position: absolute;
    padding: 10px;
    bottom: 0;
    top: 0;
    left: 0; /* Position it on the right */
    width: 15%; /* 10% of the footer */
    height: 100%; /* Full height of the footer */
    background-color: white; /* White background for the 10% section */
    z-index: 1; /* Make sure it's on top */
}

.footer-content, .footer-logos, .footer-email {
    position: relative; /* Ensure content remains above the white background */
    z-index: 2;
}

/* Footer title */
.footer h4 {
    width: 100%; /* Span full width */
    margin-left: 50%;
    margin-bottom: 20px;
    font-size: 24px;
    color: white;
}

/* Logos container */
.footer-logos {
    display: flex;
    flex-direction: column; /* Stack large logo on top, smaller logos below */
    align-items:flex-start;
    flex-basis: 30%; /* Take up 30% of footer width */
    padding: 10px;
    gap: 15px;
    margin-top: -50px;
    max-width: 300px;
}

.footer-logos p{
    color: #333;
    font-size: 10px;
    margin-left: 40px;
}

/* Large logo */
.large-logo {
    width: 70px; /* Adjust logo size */
    height: auto;
    margin: 10px; /* Space between large and small logos */
    margin-left: 23%;
    margin-top: 0px;
    margin-bottom: 0;
    align-items: end;
}

/* Small logos */
.small-logos {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px; /* Space between small logos */
}

.small-logo {
    width: 85px; /* Adjust smaller logo size */
    height: auto;
}

/* Contact information styling */
.footer-content {
    flex-basis: 30%; /* Each content section takes 30% of footer */
    font-size: 12px;
    max-width: 250px;
}

.footer-content p {
    line-height: 1.8; /* Line height for better readability */
    color: white;
}

#midrand-address {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 0;
}

#mahikeng-address {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 0;
}

#f-links {
    font-size: 18px;
}

.footer-links {
    text-decoration: none;
    color: #ffff;
    margin: 5px;
    font-size: 12px;
    line-height: 0.8;
}

.footer-links:hover {
    text-decoration: underline;
}

.footer-email {
    flex-basis: 100%;
    text-align: center;
    font-size: 14px;
}

.footer-email p {
    color: white;
    margin-left: 15%;
}


/*--- Updated Mobile Styles for Footer ---*/
@media (max-width: 480px) {
    .footer {
        height: auto; /* Adjust height to fit the content */
        flex-direction: column; /* Stack content vertically */
        align-items: center;
        text-align: center; /* Center-align text on mobile */
        padding: 30px 15px; /* Add more padding for mobile */
        width: 100px;
    }

    .footer::before {
        display: none; /* Hide the side background on mobile */
    }

    .footer h4 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .footer-content, .footer-logos, .footer-email {
        flex-basis: 100%; /* Full width for each section */
        margin-bottom: 20px;
    }

    .footer-content {
        font-size: 12px;
        padding: 0 10px;
    }

    .footer-content p {
        line-height: 1.6;
        margin: 10px 0;
    }

    .footer-logos {
        flex-direction: column; /* Stack logos vertically on mobile */
        align-items: center;
        background-color: #fff;
        width: 98%;
        padding: 12px;
        margin-top: 5px;
    }

    .footer-logos p{
        margin-left: auto;
        margin-right: auto;
    }

    .large-logo {
        width: 70px;
        height: auto;
        margin-bottom: 5px; /* Space between large and small logos */
        margin-left: auto;
        margin-right: auto;
    }

    .small-logos {
        display: flex;
        justify-content: center; /* Center-align small logos */
        gap: 10px; /* Add space between logos */
        flex-wrap: wrap;
    }

    .small-logo {
        width: 70px; /* Reduce size for mobile */
        height: 60px;
        margin-bottom: 10px;
    }

    .footer-email {
        text-align: center;
        font-size: 14px;
        padding: 0 15px;
    }
}


/* For smaller screens, adjust the layout */
@media(max-width: 768px) {
    .footer {
        flex-direction: column; /* Stack content vertically */
        text-align: center; /* Center content */
    }
    
    .footer-logos,
    .footer-content {
        flex-basis: 100%; /* Full width for each section */
        margin-bottom: 20px; /* Add space between stacked sections */
        text-align: center;
    }

    /* Ensure the white section behaves properly on smaller screens */
    .footer::before {
        width: 100%; /* Cover full width on smaller screens */
        right: 0;
        bottom: 0;
        height: 10%; /* Just a small strip at the bottom */
    }
}

@media (min-width: 1920px) {
    .footer {
        position: relative; /* Make the footer a positioned element */
        text-align: center;
        margin-bottom: 0px;
        padding-top: 20px;
        background-color: #ca3956;
        color: white;
        display: flex;
        justify-content: space-between; /* Align logos and content side by side */
        align-items: flex-start; /* Align items to the top */
        padding: 20px;
        background-color: #ca3956; /* Footer background */
        color: white;
        flex-wrap: wrap; /* Ensure content wraps on smaller screens */
        text-align: left;
        height: 255px;
    }
    
    .footer::before {
        content: '';
        position: absolute;
        padding: 10px;
        bottom: 0;
        top: 0;
        left: 0; /* Position it on the right */
        width: 15%; /* 10% of the footer */
        height: 100%; /* Full height of the footer */
        background-color: white; /* White background for the 10% section */
        z-index: 1; /* Make sure it's on top */
    }
    
    .footer-content, .footer-logos, .footer-email {
        position: relative; /* Ensure content remains above the white background */
        z-index: 2;
    }
    
    /* Footer title */
    .footer h4 {
        width: 100%; /* Span full width */
        text-align: center;
        margin-bottom: 20px;
        font-size: 24px;
        color: white;
        margin-left: 20%;

    }
    
    /* Logos container */
    .footer-logos {
        display: flex;
        flex-direction: column; /* Stack large logo on top, smaller logos below */
        align-items:flex-start;
        flex-basis: 30%; /* Take up 30% of footer width */
        padding: 10px;
        gap: 15px;
        margin-top: -50px;
        margin-left: 15px;
        margin-right: 0;
        max-width: 300px;
    }
    
    .footer-logos p{
        color: #333;
        font-size: 10px;
        margin-left: 60px;
    }
    
    /* Large logo */
    .large-logo {
        width: 70px; /* Adjust logo size */
        height: auto;
        margin: 10px; /* Space between large and small logos */
        margin-left: 30%;
        margin-top: 0px;
        margin-bottom: 0;
        align-items: end;
    }
    
    /* Small logos */
    .small-logos {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px; /* Space between small logos */
    }
    
    .small-logo {
        width: 110px; /* Adjust smaller logo size */
        height: auto;
    }
    
    /* Contact information styling */
    .footer-content {
        flex-basis: 30%; /* Each content section takes 30% of footer */
        font-size: 12px;
    }
    
    .footer-content p {
        line-height: 1.8; /* Line height for better readability */
        color: white;
    }
    
    .footer-email {
        flex-basis: 120%;
        text-align: center;
    }
}

/*-------Scroll To Top Button------*/

#scrollToTopBtn {
    position: fixed; /* Keeps the button fixed relative to the viewport */
    z-index: 1000; /* Ensures it's above most content */
    bottom: 20px; /* Distance from the bottom of the screen */
    right: 20px; /* Distance from the right of the screen */
    font-size: 28px;
    color: #d3396c;
    border: 1px solid rgb(255, 255, 255);
    border-radius: 50%;
    width: 50px;
    height: 50px; /* Ensures consistent button size */
    background-color: #fff; /* Optional: Set a background color */
    cursor: pointer; /* Indicates it's clickable */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Adds a shadow effect */
}

.active-links {
    text-decoration: none;
    color: #adacac;
    font-weight: 500;
}

.active-links:hover {
    color: #ffff;
}

