/* ============================================================
   GLOBAL PROJECT PAGE LAYOUT
   ============================================================ */
   
   /* Restore container centering */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}


.project-page {
    padding-top: 40px;
    padding-bottom: 60px;
    background: #f9fafb;
    font-family: inherit;
}

.project-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* ============================================================
   TITLES & HEADINGS
   ============================================================ */

.project-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #111827;
}

.project-section-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111827;
}


/* ============================================================
   HERO SECTION
   ============================================================ */

.project-hero {
    margin-bottom: 50px;
}

.project-hero-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.project-meta p {
    margin: 8px 0;
    font-size: 16px;
    color: #374151;
}

.project-meta strong {
    color: #111827;
}

.project-hero-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}


/* ============================================================
   SUMMARY & DESCRIPTION
   ============================================================ */

.project-summary {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #374151;
}

.project-content {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 40px;
}


/* ============================================================
   DOCUMENTS
   ============================================================ */

.project-documents {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-documents li {
    margin-bottom: 12px;
}

.project-documents a {
    color: #005bbb;
    font-weight: 600;
    text-decoration: none;
}

.project-documents a:hover {
    text-decoration: underline;
}


/* ============================================================
   IMAGE GALLERY
   ============================================================ */

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.project-gallery-item img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    object-fit: cover;
}


/* ============================================================
   MILESTONES SECTION
   ============================================================ */

.project-milestones {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}


/* ============================================================
   PROJECT OWNER
   ============================================================ */

.project-owner p {
    margin: 8px 0;
    font-size: 16px;
    color: #374151;
}

.project-owner strong {
    color: #111827;
}

.project-owner-description {
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
}


/* ============================================================
   RESPONSIVE BEHAVIOR
   ============================================================ */

@media (max-width: 900px) {
    .project-hero-grid {
        grid-template-columns: 1fr;
    }
}


/* Prevent title from hiding under fixed header */
.project-page {
    padding-top: 120px; /* adjust if your header is taller/shorter */
}


/* ============================================================
   ZIMGerm Hero — Brand Aligned
============================================================ */

.project-hero {
    position: relative;
    padding: 150px 0 80px;
    margin-bottom: 60px;
    background: #0F1A2B; /* Midnight Engineering Blue */
    color: #ffffff;
    overflow: hidden;
}

/* Subtle Sovereign Gold glow */
.project-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 20% 30%,
        rgba(198, 166, 103, 0.25), /* Sovereign Gold */
        transparent 70%
    );
    z-index: 1;
}

.project-hero-inner {
    position: relative;
    z-index: 2;
}

/* ============================================================
   BREADCRUMB — Gold + Slate
============================================================ */

.project-breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.75);
}

.project-breadcrumb a {
    color: #C6A667; /* Sovereign Gold */
    text-decoration: none;
    font-weight: 600;
}

.project-breadcrumb a:hover {
    text-decoration: underline;
}

/* ============================================================
   TITLE + SECTOR BADGE
============================================================ */

.project-hero-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.project-title {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

/* Sector badge using Sovereign Gold + Slate */
.project-sector-badge {
    background: #C6A667;
    color: #2A2F36; /* Precision Slate */
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* ============================================================
   HERO GRID
============================================================ */

.project-hero-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
    margin-top: 20px;
}

.project-meta p {
    margin: 10px 0;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
}

.project-meta strong {
    color: #C6A667; /* Gold highlights */
}

/* Hero image with warm Umber frame */
.project-hero-image img {
    width: 100%;
    border-radius: 12px;
    border: 3px solid #7A4E2D; /* Zimbabwe Earth Umber */
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    object-fit: cover;
}

/* ============================================================
   FADE-IN ANIMATION
============================================================ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.9s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 900px) {
    .project-hero-grid {
        grid-template-columns: 1fr;
    }

    .project-title {
        font-size: 32px;
    }

    .project-hero {
        padding-top: 180px;
    }
}


.project-hero {
    background: linear-gradient(
        135deg,
        #0F1A2B 0%,
        #2A2F36 100%
    );
}


/* ============================================================
   GOLD SHIMMER ON SECTOR BADGE
============================================================ */

.project-sector-badge {
    background: #C6A667; /* Sovereign Gold */
    color: #2A2F36; /* Precision Slate */
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

/* Shimmer overlay */
.project-sector-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.35) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    animation: goldShimmer 4s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes goldShimmer {
    0% { left: -120%; }
    60% { left: 140%; }
    100% { left: 140%; }
}


/* ============================================================
   PARALLAX HERO IMAGE
============================================================ */

.project-hero-image {
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.project-hero.parallax-active .project-hero-image {
    transform: translateY(-12px);
}


/* ============================
   PROJECT CARD
============================ */

.project-card {
    background: #F5F7FA; /* Clean Ivory */
    border: 1px solid #2A2F36; /* Precision Slate */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Thumbnail */
.project-card-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #0F1A2B; /* Midnight Engineering Blue */
}

.project-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Flagship Badge */
.flagship-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #C6A667; /* Sovereign Gold */
    color: #2A2F36;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

/* Content */
.project-card-content {
    padding: 20px;
}

.project-card-title {
    font-size: 20px;
    font-weight: 800;
    color: #2A2F36;
    margin-bottom: 6px;
}

.project-card-sector {
    display: inline-block;
    background: #C6A667;
    color: #2A2F36;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-card-summary {
    color: #2A2F36;
    opacity: 0.85;
    margin-bottom: 16px;
}

/* Meta */
.project-card-meta p {
    margin: 4px 0;
    font-size: 14px;
    color: #2A2F36;
}

/* Button */
.project-card-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 16px;
    background: #0F1A2B; /* Midnight Engineering Blue */
    color: #F5F7FA;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: background .25s ease;
}

.project-card-btn:hover {
    background: #2A2F36; /* Precision Slate */
}



/* ============================
   ARCHIVE HERO
============================ */

.archive-hero {
    background: #0F1A2B; /* Midnight Engineering Blue */
    padding: 120px 0 80px;
    text-align: center;
    color: #F5F7FA; /* Clean Ivory */
    position: relative;
}

.archive-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 30% 40%,
        rgba(198,166,103,0.25), /* Sovereign Gold */
        transparent 70%
    );
}

