
@import "modal.css";

.feature-item {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    align-items: flex-start;
}
.feature-item .icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #e7f5e8;
    color: #34a853;
    font-size: 16px;
    flex-shrink: 0;
}
.feature-item strong {
    display: block;
    margin-bottom: 6px;
}

@media (max-width: 991px) {
    .about-hero-grid,
    .about-mission-grid,
    .about-highlight-grid,
    .about-values-grid {
        grid-template-columns: 1fr;
    }
    .about-hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .about-hero {
        padding: 60px 0 40px;
    }
    .about-hero-copy .section-title {
        font-size: 32px;
    }
    .about-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .about-mission-card-large h3 {
        font-size: 24px;
    }
}
.about-hero,
.about-full {
    padding: 80px 0 70px;
    background: linear-gradient(135deg, #f6fbf2 0%, #eef8ec 100%);
}
.about-hero-grid,
.about-full-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 40px;
    align-items: center;
}
.about-hero-copy,
.about-full-copy {
    max-width: 650px;
}
.about-hero-copy .section-subtitle,
.about-full-copy .section-subtitle {
    color: #34a853;
    font-weight: 700;
    margin-bottom: 18px;
    display: inline-block;
}
.about-hero-copy .section-title,
.about-full-copy .section-title {
    margin-bottom: 22px;
    font-size: 44px;
    line-height: 1.08;
}
.about-hero-copy .section-desc,
.about-full-copy .section-desc {
    max-width: 620px;
    margin-bottom: 28px;
    color: #4d5f4e;
    line-height: 1.8;
}
.about-hero-actions,
.about-full-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}
.about-hero-actions .btn,
.about-full-actions .btn {
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
}
.about-hero-actions .btn-style1,
.about-full-actions .btn-style1 {
    background: #34a853;
    color: #fff;
}
.about-hero-actions .btn-style2,
.about-full-actions .btn-style2 {
    border: 1px solid #34a853;
    color: #34a853;
    background: transparent;
}
.about-hero-stats,
.about-full-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.about-hero-stat,
.about-full-stat {
    background: #ffffff;
    border: 1px solid rgba(52, 168, 83, 0.12);
    border-radius: 24px;
    padding: 22px 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}
.about-hero-stat .icon,
.about-full-stat .icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #34a853;
    color: #ffffff;
    font-size: 18px;
    flex-shrink: 0;
}
.about-hero-stat strong,
.about-full-stat strong {
    display: block;
    margin-bottom: 6px;
}
.about-hero-stat p,
.about-full-stat p {
    margin: 0;
    color: #60725e;
    line-height: 1.6;
}
.about-hero-media .about-hero-image,
.about-full-media .about-hero-image {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.10);
}
.about-hero-media .about-hero-image img,
.about-full-media .about-hero-image img {
    width: 100%;
    display: block;
    height: 100%;
    object-fit: cover;
}

.about-mission {
    padding: 70px 0;
}
.about-mission-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 22px;
}
.about-mission-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.06);
}
.about-mission-card-large {
    background: linear-gradient(135deg, #f4fbf2 0%, #eaf7e4 100%);
}
.about-mission-card-large h3 {
    margin: 10px 0 16px;
    font-size: 28px;
    line-height: 1.25;
}
.about-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #e8f7ea;
    color: #34a853;
    font-size: 22px;
    margin-bottom: 16px;
}
.about-mission-card h4 {
    margin-bottom: 10px;
}
.about-values {
    padding: 70px 0;
    background: #f7fcf4;
}
.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 36px;
}
.about-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 34px 28px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}
.about-card .icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #e8f6ea;
    color: #34a853;
    font-size: 22px;
    margin-bottom: 18px;
}
.about-card h3 {
    margin-bottom: 14px;
}
.about-card p {
    margin: 0;
    color: #566955;
    line-height: 1.8;
}

.about-highlight {
    padding: 70px 0;
}
.about-highlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 36px;
    align-items: center;
}
.about-highlight-image {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0,0,0,0.10);
}
.about-highlight-image img {
    width: 100%;
    display: block;
    height: 100%;
    object-fit: cover;
}
.about-highlight-content .section-title {
    margin-bottom: 20px;
}
.feature-item {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    align-items: flex-start;
}
.feature-item .icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #e7f5e8;
    color: #34a853;
    font-size: 16px;
    flex-shrink: 0;
}
.feature-item strong {
    display: block;
    margin-bottom: 6px;
}
.about-cta {
    padding: 0 0 80px;
}
.about-cta-box {
    background: linear-gradient(135deg, #34a853 0%, #2c8f47 100%);
    color: #fff;
    border-radius: 28px;
    padding: 40px 36px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.15);
    text-align: center;
}
.about-cta-box h3 {
    color: #fff;
    margin-bottom: 12px;
}
.about-cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 22px;
}
.about-cta-box .btn-style1 {
    background: #fff;
    color: #34a853;
    padding: 12px 24px;
    border-radius: 999px;
}

@media (max-width: 991px) {
    .about-hero-grid,
    .about-mission-grid,
    .about-highlight-grid,
    .about-values-grid {
        grid-template-columns: 1fr;
    }
    .about-hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .about-hero {
        padding: 60px 0 40px;
    }
    .about-hero-copy .section-title {
        font-size: 32px;
    }
    .about-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .about-mission-card-large h3 {
        font-size: 24px;
    }
}

