/* === CPCCC Official Brand Guidelines Design System === */
:root {
    /* Official RGB palette: CPCCC Brand Guidelines, page 3.
       Dark/light variants are supporting UI shades of these brand colors. */
    --red: #ED1C26;
    --red-dark: #C41820;
    --red-light: #F44336;
    --green: #007236;
    --green-dark: #005427;
    --green-light: #00994A;
    --gold: #AB892C;
    --gold-light: #C9A23E;
    --gold-dark: #8C6E20;
    --grey: #B1B3B6;
    --grey-light: #E8E9EC;
    --grey-dark: #7A7C80;
    --black: #231F20;

    /* Neutrals */
    --ink: var(--black);
    --text: #393536;
    --text-muted: #666364;
    --border: #DDE0E5;
    --surface: #F5F6F8;
    --surface-warm: #FAF8F5;
    --white: #FFFFFF;

    /* Typography */
    --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --max-width: 1280px;
    --header-height: 96px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.16);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.25s;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-sans); color: var(--ink); line-height: 1.25; font-weight: 700; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* === Top Bar === */
.top-bar {
    background: var(--black);
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--gold);
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left span { margin-right: var(--space-lg); }
.top-bar-left i { margin-right: 0.4rem; color: var(--gold-light); }
.top-bar-right { display: flex; gap: var(--space-sm); }
.top-btn {
    padding: 0.3rem 0.9rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    transition: all var(--duration) var(--ease);
    color: rgba(255,255,255,0.9);
}
.top-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.top-btn.accent { background: var(--red); border-color: var(--red); color: #fff; }
.top-btn.accent:hover { background: var(--red-dark); }

/* === Header === */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--duration) var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Logo (Using official CPCCC extracted logo asset) */
.logo { display: flex; align-items: center; gap: 0.85rem; }
.logo-img {
    height: 76px;
    width: auto;
    object-fit: contain;
}
.logo-text { display: flex; align-items: center; justify-content: center; align-self: stretch; }
.logo-main-title { display: block; font-size: 1.05rem; font-weight: 800; color: var(--black); letter-spacing: 0.03em; line-height: 1; font-family: var(--font-sans); padding-top: 0.15em; }

/* Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}
.nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    transition: color var(--duration) var(--ease);
    white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li > a.active { color: var(--red); }
.nav-list > li > a i { font-size: 0.55rem; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--duration) var(--ease);
    z-index: 50;
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown a {
    display: block;
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
    color: var(--text);
    transition: all var(--duration) var(--ease);
}
.dropdown a:hover { background: var(--surface); color: var(--red); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: all var(--duration) var(--ease);
}

/* === Hero (Refined 2-line title layout) === */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--black) 0%, var(--green-dark) 100%);
    overflow: hidden;
}
.hero-image-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-china-pakistan-culture-commerce.jpg');
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(35,31,32,0.78) 0%, rgba(35,31,32,0.58) 55%, rgba(35,31,32,0.18) 100%);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    padding: var(--space-4xl) 0;
    max-width: 900px;
}
/* Solid backing preserves label contrast over every hero photograph. */
.hero-badge,
.page-header .section-label,
.hero-kicker {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.55rem 0.9rem;
    background: var(--black);
    color: var(--white);
    border: 1px solid var(--grey-dark);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: none;
    margin-bottom: var(--space-lg);
}
.hero h1 {
    font-size: clamp(2.3rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.75;
    max-width: 720px;
    margin-bottom: var(--space-2xl);
    font-weight: 400;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    right: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    z-index: 3;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    transition: all var(--duration) var(--ease);
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn-green {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline {
    border-color: rgba(255,255,255,0.35);
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.15); }
.btn-outline-dark {
    border-color: var(--border);
    color: var(--text);
    background: #fff;
}
.btn-outline-dark:hover { border-color: var(--red); color: var(--red); }
.btn-outline-light {
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
.btn-text {
    background: none;
    border: none;
    color: var(--red);
    font-weight: 700;
    padding: 0;
    font-size: 0.95rem;
}
.btn-text:hover { color: var(--red-dark); }
.btn-text i { transition: transform var(--duration) var(--ease); }
.btn-text:hover i { transform: translateX(4px); }

/* === Sections === */
.section { padding: var(--space-4xl) 0; }
.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--red);
    margin-bottom: var(--space-md);
}
.section-label.light { color: var(--white); }
.section-header { margin-bottom: var(--space-3xl); }
.section-header.center { text-align: center; }
.section-header h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); margin-bottom: var(--space-md); }
.section-header p { color: var(--text-muted); max-width: 750px; font-size: 1.08rem; }
.section-header.center p { margin: 0 auto; }

