:root {
    --primary-color: #e87524;
    --primary-dark: #c95b11;
    --secondary-color: #1f422f;
    --secondary-light: #2d5941;
    --heading-color: #17251d;
    --body-color: #5f6d65;
    --light-color: #f6f8f6;
    --white-color: #ffffff;
    --border-color: #e1e7e3;
    --danger-color: #dc3545;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white-color);
    color: var(--body-color);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
}

.site-wrapper {
    min-height: 100vh;
}

.site-main {
    min-height: 500px;
}

/* =========================
   Top Bar
========================= */

.top-bar {
    padding: 9px 0;
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
}

.top-contact a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.top-contact a:hover {
    color: var(--primary-color);
}

.top-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-social a {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white-color);
}

.top-social a:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

/* =========================
   Main Navbar
========================= */

.main-navbar {
    min-height: 82px;
    border-bottom: 1px solid var(--border-color);
    background: var(--white-color);
    box-shadow: 0 4px 20px rgba(21, 46, 32, 0.06);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.brand-logo {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary-color);
    color: var(--white-color);
    font-size: 22px;
}

.brand-content {
    display: flex;
    flex-direction: column;
    color: var(--heading-color);
    line-height: 1.2;
}

.brand-content strong {
    font-size: 20px;
    font-weight: 800;
}

.brand-content small {
    margin-top: 4px;
    color: var(--body-color);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.main-navbar .navbar-nav {
    gap: 4px;
}

.main-navbar .nav-link {
    padding: 29px 12px;
    color: var(--heading-color);
    font-size: 14px;
    font-weight: 700;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active,
.main-navbar .nav-link.show {
    color: var(--primary-color);
}

.main-navbar .dropdown-menu {
    min-width: 220px;
    padding: 9px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(22, 46, 32, 0.13);
}

.main-navbar .dropdown-item {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--heading-color);
    font-size: 14px;
}

.main-navbar .dropdown-item:hover {
    background: rgba(232, 117, 36, 0.1);
    color: var(--primary-color);
}

/* =========================
   Common Section Styles
========================= */

.section-padding {
    padding: 90px 0;
}

.section-background {
    background: var(--light-color);
}

.section-heading {
    margin-bottom: 45px;
    text-align: center;
}

.section-subtitle {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: var(--heading-color);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
}

.section-description {
    max-width: 720px;
    margin: 15px auto 0;
    color: var(--body-color);
}

/* =========================
   Buttons
========================= */

.btn-primary-custom {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border: 2px solid var(--primary-color);
    border-radius: 9px;
    background: var(--primary-color);
    color: var(--white-color);
    font-weight: 700;
}

.btn-primary-custom:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: var(--white-color);
}

.btn-outline-custom {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border: 2px solid var(--primary-color);
    border-radius: 9px;
    background: transparent;
    color: var(--primary-color);
    font-weight: 700;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

/* =========================
   Footer
========================= */

.site-footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.72);
}

.footer-main {
    padding: 75px 0 55px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary-color);
    color: var(--white-color);
    font-size: 21px;
}

.footer-brand div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.footer-brand strong {
    color: var(--white-color);
    font-size: 20px;
}

.footer-brand small {
    margin-top: 4px;
    font-size: 12px;
}

.footer-description {
    max-width: 360px;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 9px;
}

.footer-social a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: var(--white-color);
}

.footer-social a:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.footer-title {
    position: relative;
    margin: 0 0 24px;
    padding-bottom: 12px;
    color: var(--white-color);
    font-size: 18px;
    font-weight: 800;
}

.footer-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42px;
    height: 3px;
    border-radius: 3px;
    background: var(--primary-color);
    content: "";
}

.footer-links,
.footer-contact {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 14px;
}

.footer-contact i {
    width: 18px;
    margin-top: 5px;
    color: var(--primary-color);
}