/* Highly specific overrides to guarantee full-height columns and 50/50 layout */
html body .flat-services {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
html body .flat-about-2nd {
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
}
html body .flat-about-2nd .container-fluid {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}
html body .flat-about-2nd .container-fluid .row {
    margin: 0 !important;
    display: flex !important;
    align-items: stretch !important;
    overflow: visible !important;
    gap: 0 !important;
    column-gap: 0 !important;
}
html body .flat-about-2nd .container-fluid .row .col-md-6 {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    display: flex !important;
    align-items: stretch !important;
}
html body .flat-about-2nd .container-fluid .row .col-md-6:first-child {
    position: relative !important;
    z-index: 2 !important;
}
html body .flat-about-2nd .container-fluid .row .col-md-6:last-child {
    position: relative !important;
    z-index: 1 !important;
}
html body .flat-about-2nd .container-fluid .row .col-md-6 .content-left {
    position: relative !important;
    background-image: url('../images/new/10.png') !important;
    background-size: cover !important;
    background-position: center !important;
    height: 100% !important;
    min-height: 100% !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}
html body .flat-about-2nd .container-fluid .row .col-md-6 .content-left::before,
html body .flat-about-2nd .container-fluid .row .col-md-6 .content-left::after {
    display: none !important;
}
html body .flat-about-2nd .container-fluid .row .col-md-6 .tag-logo {
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    transform: translate(50%, -50%) !important;
    z-index: 999 !important;
    background-color: #f7fcf4 !important;
    border-radius: 999px 0 0 999px !important;
    padding: 25px 35px 25px 45px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}
html body .flat-about-2nd .container-fluid .row .col-md-6 .tag-logo img {
    width: 160px !important;
    height: auto !important;
    object-fit: contain !important;
}
html body .flat-about-2nd .container-fluid .row .col-md-6 .content-right {
    background-color: #34a853 !important; /* theme green */
    padding: 20px 50px 20px 120px !important;
    height: 100% !important;
    min-height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

@media (max-width: 991px) {
    html body .flat-about-2nd .container-fluid .row .col-md-6 .tag-logo {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 40px auto !important;
        border-radius: 999px !important;
        padding: 20px 30px !important;
        width: fit-content !important;
    }
    html body .flat-about-2nd .container-fluid .row .col-md-6 .content-left {
        min-height: 400px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    html body .flat-about-2nd .container-fluid .row .col-md-6 .content-right {
        padding: 40px 30px !important;
    }
}

@media (max-width: 767px) {
    html body .flat-about-2nd .container-fluid .row .col-md-6 .content-right {
        padding: 50px 20px !important;
    }
}



/* Fix for Domaines d'Intervention Grid Alignment */
.intervention-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px !important;
}
.intervention-grid > [class*="col-"] {
    float: none !important;
    display: flex !important;
    padding: 0 !important;
}
.intervention-grid .our-services-box {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    margin-bottom: 0 !important; /* Reset margin bottom since we use gap */
}

@media (min-width: 768px) {
    .intervention-grid > [class*="col-"] {
        flex: 0 0 calc(50% - 15px) !important;
        max-width: calc(50% - 15px) !important;
    }
}
@media (max-width: 767px) {
    .intervention-grid > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Redesign for Contact Us Section Left Info Box */
html body .flat-contact .contact-left .contact-info-box {
    background-color: #34a853 !important; /* theme green */
    background-image: url('../_next/static/media/Group-contact.88a9997e.png') !important; /* leaf vector mask */
    background-position: bottom right !important;
    background-repeat: no-repeat !important;
    background-size: auto !important;
    border-radius: 12px !important;
    padding: 40px !important;
    margin-top: 30px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
}

html body .flat-contact .contact-left .contact-info-box .contact-info-item {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    margin-bottom: 0 !important;
    background: transparent !important;
}

html body .flat-contact .contact-left .contact-info-box .contact-info-item .address-icon {
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(255, 255, 255, 0.15) !important; /* translucent white */
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
    float: none !important;
    margin: 0 !important;
}

html body .flat-contact .contact-left .contact-info-box .contact-info-item .info {
    display: flex !important;
    flex-direction: column !important;
    padding-left: 0 !important;
}

html body .flat-contact .contact-left .contact-info-box .contact-info-item .info strong {
    color: #ffffff !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
    display: block !important;
}

html body .flat-contact .contact-left .contact-info-box .contact-info-item .info p {
    color: rgba(255, 255, 255, 0.9) !important; /* legible white text */
    font-family: 'Rubik', sans-serif !important;
    font-size: 15px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Styling for horizontal footer-contact-bar sitting on boundary */
html body footer.footer {
    position: relative !important;
    padding-top: 50px !important; /* reduced spacing below the overlapping bar */
}

html body .footer-contact-bar {
    display: flex !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: -190px auto 40px auto !important; /* pull it up to sit on the white/green section boundary */
    background: transparent !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
    z-index: 10 !important;
    position: relative !important;
}

html body .footer-contact-bar-left {
    background-color: #34a853 !important; /* theme green */
    width: 25% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 30px !important;
    flex-shrink: 0 !important;
}

html body .footer-bar-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

html body .footer-bar-logo img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 65px !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important; /* turns dark logo white */
}

html body .footer-contact-bar-right {
    background-color: #ebf3e8 !important; /* light off-white shade */
    width: 75% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 30px 40px !important;
    flex-grow: 1 !important;
}

html body .footer-contact-bar-right .footer-contact-item {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex: 1 !important;
    padding: 10px 25px !important;
    border-right: 1px solid #d4e3d0 !important; /* divider lines */
}

html body .footer-contact-bar-right .footer-contact-item.last-item {
    border-right: none !important;
}

html body .footer-contact-bar-right .footer-contact-item .contact-icon span {
    color: #34a853 !important; /* theme green */
    font-size: 28px !important;
}

html body .footer-contact-bar-right .footer-contact-item .contact-text {
    display: flex !important;
    flex-direction: column !important;
}

html body .footer-contact-bar-right .footer-contact-item .contact-text strong {
    color: #1a2e1e !important; /* dark readable forest green/black */
    font-family: 'Rubik', sans-serif !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    display: block !important;
}

html body .footer-contact-bar-right .footer-contact-item .contact-text p {
    color: #556052 !important; /* dark gray */
    font-family: 'Rubik', sans-serif !important;
    font-size: 15px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Tablet & Mobile responsive overrides */
@media (max-width: 991px) {
    html body footer.footer {
        padding-top: 50px !important;
    }
    html body .footer-contact-bar {
        flex-direction: column !important;
        margin: 20px auto 30px auto !important; /* disabled negative top margin to prevent overlapping content */
        width: 90% !important;
    }
    html body .footer-contact-bar-left {
        width: 100% !important;
        padding: 20px !important;
    }
    html body .footer-contact-bar-right {
        width: 100% !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px !important;
        gap: 15px !important;
    }
    html body .footer-contact-bar-right .footer-contact-item {
        border-right: none !important;
        border-bottom: 1px solid #d4e3d0 !important;
        width: 100% !important;
        padding: 10px 0 !important;
    }
    html body .footer-contact-bar-right .footer-contact-item.last-item {
        border-bottom: none !important;
    }
}

/* Custom Header separator with green diamond */
.redesigned-section-header {
    text-align: center !important;
    margin-bottom: 50px !important;
    margin-top: 60px !important;
}
.redesigned-section-header h2 {
    font-family: 'Jost', sans-serif !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    color: #1a2e1e !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 12px !important;
}
.header-line-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
}
.header-line {
    width: 90px !important;
    height: 2px !important;
    background-color: #34a853 !important; /* theme green diamond divider */
}
.header-diamond {
    width: 12px !important;
    height: 12px !important;
    background-color: #34a853 !important;
    transform: rotate(45deg) !important;
    display: inline-block !important;
}

/* Eliminate space between Vision grid and Domaines d'Intervention */
html body .flat-vision {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}
html body .flat-services {
    padding-top: 40px !important; /* reduce spacing above Domaines d'Intervention */
    margin-top: 0 !important;
}

/* Mission Section Redesign Styles */
.mission-row {
    margin-bottom: 80px !important;
}
.mission-row:last-child {
    margin-bottom: 0 !important;
}
.mission-text-card {
    background-color: #f7faf6 !important; /* soft green tint background */
    border-radius: 12px !important;
    padding: 40px 50px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid #f0f5ee !important;
    border-left: 6px solid #34a853 !important; /* strong green left border */
    transition: all 0.4s ease !important;
}
.mission-text-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(52, 168, 83, 0.08) !important;
}
.mission-icon-box {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
}
.mission-icon-box span {
    background-color: #34a853 !important;
    color: #ffffff !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    box-shadow: 0 5px 15px rgba(52, 168, 83, 0.2) !important;
    transition: all 0.4s ease !important;
    flex-shrink: 0 !important;
}
.mission-text-card:hover .mission-icon-box span {
    transform: rotate(360deg) !important;
    background-color: #214e34 !important;
}
.mission-icon-box h3 {
    font-family: 'Jost', sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #1a2e1e !important;
    margin: 0 !important;
}
.mission-text-card p {
    color: #556052 !important; /* readable gray */
    font-family: 'Rubik', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}
.mission-image-card {
    border-radius: 12px !important;
    overflow: visible !important; /* need visible for offset shadows */
    position: relative !important;
    height: 380px !important;
    width: 100% !important;
    z-index: 1 !important;
}
.mission-image-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    border: 6px solid #ffffff !important; /* premium white frame */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
.mission-image-card::before {
    content: '' !important;
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    right: -15px !important;
    bottom: -15px !important;
    background-color: rgba(52, 168, 83, 0.12) !important; /* offset soft green background shadow card */
    border-radius: 12px !important;
    z-index: -1 !important;
    transition: all 0.4s ease !important;
}
.mission-image-card:hover img {
    transform: scale(1.04) rotate(0.5deg) !important;
}
.mission-image-card:hover::before {
    top: 8px !important;
    left: 8px !important;
    right: -8px !important;
    bottom: -8px !important;
    background-color: rgba(52, 168, 83, 0.2) !important;
}

/* Vision Section Redesign Grid Styles */
.vision-grid-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: minmax(450px, auto) !important;
    gap: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
}
.vision-grid-item {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.vision-text-card {
    background-color: #214e34 !important; /* warmer lush forest green block background */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 60px 80px !important;
}
.vision-card-content {
    max-width: 500px !important;
}
.vision-icon-header {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
}
.vision-icon-header span {
    color: #34a853 !important; /* theme green */
    font-size: 36px !important;
}
.vision-icon-header h3 {
    color: #ffffff !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 26px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}
.vision-text-card p {
    color: rgba(255, 255, 255, 0.9) !important; /* highly legible white */
    font-family: 'Rubik', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}
.vision-image-card {
    position: relative !important;
    overflow: hidden !important;
}
.vision-img-wrapper {
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    min-height: 450px !important;
    transition: transform 0.8s ease !important;
}
.vision-image-card:hover .vision-img-wrapper {
    transform: scale(1.03) !important;
}

/* Tablet & Mobile responsive overrides */
@media (max-width: 991px) {
    .mission-row {
        margin-bottom: 40px !important;
    }
    .mission-row.reverse-row {
        flex-direction: column-reverse !important;
        display: flex !important;
    }
    .mission-image-card {
        height: 300px !important;
        margin-top: 20px !important;
    }
    .reverse-row .mission-image-card {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }
    .mission-text-card {
        padding: 30px 20px !important;
    }
    .mission-icon-box h3 {
        font-size: 20px !important;
    }
    .mission-image-card::before {
        display: none !important; /* simplify background layer on mobile */
    }

    .vision-grid-container {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
    }
    .vision-grid-item:nth-child(1) { order: 1 !important; }
    .vision-grid-item:nth-child(2) { order: 2 !important; }
    .vision-grid-item:nth-child(3) { order: 4 !important; }
    .vision-grid-item:nth-child(4) { order: 3 !important; }
    
    .vision-text-card {
        padding: 40px 20px !important;
    }
    .vision-img-wrapper {
        min-height: 300px !important;
    }
    .vision-icon-header h3 {
        font-size: 22px !important;
    }
}

/* ==========================================================================
   About Us Page Redesign Overrides
   ========================================================================== */

/* Spacing and sections background */
.about-hero {
    background: linear-gradient(135deg, #f9fdf8 0%, #f1f9ef 100%) !important;
    padding: 60px 0 !important;
}
.about-sections {
    background-color: #ffffff !important;
    padding: 50px 0 !important;
}
.about-impact {
    background-color: #f7faf6 !important;
    padding: 50px 0 !important;
}
.about-commitments {
    background-color: #ffffff !important;
    padding: 50px 0 !important;
}

/* Decrease spacing on redesigned section titles for about page specifically */
html body .about-sections .redesigned-section-header,
html body .about-commitments .redesigned-section-header {
    margin-top: 0 !important;
    margin-bottom: 35px !important;
}

/* Polaroid-Style Image Cards with offset green background shadow deck */
.about-image-card {
    border-radius: 12px !important;
    overflow: visible !important;
    position: relative !important;
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    z-index: 1 !important;
}
.about-image-card img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    border: 8px solid #ffffff !important; /* white polaroid border frame */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
    display: block !important;
}
.about-image-card::before {
    content: '' !important;
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    right: -15px !important;
    bottom: -15px !important;
    background-color: rgba(52, 168, 83, 0.12) !important; /* offset shadow green block */
    border-radius: 12px !important;
    z-index: -1 !important;
    transition: all 0.4s ease !important;
}
.about-image-card:hover img {
    transform: scale(1.03) rotate(0.5deg) !important;
}
.about-image-card:hover::before {
    top: 8px !important;
    left: 8px !important;
    right: -8px !important;
    bottom: -8px !important;
    background-color: rgba(52, 168, 83, 0.2) !important;
}

/* Stats Cards in Hero */
.about-hero-stat {
    background: #ffffff !important;
    border: 1px solid #e2ece0 !important;
    border-left: 5px solid #34a853 !important; /* theme green left border */
    border-radius: 12px !important;
    padding: 20px 24px !important;
    display: flex !important;
    gap: 16px !important;
    align-items: center !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 16px !important;
}
.about-hero-stat:last-child {
    margin-bottom: 0 !important;
}
.about-hero-stat:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(52, 168, 83, 0.05) !important;
}
.stat-icon-wrapper {
    background-color: #34a853 !important;
    color: #ffffff !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    box-shadow: 0 4px 10px rgba(52, 168, 83, 0.2) !important;
    flex-shrink: 0 !important;
}
.about-hero-stat strong {
    font-family: 'Jost', sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #1a2e1e !important;
    margin-bottom: 3px !important;
    display: block !important;
}
.about-hero-stat p {
    font-family: 'Rubik', sans-serif !important;
    font-size: 14px !important;
    color: #556052 !important;
    margin: 0 !important;
}

/* Pillars Cards */
.about-card {
    background-color: #ffffff !important;
    border-radius: 12px !important;
    padding: 40px 30px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #f0f5ee !important;
    border-left: 6px solid #34a853 !important; /* left border green accent */
    height: 100% !important;
    transition: all 0.4s ease !important;
}
.about-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 45px rgba(52, 168, 83, 0.08) !important;
}
.about-card-icon {
    background-color: #34a853 !important;
    color: #ffffff !important;
    width: 54px !important;
    height: 54px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    box-shadow: 0 5px 15px rgba(52, 168, 83, 0.2) !important;
    margin-bottom: 25px !important;
    transition: all 0.4s ease !important;
}
.about-card:hover .about-card-icon {
    transform: rotate(360deg) !important;
    background-color: #214e34 !important;
}
.about-card h3 {
    font-family: 'Jost', sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #1a2e1e !important;
    margin-bottom: 15px !important;
}
.about-card p {
    color: #556052 !important;
    font-family: 'Rubik', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Method Features Cards */
.about-feature-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 35px 40px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid #eef3ed !important;
    margin-top: 30px !important;
}
.about-feature-card .feature-item {
    display: flex !important;
    gap: 20px !important;
    margin-bottom: 22px !important;
    align-items: flex-start !important;
}
.about-feature-card .feature-item:last-child {
    margin-bottom: 0 !important;
}
.feature-icon {
    background-color: #34a853 !important;
    color: #ffffff !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    box-shadow: 0 4px 10px rgba(52, 168, 83, 0.15) !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease !important;
}
.about-feature-card .feature-item:hover .feature-icon {
    background-color: #214e34 !important;
    transform: scale(1.1) !important;
}
.about-feature-card .feature-item strong {
    font-family: 'Jost', sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #1a2e1e !important;
    margin-bottom: 4px !important;
}
.about-feature-card .feature-item p {
    font-family: 'Rubik', sans-serif !important;
    font-size: 14px !important;
    color: #556052 !important;
    margin: 0 !important;
}

/* Commitments Cards */
.about-commitments-grid .about-commit-card {
    background-color: #f7faf6 !important; /* soft green background */
    border-radius: 12px !important;
    padding: 40px 30px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid #f0f5ee !important;
    border-left: 6px solid #34a853 !important; /* left border green accent */
    height: 100% !important;
    transition: all 0.4s ease !important;
}
.about-commitments-grid .about-commit-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 45px rgba(52, 168, 83, 0.08) !important;
}
.about-commit-icon {
    background-color: #34a853 !important;
    color: #ffffff !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    box-shadow: 0 5px 12px rgba(52, 168, 83, 0.15) !important;
    margin-bottom: 22px !important;
    transition: all 0.4s ease !important;
}
.about-commitments-grid .about-commit-card:hover .about-commit-icon {
    transform: rotate(360deg) !important;
    background-color: #214e34 !important;
}
.about-commitments-grid .about-commit-card strong {
    font-family: 'Jost', sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #1a2e1e !important;
    margin-bottom: 12px !important;
    display: block !important;
}
.about-commitments-grid .about-commit-card p {
    color: #556052 !important;
    font-family: 'Rubik', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Readable top header info bar style overrides (scoped specifically to subpages) */
html body.page-about .top-header1,
html body.page-mission .top-header1,
html body.page-vision .top-header1,
html body.page-services .top-header1,
html body.page-gallery .top-header1,
html body.page-contact .top-header1 {
    background-color: transparent !important; /* Keep background transparent as requested */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}
html body.page-about .top-header1 .top-bar-left .top-location,
html body.page-about .top-header1 .top-bar-left .top-mail,
html body.page-mission .top-header1 .top-bar-left .top-location,
html body.page-mission .top-header1 .top-bar-left .top-mail,
html body.page-vision .top-header1 .top-bar-left .top-location,
html body.page-vision .top-header1 .top-bar-left .top-mail,
html body.page-services .top-header1 .top-bar-left .top-location,
html body.page-services .top-header1 .top-bar-left .top-mail,
html body.page-gallery .top-header1 .top-bar-left .top-location,
html body.page-gallery .top-header1 .top-bar-left .top-mail,
html body.page-contact .top-header1 .top-bar-left .top-location,
html body.page-contact .top-header1 .top-bar-left .top-mail {
    color: #ffffff !important; /* Solid readable white text */
    font-weight: 500 !important;
}
html body.page-about .top-header1 .widgets-nav-social li a i,
html body.page-mission .top-header1 .widgets-nav-social li a i,
html body.page-vision .top-header1 .widgets-nav-social li a i,
html body.page-services .top-header1 .widgets-nav-social li a i,
html body.page-gallery .top-header1 .widgets-nav-social li a i,
html body.page-contact .top-header1 .widgets-nav-social li a i {
    color: #ffffff !important; /* White icons */
}
html body.page-about .top-header1 .widgets-nav-social li a:hover i,
html body.page-mission .top-header1 .widgets-nav-social li a:hover i,
html body.page-vision .top-header1 .widgets-nav-social li a:hover i,
html body.page-services .top-header1 .widgets-nav-social li a:hover i,
html body.page-gallery .top-header1 .widgets-nav-social li a:hover i,
html body.page-contact .top-header1 .widgets-nav-social li a:hover i {
    color: #34a853 !important; /* standard green hover */
}

/* Equal height/width stats card grid inside about-hero */
.about-hero-stats {
    display: flex !important;
    gap: 20px !important;
    margin-top: 30px !important;
    align-items: stretch !important; /* Equal height */
}
.about-hero-stats .about-hero-stat {
    flex: 1 !important; /* Equal width */
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important; /* vertically center content */
    height: auto !important;
}

/* Equal height/width pillars cards grid */
html body .about-section-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}
html body .about-section-grid > div {
    display: flex !important;
    align-items: stretch !important;
}
html body .about-section-grid .about-card {
    width: 100% !important;
    height: 100% !important;
}

