body {
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
    color: #000;
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    color: #01733b;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-desc {
    color: #000000;
    font-size: 18px;
    line-height: 2.2;
    margin-bottom: 30px;
}

.text-center {
    text-align: center;
}

.hero-section {
    position: relative;
    width: 100%;
    min-height: 1250px;
    padding-top: 5%;
    overflow: hidden;
    line-height: 0;
}

.hero-bg {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%; 
    z-index: 0;
}

.hero-bg-img {
    background-size: cover;          
    background-repeat: no-repeat;    
    width: 100%;
    height: 100%;                   
    background-position: center calc(50% - 36px); 
}

.desktop-img.hero-bg-img {
    background-image: url('/images/home/home_bg.png?v=1');
}

.mobile-img.hero-bg-img {
    background-image: url('/images/home/home_mobile2.png?v=1');
}

.hero-content {
    position: relative;
    z-index: 1; 
    text-align: center;
}
.hero-title {
    color: #0d7441;
    font-size: clamp(32px, 4vw, 64px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.hero-subtitle {
    color: #545454;
    font-size: 20px;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 30px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.feature-card {
    background-color: #ebf2f4;
    border-radius: 80px;
    padding: 50px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.icon-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1440px) {
    .hero-section {
        min-height: 1100px;
        padding-top: 9%;
    }
    .hero-title {
        margin-top:0;
    }
    .hero-bg {
        top: 0px;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        min-height: 800px;
        padding-top: 9%;
    }

    .hero-title {
        margin-top : 32px;
        font-size: 32px;
    }

    .hero-bg-img {
        background-position: center calc(50% - 0px);
    }
}

@media (max-width: 768px) {
    .features-grid {
        display: flex;
        flex-direction: column;
        gap: 20px; /* Adds space between the stacked cards */
    }

    .feature-card {
        /* Optional: You might want to slightly reduce the aggressive 
           80px border-radius and 50px padding so it looks tighter on small screens */
        border-radius: 40px;
        padding: 30px 20px;
        width: 100%; /* Ensures the card matches the container width */
        box-sizing: border-box; /* Prevents padding from causing overflow */
    }

    .hero-section {
        min-height: 945px;
        padding-top: 0%;
    }

    .hero-title {
        margin-top : 20px;
        font-size: 28px;
    }

    .hero-bg-img {
        background-position: center calc(50% - 75px);
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 740px;
    }

    .hero-bg {
        top: -5px;
    }

    .section-title {
        font-size: 32px;
    }

    .services-container {
        gap: 30px !important;
    }

    .hero-bg-img {
        background-position: center calc(50% - 35px);
    }
}

@media (max-width: 430px) {
    .hero-section {
        min-height: 560px;
        padding-top: 2%;
    }

    .hero-bg {
        top: -5px;
    }

    .hero-title {
        margin-top:5px;
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 14px;
        text-wrap: nowrap;
    }

    .section-title {
        font-size: 30px;
    }

    .hero-bg-img {
        background-position: center calc(50% - 20px);
    }
}

@media (max-width: 375px) {
    .hero-section {
        min-height: 495px;
    }

    .hero-title {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 26px;
    }
}

.services-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}
.services-bg-logo {
    position: absolute;
    top: 50%;
    left: -10%;
    transform: translateY(-50%);
    width: 800px;
    opacity: 0.3;
    z-index: -1;
}
.services-bg-logo img {
    width: 100%;
    height: auto;
}
.services-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}
.services-content {
    flex: 1;
    min-width: 300px;
}
.services-subtitle {
    color: #545454;
    font-size: 20px;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 30px;
}
.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.services-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
    font-size: 18px;
    color: #000;
}
.services-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    background-color: #01733b;
    border-radius: 50%;
}
.services-image {
    flex: 1;
    min-width: 300px;
}
.services-image img {
    width: 100%;
    box-shadow: 0 10px 10px rgba(255, 255, 255, 0);
}

.capabilities-section {
    width: 100%;
    display: flex;
}
.full-width-img {
    width: 100%;
    height: auto;
    display: block;
}