.footer-bottom {
    padding: 19px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom-content p {
    margin: 0;
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* =========================
   Scroll Top
========================= */

.scroll-top-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 8px 24px rgba(20, 43, 30, 0.22);
}

.scroll-top-button.show {
    display: inline-flex;
}

.scroll-top-button:hover {
    background: var(--primary-dark);
}



/* =========================
   Sticky Site Header
========================= */

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    background: var(--white-color);
    box-shadow: 0 4px 20px rgba(21, 46, 32, 0.06);
    transition:
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 32px rgba(21, 46, 32, 0.16);
}

.site-header .top-bar,
.site-header .main-navbar {
    width: 100%;
}

html {
    scroll-padding-top: 130px;
}

@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 90px;
    }

    .site-header {
        position: sticky;
        top: 0;
    }

    .site-header .top-bar {
        display: none;
    }

    .site-header .main-navbar {
        box-shadow: 0 6px 20px rgba(21, 46, 32, 0.1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header {
        transition: none;
    }
}

/* =========================
   Responsive
========================= */

@media (min-width: 992px) {
    .main-navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

@media (max-width: 991.98px) {
    .main-navbar {
        padding: 14px 0;
    }

    .main-navbar .navbar-collapse {
        margin-top: 15px;
        padding: 12px;
        border-top: 1px solid var(--border-color);
    }

    .main-navbar .nav-link {
        padding: 11px 8px;
    }

    .main-navbar .navbar-nav {
        align-items: stretch !important;
    }

    .section-padding {
        padding: 65px 0;
    }

    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 767.98px) {
    .top-bar-content {
        justify-content: center;
    }

    .top-contact {
        justify-content: center;
        gap: 10px 16px;
    }

    .top-social {
        display: none;
    }

    .footer-main {
        padding: 55px 0 35px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .top-contact a span {
        font-size: 11px;
    }

    .brand-logo {
        width: 45px;
        height: 45px;
        font-size: 19px;
    }

    .brand-content strong {
        font-size: 17px;
    }

    .section-title {
        font-size: 27px;
    }

    .section-padding {
        padding: 50px 0;
    }
}
/* =========================
   Temporary Home Test Page
========================= */

.temporary-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(232, 117, 36, 0.18),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #f8faf8 0%,
            #eef4ef 100%
        );
}

.temporary-hero::before {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 350px;
    height: 350px;
    border: 60px solid rgba(232, 117, 36, 0.06);
    border-radius: 50%;
    content: "";
}

.temporary-hero-badge {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 15px;
    border-radius: 50px;
    background: rgba(232, 117, 36, 0.12);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
}

.temporary-hero h1 {
    max-width: 760px;
    margin-bottom: 22px;
    color: var(--heading-color);
    font-size: 54px;
    font-weight: 800;
    line-height: 1.12;
}

.temporary-hero p {
    max-width: 690px;
    margin-bottom: 30px;
    font-size: 18px;
}

.temporary-hero-card {
    position: relative;
    padding: 50px 35px;
    border-radius: 24px;
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
    box-shadow: 0 25px 60px rgba(31, 66, 47, 0.25);
}

.temporary-hero-icon {
    display: inline-flex;
    width: 92px;
    height: 92px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 26px;
    background: var(--primary-color);
    color: var(--white-color);
    font-size: 38px;
}

.temporary-hero-card h2 {
    margin-bottom: 14px;
    color: var(--white-color);
    font-size: 30px;
    font-weight: 800;
}

.temporary-hero-card p {
    margin: 0;
    font-size: 16px;
}

.temporary-service-card {
    height: 100%;
    padding: 34px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--white-color);
    box-shadow: 0 10px 35px rgba(21, 46, 32, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.temporary-service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 45px rgba(21, 46, 32, 0.12);
}

.temporary-service-icon {
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 16px;
    background: rgba(232, 117, 36, 0.12);
    color: var(--primary-color);
    font-size: 25px;
}

.temporary-service-card h3 {
    margin-bottom: 12px;
    color: var(--heading-color);
    font-size: 22px;
    font-weight: 800;
}

.temporary-service-card p {
    margin: 0;
}

.temporary-test-section {
    padding: 0 0 90px;
}

.temporary-test-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 45px;
    border-radius: 20px;
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.75);
}