.archive-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
}

.archive-subtitle {
    font-size: 18px;
    opacity: 0.85;
}

/* ============================
   PROJECT GRID
============================ */

.archive-projects {
    padding: 60px 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* ============================
   PAGINATION
============================ */

.archive-pagination {
    margin-top: 40px;
    text-align: center;
}

.archive-pagination a,
.archive-pagination span {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    background: #F5F7FA;
    border: 1px solid #2A2F36;
    color: #2A2F36;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.archive-pagination .current {
    background: #C6A667; /* Sovereign Gold */
    color: #2A2F36;
    border-color: #C6A667;
}



.project-card-thumb {
    height: 220px;
    background: #0F1A2B;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.project-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.project-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}


.project-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
}



.project-hero-inner,
.project-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ============================
   FIX WYSIWYG SPACING
============================ */

.project-section h2,
.project-section h3 {
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 800;
    color: #0F1A2B; /* Midnight Engineering Blue */
}

.project-section p {
    margin-bottom: 16px;
    line-height: 1.6;
    color: #2A2F36; /* Precision Slate */
}

.project-section ul,
.project-section ol {
    margin: 16px 0 24px 24px;
    padding-left: 20px;
}

.project-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.project-section strong {
    font-weight: 700;
    color: #0F1A2B;
}

/* Fix label/value spacing in timeline block */
.project-section p strong {
    display: inline-block;
    min-width: 140px;
}


/* Zimgerm Premium Headings */
.project-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2A2F36; /* Precision Slate */
    margin-top: 60px;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.project-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #3A3F47; /* Slightly softer slate */
    margin-top: 40px;
    margin-bottom: 12px;
}


/* Section Rhythm */
.project-section {
    padding: 40px 0;
    border-bottom: 1px solid rgba(15, 26, 43, 0.08); /* Midnight Blue at 8% */
}

.project-section:last-of-type {
    border-bottom: none;
}


.project-section p:first-of-type {
    margin-top: 0;
}


/* Label/value alignment */
.project-section p strong {
    display: inline-block;
    min-width: 160px;
    font-weight: 700;
    color: #0F1A2B; /* Midnight Engineering Blue */
}


.project-section p {
    margin-bottom: 14px;
    line-height: 1.65;
    color: #2A2F36;
    font-size: 16px;
}


.project-section ul {
    margin: 12px 0 20px 24px;
    padding-left: 0;
}

.project-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}


.project-section h2 {
    color: #2A2F36; /* Precision Slate */
    font-weight: 700;
}

.project-section h3 {
    color: #3A3F47; /* Softer Slate */
    font-weight: 600;
}


/* Premium H2 */
.project-section h2 {
    font-size: 26px;            /* reduced from 28–32 */
    font-weight: 600;           /* softer */
    color: #2A2F36;
    margin-top: 50px;
    margin-bottom: 22px;
    letter-spacing: -0.2px;
    line-height: 1.25;
    position: relative;
    padding-bottom: 14px;
}


/* Premium H3 */
.project-section h3 {
    font-size: 19px;
    font-weight: 600;
    color: #3A3F47;
    margin-top: 36px;
    margin-bottom: 14px;
    line-height: 1.3;
}