.certifications-section {
    padding: 80px 0;
    background: #fff;
}
.certs-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}
.cert-item {
    text-align: center;
    max-width: 450px;
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cert-item img {
    width: 70%;
    border: 1px solid #d9d9d9;
    margin-bottom: 20px;
    box-shadow: 35px 20px 0 #d9d9d9; /* solid, no blur */
}
.cert-item p {
    font-size: 18px;
    font-weight: 300;
    color: #000;
    margin: 0;
}

@media (max-width: 768px) {
    .cert-item {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centers the image and text blocks horizontally */
        min-width: 100%; /* Ensures proper stacking on small mobile screens */
    }

    .cert-item img {
        display: block;
        margin-left: auto;
        margin-right: auto;

        /* Optional but highly recommended for mobile: 
           The 35px right shadow will push the visual center of your image to the left.
           Reducing it on mobile keeps the image looking perfectly balanced. */
        box-shadow: 15px 10px 0 #d9d9d9;
    }
}

.recognitions-section {
    padding: 50px 0 120px;
    background: #ffffff;
}
.recognitions-subtitle {
    font-size: 20px;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 10px;
    color: #545454;
}

/* Main outer wrapper holding both rows */
.awards-container {
    width: 100%;
    background: white;
    margin-top: 50px;
    /* padding: 20px 0; */
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between the top and bottom rows */
}

/* Individual row windows */
.awards-slider {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

/* Moving tracks */
.awards-track {
    display: flex;
    /* 12 images total per row (6 original + 6 duplicates) */
    width: calc(250px * 12);
    gap: 50px;
    /* padding: 20px 0; */
}

/* Pause animation on hover for either track */
.row-left .awards-track:hover {
    animation-play-state: paused;
}

.row-right .awards-track:hover {
    animation-play-state: paused;
}

.awards-track img {
    width: 250px;
    height: 150px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.awards-track img:hover {
    transform: scale(1.5);
}

/* --- Row Specific Animations --- */

/* Top Row: Slides Left */
.row-left .awards-track {
    animation: scroll-left 30s linear infinite;
}

/* Bottom Row: Slides Right */
.row-right .awards-track {
    animation: scroll-right 30s linear infinite;
}

/* --- Keyframes (Math adjusted perfectly for 6 images) --- */

/* Moves left by the width of 6 images and 6 gaps */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 6 - 50px * 6));
    }
}

/* Starts shifted left by 6 images, then moves back to 0 */
@keyframes scroll-right {
    0% {
        transform: translateX(calc(-250px * 6 - 50px * 6));
    }
    100% {
        transform: translateX(0);
    }
}

/* Optional soft gradient fade overlay on the left and right edges */
.awards-container::before,
.awards-container::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
    top: 0;
}

.awards-container::before {
    left: 0;
    background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
}

.awards-container::after {
    right: 0;
    background: linear-gradient(to left, white 0%, rgba(255, 255, 255, 0) 100%);
}

@media (max-width: 768px) {
    /* 1. Shrink the track total width and gap for mobile */
    .awards-track {
        width: calc(250px * 12 + 20px * 11); /* 12 images + 11 gaps */
        gap: 0px; /* Shorter gap between images */
    }

    /* 2. Update animations to use the new mobile gap (20px instead of 50px) */
    .row-left .awards-track {
        animation: scroll-left-mobile 20s linear infinite; /* Slightly faster duration optional for smaller screens */
    }

    .row-right .awards-track {
        animation: scroll-right-mobile 20s linear infinite;
    }

    /* 3. Reduce container side overlays so they don't hide too many images on mobile */
    .awards-container::before,
    .awards-container::after {
        width: 50px;
    }
}

/* --- Mobile Specific Keyframes (Math adjusted for 20px gaps) --- */
@keyframes scroll-left-mobile {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 6 - 20px * 6));
    }
}

@keyframes scroll-right-mobile {
    0% {
        transform: translateX(calc(-250px * 6 - 20px * 6));
    }
    100% {
        transform: translateX(0);
    }
}