.temporary-test-box span {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.temporary-test-box h2 {
    margin-bottom: 10px;
    color: var(--white-color);
    font-size: 30px;
    font-weight: 800;
}

.temporary-test-box p {
    margin: 0;
}

.temporary-check-icon {
    flex: 0 0 auto;
    color: var(--primary-color);
    font-size: 65px;
}

@media (max-width: 991.98px) {
    .temporary-hero {
        padding: 75px 0;
    }

    .temporary-hero h1 {
        font-size: 43px;
    }
}

@media (max-width: 767.98px) {
    .temporary-hero h1 {
        font-size: 35px;
    }

    .temporary-test-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 25px;
    }
}

@media (max-width: 575.98px) {
    .temporary-hero {
        padding: 55px 0;
    }

    .temporary-hero h1 {
        font-size: 30px;
    }

    .temporary-hero p {
        font-size: 16px;
    }

    .temporary-hero-card {
        padding: 38px 22px;
    }
}
/* Dynamic website logo */
.brand-logo-image {
    overflow: hidden;
    padding: 0;
    background: transparent;
}

.brand-logo-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navbar-brand .brand-content strong {
    display: block;
    max-width: 280px;
    line-height: 1.1;
}

.navbar-brand .brand-content small {
    display: block;
    max-width: 280px;
    margin-top: 4px;
    line-height: 1.2;
}

@media (max-width: 575.98px) {
    .navbar-brand .brand-content strong {
        max-width: 180px;
        font-size: 18px;
    }

    .navbar-brand .brand-content small {
        max-width: 180px;
        font-size: 12px;
    }
}
/* =========================================================
   Dynamic Footer Branding
========================================================= */

.footer-brand {
    text-decoration: none;
}

.footer-brand-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.footer-brand-content strong,
.footer-brand-content small {
    overflow-wrap: anywhere;
}

.footer-brand-logo {
    overflow: hidden;
    padding: 0;
    background: transparent;
}

.footer-brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-contact li {
    align-items: flex-start;
}

.footer-contact li i {
    flex: 0 0 auto;
    margin-top: 4px;
}

.footer-contact li span,
.footer-contact li a {
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .footer-brand-content strong {
        font-size: 20px;
        line-height: 1.2;
    }

    .footer-brand-content small {
        font-size: 13px;
        line-height: 1.3;
    }
}

/* =========================================================
   Homepage Layout Corrections
========================================================= */

.home-focus-section,
.home-about-section,
.home-initiatives-section,
.home-events-section,
.home-team-section,
.home-testimonials-section,
.home-gallery-section,
.home-news-section,
.home-videos-section,
.home-resources-section,
.home-campaigns-section,
.home-partners-section,
.home-contact-cta-section,
.home-impact-section {
    min-height: 0 !important;
    height: auto !important;
}

.home-focus-section,
.home-initiatives-section,
.home-events-section,
.home-team-section,
.home-testimonials-section,
.home-gallery-section,
.home-news-section,
.home-videos-section,
.home-resources-section,
.home-campaigns-section,
.home-partners-section,
.home-impact-section {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
}

.home-about-section {
    padding-top: 78px !important;
    padding-bottom: 78px !important;
}

.home-contact-cta-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

.home-initiatives-heading,
.home-events-heading,
.home-team-heading,
.home-common-heading,
.home-impact-heading,
.home-common-heading-center {
    margin-bottom: 34px !important;
}

.home-initiatives-section .row,
.home-events-section .row,
.home-team-section .row,
.home-gallery-section .row,
.home-news-section .row,
.home-videos-section .row,
.home-resources-section .row,
.home-campaigns-section .row,
.home-impact-section .row {
    align-items: stretch;
}

.home-initiatives-section [class*="col-"],
.home-events-section [class*="col-"],
.home-team-section [class*="col-"],
.home-gallery-section [class*="col-"],
.home-news-section [class*="col-"],
.home-videos-section [class*="col-"],
.home-resources-section [class*="col-"],
.home-campaigns-section [class*="col-"],
.home-impact-section [class*="col-"] {
    display: flex;
}