.project-section h2 {
    font-size: 26px;
    font-weight: 600;
    color: #2A2F36;
    margin-top: 50px;
    margin-bottom: 22px; /* space before underline */
    position: relative;
    padding-bottom: 16px; /* space between text and underline */
}


.project-section h3 {
    font-size: 19px;
    font-weight: 600;
    color: #3A3F47;
    margin-top: 48px;   /* increased from 36px */
    margin-bottom: 14px;
    line-height: 1.3;
}


.project-section p,
.project-section li {
    margin-bottom: 22px !important;
    line-height: 1.7;
}


.project-section h3 {
    margin-top: 52px !important;   /* this is the premium ratio */
    margin-bottom: 16px;
    font-size: 19px;
    font-weight: 600;
    color: #3A3F47;
    line-height: 1.3;
}


.project-section ul {
    margin-top: 6px;
    margin-bottom: 22px !important;
    padding-left: 24px;
}

.project-section li {
    margin-bottom: 10px;
}


/* ============================
   ZIMGerm Premium Typography
   (Unified, Balanced, No Underline)
============================ */

/* Section rhythm */
.project-section {
    padding: 50px 0;
    border-bottom: 1px solid rgba(15, 26, 43, 0.08);
}
.project-section:last-of-type {
    border-bottom: none;
}

/* H2 — calm, premium, no underline */
.project-section h2 {
    font-size: 26px;
    font-weight: 600;
    color: #2A2F36;
    margin-top: 50px;
    margin-bottom: 20px;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

/* H3 — correct breathing above + below */
.project-section h3 {
    font-size: 19px;
    font-weight: 600;
    color: #3A3F47;
    margin-top: 36px;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* Paragraphs + list items — foundation of rhythm */
.project-section p,
.project-section li {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 16px;
    color: #2A2F36;
}

/* Lists — proper indentation + spacing */
.project-section ul,
.project-section ol {
    margin: 14px 0 22px 24px;
    padding-left: 0;
}
.project-section li {
    margin-bottom: 8px;
}

/* Timeline label/value alignment */
.project-section p strong {
    display: inline-block;
    min-width: 140px;
    font-weight: 600;
    color: #0F1A2B;
}

/* Milestones — premium rhythm + structure */
.milestones {
    display: grid;
    gap: 28px;
    margin-top: 26px;
}
.milestone {
    background: #F5F7FA;
    border: 1px solid rgba(42,47,54,0.15);
    padding: 22px;
    border-radius: 12px;
    position: relative;
}
.milestone h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #2A2F36;
}
.milestone p {
    margin: 6px 0;
    line-height: 1.6;
}



/* Remove section divider line everywhere */
.project-section {
    border-bottom: none !important;
}


/* ============================
   ZIMGerm Premium Typography Reset
   (Correct text size + tighter rhythm)
============================ */

/* Section rhythm — reduced to remove big gaps */
.project-section {
    padding: 38px 0; /* was 50px — too big */
    border-bottom: none; /* clean, no divider */
}

/* H2 — premium, clean, no underline */
.project-section h2 {
    font-size: 28px;        /* increased for authority */
    font-weight: 600;
    color: #2A2F36;
    margin-top: 40px;       /* reduced from 50px */
    margin-bottom: 18px;    /* tighter */
    line-height: 1.25;
    letter-spacing: -0.2px;
}

/* H3 — fixed spacing above (your main issue) */
.project-section h3 {
    font-size: 20px;        /* slightly larger */
    font-weight: 600;
    color: #3A3F47;
    margin-top: 28px;       /* was 36px — too big */
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Paragraphs + list items — increased size + balanced spacing */
.project-section p,
.project-section li {
    font-size: 17px;        /* increased from 16px */
    line-height: 1.68;      /* premium readability */
    margin-bottom: 14px;    /* reduced from 16px */
    color: #2A2F36;
}

/* Lists — correct indentation + spacing */
.project-section ul,
.project-section ol {
    margin: 10px 0 18px 24px;
    padding-left: 0;
}
.project-section li {
    margin-bottom: 6px;
}

/* Timeline label/value alignment */
.project-section p strong {
    display: inline-block;
    min-width: 140px;
    font-weight: 600;
    color: #0F1A2B;
}

/* Milestones — match new text size + rhythm */
.milestones {
    display: grid;
    gap: 24px; /* slightly tighter */
    margin-top: 20px;
}
.milestone {
    background: #F5F7FA;
    border: 1px solid rgba(42,47,54,0.15);
    padding: 20px;
    border-radius: 12px;
    position: relative;
}
.milestone h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #2A2F36;
}
.milestone p {
    margin: 4px 0;
    line-height: 1.6;
}


/* ============================
   ZIMGerm Milestones Timeline
   (Premium, Clean, Numbered)
============================ */

/* Wrapper */
.project-milestones {
    margin-top: 40px;
}

/* Ordered list reset */
.milestones-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: milestone-counter;
}