.overlay-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CSS for section section:Contact */
.contact-banner {
    position: relative;
    width: 100%;
    min-height: 415px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.contact-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.contact-overlay-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.contact-content {
    position: relative;
    z-index: 3;
    padding: 60px 20px;
    width: 100%;
}

.contact-title {
    color: var(--primary-green);
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 25px;
}

.contact-text {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 35px;
    line-height: 1.4;
}

.contact-btn {
    display: inline-block;
    padding: 15px 45px;
    background-color: #d9d9d9;
    border: 1px solid #0d7441;
    border-radius: 40px;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--primary-green);
    color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

/* Optional: Offset for fixed headers */
#section-contact {
    scroll-margin-top: 80px; /* Adjust this value if you have a sticky header so it doesn't cover the title */
}

.features-grid h4 {
    color: #01733b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .certifications-section {
        padding: 40px 0; /* Cut in half for mobile */
    }

    .recognitions-section {
        /* Dropped from 50px top / 120px bottom down to a balanced 40px top / 60px bottom */
        padding: 40px 0 60px;
    }

    .services-section {
        padding: 50px 0; /* Kept clean and uniform for smaller device displays */
    }
}

/* By default (Desktop view), hide the mobile image */
.mobile-img {
    display: none;
}

.desktop-img {
    display: block; /* Or inline-block, depending on your layout */
}

/* When the screen width is 768px or narrower (Mobile view) */
@media (max-width: 768px) {
    .desktop-img {
        display: none;
    }
    .mobile-img {
        display: block;
    }
}


/* mobile-view img modal */
.award-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    display: block !important;
    margin: auto;
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    width: auto !important;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }

    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-group {
    display: flex;
    gap: 8px;
}

.iti {
    width: 100%;
}

.iti__search-input {
    height: 30px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out,
        box-shadow .15s ease-in-out;
}

.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
}

input::placeholder {
    font-size: 14px;
}

.btn-submit {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    color: white;
    background-color: green;
}

.btn-submit:disabled {
    background-color: grey;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .form-wrapper {
        justify-items: center;
    }
}

@media (max-width: 576px) {
    .form-group {
        flex-direction: column;
    }
}

.jconfirm.jconfirm-light .jconfirm-box,
.jconfirm.jconfirm-white .jconfirm-box {
    width: 100%;
    max-width: 400px;
}

.highlight {
    color: #02723a;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

/* Modal Background */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow-y: auto; /* Allows scrolling if there are 20+ images */
}

/* Modal Header */
.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
}

/* Image Grid */
.gallery-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px;
    margin: 0 auto;
}

.grid-img {
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: zoom-in;
    border: 1px solid #444;
}

.grid-img:hover {
    transform: scale(1.05);
    border-color: #01733b;
}

.close-modal {
    color: white;
    font-size: 35px;
    cursor: pointer;
}

/* The Enlarge Overlay */
.enlarge-overlay {
    display: none;
    position: fixed;
    z-index: 20000; /* Must be higher than the modal (10000) */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

#enlargedImg {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 3px solid white;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close-enlarge {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Ensure the grid images show they are clickable */
.grid-img {
    cursor: zoom-in !important;
}

@media (max-width: 480px) {
    .gallery-grid {
        flex-direction: column;
        align-items: center;
    }

    .gallery-grid img {
        width: 90%;
    }
}

.contact_map {
    display:flex;
    gap:20px;
}

.w-40 {
    width: 40% !important;
}

.w-45 {
    width: 45% !important;
}

.w-50 {
    width: 50% !important;
}

.w-55 {
    width: 55% !important;
}

.w-60 {
    width: 60% !important;
}

@media (max-width: 768px) {
    .contact_map{
        margin: auto;
        flex-direction: column;
    }

    .contact, .map{
        width: 100% !important;
    }

    .contact {
        order: 1;
    }
}

.services-container .services-content ul li a {
    text-decoration: none;
    color: black;
}

@media (max-width: 375px) {
    .services-container .services-content ul li a {
        font-size: 16px;
    }
}