.section-grid { display: grid; gap: var(--space-3xl); }
.section-grid.two-col { grid-template-columns: 1fr 1fr; align-items: center; }
.section-text h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); margin-bottom: var(--space-lg); }
.section-text p { margin-bottom: var(--space-md); color: var(--text-muted); line-height: 1.75; }

/* === Who We Are Stats === */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.stat-card {
    padding: var(--space-xl);
    background: var(--surface);
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease);
    border: 1px solid transparent;
}
.stat-card:hover { border-color: var(--border); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon { font-size: 1.5rem; color: var(--green); margin-bottom: var(--space-md); }
.stat-card h3 { font-size: 1.05rem; margin-bottom: var(--space-sm); font-family: var(--font-sans); font-weight: 700; }
.stat-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* === Pillars === */
.pillars-section { background: var(--surface-warm); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.pillar-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.35s var(--ease);
    overflow: hidden;
}
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--green), var(--gold));
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}
.pillar-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pillar-card:hover::before { opacity: 1; }
.card-img-wrapper {
    width: 100%;
    height: 190px;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    position: relative;
    margin-bottom: var(--space-lg);
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}
.pillar-card:hover .card-img-wrapper img { transform: scale(1.06); }
.pillar-icon { font-size: 1.5rem; color: var(--red); margin-bottom: var(--space-md); }
.pillar-card h3 {
    font-size: 1.15rem;
    font-family: var(--font-sans);
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.35;
}
.pillar-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: var(--space-lg); }
.pillar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--red);
    transition: gap var(--duration) var(--ease);
}
.pillar-link:hover { gap: 0.7rem; }

/* === Why Section === */
.why-section {
    background: linear-gradient(135deg, var(--black) 0%, var(--green-dark) 100%);
    color: #fff;
}
.why-content { max-width: 850px; }
.why-content h2 { color: #fff; font-size: clamp(2rem, 3.2vw, 2.8rem); margin-bottom: var(--space-xl); }
.why-content p { color: rgba(255,255,255,0.8); font-size: 1.1rem; line-height: 1.8; margin-bottom: var(--space-md); }
.why-stats {
    display: flex;
    gap: var(--space-3xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255,255,255,0.12);
}
.why-stat { display: flex; flex-direction: column; }
.why-stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.5); margin-bottom: var(--space-xs); font-weight: 600; }
.why-stat-value { font-family: var(--font-sans); font-size: 2.8rem; font-weight: 800; color: var(--gold-light); }

/* === Programs Grid === */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.program-card {
    display: block;
    padding: var(--space-xl);
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all var(--duration) var(--ease);
}
.program-card:hover { background: var(--white); border-color: var(--border); box-shadow: var(--shadow-md); }
.program-card.featured {
    grid-column: span 1;
    background: linear-gradient(135deg, var(--black) 0%, var(--green-dark) 100%);
    color: #fff;
}
.program-card.featured h3 { color: #fff; }
.program-card.featured p { color: rgba(255,255,255,0.8); }
.program-card.featured .program-link { color: var(--gold-light); }
.program-tag {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    background: rgba(171, 137, 44, 0.25);
    color: var(--gold-light);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}
.program-card h3 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 700; margin-bottom: var(--space-sm); }
.program-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: var(--space-md); }
.program-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* === Sectors === */
.sectors-section { background: var(--surface); }
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}
.sector-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
    font-size: 0.9rem;
    font-weight: 600;
}
.sector-item i { color: var(--red); font-size: 1.2rem; flex-shrink: 0; }
.sector-item:hover { border-color: var(--red); box-shadow: var(--shadow-sm); color: var(--red); }

/* === Updates === */
.updates-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.update-card {
    padding: var(--space-xl);
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all var(--duration) var(--ease);
}
.update-card:hover { background: var(--white); border-color: var(--border); box-shadow: var(--shadow-md); }
.update-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}
.update-card h3 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; margin-bottom: var(--space-sm); }
.update-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: var(--space-md); }
.update-date { font-size: 0.78rem; font-weight: 600; color: var(--green); }