/* Each milestone item */
.milestone {
    position: relative;
    padding: 24px 20px 20px 60px; /* space for number */
    margin-bottom: 28px;
    background: #F5F7FA;
    border: 1px solid rgba(42,47,54,0.15);
    border-radius: 12px;
}

/* Number circle */
.milestone-step {
    position: absolute;
    left: 20px;
    top: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0F1A2B;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Title */
.milestone-title {
    font-size: 18px;
    font-weight: 600;
    color: #2A2F36;
    margin: 0 0 6px 0;
}

/* Status badge */
.milestone-status {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    background: #E8EBEF;
    color: #2A2F36;
}

/* Date */
.milestone-date {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

/* Notes */
.milestone-notes p {
    margin: 0;
    line-height: 1.6;
    font-size: 15px;
    color: #2A2F36;
}

/* Optional: subtle vertical line (timeline spine) */
.milestones-timeline::before {
    content: "";
    position: absolute;
    left: 36px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(15, 26, 43, 0.08);
}


/* Force milestone numbers to appear */
.milestone-step {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    background: #0F1A2B !important;
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-weight: 600;
    border-radius: 50%;
    margin-right: 12px;
}


.project-next-steps {
    margin-top: 50px;
    padding: 40px;
    background: #F5F7FA;
    border-radius: 12px;
}

.project-next-steps h2 {
    margin-bottom: 20px;
}

.next-steps-actions {
    display: flex;
    gap: 16px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary {
    background: #0F1A2B;
    color: #fff;
}

.btn-secondary {
    background: #C6A667;
    color: #2A2F36;
}


.project-next-steps {
    text-align: left !important;
}

.next-steps-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start !important;
}


/* Force milestone numbers to show */
.milestone-step {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    background: #0F1A2B !important;
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 12px;
}

/* Align number + title + status */
.milestone-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
}


/* FORCE milestone numbers to show */
.milestone-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.milestone-step {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px !important;
    background: #0F1A2B !important;
    color: #FFFFFF !important;
    font-size: 15px !important;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
}


/* ============================
   ZIMGerm – Where To Next Block
   (Left-aligned, premium, clean)
============================ */

.project-next-steps {
    margin-top: 50px;
    padding: 40px 32px;
    background: #F5F7FA;
    border-radius: 12px;
    text-align: left !important;
    border: 1px solid rgba(15, 26, 43, 0.08);
}

.project-next-steps h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2A2F36;
    margin-bottom: 18px;
    line-height: 1.3;
}

.next-steps-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-start !important;
}

/* Buttons */
.project-next-steps .btn-primary,
.project-next-steps .btn-secondary {
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    display: inline-block;
}

/* Primary CTA */
.project-next-steps .btn-primary {
    background: #0F1A2B;
    color: #FFFFFF;
}

/* Secondary CTA */
.project-next-steps .btn-secondary {
    background: #C6A667;
    color: #2A2F36;
}


/* ============================
   ZIMGerm – Restricted Info Block
============================ */

.project-owner-locked {
    margin-top: 50px;
    padding: 32px;
    background: #FFF7E6;
    border: 1px solid rgba(198, 166, 103, 0.35);
    border-radius: 12px;
    text-align: left;
    position: relative;
}

.project-owner-locked::before {
    content: "🔒";
    font-size: 26px;
    position: absolute;
    top: 22px;
    right: 22px;
    opacity: 0.85;
}

.project-owner-locked h2 {
    font-size: 22px;
    font-weight: 600;
    color: #2A2F36;
    margin-bottom: 10px;
}

.project-owner-locked p {
    font-size: 16px;
    margin-bottom: 18px;
    color: #3A3F47;
}

.project-owner-locked .btn-primary {
    display: inline-block;
    padding: 12px 22px;
    background: #0F1A2B;
    color: #FFFFFF;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

.project-owner-locked .btn-primary:hover {
    background: #15263A;
}


/* Restricted Banner */
.restricted-banner {
    margin-top: 40px;
    padding: 14px 20px;
    background: #FDEDD0;
    border-left: 4px solid #C6A667;
    border-radius: 6px;
    font-size: 15px;
    color: #2A2F36;
}


/* Layout */
.projects-archive-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    margin-top: 40px;
}

/* Sidebar */
.projects-archive-sidebar {
    background: #F5F7FA;
    border-radius: 12px;
    padding: 24px 20px;
    border: 1px solid rgba(15, 26, 43, 0.08);
}

.projects-archive-sidebar h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.projects-filter-form .filter-group {
    margin-bottom: 16px;
}

.projects-filter-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2A2F36;
}

.projects-filter-form select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(15, 26, 43, 0.18);
    font-size: 14px;
}

