/* ============================================================
   PROJECT DETAIL TEMPLATE — GENERIC FOR ALL PROGRAMMES
============================================================ */
.main-site-header {
    position: sticky !important;
}

/* ---------- Hero ---------- */
.proj-hero-section {
    padding: 60px 0 70px;
    margin-bottom: 16px;
    background: var(--cream-light);
    position: relative;
    overflow: hidden;
}

.proj-gallery {
    position: relative;
}

.proj-main-image {
    position: relative;
    height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.proj-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.proj-main-image:hover img {
    transform: scale(1.05);
}

.proj-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.55) 100%);
}

.proj-badge-year,
.proj-badge-status {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.proj-badge-year {
    left: 20px;
    bottom: 20px;
    background: var(--primary-color);
    color: var(--white);
}

.proj-badge-status {
    right: 20px;
    top: 20px;
    background: var(--white);
    color: var(--primary-color);
}

.proj-sub-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.proj-sub-image {
    height: 100px;
    border-radius: calc(var(--radius) - 1px);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.proj-sub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.proj-sub-image:hover img {
    transform: scale(1.08);
}

.proj-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.proj-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 18px;
}

.proj-intro {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 26px;
    max-width: 520px;
}

.proj-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.proj-stat-chip {
    flex: 1 1 130px;
    background: var(--white);
    border: 1.5px solid var(--primary-light);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(33, 85, 90, 0.08);
}

.proj-stat-num {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary-color);
}

.proj-stat-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted-custom);
    margin-top: 4px;
}

.proj-detail-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.proj-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.proj-detail-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.proj-detail-row h6 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.proj-detail-row p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* ---------- Why This Initiative ---------- */
.proj-why-section {
    padding: 65px 0;
    background: var(--white);
}

.proj-why-card {
    height: 100%;
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.proj-why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.proj-why-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.proj-why-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.proj-why-number span {
    font-size: 1rem;
    font-weight: 700;
}

.proj-why-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* ---------- Beneficiary Stories ---------- */
.proj-stories-section {
    padding: 65px 0;
    margin-bottom: 16px;
    position: relative;
    background: var(--cream-light);
}

.proj-story-card {
    height: 100%;
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 10px 26px rgba(33, 85, 90, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proj-story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(33, 85, 90, 0.14);
}

.proj-story-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.proj-story-avatar {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.proj-story-header h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 2px;
}

.proj-story-header span {
    font-size: 12.5px;
    color: var(--primary-color);
    font-weight: 600;
}

.proj-story-text {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.proj-story-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 13px;
    border-radius: 50px;
}

/* ---------- Outcome + Chart ---------- */
.proj-outcome-section {
    padding: 65px 0;
    margin-bottom: 16px;
    background: var(--white);
    position: relative;
}

.proj-outcome-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.9rem;
    color: var(--text-dark);
    margin: 10px 0 20px;
}

.proj-outcome-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.proj-outcome-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.98rem;
    color: var(--text-dark);
}

.proj-outcome-list li:last-child {
    border-bottom: none;
}

.proj-outcome-list li i {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-top: 2px;
}

.proj-chart-card {
    background: var(--cream-light);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius);
    padding: 28px;
}

.proj-chart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 28px;
}

.proj-chart-title i {
    color: var(--primary-color);
}

.proj-chart {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 240px;
    padding: 0 4px 8px;
    border-bottom: 1px solid var(--primary-color);
    margin-bottom: 14px;
}

.proj-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.proj-bar-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.proj-bar {
    width: 100%;
    max-width: 42px;
    background: var(--white);
    border: 1.5px solid var(--primary-color);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}

.proj-bar--peak {
    background: var(--primary-color);
}

.proj-bar-label {
    margin-top: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted-custom);
}

.proj-table-wrap {
    margin-top: 6px;
}

.proj-data-table {
    font-size: 0.9rem;
}

.proj-data-table thead th {
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    padding: 10px 14px;
    background: transparent;
}

.proj-data-table tbody td {
    padding: 10px 14px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

/* ---------- Partners ---------- */
.proj-partners-section {
    padding: 55px 0;
    background: var(--cream-light);
}

.proj-partner-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--white);
    border: 1.5px solid var(--primary-light);
    border-radius: 50px;
    padding: 14px 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.proj-partner-chip i {
    font-size: 16px;
}

.proj-partner-chip:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* ---------- CTA ---------- */
.proj-cta-section {
    padding: 20px 0 70px;
    background: var(--cream-light);
}

.proj-cta-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 40px 44px;
    color: var(--white);
    box-shadow: 0 20px 50px rgba(33, 85, 90, 0.22);
}

.proj-cta-card h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--white);
}

.proj-cta-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14.5px;
}

.proj-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-brand-cta,
.btn-brand-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-brand-cta {
    background: var(--white);
    color: var(--primary-color);
    border: 1.5px solid var(--white);
}