/* === Partner CTA === */
.partner-cta {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    color: #fff;
}
.cta-content { max-width: 850px; margin: 0 auto; text-align: center; }
.cta-content h2 { color: #fff; font-size: clamp(2rem, 3.2vw, 2.8rem); margin-bottom: var(--space-lg); }
.cta-content p { color: rgba(255,255,255,0.9); font-size: 1.08rem; line-height: 1.8; margin-bottom: var(--space-2xl); }
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-md); }

/* === Footer === */
.footer {
    background: var(--black);
    color: rgba(255,255,255,0.75);
    padding: var(--space-4xl) 0 var(--space-xl);
    border-top: 3px solid var(--gold);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}
.footer-col h4 {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer-col a {
    display: block;
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--duration) var(--ease);
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.footer-legal { margin-bottom: var(--space-lg); display: flex; justify-content: center; gap: var(--space-xl); flex-wrap: wrap; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,0.5); transition: color var(--duration) var(--ease); }
.footer-legal a:hover { color: var(--gold-light); }
.footer-disclaimer {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    max-width: 850px;
    margin: 0 auto var(--space-lg);
    line-height: 1.7;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* === Page Header (inner pages with calendar high-end banner artwork) === */
.page-header {
    position: relative;
    background: linear-gradient(135deg, var(--black) 0%, var(--green-dark) 100%);
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
    color: #fff;
    overflow: hidden;
}
.page-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    mix-blend-mode: luminosity;
    z-index: 1;
}
.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(35,31,32,0.85) 0%, rgba(35,31,32,0.95) 100%);
    z-index: 2;
}
.page-header .container {
    position: relative;
    z-index: 3;
}

.page-header h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: var(--space-md); font-weight: 800; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.12rem; max-width: 750px; line-height: 1.75; }
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--space-xl);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--gold-light); }

/* === Page Content === */
.page-content { padding: var(--space-4xl) 0; }
.content-section { margin-bottom: var(--space-3xl); }
.content-section:last-child { margin-bottom: 0; }
.content-section h2 {
    font-size: 1.9rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--border);
    font-weight: 700;
}
.content-section h3 { font-size: 1.25rem; margin-bottom: var(--space-md); font-weight: 700; }
.content-section p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-md);
    max-width: 850px;
    font-size: 1.02rem;
}

/* Tab navigation for inner pages */
.page-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}
.page-tab {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
    cursor: pointer;
    background: none;
}
.page-tab:hover, .page-tab.active {
    color: var(--red);
    border-color: var(--red);
    background: rgba(237, 28, 38, 0.05);
}

/* Objective list */
.objective-list {
    display: grid;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}
.objective-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--surface);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--red);
}
.objective-item i { color: var(--red); margin-top: 3px; flex-shrink: 0; }
.objective-item p { margin: 0; color: var(--text); }

/* Governance cards */
.governance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-md); margin: var(--space-xl) 0; }
.governance-card {
    padding: var(--space-lg);
    background: var(--surface);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
}
.governance-card i { font-size: 1.6rem; color: var(--green); margin-bottom: var(--space-md); }
.governance-card h4 { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 700; }

/* === Forms === */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); max-width: 800px; }
.form-group { display: flex; flex-direction: column; gap: var(--space-xs); }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: var(--text);
    transition: border-color var(--duration) var(--ease);
    background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(237, 28, 38, 0.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* === Info cards for inner pages === */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: var(--space-lg); margin: var(--space-xl) 0; }
.info-card {
    padding: var(--space-xl);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease);
}
.info-card:hover { box-shadow: var(--shadow-md); border-color: var(--green); }
.info-card h4 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; margin-bottom: var(--space-sm); color: var(--ink); }
.info-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* Sector detail page */
.sector-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: var(--space-xl); margin: var(--space-xl) 0; }
.sector-detail-card {
    padding: var(--space-xl);
    background: var(--surface);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--green);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.sector-detail-card h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-sm); color: var(--green-dark); }
.sector-detail-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* Membership categories */
.membership-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-md); margin: var(--space-xl) 0; }
.membership-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--surface);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid var(--border);
}
.membership-badge i { color: var(--gold); }

/* === Responsive === */
@media (max-width: 1100px) {
    .nav-list > li > a { padding: 0.6rem 0.5rem; font-size: 0.8rem; }
}