.home-initiative-card,
.home-event-card,
.home-team-card,
.home-gallery-card,
.home-news-card,
.home-video-card,
.home-resource-card,
.home-campaign-card,
.home-impact-card {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
}

.home-initiative-content p,
.home-event-content p,
.home-team-content p,
.home-news-content p,
.home-campaign-content p,
.home-testimonial-message {
    min-height: 0 !important;
}

.home-initiative-content,
.home-event-content,
.home-team-content,
.home-news-content,
.home-video-content,
.home-campaign-content {
    display: flex;
    flex-direction: column;
}

.home-initiative-read-more,
.home-event-read-more,
.home-text-link,
.home-campaign-read-more {
    margin-top: auto;
}

.home-initiative-image-wrap,
.home-gallery-image-wrap,
.home-news-image-wrap,
.home-video-thumbnail,
.home-campaign-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto !important;
}

.home-event-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
}

.home-team-photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 4.6;
    height: auto !important;
}

.home-initiative-image,
.home-event-image,
.home-team-photo,
.home-gallery-image-wrap img,
.home-news-image-wrap img,
.home-video-thumbnail img,
.home-campaign-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-events-section .row > [class*="col-"]:only-child,
.home-team-section .row > [class*="col-"]:only-child,
.home-news-section .row > [class*="col-"]:only-child,
.home-videos-section .row > [class*="col-"]:only-child,
.home-campaigns-section .row > [class*="col-"]:only-child,
.home-gallery-section .row > [class*="col-"]:only-child {
    width: 100%;
    max-width: 520px;
    margin-right: auto;
    margin-left: auto;
}

.home-initiatives-section .row:has(> [class*="col-"]:nth-child(2):last-child),
.home-events-section .row:has(> [class*="col-"]:nth-child(2):last-child),
.home-team-section .row:has(> [class*="col-"]:nth-child(2):last-child),
.home-news-section .row:has(> [class*="col-"]:nth-child(2):last-child),
.home-videos-section .row:has(> [class*="col-"]:nth-child(2):last-child),
.home-campaigns-section .row:has(> [class*="col-"]:nth-child(2):last-child) {
    justify-content: center;
}

.home-initiatives-section .row:has(> [class*="col-"]:nth-child(2):last-child) > [class*="col-"],
.home-events-section .row:has(> [class*="col-"]:nth-child(2):last-child) > [class*="col-"],
.home-team-section .row:has(> [class*="col-"]:nth-child(2):last-child) > [class*="col-"],
.home-news-section .row:has(> [class*="col-"]:nth-child(2):last-child) > [class*="col-"],
.home-videos-section .row:has(> [class*="col-"]:nth-child(2):last-child) > [class*="col-"],
.home-campaigns-section .row:has(> [class*="col-"]:nth-child(2):last-child) > [class*="col-"] {
    width: 50%;
    max-width: 540px;
}

.home-testimonials-track {
    align-items: stretch;
}

.home-testimonial-card {
    height: auto !important;
    min-height: 310px !important;
}

.home-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px;
    align-items: stretch;
}

.home-partner-card {
    min-height: 150px !important;
    height: auto !important;
}

.home-partner-card img {
    width: auto;
    max-width: 100%;
    max-height: 95px;
    object-fit: contain;
}

/* =========================================================
   Impact Counter Corrections
========================================================= */

.home-impact-section {
    padding-top: 78px !important;
    padding-bottom: 78px !important;
}

.home-impact-card {
    min-height: 220px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 22px !important;
    overflow: visible;
}

.home-impact-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: nowrap;
    margin-top: 18px;
    overflow: visible;
    line-height: 1;
}

.home-impact-value,
.home-impact-suffix {
    display: inline-block;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1;
}

.home-impact-value {
    font-size: clamp(38px, 4vw, 56px);
}

.home-impact-suffix {
    margin-left: 4px;
    font-size: clamp(24px, 2.4vw, 36px);
}

