/* -----------------------------------------
   ZIMGerm Global Design System
   Foundation: Colors, Typography, Spacing
------------------------------------------ */

/* COLOR TOKENS */
:root {
    --zg-slate: #2A2F36;
    --zg-midnight: #0F1A2B;
    --zg-umber: #7A4E2D;

    --zg-ivory: #FAF8F4;
    --zg-ivory-soft: #F5F1EB;
    --zg-ivory-warm: #F2ECE4;

    --zg-neutral-100: #ffffff;
    --zg-neutral-300: #e6e6e6;
    --zg-neutral-500: #b3b3b3;

    --zg-space-xs: 6px;
    --zg-space-sm: 12px;
    --zg-space-md: 20px;
    --zg-space-lg: 32px;
    --zg-space-xl: 48px;
}

/* TYPOGRAPHY */
html { font-size: 16px; }

body {
    font-family: "Inter", "Segoe UI", sans-serif;
    color: var(--zg-slate);
    background: var(--zg-neutral-100);
    line-height: 1.55;
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--zg-slate);
  margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }

/* CONTAINER */
.zg-container {
    max-width: 760px;
    margin: 140px auto 80px;
    padding: 0 20px;
}

/* SECTIONS */
.zg-section {
    background: var(--zg-ivory);
    padding: var(--zg-space-lg);
    border-radius: 10px;
    margin-bottom: var(--zg-space-lg);
    border: 1px solid var(--zg-neutral-300);
}

/* INPUTS */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid var(--zg-neutral-300);
    background: var(--zg-neutral-100);
    color: var(--zg-slate);
    font-size: 15px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--zg-slate);
    outline: none;
}

/* BUTTONS */
button,
input[type="submit"],
.zg-btn {
    background: var(--zg-slate);
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover,
input[type="submit"]:hover,
.zg-btn:hover {
    background: var(--zg-midnight);
}

/* CARDS */
.zg-card {
    background: var(--zg-neutral-100);
    border: 1px solid var(--zg-neutral-300);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.zg-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.zg-card-body {
    padding: var(--zg-space-md);
}

/* ------------------------------------------------------------
   ZIMGerm Header + Navigation (CLEAN + FIXED)
------------------------------------------------------------ */

/* HEADER WRAPPER */
#zgfp-hdr {
    width: 100%;
    background: var(--zg-neutral-100);
    border-bottom: 1px solid var(--zg-neutral-300);
    padding: 16px 0;
    position: relative;
    z-index: 1000;
}

.zgfp-hdr-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* LOGO 
.zgfp-hdr-logo img {
    height: 48px;
    width: auto;
    display: block;
}*/

/* DESKTOP NAV */
.zgfp-hdr-nav .zgfp-hdr-menu {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.zgfp-hdr-nav .zgfp-hdr-menu li a {
    font-weight: 600;
    color: var(--zg-slate);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.zgfp-hdr-nav .zgfp-hdr-menu li a:hover {
    color: var(--zg-umber);
}

/* ACTIVE ITEM */
.zgfp-hdr-nav .current-menu-item > a,
.zgfp-hdr-nav .current_page_item > a {
    color: var(--zg-umber);
    border-bottom: 2px solid var(--zg-umber);
}

/* ------------------------------------------------------------
   DESKTOP DROPDOWN FIX
------------------------------------------------------------ */

.zgfp-hdr-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--zg-neutral-100);
    border: 1px solid var(--zg-neutral-300);
    border-radius: 6px;
    padding: 12px 0;
    display: none;
    flex-direction: column;
    min-width: 200px;
    z-index: 9999;
}

.zgfp-hdr-nav li:hover > .sub-menu {
    display: flex;
}

.zgfp-hdr-nav .sub-menu li a {
    padding: 8px 16px;
    white-space: nowrap;
}

/* ------------------------------------------------------------
   MOBILE MENU PANEL
------------------------------------------------------------ */

.zgfp-hdr-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.zgfp-hdr-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--zg-slate);
    margin: 5px 0;
    border-radius: 2px;
}

.zgfp-hdr-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 20px;
    width: 260px;
    background: var(--zg-neutral-100);
    border: 1px solid var(--zg-neutral-300);
    border-radius: 8px;
    padding: 20px;
    z-index: 9999;
}

.zgfp-hdr-panel.zgfp-open {
    display: block;
}