@media (max-width: 992px) {
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .section-grid.two-col { grid-template-columns: 1fr; }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .sectors-grid { grid-template-columns: repeat(3, 1fr); }
    .updates-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .top-bar-inner { flex-direction: column; gap: 0.3rem; }
    .hero { min-height: 75vh; }
    .hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-scroll { display: none; }
    .pillars-grid { grid-template-columns: 1fr; }
    .sectors-grid { grid-template-columns: repeat(2, 1fr); }
    .updates-grid { grid-template-columns: 1fr; }
    .programs-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stat-grid { grid-template-columns: 1fr; }
    .why-stats { flex-direction: column; gap: var(--space-lg); }
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .sectors-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Shared chrome and responsive public forms. */
html { scroll-padding-top: calc(var(--header-height) + 16px); }
.header-inner { gap: 1.5rem; }
.logo, .logo-img { flex-shrink: 0; }
.top-bar-inner { gap: 1rem; }
.top-bar-left { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.top-bar-left span { margin-right: 0; }
.top-bar-right { flex-shrink: 0; }
.top-btn.accent { white-space: nowrap; padding: 0.45rem 1.1rem; font-size: 0.85rem; }
.dropdown:focus-within, .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.hamburger { position: relative; z-index: 202; padding: 0.75rem; }
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 99; opacity: 0; visibility: hidden; transition: opacity 0.2s; }
.nav-overlay.active { opacity: 1; visibility: visible; }
.form-grid > *, .form-group input, .form-group select, .form-group textarea { min-width: 0; }
.form-note { font-size: 0.85rem !important; margin-top: 1rem; }
.email-draft { margin-top: 1rem; padding: 1rem; border-radius: var(--radius-md); background: var(--surface); color: var(--text); }
.email-draft p { color: var(--text); font-size: 0.9rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.page-header-bg { opacity: 0.65; mix-blend-mode: normal; }
.page-header-overlay { background: linear-gradient(to bottom, rgba(35,31,32,0.5), rgba(35,31,32,0.75)); }

@media (max-width: 1200px) {
    .hamburger { display: flex; }
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(360px, 100vw);
        height: 100dvh;
        background: var(--white);
        z-index: 200;
        padding: var(--space-4xl) var(--space-xl) var(--space-xl);
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
        display: none;
    }
    .nav.open { display: block; }
    .nav-list { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
    .nav-list > li { width: 100%; }
    .nav-list > li > a { padding: 0.75rem 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
    .dropdown { position: static; box-shadow: none; border: none; opacity: 1; visibility: inherit; transform: none; padding: 0 0 0 var(--space-lg); min-width: 0; }
    .dropdown a { padding: 0.45rem 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 768px) {
    :root { --header-height: 88px; }
    .top-bar-inner { flex-direction: row; }
    .top-bar-left { font-size: 0.7rem; gap: 0.25rem; }
    .container { padding-left: 1.25rem; padding-right: 1.25rem; }
    .hero-content { padding: var(--space-3xl) 1.25rem; }
    .hero-image-bg { background-position: 75% center; }
    .hero-overlay { background: rgba(35,31,32,0.65); }
    .hero h1 { font-size: clamp(1.7rem, 7vw, 2.3rem); }
    .info-cards, .sector-detail-grid { grid-template-columns: 1fr; }
    .content-section[style*="padding:3rem"] { padding: 1.5rem !important; }
    #newsletter .form-group { flex-wrap: wrap; }
    #newsletter input { width: 100%; }
    .logo-img { height: 68px; }
    .header-inner { gap: 0.5rem; }
}
@media (max-width: 380px) {
    .top-btn.accent { padding: 0.45rem 0.65rem; font-size: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.contact-desks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.contact-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.contact-layout > * { min-width: 0; }
.content-section[style*="linear-gradient"] .form-group label,
.content-section[style*="linear-gradient"] .form-note { color: #fff; }
@media (max-width: 992px) {
    .contact-desks, .contact-layout { grid-template-columns: 1fr; }
}

/* Shared hero edges: green above, red along a shallow bottom curve. */
.hero::before,
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--green);
    z-index: 4;
    pointer-events: none;
}
.hero::after,
.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    background: url('../images/hero-bottom-curve.svg') center bottom / 100% 100% no-repeat;
    z-index: 4;
    pointer-events: none;
}
.hero-content { padding-bottom: calc(var(--space-4xl) + 48px); }
.hero-scroll { bottom: 6rem; }
.page-header { padding-bottom: calc(var(--space-3xl) + 40px); }
@media (max-width: 768px) {
    .hero-content { padding-bottom: calc(var(--space-3xl) + 40px); }
    .hero::after,
    .page-header::after { height: 56px; }
}