.home-impact-card h3 {
    min-height: 0 !important;
    margin-top: 16px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

/* Keep the wider container limited to homepage content only.
   Do not apply this globally: it also widens the shared header/navbar container. */
@media (min-width: 1400px) {
    .home-focus-section .container,
    .home-about-section .container,
    .home-initiatives-section .container,
    .home-events-section .container,
    .home-team-section .container,
    .home-testimonials-section .container,
    .home-gallery-section .container,
    .home-news-section .container,
    .home-videos-section .container,
    .home-resources-section .container,
    .home-campaigns-section .container,
    .home-partners-section .container,
    .home-contact-cta-section .container,
    .home-impact-section .container {
        max-width: 1460px;
    }
}

@media (max-width: 991.98px) {
    .home-focus-section,
    .home-about-section,
    .home-initiatives-section,
    .home-events-section,
    .home-team-section,
    .home-testimonials-section,
    .home-gallery-section,
    .home-news-section,
    .home-videos-section,
    .home-resources-section,
    .home-campaigns-section,
    .home-partners-section,
    .home-impact-section {
        padding-top: 58px !important;
        padding-bottom: 58px !important;
    }

    .home-contact-cta-section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .home-initiatives-heading,
    .home-events-heading,
    .home-team-heading,
    .home-common-heading {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 18px !important;
        margin-bottom: 28px !important;
    }

    .home-initiatives-view-all,
    .home-events-view-all,
    .home-team-view-all,
    .home-common-view-all {
        width: auto !important;
    }
}

@media (max-width: 767.98px) {
    .home-focus-section,
    .home-about-section,
    .home-initiatives-section,
    .home-events-section,
    .home-team-section,
    .home-testimonials-section,
    .home-gallery-section,
    .home-news-section,
    .home-videos-section,
    .home-resources-section,
    .home-campaigns-section,
    .home-partners-section,
    .home-impact-section {
        padding-top: 46px !important;
        padding-bottom: 46px !important;
    }

    .home-contact-cta-section {
        padding-top: 42px !important;
        padding-bottom: 42px !important;
    }

    .home-events-section .row > [class*="col-"]:only-child,
    .home-team-section .row > [class*="col-"]:only-child,
    .home-news-section .row > [class*="col-"]:only-child,
    .home-videos-section .row > [class*="col-"]:only-child,
    .home-campaigns-section .row > [class*="col-"]:only-child,
    .home-gallery-section .row > [class*="col-"]:only-child,
    .home-initiatives-section .row:has(> [class*="col-"]:nth-child(2):last-child) > [class*="col-"],
    .home-events-section .row:has(> [class*="col-"]:nth-child(2):last-child) > [class*="col-"],
    .home-team-section .row:has(> [class*="col-"]:nth-child(2):last-child) > [class*="col-"],
    .home-news-section .row:has(> [class*="col-"]:nth-child(2):last-child) > [class*="col-"],
    .home-videos-section .row:has(> [class*="col-"]:nth-child(2):last-child) > [class*="col-"],
    .home-campaigns-section .row:has(> [class*="col-"]:nth-child(2):last-child) > [class*="col-"] {
        width: 100%;
        max-width: 100%;
    }

    .home-partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .home-partner-card {
        min-height: 125px !important;
    }

    .home-impact-card {
        min-height: 200px !important;
    }
}

@media (max-width: 575.98px) {
    .home-partners-grid {
        grid-template-columns: 1fr;
    }

    .home-initiatives-view-all,
    .home-events-view-all,
    .home-team-view-all,
    .home-common-view-all {
        width: 100% !important;
        justify-content: center;
    }

    .home-impact-value {
        font-size: 42px;
    }

    .home-impact-suffix {
        font-size: 27px;
    }
}

/* =========================================================
   Stable Compact Sticky Header
========================================================= */

/*
 * The header uses fixed transition states and does not change repeatedly
 * near the scroll threshold. This prevents visual jumping and flickering.
 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    width: 100%;
    background: var(--white-color);
    box-shadow: 0 4px 20px rgba(21, 46, 32, 0.06);
    will-change: box-shadow;
}

.site-header .top-bar {
    height: 46px;
    max-height: 46px;
    padding-top: 9px;
    padding-bottom: 9px;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition:
        max-height 0.32s ease,
        height 0.32s ease,
        padding 0.32s ease,
        opacity 0.2s ease;
}

.site-header .main-navbar {
    min-height: 82px;
    transition:
        min-height 0.32s ease,
        box-shadow 0.32s ease;
}

.site-header .main-navbar .navbar {
    padding-top: 8px;
    padding-bottom: 8px;
    transition: padding 0.32s ease;
}

.site-header .brand-logo {
    width: 52px;
    height: 52px;
    transition:
        width 0.32s ease,
        height 0.32s ease,
        border-radius 0.32s ease;
}

.site-header .brand-content strong {
    font-size: 20px;
    transition:
        font-size 0.32s ease,
        line-height 0.32s ease;
}

.site-header .brand-content small {
    max-height: 26px;
    margin-top: 4px;
    overflow: hidden;
    opacity: 1;
    transition:
        max-height 0.28s ease,
        margin 0.28s ease,
        opacity 0.2s ease;
}

.site-header .main-navbar .nav-link {
    transition:
        padding 0.32s ease,
        font-size 0.32s ease,
        color 0.2s ease;
}

/*
 * Compact state.
 */
.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(21, 46, 32, 0.15);
}