.zgfp-hdr-menu-mobile {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ------------------------------------------------------------
   RESPONSIVE BEHAVIOR
------------------------------------------------------------ */

@media (max-width: 768px) {
    .zgfp-hdr-nav {
        display: none;
    }

    .zgfp-hdr-toggle {
        display: block;
    }
}

@media (min-width: 769px) {
    .zgfp-hdr-panel {
        display: none !important;
    }
}


.zgfp-hdr-nav li {
    position: relative;
}


/* ------------------------------------------------------------
   ZIMGerm Header — Final Styling
------------------------------------------------------------ */

/* HEADER BASE */
#zgfp-hdr {
    width: 100%;
    background: var(--zg-neutral-100);
    border-bottom: 1px solid var(--zg-neutral-300);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#zgfp-hdr.scrolled {
    background: var(--zg-neutral-50);
    border-bottom-color: var(--zg-neutral-200);
    backdrop-filter: blur(6px);
}

/* INNER WRAPPER */
.zgfp-hdr-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.zgfp-hdr-logo img {
  height: 140px;   /* bigger */
  width: auto;
  display: block;
}

.zgfp-hdr-logo {
  flex: 0 0 200px; /* fixed space for logo */
  display: flex;
  align-items: center;
}


.zgfp-hdr-logo img {
  border-radius: 16px;
}


/* ------------------------------------------------------------
   DESKTOP NAVIGATION
------------------------------------------------------------ */

.zgfp-hdr-nav {
    display: flex;
    align-items: center;
}

.zgfp-hdr-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.zgfp-hdr-menu li {
    position: relative;
}

.zgfp-hdr-menu li a {
    font-weight: 600;
    color: var(--zg-slate);
    text-decoration: none;
    padding: 6px 0;
    transition: color .2s ease, border-color .2s ease;
}

.zgfp-hdr-menu li a:hover {
    color: var(--zg-umber);
}

.zgfp-hdr-menu .current-menu-item > a,
.zgfp-hdr-menu .current_page_item > a {
    color: var(--zg-umber);
    border-bottom: 2px solid var(--zg-umber);
}

/* ------------------------------------------------------------
   DESKTOP DROPDOWN
------------------------------------------------------------ */

.zgfp-hdr-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--zg-neutral-100);
    border: 1px solid var(--zg-neutral-300);
    border-radius: 8px;
    padding: 12px 0;
    display: none;
    flex-direction: column;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.zgfp-hdr-nav li:hover > .sub-menu {
    display: flex;
}

.zgfp-hdr-nav .sub-menu li a {
    padding: 10px 18px;
    white-space: nowrap;
    font-weight: 500;
}

.zgfp-hdr-nav .sub-menu li a:hover {
    background: var(--zg-neutral-200);
}

/* ------------------------------------------------------------
   MOBILE TOGGLE
------------------------------------------------------------ */

.zgfp-hdr-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.zgfp-hdr-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--zg-slate);
    margin: 5px 0;
    border-radius: 2px;
}

/* ------------------------------------------------------------
   MOBILE PANEL
------------------------------------------------------------ */

.zgfp-hdr-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 24px;
    width: 260px;
    background: var(--zg-neutral-100);
    border: 1px solid var(--zg-neutral-300);
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.zgfp-hdr-panel.zgfp-open {
    display: block;
}

.zgfp-hdr-menu-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.zgfp-hdr-menu-mobile li a {
    font-weight: 600;
    color: var(--zg-slate);
    text-decoration: none;
}

/* Mobile submenu toggle */
.zgfp-hdr-sub-toggle {
    background: none;
    border: none;
    font-size: 16px;
    margin-left: 6px;
    cursor: pointer;
}

.zgfp-hdr-menu-mobile .open > .sub-menu {
    display: flex;
    flex-direction: column;
    padding-left: 12px;
    gap: 10px;
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */

@media (max-width: 768px) {
    .zgfp-hdr-nav {
        display: none;
    }
    .zgfp-hdr-toggle {
        display: block;
    }
}

@media (min-width: 769px) {
    .zgfp-hdr-panel {
        display: none !important;
    }
}


/* ------------------------------------------------------------
   ARCHIVE HERO
------------------------------------------------------------ */

.archive-hero {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zg-neutral-50);
    margin-bottom: 40px;
}

.archive-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.archive-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2;
}

.archive-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.archive-hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.archive-breadcrumb {
    font-size: 14px;
    margin-bottom: 12px;
}

.archive-breadcrumb a {
    color: var(--zg-neutral-200);
    text-decoration: none;
}

/* Verified toggle */
.archive-verified-toggle {
    margin-top: 16px;
}

.archive-verified-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--zg-neutral-100);
}

/* ------------------------------------------------------------
   INTRO SECTION
------------------------------------------------------------ */

.archive-intro {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 20px;
    text-align: center;
}

.archive-intro h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.archive-intro h3 {
    margin-top: 28px;
    font-size: 22px;
}

/* ------------------------------------------------------------
   FEATURED PROJECTS SLIDER
------------------------------------------------------------ */

.featured-projects {
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.featured-projects h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.featured-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}