/* Equal height/width commitments cards grid */
html body .about-commitments-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}
html body .about-commitments-grid > div {
    display: flex !important;
    align-items: stretch !important;
}
html body .about-commitments-grid .about-commit-card {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 991px) {
    .about-hero, .about-sections, .about-impact, .about-commitments {
        padding: 40px 0 !important;
    }
    .about-image-card {
        margin-top: 35px !important;
    }
    .about-image-card::before {
        display: none !important; /* disable offset shadows on mobile */
    }
    .about-hero-stats {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }
    .about-hero-stats .about-hero-stat {
        width: 100% !important;
        margin-bottom: 0 !important;
    }
}

/* ==========================================================================
   Mission & Vision Pages Redesign Overrides
   ========================================================================== */

/* Intro Section */
.mission-intro-section,
.vision-intro-section {
    background-color: #ffffff !important;
    padding: 35px 0 20px 0 !important;
}
.mission-intro-card,
.vision-intro-card {
    max-width: 800px !important;
    margin: 0 auto !important;
}
.intro-badge {
    background-color: #e2ece0 !important;
    color: #214e34 !important;
    font-family: 'Rubik', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    display: inline-block !important;
    margin-bottom: 20px !important;
}
.mission-intro-card h2,
.vision-intro-card h2 {
    font-family: 'Jost', sans-serif !important;
    font-size: 38px !important;
    font-weight: 700 !important;
    color: #1a2e1e !important;
    margin-bottom: 16px !important;
}
.lead-text {
    font-family: 'Rubik', sans-serif !important;
    color: #556052 !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* Alternating details section design */
.mission-detail-section.sec-white,
.vision-detail-section.sec-white {
    background-color: #ffffff !important;
    padding: 40px 0 !important;
}
.mission-detail-section.sec-accent,
.vision-detail-section.sec-accent {
    background-color: #f7faf6 !important;
    padding: 40px 0 !important;
    border-top: 1px solid #eef3ed !important;
    border-bottom: 1px solid #eef3ed !important;
}
.mission-detail-row,
.vision-detail-row {
    margin-bottom: 70px !important;
}
.mission-detail-row:last-child,
.vision-detail-row:last-child {
    margin-bottom: 0 !important;
}
.mission-detail-text,
.vision-detail-text {
    padding-right: 30px !important;
}
.reverse-row .mission-detail-text,
.reverse-row .vision-detail-text {
    padding-right: 0 !important;
    padding-left: 30px !important;
}
.mission-icon-wrapper,
.vision-icon-wrapper {
    background-color: #34a853 !important;
    color: #ffffff !important;
    width: 54px !important;
    height: 54px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 5px 12px rgba(52, 168, 83, 0.2) !important;
    transition: all 0.4s ease !important;
}
.mission-detail-row:hover .mission-icon-wrapper,
.vision-detail-row:hover .vision-icon-wrapper {
    transform: rotate(360deg) scale(1.08) !important;
    background-color: #214e34 !important;
}
.mission-detail-text h3,
.vision-detail-text h3 {
    font-family: 'Jost', sans-serif !important;
    font-size: 26px !important;
    font-weight: 600 !important;
    color: #1a2e1e !important;
    margin-bottom: 16px !important;
}
.mission-detail-text p,
.vision-detail-text p {
    font-family: 'Rubik', sans-serif !important;
    color: #556052 !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    margin-bottom: 20px !important;
}
.mission-checklist {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.mission-checklist li {
    font-family: 'Rubik', sans-serif !important;
    font-size: 15px !important;
    color: #1a2e1e !important;
    font-weight: 500 !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.mission-checklist li i {
    color: #34a853 !important;
    font-size: 16px !important;
}

/* Vision Pillars grid */
.vision-pillars {
    background-color: #f7faf6 !important;
    padding: 40px 0 !important;
}
.vision-pillars-grid .vision-pillar-card {
    background: #ffffff !important;
    border: 1px solid #eef3ed !important;
    border-radius: 12px !important;
    padding: 30px 24px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    height: 100% !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02) !important;
}
.vision-pillars-grid .vision-pillar-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 35px rgba(52, 168, 83, 0.06) !important;
}
.pillar-icon {
    background-color: #e2ece0 !important;
    color: #34a853 !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    margin-bottom: 20px !important;
    transition: all 0.4s ease !important;
}
.vision-pillar-card:hover .pillar-icon {
    background-color: #34a853 !important;
    color: #ffffff !important;
    transform: scale(1.05) !important;
}
.vision-pillar-card h4 {
    font-family: 'Jost', sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1a2e1e !important;
    margin-bottom: 12px !important;
}
.vision-pillar-card p {
    font-family: 'Rubik', sans-serif !important;
    color: #556052 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* CTA Box common overrides */
.mission-cta {
    background-color: #214e34 !important;
    padding: 45px 0 190px 0 !important; /* bottom padding accommodates negative margin of footer contact bar */
    position: relative !important;
    overflow: hidden !important;
}
.cta-box h2 {
    font-family: 'Jost', sans-serif !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 16px !important;
    text-transform: none !important;
}
.cta-box p {
    font-family: 'Rubik', sans-serif !important;
    color: #dfede1 !important;
    font-size: 16px !important;
    margin-bottom: 30px !important;
}
.cta-btn {
    background-color: #34a853 !important;
    color: #ffffff !important;
    font-family: 'Jost', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 12px 35px !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: inline-block !important;
}
.cta-btn:hover {
    background-color: #ffffff !important;
    color: #214e34 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 991px) {
    .mission-intro-section,
    .vision-intro-section {
        padding: 40px 0 20px 0 !important;
    }
    .mission-intro-card h2,
    .vision-intro-card h2 {
        font-size: 30px !important;
    }
    .mission-detail-section,
    .vision-detail-section {
        padding: 40px 0 !important;
    }
    .mission-detail-row,
    .vision-detail-row {
        margin-bottom: 40px !important;
    }
    .mission-detail-text,
    .vision-detail-text {
        padding-right: 0 !important;
        margin-bottom: 30px !important;
    }
    .reverse-row .mission-detail-text,
    .reverse-row .vision-detail-text {
        padding-left: 0 !important;
        margin-bottom: 30px !important;
    }
    .vision-pillars {
        padding: 40px 0 !important;
    }
    .mission-cta {
        padding: 50px 0 !important;
    }
    .cta-box h2 {
        font-size: 26px !important;
    }
}

/* ==========================================================================
   Services Page Redesign Overrides
   ========================================================================== */

/* Subpage Header contrast styling scope */
html body.page-services .top-header1 {
    background-color: transparent !important; /* Keep background transparent */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}
html body.page-services .top-header1 .top-bar-left .top-location,
html body.page-services .top-header1 .top-bar-left .top-mail {
    color: #ffffff !important; /* White text on dark leaves */
    font-weight: 500 !important;
}
html body.page-services .top-header1 .widgets-nav-social li a i {
    color: #ffffff !important; /* White social icons */
}
html body.page-services .top-header1 .widgets-nav-social li a:hover i {
    color: #34a853 !important;
}

/* Equal height/width services grid */
html body.page-services .services-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important; /* Center the last card on last row */
}
html body.page-services .services-grid > [class*="col-"] {
    display: flex !important;
    align-items: stretch !important; /* equal height columns */
    margin-bottom: 30px !important;
}
html body.page-services .our-services-box {
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    border: 1px solid #eef3ed !important;
    border-top: 4px solid #34a853 !important; /* top green border line */
    border-radius: 12px !important;
    padding: 35px 28px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    min-height: 0 !important; /* override inline styles */
    margin-bottom: 0 !important;
}
html body.page-services .our-services-box:hover {
    background-color: #214e34 !important; /* Premium deep forest green */
    border-color: #214e34 !important;
    border-top-color: #34a853 !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 40px rgba(33, 78, 52, 0.25) !important;
}
html body.page-services .our-services-box:hover h3 {
    color: #ffffff !important;
}
html body.page-services .our-services-box:hover p {
    color: #dfede1 !important;
}
html body.page-services .our-services-box:hover .service-icon-wrapper {
    background-color: #ffffff !important;
    color: #214e34 !important;
}

/* Service icon wrapper */
html body.page-services .service-icon-wrapper {
    background-color: #e2ece0 !important;
    color: #34a853 !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 26px !important;
    margin-bottom: 24px !important;
    transition: all 0.4s ease !important;
    flex-shrink: 0 !important;
}
html body.page-services .our-services-box:hover .service-icon-wrapper {
    background-color: #34a853 !important;
    color: #ffffff !important;
    transform: rotate(360deg) scale(1.05) !important;
}

/* Service texts styles */
html body.page-services .our-services-box h3 {
    font-family: 'Jost', sans-serif !important;
    font-size: 19px !important;
    font-weight: 600 !important;
    color: #1a2e1e !important;
    margin-bottom: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.45 !important;
}
html body.page-services .our-services-box p {
    font-family: 'Rubik', sans-serif !important;
    color: #556052 !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ==========================================================================
   Gallery Page Redesign Overrides
   ========================================================================== */

/* Subpage Header contrast styling scope */
html body.page-gallery .top-header1 {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}
html body.page-gallery .top-header1 .top-bar-left .top-location,
html body.page-gallery .top-header1 .top-bar-left .top-mail {
    color: #ffffff !important;
    font-weight: 500 !important;
}
html body.page-gallery .top-header1 .widgets-nav-social li a i {
    color: #ffffff !important;
}
html body.page-gallery .top-header1 .widgets-nav-social li a:hover i {
    color: #34a853 !important;
}

/* Gallery Grid */
html body.page-gallery .gallery-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}
html body.page-gallery .gallery-grid > [class*="col-"] {
    display: flex !important;
    align-items: stretch !important;
    margin-bottom: 30px !important;
}

/* Gallery Item Card (Clean Grid) */
html body.page-gallery .gallery-item-card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    display: block !important;
    overflow: hidden !important;
    border-radius: 8px !important;
}