.checkbox-inline {
    font-size: 14px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.projects-archive-sidebar .btn-primary,
.projects-archive-sidebar .btn-secondary {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.projects-archive-sidebar .btn-primary {
    background: #0F1A2B;
    color: #FFFFFF;
}

.projects-archive-sidebar .btn-secondary {
    background: #E0E3E8;
    color: #2A2F36;
}

.sidebar-note {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 26, 43, 0.08);
}

.sidebar-note h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Main grid */
.projects-archive-main {
    min-width: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* Project card */
.project-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid rgba(15, 26, 43, 0.08);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.project-card-inner {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.project-card-thumb {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.project-card-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-card-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.badge-sector {
    background: #E8EBEF;
    color: #2A2F36;
}

.badge-verified {
    background: #1F7A4D;
    color: #FFFFFF;
}

.badge-flagship {
    background: #C6A667;
    color: #2A2F36;
}

.project-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.project-card-meta,
.project-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #555;
}

.meta-item,
.stat-item {
    display: inline-flex;
    align-items: center;
}

.project-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    margin: 4px 0 0;
    color: #2A2F36;
}

.project-card-cta {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0F1A2B;
}

/* Hover */
.project-card:hover {
    box-shadow: 0 10px 24px rgba(15, 26, 43, 0.12);
    transform: translateY(-2px);
}

/* Pagination */
.projects-archive-pagination {
    margin-top: 28px;
}

/* Responsive */
@media (max-width: 900px) {
    .projects-archive-layout {
        grid-template-columns: 1fr;
    }
}


.archive-header {
    padding: 40px 0 10px;
    margin-top: 80px; /* sits below fixed header */
}

.archive-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
}

.archive-header p {
    font-size: 16px;
    color: #555;
}




/* Archive page header */
.archive-header {
    padding: 40px 0 10px;
    margin-top: 100px; /* pushes below fixed site header */
    text-align: left;
}

.archive-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0F1A2B;
}

.archive-header p {
    font-size: 16px;
    color: #555;
    max-width: 600px;
}




/* ============================
   ZIMGerm – Archive Hero Banner
============================ */

.archive-hero {
    position: relative;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 100px; /* pushes below fixed header */
    margin-bottom: 40px;
}

.archive-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.75);
}

.archive-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 26, 43, 0.45),
        rgba(15, 26, 43, 0.75)
    );
}

.archive-hero-content {
    position: absolute;
    bottom: 30px;
    left: 40px;
    right: 40px;
    color: #FFFFFF;
}

/* Breadcrumb */
.archive-breadcrumb {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.archive-breadcrumb a {
    color: #FFFFFF;
    text-decoration: none;
}

.archive-breadcrumb span {
    opacity: 0.8;
}

/* Title + Subtitle */
.archive-hero-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 6px;
}

.archive-hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
}

/* Verified toggle bar */
.archive-verified-toggle {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 14px;
    border-radius: 8px;
    display: inline-block;
    backdrop-filter: blur(4px);
}

.archive-verified-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.archive-verified-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
}


/* Make sidebar stretch full height of the page */
.projects-archive-sidebar {
    align-self: stretch;
    height: 100%;
    min-height: calc(100vh - 180px); /* full viewport minus header + hero */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Reduce space between hero and sidebar/grid */
.projects-archive-layout {
    margin-top: 20px !important; /* was too large before */
}

/* Keep hero close to header */
.archive-hero {
    margin-top: 80px !important; /* reduce from 100–120px */
}

/* Ensure sidebar and grid align at the top */
.projects-archive-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    align-items: start; /* important */
}


.projects-archive-sidebar {
    position: sticky;
    top: 120px; /* sits below fixed header + hero */
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}