.featured-slide {
    min-width: 260px;
    background: var(--zg-neutral-100);
    border: 1px solid var(--zg-neutral-300);
    border-radius: 10px;
    padding: 14px;
    scroll-snap-align: start;
    text-align: center;
}

.featured-slide img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* ------------------------------------------------------------
   ARCHIVE LAYOUT
------------------------------------------------------------ */

.projects-archive-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px 80px;
}


@media (max-width: 900px) {
    .projects-archive-layout {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------
   SIDEBAR FILTERS
------------------------------------------------------------ */

.projects-archive-sidebar {
    background: var(--zg-neutral-100);
    border: 1px solid var(--zg-neutral-300);
    border-radius: 10px;
    padding: 20px;
}

.projects-archive-sidebar h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--zg-neutral-300);
    border-radius: 6px;
}

/* ------------------------------------------------------------
   PROJECT GRID
------------------------------------------------------------ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

/* ------------------------------------------------------------
   PROJECT CARD
------------------------------------------------------------ */

.project-card {
    background: var(--zg-neutral-100);
    border: 1px solid var(--zg-neutral-300);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.project-card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-card-body {
    padding: 16px;
}

.project-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-card-meta {
    font-size: 14px;
    color: var(--zg-slate);
    margin-bottom: 12px;
}

.project-card-excerpt {
    font-size: 15px;
    margin-bottom: 16px;
}

.project-card-cta a {
    display: inline-block;
    padding: 10px 16px;
    background: var(--zg-umber);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

/* Verified badge */
.project-card-verified {
    background: var(--zg-green);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 10px;
}


/* ------------------------------------------------------------
   FILTER ACTION BUTTONS
------------------------------------------------------------ */

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn-primary,
.btn-secondary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--zg-umber);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #7a4d2a;
}

.btn-secondary {
    background: var(--zg-neutral-200);
    color: var(--zg-slate);
}

.btn-secondary:hover {
    background: var(--zg-neutral-300);
}

/* ------------------------------------------------------------
   SIDEBAR NOTE
------------------------------------------------------------ */

.sidebar-note {
    margin-top: 30px;
    padding: 16px;
    background: var(--zg-neutral-50);
    border: 1px solid var(--zg-neutral-300);
    border-radius: 8px;
}

.sidebar-note h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

/* ------------------------------------------------------------
   PROJECT CARD — TOPLINE BADGES
------------------------------------------------------------ */

.project-card-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    color: white;
}

/* Sector colors */
.badge-sector.energy { background: #d97706; }
.badge-sector.mining { background: #4b5563; }
.badge-sector.tourism { background: #2563eb; }
.badge-sector.agriculture { background: #16a34a; }
.badge-sector.infrastructure { background: #7c3aed; }
.badge-sector.manufacturing { background: #dc2626; }

/* Verified + Flagship */
.badge-verified {
    background: var(--zg-green);
}

.badge-flagship {
    background: var(--zg-umber);
}

/* ------------------------------------------------------------
   PROJECT CARD — STATS
------------------------------------------------------------ */

.project-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--zg-slate);
}

.stat-item {
    background: var(--zg-neutral-200);
    padding: 4px 8px;
    border-radius: 6px;
}

/* ------------------------------------------------------------
   PROJECT CARD — CTA
------------------------------------------------------------ */

.project-card-cta {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--zg-umber);
    text-decoration: none;
}

.project-card-cta:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------
   PAGINATION
------------------------------------------------------------ */

.projects-archive-pagination {
    margin-top: 40px;
    text-align: center;
}

.projects-archive-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 6px;
    background: var(--zg-neutral-200);
    color: var(--zg-slate);
    text-decoration: none;
}

.projects-archive-pagination .current {
    background: var(--zg-umber);
    color: white;
}


/* Remove blue link color + underline globally for cards */
.project-card a,
.project-card a:visited {
    color: inherit;
    text-decoration: none;
}

.project-card a:hover {
    text-decoration: none;
}


.project-card-topline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.project-card-topline .badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}


/* FORCE SOLID HEADER — override old transparent styles */
#zgfp-hdr,
#zgfp-hdr.scrolled {
    background: var(--zg-neutral-100) !important;
    border-bottom: 1px solid var(--zg-neutral-300) !important;
    backdrop-filter: none !important;
}


/* Section rhythm */
.archive-intro,
.featured-projects,
.projects-archive-wrapper {
    margin-top: 60px;
}

.featured-projects {
    padding-top: 40px;
   }

.projects-archive-wrapper {
    padding-top: 40px;
    
}


.archive-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}


.badge-flagship {
    background: #c89b6d; /* soft gold */
}

.badge-sector.tourism {
    background: #c89b6d; /* same soft gold */
}