.site-header.is-scrolled .top-bar {
    height: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

.site-header.is-scrolled .main-navbar {
    min-height: 66px;
}

.site-header.is-scrolled .main-navbar .navbar {
    padding-top: 6px;
    padding-bottom: 6px;
}

.site-header.is-scrolled .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.site-header.is-scrolled .brand-content strong {
    font-size: 17px;
    line-height: 1.1;
}

.site-header.is-scrolled .brand-content small {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
}

.site-header.is-scrolled .main-navbar .nav-link {
    padding-top: 17px;
    padding-bottom: 17px;
    font-size: 13px;
}

.site-header.is-scrolled .navbar-brand {
    gap: 10px;
}

html {
    scroll-padding-top: 96px;
}

@media (max-width: 991.98px) {
    .site-header .top-bar {
        display: none;
    }

    .site-header .main-navbar {
        min-height: 72px;
    }

    .site-header.is-scrolled .main-navbar {
        min-height: 60px;
    }

    .site-header.is-scrolled .main-navbar .navbar {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .site-header.is-scrolled .brand-logo {
        width: 40px;
        height: 40px;
    }

    .site-header.is-scrolled .brand-content strong {
        font-size: 16px;
    }

    .site-header.is-scrolled .main-navbar .nav-link {
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 14px;
    }

    html {
        scroll-padding-top: 74px;
    }
}

@media (max-width: 575.98px) {
    .site-header.is-scrolled .brand-logo {
        width: 38px;
        height: 38px;
    }

    .site-header.is-scrolled .brand-content strong {
        max-width: 190px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header * {
        transition: none !important;
    }
}

/* Shared header alignment fix: keep the top bar and navbar containers
   aligned identically on Home, About, Campaigns and all other pages.
   This overrides the older breakpoint rule that stretched the header
   container to the full viewport on some pages/screen widths. */
@media (min-width: 992px) {
    .site-header .top-bar > .container,
    .site-header .main-navbar > .container {
        width: 92% !important;
        max-width: 1540px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/* Mobile Navbar Brand Text Fix */
@media (max-width: 767.98px) {

    .main-navbar .container {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .main-navbar .navbar-brand {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 65px);
        gap: 8px;
        margin-right: 0;
    }

    .main-navbar .brand-logo {
        flex: 0 0 54px;
        width: 54px;
        height: 54px;
    }

    .main-navbar .brand-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .main-navbar .brand-content {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .main-navbar .brand-content strong {
        display: block;
        font-size: clamp(12px, 3.1vw, 16px);
        line-height: 1.25;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        overflow-wrap: normal;
        word-break: normal;
    }

    .main-navbar .brand-content small {
        display: block;
        font-size: 10px;
        line-height: 1.3;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .main-navbar .navbar-toggler {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        margin-left: auto;
    }
}