.archive-hero-title {
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.archive-hero-subtitle {
    text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}


/* Card layout improvements */
.project-card-content {
    padding: 18px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Title */
.project-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 4px 0 2px;
    color: #0F1A2B;
}

/* Summary */
.project-card-summary {
    font-size: 14px;
    line-height: 1.55;
    color: #3A3F47;
    margin-top: 4px;
}

/* Meta label/value hierarchy */
.project-card-meta .meta-item {
    font-size: 13px;
    color: #4A4F57;
    margin: 2px 0;
}

.project-card-meta .meta-item strong {
    color: #0F1A2B;
    font-weight: 600;
    margin-right: 4px;
}

/* Sector badge */
.badge-sector {
    display: inline-block;
    background: #E8EBEF;
    color: #2A2F36;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Flagship badge */
.flagship-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #C6A667;
    color: #2A2F36;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

/* Thumbnail */
.project-card-thumb {
    position: relative;
    height: 160px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.project-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Button */
.project-card-btn {
    margin-top: 10px;
    display: inline-block;
    padding: 10px 16px;
    background: #0F1A2B;
    color: #FFFFFF;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}


/* Add horizontal breathing room to archive page */
.projects-archive-layout,
.archive-hero,
.archive-intro {
    padding-left: 40px;
    padding-right: 40px;
}


.archive-intro {
    max-width: 900px;
    margin: 0 auto 40px auto; /* centers it */
}


.archive-hero-subtitle {
    color: #F7F9FC !important;
    opacity: 1;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}


.projects-archive-layout {
    padding-top: 20px;
    padding-left: 40px;
    padding-right: 40px;
}


.archive-hero-content {
    padding-left: 40px;
    padding-right: 40px;
}


.archive-hero-title,
.archive-hero-subtitle {
    text-align: center;
}


.archive-hero-content {
    text-align: center;
}


.archive-intro {
    max-width: 900px;
    margin: 0 auto 40px auto;
}


/* FORCE hero text to center */
.archive-hero-title,
.archive-hero-subtitle {
    text-align: center !important;
    width: 100%;
}


/* FORCE intro text to center */
.archive-intro {
    text-align: center !important;
}


/* Force hero subtitle to center */
.archive-hero-subtitle {
    text-align: center !important;
    display: block;
    width: 100%;
}


.archive-hero-content {
    text-align: center !important;
}


/* Remove huge theme padding under intro */
.archive-intro {
    padding-bottom: 20px !important;
}


.archive-intro section,
section.archive-intro {
    padding-bottom: 20px !important;
}


/* Remove theme padding from archive layout wrapper */
.projects-archive-layout {
    padding-top: 0 !important;
    padding-bottom: 20px !important;
}


.archive-intro {
    max-width: 800px;
    margin: 0 auto 20px auto !important;
    text-align: center !important;
}


/* Global 1200px content grid for archive */
.archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}


/* Featured slider */
.featured-projects {
    margin: 40px 0;
    text-align: center;
}

.featured-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.featured-slide {
    min-width: 260px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.featured-slide img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}


/* Sticky sidebar */
.projects-archive-sidebar {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 10px;
    scroll-behavior: smooth;
}


/* Soft section separator */
.archive-intro {
    padding-bottom: 40px !important;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.projects-archive-layout {
    padding-top: 20px !important;
}


/* Remove theme padding under intro */
.archive-intro {
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
}


.archive-intro {
    background: #F7F9FC;
    padding: 40px 40px 30px !important;
    border-radius: 12px;
    margin-bottom: 40px !important;
    text-align: center !important;
}


.projects-archive-wrapper {
    background: #FAFBFD;
    padding: 40px;
    border-radius: 12px;
    margin-top: 20px;
}


.projects-archive-layout {
    padding-top: 0 !important;
    margin-top: 0 !important;
}


.archive-container {
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}





/* Remove theme boxing on parent containers */
body.archive,
body.post-type-archive-project_listing .site-content,
body.post-type-archive-project_listing .content-area {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}


.project-card-thumb {
    background: none !important;
}

.project-card-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}


.project-card-thumb {
    width: 100%;
    height: 200px; /* or 250px if you want bigger */
    overflow: hidden;
}

.project-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.project-card-thumb {
    width: 100%;
    height: 220px; /* adjust to taste: 200–260px works well */
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.project-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}


.project-card-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}


.project-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}


.project-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.project-card-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* max 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.project-card-cta {
    color: #333;
    font-weight: 600;
    margin-top: auto;
}

.project-card-cta:hover {
    color: #000;
}


.project-card-cta {
    color: #333 !important;
    font-weight: 600;
    text-decoration: none;
}

.project-card-inner:hover .project-card-cta {
    color: #000 !important;
}


/* Sector badge colors */
.badge-sector {
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    text-transform: capitalize;
}

/* Sector-specific colors */
.badge-sector.energy { background: #e67e22; }
.badge-sector.agriculture { background: #27ae60; }
.badge-sector.tourism { background: #8e44ad; }
.badge-sector.mining { background: #7f8c8d; }
.badge-sector.infrastructure { background: #2980b9; }
.badge-sector.manufacturing { background: #c0392b; }


.badge-sector {
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    text-transform: capitalize;
    font-weight: 600;
}

/* Richer, premium tones */
.badge-sector.energy { background: #d35400; }
.badge-sector.agriculture { background: #1e8449; }
.badge-sector.tourism { background: #6c3483; }
.badge-sector.mining { background: #566573; }
.badge-sector.infrastructure { background: #1f618d; }
.badge-sector.manufacturing { background: #922b21; }


.badge-verified {
    background: #27ae60; /* premium green */
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block; /* prevents full-width stretch */
    width: auto !important; /* forces compact size */
    white-space: nowrap; /* keeps it on one line */
}



.btn-primary {
    background: #1f4e79; /* deep institutional blue */
    color: #fff;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #163a5c;
}


.btn-secondary {
    border: 2px solid #1f4e79;
    color: #1f4e79;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #1f4e79;
    color: #fff;
}


.btn-tertiary,
.project-card-cta {
    color: #222 !important;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-block;
    transition: color 0.2s ease;
}

.btn-tertiary:hover,
.project-card-inner:hover .project-card-cta {
    color: #000 !important;
}


/* Archive intro section */
.archive-intro {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    text-align: left;
}

.archive-intro h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1f1f1f;
}

.archive-intro h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: #333;
}

.archive-intro p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 18px;
    color: #444;
}


.archive-intro {
    max-width: 760px;
}


.archive-intro {
    max-width: 720px; /* tightened by ~20px */
    margin: 0 auto;
    padding: 60px 20px 40px;
    text-align: left;
}


body.archive .archive-intro {
    max-width: 720px !important;
    padding: 60px 20px 40px !important;
}

body.archive .archive-intro h2 {
    font-size: 32px !important;
    margin-bottom: 16px !important;
}

body.archive .archive-intro h3 {
    font-size: 22px !important;
    margin-top: 32px !important;
}

body.archive .archive-intro p {
    font-size: 17px !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
}


/* Premium intro section for archive page */
body.archive .archive-intro {
    max-width: 720px;
    margin: 0 auto 50px auto;
    padding: 0;
    text-align: left;
}

body.archive .archive-intro h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.25;
    color: #1a1a1a;
}

body.archive .archive-intro p {
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 18px;
    color: #444;
}

body.archive .archive-intro h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: #222;
}


/* Premium intro section for archive page */
body.post-type-archive-project_listing .archive-intro {
    max-width: 720px;
    margin: 0 auto 50px auto;
    padding: 0;
    text-align: left;
}

body.post-type-archive-project_listing .archive-intro h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.25;
    color: #1a1a1a;
}

body.post-type-archive-project_listing .archive-intro p {
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 18px;
    color: #444;
}

body.post-type-archive-project_listing .archive-intro h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: #222;
}


body.archive .archive-intro {
    max-width: 720px;
    margin: 0 auto 50px auto;
    padding: 0;
    text-align: left;
}

body.archive .archive-intro h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.25;
    color: #1a1a1a;
}

body.archive .archive-intro p {
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 18px;
    color: #444;
}

body.archive .archive-intro h3 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: #222;
}

.featured-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}
.featured-slide {
    min-width: 260px;
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
}
.featured-slide img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}


/* Featured Projects Slider */
.featured-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 0 20px;
    -webkit-overflow-scrolling: touch;
}

.featured-slide {
    flex: 0 0 auto;
    width: 260px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
}

.featured-slide img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}