.project-card-stats .stat-item {
    background: var(--zg-neutral-100);
    border: 1px solid var(--zg-neutral-300);
    font-weight: 600;
    padding: 6px 10px;
}


.featured-nav button {
    background: var(--zg-neutral-800);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.featured-nav button:hover {
    background: var(--zg-neutral-900);
}


.projects-archive-sidebar {
    align-self: start;
}


.project-card {
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}


/* Flagship — pale gold */
.badge-flagship {
    background: #e8d7bd; /* very light gold */
    color: #5a4630;
}

/* Tourism — darker gold */
.badge-sector.tourism {
    background: #c89b6d; /* deeper gold */
}


.archive-section-title {
    text-align: center;
    margin: 60px 0 30px;
}


.project-card-body {
    padding: 20px 22px;
}


.project-card {
    background: var(--zg-neutral-50);
}


/* Better breathing room inside cards */
.project-card-body {
    padding: 24px 26px; /* more left/right + more top/bottom */
    display: flex;
    flex-direction: column;
    gap: 14px; /* clean vertical rhythm */
}


.project-card-title {
    margin: 4px 0 2px;
}

.project-card-meta {
    margin: 0 0 4px;
}

.project-card-stats {
    margin: 0 0 6px;
}

.project-card-excerpt {
    margin: 6px 0 0;
    line-height: 1.55;
}


.project-card-topline {
    gap: 6px;
    margin-bottom: 6px;
}





/* Featured slider nav buttons */
.featured-nav button {
    background: var(--zg-neutral-800) !important; /* dark slate */
    color: white !important;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.featured-nav button:hover {
    background: var(--zg-neutral-900) !important;
}



.featured-nav button {
    background: var(--zg-neutral-800) !important;
    color: white !important;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.featured-nav button:hover {
    background: var(--zg-neutral-900) !important;
}


.project-card-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-card-title {
    display: block;
    white-space: normal;
    word-break: break-word;
}

.project-card-meta,
.project-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-card-excerpt {
    display: block;
    white-space: normal;
    line-height: 1.55;
}


.featured-nav button {
    background: var(--zg-neutral-800) !important;
    color: white !important;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.featured-nav button:hover {
    background: var(--zg-neutral-900) !important;
}

/* Archive hero heading always white */
.archive-hero h1,
.archive-hero h2,
.archive-hero h3,
.archive-hero h4,
.archive-hero .archive-hero-title {
    color: #ffffff !important;
}


/* Archive intro refinement */
.archive-intro {
    max-width: 760px;
    margin: 40px auto 50px;
    text-align: center;
}

.archive-intro h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--zg-slate-900);
}

.archive-intro h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--zg-slate-700);
}

.archive-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--zg-slate-700);
    margin-bottom: 16px;
}


/* Disable fixed header on homepage */
.home .zgfp-header {
    position: relative !important;
    background: var(--zg-neutral-100) !important;
    padding: 24px 40px !important;
    box-shadow: none !important;
}


@media (max-width: 900px) {
  .home .zgfp-header {
      background: var(--zg-neutral-100) !important;
      padding: 16px 20px !important;
  }
}


.zgfp-hero-inner {
    width: 100%;
}


/* Global hero text color */
.zgfp-hero-title,
.zgfp-hero-subtitle {
    color: #FFFFFF !important;
}


/* Center section headings + body text */
.zgfp-section h2,
.zgfp-section .zgfp-heading-l,
.zgfp-section .zgfp-body,
.zgfp-section p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}


.zgfp-card {
    text-align: center;
}


/* ============================
   Zimgerm Footer Styling
   ============================ */

.zg-footer {
    background: #0F0F0F;
    color: #FFFFFF;
    padding: 60px 40px;
    margin-top: 80px;
}

.zg-footer .zg-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* Footer Menu */
.zg-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.zg-footer-menu li {
    display: inline-block;
}

.zg-footer-menu a {
    color: #C89B3C;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: 0.2s ease;
}

.zg-footer-menu a:hover {
    color: #E0B45A;
}

/* Copyright */
.zg-footer-copy {
    font-size: 0.9rem;
    color: #CCCCCC;
    text-align: center;
    margin-top: 10px;
}

/* Mobile */
@media (max-width: 768px) {
    .zg-footer {
        padding: 50px 20px;
    }

    .zg-footer-menu {
        gap: 20px;
    }
}


/* ============================
   PROJECT HERO
============================ */

.project-hero {
    position: relative;
    padding: 160px 0 120px;
    background: #0F0F0F;
    color: #fff;
}

.project-hero-bg {
    position: absolute;
    inset: 0;
    background: url('/wp-content/uploads/default-hero.jpg') center/cover no-repeat;
    opacity: 0.25;
    z-index: 1;
}