/* Image container */
html body.page-gallery .gallery-img-box {
    position: relative !important;
    width: 100% !important;
    height: 280px !important; /* Larger, taller images */
    border-radius: 8px !important;
    overflow: hidden !important;
    background-color: #f7faf6 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.4s ease !important;
}
html body.page-gallery .gallery-item-card:hover .gallery-img-box {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(52, 168, 83, 0.12) !important;
}
html body.page-gallery .gallery-img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
html body.page-gallery .gallery-item-card:hover .gallery-img-box img {
    transform: scale(1.08) !important;
}

/* Hover Overlay */
html body.page-gallery .gallery-hover-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(33, 78, 52, 0.7) !important; /* transparent dark green overlay */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: all 0.4s ease !important;
    z-index: 2 !important;
}
html body.page-gallery .gallery-item-card:hover .gallery-hover-overlay {
    opacity: 1 !important;
}
html body.page-gallery .gallery-hover-overlay i {
    color: #ffffff !important;
    font-size: 28px !important;
    transform: scale(0.8) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
html body.page-gallery .gallery-item-card:hover .gallery-hover-overlay i {
    transform: scale(1) !important;
}/* General Page spacing and paddings reductions */
.page-title {
    padding: 80px 0 50px 0 !important; /* Make title banner more compact */
}
.page-title .inner-title {
    padding: 0 !important;
}

html body.page-services .flat-services {
    padding: 40px 0 !important; /* Decrease services spacing */
}
html body.page-gallery .flat-gallery {
    padding: 40px 0 !important; /* Decrease gallery spacing */
}
html body.page-contact .flat-contact-page {
    padding: 40px 0 !important; /* Decrease contact spacing */
}
html body.page-contact .themesflat-map {
    margin-top: 20px !important; /* Tighten map space */
    margin-bottom: 0 !important;
}

/* Footer layout gaps cleanups */
html body .footer-contact-bar {
    margin: -190px auto 15px auto !important; /* reduced bottom margin */
}
html body footer.footer .list-footer {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
html body footer.footer .padding-top-listfooter {
    padding-top: 0 !important;
}
html body footer.footer .widgets-about,
html body footer.footer .widgets-menu-1,
html body footer.footer .widgets-menu-2,
html body footer.footer .widgets-subcribes {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
}
html body footer.footer .footer-bottom {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    margin-top: 20px !important; /* reduced gap above copyright bar */
}

/* Contact page mobile form field stack and map heights responsiveness */
@media (max-width: 767px) {
    html body.page-contact .form-contact-right .input-row {
        flex-direction: column !important;
        gap: 15px !important;
        margin-bottom: 15px !important;
    }
    html body.page-contact .contact-right {
        padding: 20px !important; /* compact form container on small screens */
    }
    html body.page-contact .themesflat-map {
        height: 300px !important; /* compact map area on phone screens */
    }
}

/* Mobile layout adjustments for Header, Slider, Map, and Footer Contact Bar */
@media (max-width: 991px) {
    /* Hide top bar on mobile/tablets to avoid header overlap */
    .top-header1 {
        display: none !important;
    }
    /* Increase homepage slider height to fit content on mobile/tablet */
    .page-title-home1 {
        height: 820px !important;
    }
    /* Push homepage slider content down to avoid header box overlap */
    .slide-content .content {
        margin-top: 195px !important;
    }
    /* Reduce button box top margin on mobile */
    .slide-content .content .button-box {
        margin-top: 15px !important;
    }
    /* Push subpage title banners down so text is fully visible */
    .page-title {
        padding-top: 155px !important;
        padding-bottom: 50px !important;
    }
    /* Push footer contact bar down on mobile/tablet so it does not overlap content */
    html body .footer-contact-bar {
        margin: 40px auto 30px auto !important; /* overrides desktop negative margin */
    }
}

/* Stacking buttons and centering on phone screens */
@media (max-width: 767px) {
    .slide-content .content .button-box {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
    }
    .slide-content .content .button-box .button {
        margin: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
    .slide-content .content .button-box .button a {
        display: block !important;
        width: 100% !important;
    }
}

/* Custom Page Title Banner Background Image */
.page-title, .inner-title {
    background-image: url('../images/news/cap.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.page-title .overlay-image {
    display: block !important;
    background-color: rgba(0, 0, 0, 0.4) !important; /* transparent black overlay */
    opacity: 1 !important;
}

/* Custom premium hover style for services cards */
html body .flat-services .our-services-box {
    background-color: #ffffff !important;
    border: 1px solid #eef3ed !important;
    border-top: 4px solid #34a853 !important; /* Top green stripe */
    border-radius: 12px !important;
    padding: 35px 28px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

/* Hover State */
html body .flat-services .our-services-box:hover {
    background-color: #214e34 !important; /* Premium deep forest green */
    border-top-color: #34a853 !important; /* Keep the bright green top line */
    border-color: #214e34 !important;
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 40px rgba(33, 78, 52, 0.25) !important;
}

/* Icon hover state */
html body .flat-services .our-services-box .tf-icon,
html body.page-services .our-services-box .service-icon-wrapper {
    transition: all 0.4s ease !important;
}

html body .flat-services .our-services-box:hover .tf-icon {
    color: #ffffff !important; /* Turn the icon white on hover */
}

/* Text tags hover state */
html body .flat-services .our-services-box h3,
html body .flat-services .our-services-box .content-features h3 a {
    transition: color 0.4s ease !important;
}

html body .flat-services .our-services-box:hover h3,
html body .flat-services .our-services-box:hover .content-features h3 a {
    color: #ffffff !important; /* White title on hover */
}

html body .flat-services .our-services-box .section-desc {
    transition: color 0.4s ease !important;
}

html body .flat-services .our-services-box:hover .section-desc {
    color: #dfede1 !important; /* Soft light-green description text on hover */
}

/* Hide template's default hover background images */
html body .our-services-overlay {
    display: none !important;
    background-image: none !important;
    background: none !important;
}