/* Featured Projects Slider — FIXED CARD WIDTH */
.featured-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 0 25px;
    -webkit-overflow-scrolling: touch;
}

.featured-slide {
    flex: 0 0 280px; /* FIXED WIDTH — this solves the shrinking */
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.featured-slide img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
}


.featured-slide img {
    width: 100%;
    height: 200px; /* increased height */
    object-fit: cover;
    object-position: center top; /* prevents bottom cropping */
    border-radius: 10px;
}



.featured-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 0 25px;
    min-height: 260px; /* forces scrollbar to appear */
    -webkit-overflow-scrolling: touch;
}

/* Visible scrollbar */
.featured-slider::-webkit-scrollbar {
    height: 10px;
}

.featured-slider::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 5px;
}

.featured-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
}


.featured-slide {
    flex: 0 0 280px !important;
    max-width: 280px !important;
    min-width: 280px !important;
}


.featured-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
}


.featured-slider::-webkit-scrollbar {
    height: 10px !important;
}

.featured-slider::-webkit-scrollbar-thumb {
    background: #bfbfbf !important;
    border-radius: 5px;
}

.featured-slider::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
}


/* FORCE FIXED WIDTH FOR FEATURED SLIDES */
.featured-slide {
    flex: 0 0 280px !important;
    width: 280px !important;
    max-width: 280px !important;
    min-width: 280px !important;
}



.featured-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}


/* FORCE FIXED WIDTH FOR FEATURED SLIDES */
.featured-slide {
    flex: 0 0 280px !important;
    width: 280px !important;
    max-width: 280px !important;
    min-width: 280px !important;
}


.featured-projects {
    position: relative;
}

.featured-nav {
    position: absolute;
    top: 50%;
    right: 20px;
    display: flex;
    gap: 10px;
    transform: translateY(-50%);
    z-index: 10;
}