.project-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Breadcrumb */
.project-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.project-breadcrumb a {
    color: #c89b3c;
    text-decoration: none;
}

/* Title + badges */
.project-hero-header {
    margin-bottom: 40px;
}

.project-title {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.project-sector-badge,
.project-flagship-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 8px;
}

.project-sector-badge {
    background: #c89b3c;
    color: #000;
}

.project-flagship-badge {
    background: #fff;
    color: #000;
}

/* Meta + Image Grid */
.project-hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.project-meta p {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.project-hero-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}


/* ============================
   PROJECT SECTIONS
============================ */

.project-section {
    padding: 100px 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-section h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 2rem;
}

.project-section p {
    max-width: 820px;
    margin: 0 auto 20px;
    line-height: 1.7;
}


/* ============================
   IMAGE GALLERY
============================ */

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.project-gallery img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}


.project-doc-btn {
    display: inline-block;
    padding: 12px 22px;
    background: #c89b3c;
    color: #000;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.project-doc-btn:hover {
    background: #e0b45a;
}


/* ============================
   MILESTONES
============================ */

.milestones {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.milestone {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
}

.milestone h3 {
    margin-bottom: 10px;
}


/* ============================
   RESTRICTED INFO
============================ */

.project-owner-locked,
.project-owner {
    padding: 80px 32px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.project-owner-locked h2,
.project-owner h2 {
    margin-bottom: 16px;
}

.project-owner-locked p,
.project-owner p {
    max-width: 700px;
    margin: 0 auto 16px;
}


/* ============================
   NEXT STEPS CTA
============================ */

.project-next-steps {
    padding: 120px 32px;
    text-align: center;
    background: #faf8f4;
}

.project-next-steps h2 {
    margin-bottom: 20px;
}

.next-steps-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.next-steps-actions a {
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    background: #c89b3c;
    color: #000;
}

.btn-secondary {
    border: 2px solid #c89b3c;
    color: #c89b3c;
}

.btn-secondary:hover {
    background: #c89b3c;
    color: #000;
}


@media (max-width: 900px) {
    .project-hero-grid {
        grid-template-columns: 1fr;
    }
}


/* Fix hero heading color */
.project-hero .project-title {
    color: #ffffff !important;
    font-weight: 700;
}

/* Fix breadcrumb + badges contrast */
.project-hero .project-breadcrumb,
.project-hero .project-sector-badge,
.project-hero .project-flagship-badge {
    color: #ffffff;
}


/* ============================
   RELATED PROJECTS
============================ */

.related-projects {
    padding: 100px 32px;
}

.related-projects h2 {
    text-align: center;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.related-card {
    display: block;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-card h3 {
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}


/* ============================
   GLOBAL BUTTON SYSTEM
============================ */

.btn-primary,
.btn-secondary,
.zgfp-btn,
.project-doc-btn {
    display: inline-block;
    width: auto;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: 0.2s ease;
}

/* Primary (gold) */
.btn-primary,
.zgfp-btn-primary,
.project-doc-btn {
    background: #c89b3c;
    color: #000 !important;
}

.btn-primary:hover,
.zgfp-btn-primary:hover,
.project-doc-btn:hover {
    background: #e0b45a;
}

/* Secondary (outline gold) */
.btn-secondary,
.zgfp-btn-secondary {
    border: 2px solid #c89b3c;
    color: #c89b3c !important;
    background: transparent;
}

.btn-secondary:hover,
.zgfp-btn-secondary:hover {
    background: #c89b3c;
    color: #000 !important;
}

/* Fix stretched buttons in Next Steps */
.next-steps-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}


/* ============================
   PROJECT HERO — PREMIUM
============================ */

.project-hero {
    position: relative;
    padding: 180px 0 140px;
    color: #fff;
    overflow: hidden;
}

/* Background image from PHP (we’ll add inline style) */
.project-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.35;
}

/* Gradient overlay */
.project-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.6) 0%,
        rgba(0,0,0,0.75) 40%,
        rgba(0,0,0,0.9) 100%
    );
    z-index: 2;
}

.project-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Bigger hero image on right */
.project-hero-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 50px;
    margin-top: 40px;
}

.project-hero-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}


/* Fix secondary button inside hero (white text on white issue) */
.project-hero .btn-secondary,
.project-hero .zgfp-btn-secondary {
    border: 2px solid #c89b3c !important;
    color: #c89b3c !important;
    background: transparent !important;
}

.project-hero .btn-secondary:hover,
.project-hero .zgfp-btn-secondary:hover {
    background: #c89b3c !important;
    color: #000 !important;
}