.btn-brand-cta:hover {
    background: transparent;
    color: var(--white);
}

.btn-brand-cta-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-brand-cta-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .proj-main-image {
        height: 340px;
    }

    .proj-cta-card {
        padding: 32px 26px;
    }
}

@media (max-width: 575.98px) {
    .proj-main-image {
        height: 260px;
    }

    .proj-chart {
        gap: 8px;
        height: 190px;
    }

    .proj-bar-label {
        font-size: 0.66rem;
    }

    .proj-cta-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .proj-cta-actions {
        width: 100%;
    }

    .btn-brand-cta,
    .btn-brand-cta-outline {
        flex: 1;
        justify-content: center;
    }
}

/* ---------- Introduction ---------- */
.proj-intro-section {
    padding: 65px 0;
    margin-bottom: 16px;
    background: var(--white);
    position: relative;
}

.proj-intro-content {
    background: var(--cream-light);
    border-left: 4px solid var(--primary-color);
    padding: 35px 40px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(33, 85, 90, 0.06);
    width: 100%;
}

.proj-intro-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-dark);
    margin: 0;
}

/* .proj-intro-text b,
.proj-intro-text strong {
    color: var(--primary-color);
    font-size: 1.15rem;
    display: block;
    margin-top: 22px;
    margin-bottom: 8px;
    font-family: var(--font-heading);
} */

.section-header.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 45px;
}


/* =========================================================================
   PROJECT STORIES SWIPER & BENEFICIARY CARDS
========================================================================= */
.projStoriesSwiper .swiper-slide {
    height: auto;
    display: flex;
}

.proj-story-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.proj-story-text {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    margin-bottom: 20px;
}

.proj-story-read-more {
    display: none !important;
}

.proj-story-tag {
    margin-top: auto;
    align-self: flex-start;
}

.proj-stories-slider-wrap {
    position: relative;
    padding-bottom: 20px;
}

.projStoriesSwiper {
    padding-bottom: 50px !important;
}

.proj-stories-pagination {
    bottom: 0px !important;
}

/* Modal tweaks */
#storyModal .proj-story-header {
    border-bottom: none;
    margin-bottom: 0;
}


/* =========================================================
   PROGRAMME CARDS
========================================================= */

.process-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--white);
    border: 2px solid var(--primary-dark);
    padding: 2px;
    border-radius: var(--radius);
    box-shadow: rgba(0, 0, 0, 0.14) 0px 3px 8px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.process-card:hover {
    transform: translateY(-3px);
}


/* =========================================================
   PROGRAMME IMAGE
========================================================= */

.process-image {
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
    aspect-ratio: 6 / 5;
    overflow: hidden;
    background: var(--cream);
}

.process-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
}

.process-card:hover .process-image img {
    transform: scale(1.07);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(17, 17, 17, 0.7),
            transparent 65%);
}


/* =========================================================
   IMAGE TAG
========================================================= */

.process-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;

    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;

    color: var(--primary-color);
    background: var(--white);

    padding: 5px 12px;
    border-radius: 999px;
}


/* =========================================================
   PROGRAMME INFO
========================================================= */

.programme-info {
    padding: 22px 20px 26px;
    text-align: center;

    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =========================================================
   STATUS TAG
========================================================= */

.status-tag {
    background: var(--primary-light);
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);

    font-size: 13.5px;
    font-weight: 600;

    padding: 4px 15px;
    border-radius: 999px;

    transition: all 0.25s ease;

    margin-bottom: 8px;
}


/* =========================================================
   PROGRAMME TITLE
========================================================= */

.programme-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;

    color: var(--primary-color);

    margin: 0 0 8px;
    line-height: 1.3;
}


/* =========================================================
   PROGRAMME SUBTITLE
========================================================= */

.programme-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);

    margin: 0 0 18px;
    line-height: 1.5;
}


/* =========================================================
   PROGRAMME BUTTON
========================================================= */

.programme-btn {
    margin-top: auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: center;

    padding: 10px 22px;

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;

    color: var(--primary-color);

    border: 1.5px solid var(--primary-color);
    border-radius: var(--radius);

    text-decoration: none;

    transition: background 0.3s ease, color 0.3s ease;
}


/* =========================================================
   BRAND BUTTON
========================================================= */

.btn-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: var(--primary-color);
    color: var(--white);

    border: 1px solid var(--primary-color);
    border-radius: var(--radius);

    padding: 11px 22px;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;

    transition: all 0.3s ease;
}

.btn-brand:hover {
    background: white;
    color: var(--primary-color);
}

.related-projects-section{
    position: relative;
}

.proj-outcome-section::before,
.proj-stories-section::before,
.proj-intro-section::before,
.related-projects-section::before,
.proj-hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    /* exactly overlays the section's box */
    border: 8px solid #0f4c46;
    /* the visible frame */
    border-radius: 28px;
    /* same radius as the section itself */
    pointer-events: none;
    /* lets clicks reach real content */
}