.featured-nav button {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.featured-nav button:hover {
    background: #f5f5f5;
}


.featured-slide {
    flex: 0 0 650px !important;
}


.featured-projects {
    max-width: 800px;
    margin: 0 auto;
}


.featured-projects {
    position: relative;
}


/* Anchor arrows to the Featured Projects section */
.featured-projects {
    position: relative;
}

/* Arrow container */
.featured-nav {
    position: absolute;
    top: 50%;
    right: 20px;
    display: flex;
    gap: 10px;
    transform: translateY(-50%);
    z-index: 10;
}

/* Arrow buttons */
.featured-nav button {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.featured-nav button:hover {
    background: #f5f5f5;
}


.archive-container,
.projects-archive-wrapper,
.projects-archive-layout {
    overflow: visible !important;
}



/* --------------------------------------------- */
/*  ARCHIVE LAYOUT                               */
/* --------------------------------------------- */

.projects-archive-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.projects-archive-wrapper .project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.archive-container {
    max-width: 100% !important;
}


/* --------------------------------------------- */
/*  FEATURED PROJECTS WRAPPER (NORMAL WIDTH)     */
/* --------------------------------------------- */

.featured-projects {
    position: relative;
    width: 100%;
    margin: 0 auto;
}


/* --------------------------------------------- */
/*  FEATURED SLIDER (WIDE + SCROLLABLE)          */
/* --------------------------------------------- */

.featured-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 24px;

    width: calc(100% + 80px);
    margin-left: -40px;
    padding-left: 40px;
    padding-right: 40px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}


/* --------------------------------------------- */
/*  FEATURED SLIDES (CARDS)                      */
/* --------------------------------------------- */

.featured-slide {
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.featured-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.featured-slide img {
    display: block;
    width: 100%;
    height: auto;
}


/* --------------------------------------------- */
/*  FADE EDGES (MATCH VISIBLE AREA)              */
/* --------------------------------------------- */

.featured-projects::before,
.featured-projects::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 5;
}

.featured-projects::before {
    left: 0;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}

.featured-projects::after {
    right: 0;
    background: linear-gradient(to left, #fff, rgba(255,255,255,0));
}


/* --------------------------------------------- */
/*  SECTOR BADGES                                */
/* --------------------------------------------- */

.sector-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.sector-energy { background:#FFEFD5; color:#C26A00; }
.sector-agriculture { background:#E6F5E8; color:#2F7A3E; }
.sector-infrastructure { background:#E6ECF8; color:#2F4F90; }


.featured-slide img {
    width: 100%;
    height: 200px; /* adjust if you want taller */
    object-fit: cover;
    border-radius: 6px;
}


.featured-slider::before,
.featured-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 5;
}

.featured-slider::before {
    left: 0;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}

.featured-slider::after {
    right: 0;
    background: linear-gradient(to left, #fff, rgba(255,255,255,0));
}


.featured-slider {
    position: relative;
}


/* Make fade edges match the true slider width */
.featured-slider {
    position: relative; /* required for pseudo-elements */
}

.featured-slider::before,
.featured-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 5;
}

.featured-slider::before {
    left: 0;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}

.featured-slider::after {
    right: 0;
    background: linear-gradient(to left, #fff, rgba(255,255,255,0));
}


/* --------------------------------------------- */
/*  ARCHIVE LAYOUT                               */
/* --------------------------------------------- */

.projects-archive-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.projects-archive-wrapper .project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.archive-container {
    max-width: 100% !important;
}


/* --------------------------------------------- */
/*  FEATURED PROJECTS WRAPPER (NORMAL WIDTH)     */
/* --------------------------------------------- */

.featured-projects {
    position: relative;
    width: 100%;
    margin: 0 auto;
}


/* --------------------------------------------- */
/*  FEATURED SLIDER (WIDE + SCROLLABLE)          */
/* --------------------------------------------- */

.featured-slider {
    position: relative; /* required for fade edges */
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 24px;

    width: calc(100% + 80px);
    margin-left: -40px;
    padding-left: 40px;
    padding-right: 40px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}


/* --------------------------------------------- */
/*  FEATURED SLIDES (CARDS)                      */
/* --------------------------------------------- */

.featured-slide {
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.featured-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.featured-slide img {
    display: block;
    width: 100%;
    height: 200px; /* uniform height */
    object-fit: cover; /* prevents distortion */
    border-radius: 6px;
}


/* --------------------------------------------- */
/*  FADE EDGES (MATCH TRUE SLIDER WIDTH)         */
/* --------------------------------------------- */

.featured-slider::before,
.featured-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 5;
}

.featured-slider::before {
    left: 0;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}

.featured-slider::after {
    right: 0;
    background: linear-gradient(to left, #fff, rgba(255,255,255,0));
}


/* --------------------------------------------- */
/*  SECTOR BADGES                                */
/* --------------------------------------------- */

.sector-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.sector-energy { background:#FFEFD5; color:#C26A00; }
.sector-agriculture { background:#E6F5E8; color:#2F7A3E; }
.sector-infrastructure { background:#E6ECF8; color:#2F4F90; }