/* Reduce excessive gap between consecutive project sections */
.project-section + .project-section {
    padding-top: 40px !important;   /* was 100px */
    margin-top: -40px !important;   /* pulls sections closer */
}


.project-section {
    padding: 80px 32px; /* was 100px */
}

.project-section h2 {
    margin-bottom: 24px;
}

.project-section p {
    margin-bottom: 18px;
}


/* Fix flagship badge visibility on bright hero backgrounds */
.project-flagship-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
}


.project-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35; /* adjust brightness */
    z-index: 1;
}


.project-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.75) 40%,
        rgba(0,0,0,0.9) 100%
    );
    z-index: 2;
}


.project-hero-inner {
    position: relative;
    z-index: 3;
}


.project-hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 50px;
    margin-top: 40px;
}

.project-hero-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}


/* ============================
   HERO GRID REFINEMENT
============================ */

.project-hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 50px;
    margin-top: 40px;
    align-items: start;
}

/* Foreground project image */
.project-hero-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    position: relative;
    z-index: 3;
}

/* Ensure hero text stays readable */
.project-hero-header h1,
.project-hero-header .project-sector-badge,
.project-hero-header .project-flagship-badge,
.project-meta p {
    color: #fff !important;
}

/* Improve spacing of meta items */
.project-meta p {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* Make hero background use project thumbnail */
.project-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    z-index: 1;
}

/* Gradient overlay */
.project-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.75) 40%,
        rgba(0,0,0,0.9) 100%
    );
    z-index: 2;
}

/* Ensure hero content is above overlays */
.project-hero-inner {
    position: relative;
    z-index: 3;
}


/* Right-side hero image */
.project-hero-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    position: relative;
    z-index: 3;
}

/* Hero grid layout */
.project-hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 50px;
    margin-top: 40px;
    align-items: start;
}


.project-hero-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}


.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  padding: 8px;
}


.projects-grid {
  background: #f7f7f7;
  padding: 48px;
  border-radius: 20px;
  gap: 32px; /* more breathing room */
}


.project-card img {
  border-radius: 14px; /* or 12px / 16px depending on your style */
  display: block;
  width: 100%;
  height: auto;
}


.project-card {
  border-radius: 16px;
  overflow: hidden;
}

.project-card img {
  border-radius: 14px; /* matches card */
}


.archive-intro {
  max-width: 820px;
  margin: 0 auto 60px auto;
  text-align: center;
  padding: 0 20px;
}

.archive-intro h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.archive-intro h3 {
  font-size: 24px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.archive-intro p {
  font-size: 17px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 14px;
}


.archive-intro {
  border-bottom: 0px solid #e5e5e5;
  padding-bottom: 40px;
  margin-bottom: 60px;
}


.archive-intro {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 0 20px;
  display: block;
}


.projects-archive-intro {
  max-width: 820px;
  margin: 0 auto 60px auto;
  text-align: center;
  padding: 0 20px;
}

.projects-archive-intro h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

.projects-archive-intro p {
  font-size: 17px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 14px;
}


.projects-archive-intro {
  max-width: 820px;
  margin: 0 auto 50px auto;
  text-align: center;
  padding: 0 20px;
}

.projects-archive-intro h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.projects-archive-intro p {
  font-size: 17px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 14px;
}


.projects-archive-intro {
  max-width: 820px;
  margin: 0 auto 50px auto;
  text-align: center;
  padding: 0 20px;
}

.projects-archive-intro h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.projects-archive-intro p {
  font-size: 17px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 14px;
}



.projects-grid {
  background: #e8e8e8;
}


.project-card-image {
  padding: 0;
  margin: 0;
  overflow: hidden;
}


.project-card img {
  width: 100%;
  height: 200px; /* or 220px for more presence */
  object-fit: cover;
  border-radius: 14px;
  display: block;
}




.project-card img {
  width: 100%;
  height: 220px; /* adjust to your taste */
  object-fit: cover;
  display: block;
  border-radius: 16px;
}


.project-card-image {
  padding: 0;
  margin: 0;
  height: auto;
  overflow: hidden;
}


.project-card {
  height: auto;
}


/* Remove all padding/spacing from the image wrapper */
.project-card-thumb {
  padding: 0;
  margin: 0;
  height: auto;
  overflow: hidden;
  border-radius: 14px; /* ensures wrapper matches image */
}

/* Force the image to fill the wrapper */
.project-card-thumb img {
  width: 100%;
  height: 200px; /* adjust to your taste */
  object-fit: cover;
  display: block;
  border-radius: 14px;
}


.project-card {
  display: flex;
  flex-direction: column;
}

.project-card-thumb {
  flex-shrink: 0;
}


.project-card-thumb,
.project-card-image,
.project-thumb,
.card-thumb {
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}


.project-card-thumb img,
.project-card-image img,
.project-thumb img,
.card-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 14px !important;
}


.project-card-thumb,
.project-card-image {
  height: auto !important;
}


.project-card-body > .project-card-thumb {
  margin: -24px -26px 0 -26px; /* cancels the padding */
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.project-card-body img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}



.projects-archive-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 32px;
  padding: 16px 0;
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  background: #ededed; /* your slate grey */
  padding: 48px;
  border-radius: 20px;
}


.projects-archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
  padding: 16px 0;
}


.projects-archive-filters > * {
  display: inline-flex;
  align-items: center;
}


.projects-archive-layout {
  display: block;
  width: 100%;
}


.projects-archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 32px;
    padding: 16px 0;
    width: 100%;
}

.projects-archive-filters > * {
    display: inline-flex;
    align-items: center;
}


.projects-archive-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px 80px;
}


/* ------------------------------------------------------------
   HORIZONTAL FILTER BAR (PREMIUM)
------------------------------------------------------------ */

.projects-archive-filters {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    align-items: flex-end;
    padding: 24px 0 32px;
        margin-bottom: 40px;
}

.projects-archive-filters h2 {
    flex-basis: 100%;
    font-size: 1.8rem;
    margin: 0 0 8px;
}

.projects-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 160px; /* allows shrinking */
    min-width: 160px; /* smaller minimum */
}


.filter-group label {
    font-weight: 600;
    margin-bottom: 6px;
}

.filter-group select {
    padding: 10px 12px;
    border: 1px solid var(--zg-neutral-300);
    border-radius: 6px;
    background: white;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}


/* ------------------------------------------------------------
   FULL-WIDTH PROJECT GRID (INVESTOR PORTAL)
------------------------------------------------------------ */

.projects-archive-wrapper {
    padding: 0 20px 80px;
}


.projects-archive-layout {
    display: block;
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
    width: 100%;
    margin-top: 40px;
}

.projects-grid .project-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}


.sidebar-note {
  text-align: center;
  max-width: 600px;
  margin: 40px auto 0; /* centers the block itself */
}

.sidebar-note h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.sidebar-note p {
  margin: 0 auto;
}


@media (min-width: 1200px) {
  .projects-filter-form {
    flex-wrap: nowrap;
  }
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 40px;
  width: 100%;
  margin-top: 40px;

  /* Optional background container */
  background: #F7F8FA;
  padding: 10px;        /* balanced, not pushing grid off-screen */
  border-radius: 20px;
}


/* Background wrapper */
.projects-grid-wrapper {
  background: #ededed;
  border-radius: 20px;
  padding: 32px; /* background padding */
  margin-top: 40px;
}

/* Actual grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 40px;
  width: 100%;
}


.post-type-archive-project_listing .site-content,
.post-type-archive-project_listing .content-area,
.post-type-archive-project_listing .entry-content,
.post-type-archive-project_listing .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
}


.post-type-archive-project_listing .wrap,
.post-type-archive-project_listing .inner {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}


.projects-archive-filters {
  max-width: 900px;
  margin: 0 auto 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: flex-end;
  padding: 24px 0 32px;
}


.projects-archive-filters h2 {
  flex-basis: 100%;
  text-align: center;
}


.projects-archive-filters {
  max-width: 900px;
  margin: 0 auto 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: flex-end;
  padding: 16px 0 24px;
}
.projects-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  width: 100%;
}
.filter-group {
  display: flex;
  flex-direction: column;
  flex: 1 1 150px;
}


.filter-group {
  position: relative;
  padding-right: 20px;
}

.filter-group:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 6px;
  height: 28px;
  width: 1px;
  background: var(--zg-neutral-300);
  opacity: 0.6;
}


.active-filters-bar {
  max-width: 900px;
  margin: -12px auto 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  background: var(--zg-neutral-200);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-chip a {
  text-decoration: none;
  color: var(--zg-neutral-700);
  font-weight: bold;
}


.projects-archive-filters {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects-archive-filters h2 {
    display: none; /* remove big heading */
}

.projects-filter-form {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: nowrap; /* force single line */
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.filter-group select,
.filter-group input[type="checkbox"] {
    padding: 6px 8px;
    font-size: 14px;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px; /* align with selects */
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}

.filter-actions .btn-primary,
.filter-actions .btn-secondary {
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
}


.projects-archive-filters {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 14px 20px;
    background: rgba(42, 47, 54, 0.06); /* Precision Slate tint */
    border-radius: 10px;
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
}


.filter-actions .btn-primary {
    background: #0F1A2B; /* Midnight Engineering Blue */
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    border: none;
}

.filter-actions .btn-primary:hover {
    background: #0c1522; /* slightly darker */
}


.filter-actions .btn-secondary {
    background: #E5E5E5;
    color: #2A2F36;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
}


.filter-actions .btn-primary {
    background: #0F1A2B; /* Midnight Engineering Blue */
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}


.project-card-thumb {
    width: 100%;
    height: 180px; /* fixed premium height */
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background: #000; /* prevents white flash */
}

.project-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}


.projects-grid-wrapper {
    background: #F7F8FA; /* soft institutional grey */
    padding: 40px 20px;
    border-radius: 14px;
    margin-top: 20px;
}


.project-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}


.project-card-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.project-card-topline {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}


/* -----------------------------------------------------------
   FILTER BAR — PREMIUM, COMPACT, CENTERED
----------------------------------------------------------- */

.projects-archive-filters {
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 14px 20px;
    background: rgba(42, 47, 54, 0.06); /* subtle institutional tint */
    border-radius: 10px;
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects-archive-filters h2 {
    display: none; /* remove big heading */
}

.projects-filter-form {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: nowrap; /* force single line */
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 120px;
    position: relative;
    padding-right: 12px;
}

.filter-group:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 8px;
    height: 24px;
    width: 1px;
    background: rgba(0,0,0,0.08);
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.filter-group select,
.filter-group input[type="checkbox"] {
    padding: 6px 8px;
    font-size: 14px;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px; /* aligns with selects */
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}

.filter-actions .btn-primary {
    background: #0F1A2B; /* Zimgerm Midnight */
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    border: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.filter-actions .btn-primary:hover {
    background: #0c1522;
}

.filter-actions .btn-secondary {
    background: #E5E5E5;
    color: #2A2F36;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
}

/* -----------------------------------------------------------
   ACTIVE FILTER CHIPS
----------------------------------------------------------- */

.active-filters-bar {
    max-width: 900px;
    margin: 0 auto 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    background: #EDEFF2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-chip a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

/* -----------------------------------------------------------
   GRID WRAPPER — REMOVE DOUBLE BACKGROUND
----------------------------------------------------------- */

.projects-archive-wrapper {
    background: none !important; /* remove outer grey */
}

.projects-grid-wrapper {
    background: #F7F8FA; /* single clean institutional grey */
    padding: 40px 20px;
    border-radius: 14px;
    border-top: 1px solid #E3E6EA;
    margin-top: 20px;
}

/* -----------------------------------------------------------
   PREMIUM GRID LAYOUT — MAX 3 CARDS PER ROW
----------------------------------------------------------- */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

/* -----------------------------------------------------------
   CARD — PREMIUM LOOK
----------------------------------------------------------- */

.project-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* -----------------------------------------------------------
   CARD IMAGE — NO WHITE SPACE EVER
----------------------------------------------------------- */

.project-card-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.project-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* -----------------------------------------------------------
   CARD BODY — PREMIUM SPACING
----------------------------------------------------------- */

.project-card-body {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.project-card-topline {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* -----------------------------------------------------------
   SECTION TITLE ABOVE GRID
----------------------------------------------------------- */

.archive-section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    text-align: center;
}


/* -----------------------------------------------------------
   METRICS BLOCK — PREMIUM FINANCIAL HIGHLIGHT
----------------------------------------------------------- */

.project-card-stats {
    background: rgba(15, 26, 43, 0.06); /* Midnight Blue tint */
    padding: 14px 16px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(15, 26, 43, 0.10);
}

.project-card-stats .stat-item {
    font-weight: 600;
    color: #0F1A2B; /* Zimgerm Midnight */
    font-size: 15px;
}


.sector-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    vertical-align: middle;
    opacity: 0.9;
}


.verified-badge {
    display: inline-block;
    background: #0F1A2B;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* -----------------------------------------------------------
   PREMIUM CURATED CARD — DEEP, EXPENSIVE, INSTITUTIONAL
----------------------------------------------------------- */

.project-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border 0.35s ease;
}

/* Deep lift + premium shadow */
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 14px 32px rgba(0,0,0,0.18),
        0 4px 12px rgba(0,0,0,0.10);
    border: 1px solid rgba(198, 166, 103, 0.45); /* Sovereign Gold */
}

/* Inner depth glow */
.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none; /* keep links clickable */
    background: radial-gradient(
        circle at 50% 20%,
        rgba(255, 255, 255, 0.22),
        rgba(255, 255, 255, 0) 70%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* Gold micro‑shimmer on edges */
.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none; /* keep links clickable */
    background: linear-gradient(
        to bottom right,
        rgba(198, 166, 103, 0.22),
        rgba(198, 166, 103, 0.06)
    );
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* Hover state — shine becomes visible */
.project-card:hover::before,
.project-card:hover::after {
    opacity: 0.45; /* balanced: visible but not flashy */
}
