/* =================================
   VIEWPORT OWNERSHIP FIX
   The page must own the screen
================================= */

html,
body {
    width: 100%;
    min-height: 100%;
    background: #0b0f1a; /* fallback behind video */
}

/* Main layout wrapper must span screen */
main {
    width: 100%;
    max-width: none;
}

/* Sections must own viewport width */
.section {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* ================================
   GLOBAL FLUID SCALE SYSTEM
================================ */

:root {
    /* Fluid spacing */
    --space-xs: clamp(6px, 0.6vw, 10px);
    --space-sm: clamp(10px, 1vw, 16px);
    --space-md: clamp(16px, 1.8vw, 26px);
    --space-lg: clamp(26px, 3vw, 44px);
    --space-xl: clamp(40px, 5vw, 80px);

    /* Fluid typography */
    --text-sm: clamp(0.9rem, 0.85rem + 0.3vw, 1rem);
    --text-md: clamp(1rem, 0.95rem + 0.4vw, 1.15rem);
    --text-lg: clamp(1.25rem, 1.1rem + 0.8vw, 1.8rem);
    --text-xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.6rem);

    /* Layout */
    --radius: clamp(8px, 1vw, 14px);
    --content-width: min(96vw, 1400px);
}

:root {
    --primary-green: #000843; /* PASER green */
    --light-gold: #d6b25e; /* light gold accent */
    --white: #ffffff;
    --dark-text: #222222;
}

.header {
    padding: 70px 40px 50px; /* top | sides | bottom */
}

main {
    margin-top: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f5f5;
    overflow-x: hidden;
    overflow-y: auto;
}

/* HEADER */
/* =========================
   HEADER (clean + unified)
========================= */
.header {
    position: sticky;
    top: 0;
    z-index: 50;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-green);
    min-height: 90px;
    height: auto;
    padding: 20px 40px;

    overflow: visible; /* allow dropdown */

    transition: none; /* JS controls animation */
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;

    animation: heroFlow 20s linear infinite;

    opacity: 0.1;
    transition: opacity 10.9s ease;

    z-index: 0;
}

.logo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-bg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 90px;
}

.logo-text {
    font-size: clamp(20px, 4.5vw, 42px);
    letter-spacing: 2px;
    text-align: center;
    white-space: normal;
    line-height: 1.1;
    max-width: 90%;
    /* smaller base size */
    font-weight: 800;
    color: white;

    transform-origin: center;
    will-change: transform;
}

.logo-fill {
    position: absolute;
    font-size: 64px;
    font-weight: 800;
    letter-spacing: 6px;

    background-image: url("/images/logo.jpg");
    background-repeat: repeat;
    background-size: 300px auto;

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    animation: heroFlow 18s linear infinite;

    z-index: 0;
}

.logo-text,
.logo-fill {
    font-size: 40px; /* keep constant */
    transform-origin: center;
    will-change: transform, opacity;
}

.header-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%); /* perfect vertical center */

    z-index: 100;

    display: flex;
    gap: 15px;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.header-right.hidden {
    transform: translateY(-15px);
    opacity: 0;
    pointer-events: none;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #d0caa7;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 25px;
    right: 20px;

    background: white;
    border-radius: 6px;
    min-width: 180px;

    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    z-index: 9999;

    /* animation setup */
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

/* open state */
.dropdown-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px;
    color: #002855;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.dropdown-menu a:hover {
    background: #d0caa7;
}

/* active nav item */
.dropdown-menu a.active {
    background: var(--primary-green);
    color: var(--white);
    font-weight: 600;
}

/* SECTIONS */
body {
    background: #f5f5f5;
    min-height: 100vh;
    flex-direction: column;
}

/* =========================
   SECTIONS (FINAL STABLE VERSION)
========================= */

.section {
    display: none;
    padding: var(--space-lg);
    min-height: auto;
    flex: 1;

    opacity: 0;
    transform: translateY(16px);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;

    width: var(--content-width);
    margin-inline: auto;
}

.section,
.subsection {
    transform: translateY(16px);
    contain: layout paint;
}

.site-footer {
    background: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 20px 10px;
    margin-top: auto;
}

/* ======================================
   GLOBAL SECTION TITLES (Title ─── content)
====================================== */

.section h2,
.section h3 {
    text-align: center;
    color: var(--primary-green);
    margin-bottom: 18px;
    position: relative;
}

/* decorative divider */
.section h2::after,
.section h3::after {
    content: "";
    display: block;

    width: 70px;
    height: 3px;

    background: var(--primary-green);
    border-radius: 2px;

    margin: 10px auto 0;
}

/* ===== BRAND HEADING COLOR ===== */

.section.active {
    display: block; /* takes natural height */
    opacity: 1;
    transform: translateY(0);
}

.subsection {
    display: none;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.subsection.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* HOME GRID */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.image-card {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    font-size: 26px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease;
}

/* Hover feedback */
.image-card:hover .overlay {
    background: rgba(7, 0, 84, 0.75);
    transform: scale(1.05);
}

.image-card:hover .overlay {
    opacity: 1;
}

/* BIOS */
.bio {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.bio img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* SUBTABS */
.subtabs {
    margin: var(--space-lg) 0;
    display: flex;
    justify-content: center;
    gap: clamp(10px, 2vw, 24px);
    flex-wrap: wrap;
}

.subtabs button {
    background: var(--primary-green);
    color: var(--white);
    border: none;

    padding: 24px 42px;
    font-size: 24px;
    font-weight: 600;

    border-radius: 8px;
    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

/* =========================
   RESPONSIVE SUBTABS
========================= */

.subtabs {
    margin: var(--space-lg) 0;
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* buttons resize intelligently */
.subtabs button {
    flex: 1 1 clamp(140px, 40%, 260px);
    max-width: 320px;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
}

.subtabs button:hover {
    transform: scale(1.08);
    background: #16623f; /* slightly darker green */
}

/* FORM */

.image-grid.vertical {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 800px;
    margin: auto;
}

.image-card {
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: -50%;

    pointer-events: none; /*  CRITICAL FIX */

    background: radial-gradient(circle at top left, rgba(0, 40, 85, 0.15), transparent 60%),
        radial-gradient(circle at bottom right, rgba(0, 80, 160, 0.15), transparent 60%);
    animation: floatGlow 18s infinite alternate;
    z-index: -1;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(5%, 5%);
    }
}

@keyframes heroFlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== JOIN SECTION CONTAINER ===== */
#join {
    flex-direction: column;
    align-items: center;
    text-align: justify;

    background-color: #d0caa7; /* warm brownish */
    padding: 40px 20px;
}

/* ===== FORM LAYOUT (mirrors conference-form structure) ===== */
#join form {
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ===== INPUTS + SELECTS ===== */
#join input,
#join select {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition:
        border 0.2s ease,
        box-shadow 0.2s ease;
}

/* subtle focus feedback */
#join input:focus,
#join select:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.15);
}

/* ===== ROLE BUTTON GROUP (conference-style structure) ===== */
#join .role-group {
    display: flex;
    gap: 10px;
}

/* role buttons */
#join .role-group button {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #f6f6f6;
    cursor: pointer;
    transition: 0.2s ease;
}

#join .role-group button:hover {
    background-color: #e8e8e8;
}

/* active/selected role */
#join .role-group button.active {
    background-color: #2e7d32;
    color: white;
    border-color: #2e7d32;
}

/* ===== PRIMARY SUBMIT BUTTON ===== */
#join button[type="submit"] {
    margin-top: 10px;
    padding: 12px;
    border-radius: 6px;
    border: none;
    background-color: #2e7d32; /* primary green */
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

#join button[type="submit"]:hover {
    background-color: #256628;
    transform: translateY(-1px);
}

/* HOME QUICK LINKS SECTION */
.home-links {
    margin-top: 80px;
    padding: 60px 40px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;

    position: relative;
    overflow: hidden;
}

/* Background like header */
.home-tabs {
    margin-top: var(--space-xl);

    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);

    padding: var(--space-xl) var(--space-lg);

    display: flex;
    justify-content: center;
    gap: clamp(14px, 3vw, 40px);
    flex-wrap: wrap;

    background: var(--primary-green);
}

.home-tab {
    width: 260px;
    height: 160px;

    background-size: cover;
    background-position: center;

    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;

    transition: transform 0.3s ease;
}

/* =========================
   HOME NAVIGATION CARDS
========================= */

.home-tab {
    width: clamp(180px, 38vw, 260px);
    height: clamp(120px, 22vw, 160px);
    border-radius: 10px;
}

/* container wraps automatically */
.home-tabs {
    flex-wrap: wrap;
    justify-content: center;
}

.home-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.home-tab span {
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    color: white;
    font-size: 20px;
    font-weight: 700;
    z-index: 1;
}

.home-tab:hover {
    transform: scale(1.06);
}

.home-link-card:hover::after {
    background: rgba(31, 122, 79, 0.75);
}

/* ========================
   ABOUT PAGE LAYOUT
======================== */

.about-intro,
.about-history,
.about-leadership,
.about-impact {
    max-width: 1000px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.about-intro p,
.about-impact p {
    margin-top: 15px;
    line-height: 1.7;
    color: #333;
}

/* ===== ABOUT PAGE HEADINGS ===== */
.about-history h3,
.about-impact h3 {
    color: var(--primary-green);
}

/* Timeline */
.timeline {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.timeline li {
    margin: 10px 0;
    font-size: 18px;
}

/* Leadership grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.profile-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.25s ease;
}

.profile-card:hover {
    transform: translateY(-6px);
}

.profile-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.profile-card h4 {
    margin-bottom: 10px;
    color: var(--primary-green);
}

/* =========================
   GENERIC IMAGE CARD LAYOUT
   (used across all sections)
========================= */
/* =========================
   CENTERED BRAND CARD (FIXED)
   perfectly symmetrical
========================= */

.image-card-layout {
    max-width: var(--content-width);
    margin: var(--space-lg) auto;
    border: 2px solid black;
    display: flex;
    justify-content: center;
    align-items: center;

    background: #d0caa7;
    padding: var(--space-lg);

    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* wrapper for bars + text */
.card-text {
    position: relative;
    max-width: 820px;
    line-height: 1.75;
    padding: 0 40px; /* space for bars */
}

/* LEFT decorative bar */
.card-text::before,
.card-text::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 30px;
    height: 4px;

    background: var(--primary-green); /*  change colour here */
    border-radius: 4px;
}

/* left */
.card-text::before {
    left: 0;
}

/* right */
.card-text::after {
    right: 0;
}

/* =============================
   CONFERENCE PAGE STYLES
============================= */

.page-title {
    text-align: center;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.conference-intro {
    max-width: 900px;
    margin: 0 auto 40px auto;
    text-align: center;
    line-height: 1.6;
}

/* Past conference cards */

.conference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 28vw, 340px), 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.conference-card {
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease;
    background:rgba(208, 202, 167, 0.85);
    text-align: center;
}

.conference-card:hover {
    transform: translateY(-6px);
}

/* 2026 details */

.conference-detail {
    max-width: 850px;
    margin: 40px auto;
    line-height: 1.7;
}

/* Guidelines */

.guidelines {
    margin: 15px 0 30px 20px;
}

/* RSVP Form */

.conference-form {
    max-width: 420px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.conference-form input,
.conference-form select {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.conference-form button {
    padding: 12px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.conference-form button:hover {
    background: #16623f;
}

/* ========================
   MEMBERSHIP PAGE
======================== */

.membership-form {
    width: 100%;
    max-width: 420px;
    text-align: center;
    margin: 20px auto 0;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.membership-form input {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.membership-form button:hover {
    background: #16623f;
    transform: scale(1.05);
}

/* =========================
   POPIA CONSENT STYLING
========================= */

.form-consent-box {
    margin-top: 25px; /* space above box */
    padding: 16px;
    border-radius: 8px;

    background: rgba(31, 122, 79, 0.08); /* soft PASER green tint */
    border: 1px solid rgba(31, 122, 79, 0.25);
}

/* text block */
.consent-text {
    display: block;
    margin-bottom: 14px; /* THIS creates the gap */
    font-size: 13px;
    line-height: 1.5;
    color: #444;
}

.membership-intro {
    max-width: 900px;
    margin: 0 auto 40px auto;
    text-align: center;
    line-height: 1.7;
}

/* Card layout like About profiles */
.membership-card {
    max-width: var(--content-width);
    margin: var(--space-lg) auto;
    padding: var(--space-lg);

    background: white;
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    line-height: 1.6;
}

.membership-card h2,
.membership-card h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-green);
}

/* Lists */
.membership-card ul {
    margin-left: 20px;
}

.membership-card h2::after,
.membership-card h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin: 10px auto 0;
    background: var(--primary-green);
    border-radius: 2px;
}

.card-who {
    background-color: #d0caa7;
}

.card-benefits {
    background-color: #d0caa7;
}

/* =================================
   GLOBAL PAGE CONTAINER (shared)
================================= */

.page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 80px 20px;
}

/* =============================
   CONFERENCE IMPROVED LAYOUT
============================= */

/* same visual language as membership/about */
.conference-card-large {
    max-width: var(--content-width);
    margin: var(--space-lg) auto;
    padding: var(--space-lg);

    background: #d0caa7;
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    line-height: 1.7;
}

/* Programme card override (green) */
.conference-card-large.programme-placeholder {
    background: var(--primary-green);
    color: var(--white);
    text-align: center;
    font-weight: 700;
    font-size: 18px;
}

/* speaker image + text side-by-side */
.speaker-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 25px;
    align-items: center;
}

.speaker-layout img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* mobile stacking */
@media (max-width: 768px) {
    .speaker-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .speaker-layout img {
        margin: 0 auto;
    }
}

/* =============================
   NEWS & EVENTS PAGE
============================= */

.news-intro {
    max-width: 900px;
    margin: 0 auto 40px auto;
    text-align: center;
    line-height: 1.7;
}

/* grid layout like conference cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(240px, 28vw, 360px), 1fr));
    gap: var(--space-md);
    max-width: var(--content-width);
    margin: 0 auto;
}

/* card style matches your site */
.news-card {
    background: #d0caa7;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

    transition: transform 0.25s ease;
}

.news-card:hover {
    transform: translateY(-6px);
}

/* tag label */
.tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;

    background: var(--primary-green);
    color: white;

    padding: 5px 10px;
    border-radius: 20px;

    margin-bottom: 10px;
}

/* highlighted important notice */
.news-card.highlight {
    border-left: 6px solid var(--primary-green);
}

/* =============================
   VIDEO BACKGROUND SYSTEM
   (safe – does not affect layout)
============================= */

/* video wrapper */
.video-bg {
    position: fixed; /* ← change */
    inset: 0;
    z-index: 0; /* ← always behind */
    pointer-events: none;
}

/* actual video */
.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* gold overlay */
/* universal tint layer */
.section::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: rgba(214, 178, 94, 0.45); /* default tint */
    transition: background 0.6s ease;
}

/* HOME */
#home::before {
    background: rgba(214, 178, 94, 0.45);
}

/* ABOUT */
#about::before {
    background: rgba(214, 178, 94, 0.45);
}

/* CONFERENCE */
#conferences::before {
    background: rgba(10, 40, 95, 0.55);
}

/* MEMBERSHIP */
#membership::before {
    background: rgba(60, 20, 80, 0.5);
}

/* NEWS */
#news::before {
    background: rgba(120, 60, 10, 0.45);
}

/* keep content above video */
.section > *:not(.video-bg) {
    position: relative;
    z-index: 2;
}

/* ======================================
   ABOUT MASTER CARD (shows background edges)
====================================== */



/* ======================================
   Decorative green side lines (intro + mission only)
====================================== */

.about-lined {
    position: relative;
}

.about-lined::before,
.about-lined::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 4px;

    background: var(--primary-green);
    transform: translateY(-50%);
}

.about-lined::before {
    left: -50px;
}
.about-lined::after {
    right: -50px;
}

/* ======================================
   Leadership grid
====================================== */

.leadership-grid {
    margin: var(--space-xl) 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 26vw, 320px), 1fr));
    gap: var(--space-md);
}

/* ======================================
   GREEN LEADER CARDS
====================================== */

.leader-card {
    background: var(--primary-green);
    color: white;

    padding: 30px 25px;
    border-radius: 12px;

    text-align: center;

    transition: transform 0.25s ease;
}

.leader-card:hover {
    transform: translateY(-6px);
}

/* circular image */
.leader-card img {
    width: 130px;
    height: 130px;
    object-fit: cover;

    border-radius: 50%;
    border: 4px solid white;

    margin-bottom: 15px;
}

/* spacing */
.about-intro,
.about-history,
.about-impact {
    margin-bottom: 60px;
    line-height: 1.7;
}

/* Styling for the paper submission form */
.conference-form textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    resize: vertical;
    font-family: inherit;
}

.conference-form input[type="file"] {
    background: #f8f8f8;
    padding: 10px;
}

.consent {
    font-size: 13px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.section h2,
.section h3.section-title {
    color: var(--primary-green);
}

@media (max-width: 768px) {
    .logo-bg {
        display: none;
    }

    .logo-text {
        font-size: clamp(18px, 5vw, 28px);
        letter-spacing: 1px;
    }
}

/* =============================
   HOME WELCOME INTRO
============================= */

.home-intro {
    margin-top: 60px;
    margin-bottom: 40px;

    /* slightly more transparent so video shows */
    background: rgba(208, 202, 167, 0.92);
    backdrop-filter: blur(4px);

    max-width: 950px;
}

/* nicer heading scale */
.home-intro h2 {
    color: var(--primary-green);
    font-size: clamp(26px, 3.5vw, 36px);
    margin-bottom: 14px;
}

/* paragraph readability */
.home-intro p {
    font-size: 16px;
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto 12px;
}

.section {
    position: relative;
    overflow: visible;
}

/* Allow page to always own scroll */
html,
body {
    height: auto;
    overscroll-behavior-y: auto;
}

/* Prevent hidden sections from capturing wheel events */
.subsection:not(.active),
.section:not(.active) {
    pointer-events: none;
}

/* Active content must explicitly allow scrolling */
.section.active,
.subsection.active {
    pointer-events: auto;
    overscroll-behavior: contain;
}

body {
    font-size: var(--text-md);
}

h1 {
    font-size: var(--text-hero);
}
h2 {
    font-size: var(--text-xl);
}
h3 {
    font-size: var(--text-lg);
}
p,
li,
input,
select,
textarea,
button {
    font-size: var(--text-md);
}

/* Do NOT enlarge checkboxes */
input[type="checkbox"] {
    min-height: auto;
    height: 18px;
    width: 18px;
}

small {
    font-size: var(--text-sm);
}

body {
    background: linear-gradient(to bottom, #0b1d2a 0%, #102d44 100%);
}

/* =================================
   DESKTOP DENSITY CORRECTION
   Only affects very wide monitors
================================= */

@media (min-width: 1400px) {
    :root {
        /* text slightly tighter */
        --text-sm: 0.92rem;
        --text-md: 1rem;
        --text-lg: 1.25rem;
        --text-xl: 1.7rem;

        /* spacing tighter */
        --space-md: 16px;
        --space-lg: 26px;
        --space-xl: 42px;
    }

    /* reduce section breathing room */
    .section {
        padding: 28px;
    }

    /* reduce large card padding */
    .conference-card-large,
    .membership-card,
    .image-card-layout {
        padding: 32px 34px;
    }
}

/* =========================
   UNIVERSAL RESPONSIVE GRIDS
========================= */

.conference-grid,
.news-grid,
.leadership-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: var(--space-md);
}

.leadership-card .leadership-grid{
margin-top:30px;
}

/* =========================
   CONTENT CARD FLUID PADDING
========================= */

.membership-card,
.conference-card-large,
.image-card-layout {
    padding: clamp(18px, 4vw, 50px);
    margin: clamp(18px, 4vw, 60px) auto;
    width: min(100%, 1100px);
}

/* =========================
   MOBILE INPUT ERGONOMICS
========================= */

input,
select,
textarea,
button {
    min-height: 44px; /* finger tap size */
    font-size: 16px; /* prevents iOS zoom */
    border-radius: 8px;
}

/* text fields */
.membership-form input,
.conference-form input,
.conference-form textarea,
#join input,
#join select {
    padding: 14px 14px;
    line-height: 1.4;
}

/* prevent keyboard covering last field */
.membership-form,
.conference-form,
#join form {
    padding-bottom: 120px;
}

/* =========================
   TOUCH CHECKBOX AREA
========================= */

.consent,
.form-consent-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
}

.consent input[type="checkbox"] {
    transform: scale(1.35);
    margin-top: 4px;
    cursor: pointer;
}

.consent label,
.form-consent-box label {
    cursor: pointer;
    line-height: 1.5;
    font-size: small;
}

/* =========================
   STICKY SUBMIT BUTTON
========================= */

@media (max-width: 768px) {
    .membership-form button[type="submit"],
    .conference-form button[type="submit"],
    #join button[type="submit"] {
        position: sticky;
        bottom: 10px;
        z-index: 5;

        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
        margin-top: 25px;
    }
}

/* =========================
   INPUT SCROLL STABILITY
========================= */

input,
textarea,
select {
    overscroll-behavior: contain;
    touch-action: manipulation;
}

/* =========================
   MOBILE HEADER COMPRESSION
========================= */

@media (max-width: 768px) {
    .header {
        min-height: 64px;
        padding: 12px 14px;
    }

    .logo-text,
    .logo-fill {
        font-size: clamp(18px, 4.2vw, 26px);
        letter-spacing: 1px;
    }

    .logo-bg {
        height: 55px;
        left: 10px;
    }
}

/* =========================
   MOBILE SUBTAB BAR
========================= */

@media (max-width: 768px) {
    .subtabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: center;

        padding-bottom: 6px;
        margin-bottom: 20px;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .subtabs::-webkit-scrollbar {
        display: none;
    }

    .subtabs button {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 35px 42px;
        font-size: var(--text-sm);
    }
}

/* active subtab */
.subtabs button.active {
    background: var(--light-gold);
    color: #000;
    transform: scale(1.05);
}



.section {
    scroll-margin-top: 80px;
}

.section > :first-child {
    margin-top: 0 !important;
}

.section {
    padding: var(--space-lg) var(--space-md);
}

/* ===== CLEAN CONSENT LAYOUT ===== */
.form-consent-box {
    display: block;
    text-align: left;
    background: rgba(31, 122, 79, 0.08);
    border: 1px solid rgba(31, 122, 79, 0.25);
    padding: 18px 20px;
    border-radius: 10px;
}

/* first row = checkbox + statement */
.consent {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: start;
    column-gap: 12px;
    margin-bottom: 12px;
}

/* checkbox NORMAL size */
.consent input[type="checkbox"] {
    transform: scale(1);
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

/* main consent sentence */
.consent label {
    font-weight: 500;
    line-height: 1.45;
}

/* POPIA paragraph */
.consent-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    text-align: justify;
}

/* ===== GLOBAL FORM BUTTON STYLE ===== */
.membership-form button,
.conference-form button,
#join button[type="submit"] {
    padding: 12px;
    border-radius: 6px;
    border: none;
    background: #16623f; /* same green as other forms */
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.membership-form button:hover,
.conference-form button:hover,
#join button[type="submit"]:hover {
    background: #124e31;
    transform: translateY(-1px);
}

.form-consent-box {
    max-width: 520px;
    margin: 18px auto;
}

/* layout for checkbox line */
.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

/* checkbox size (clean, not huge) */
.consent-check input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

/* text formatting */
.consent-check span {
    line-height: 1.5;
    font-size: var(--text-md);
    color: var(--dark-text);
    text-align: left;
}

.consent-check span {
    line-height: 1.5;
    font-size: var(--text-md);
    color: var(--dark-text);
    text-align: left;
}

.form-success {
    display: none;
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(22,98,63,0.1);
    color: #16623f;
    font-weight: 600;
}

.conference-partnerships-section{
    background-color:#00124b; /* your dark blue */
    padding:80px 20px;
    text-align:center;
}

.home-tabs{
    display:flex;
    justify-content:center;
    gap:40px;
    flex-wrap:wrap;
}

/* Leadership section inside image card */

.leadership-card{
flex-direction: column;
text-align:center;
}

.leadership-card .card-text::before,
.leadership-card .card-text::after{
display:none;
}

.leadership-card .leadership-grid{
margin-top:30px;
}

.conference-card{
    max-width:900px;
    margin:0 auto 50px auto;
    border:2px solid black;
    border-radius:15px;
    padding:40px;

}

/* ===== FULL-WIDTH SECTION FIX ===== */
.section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: var(--space-lg) var(--space-md);
}

/* keep the actual content cards nicely constrained */
.image-card-layout,
.membership-card,
.conference-card-large,
.conference-grid,
.news-grid,
.leadership-grid {
    width: min(100%, 1100px);
    margin-left: auto;
    margin-right: auto;
}

/* ===== REMOVE BOTTOM GAP ===== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.section.active {
    flex: 1;
}

/* =========================
   SHARED SUBTAB BASE
   ========================= */

.conference-subtabs,
.membership-subtabs {
    width: 100%;
    max-width: 980px;
    margin: 34px auto 42px;
    padding: 10px 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    background: rgba(7, 25, 46, 0.92);
    border: 2px solid rgba(214, 178, 94, 0.75);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* =========================
   CONFERENCE + MEMBERSHIP BUTTONS
   ========================= */

.conference-subtabs button,
.membership-subtabs button {
    min-width: 290px;
    min-height: 76px;
    padding: 18px 28px;
    border: 2px solid rgba(214, 178, 94, 0.55);
    border-radius: 18px;
    background: #07192e; /* navy blue */
    color: #ffffff;
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

/* hover state for inactive tabs only */
.conference-subtabs button:hover,
.membership-subtabs button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
    border-color: #d6b25e;
}

/* active tab */
.conference-subtabs button.active,
.membership-subtabs button.active {
    background: #d0caa7;
    color: #07192e;
    border-color: #d6b25e;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

/* mobile */
@media (max-width: 768px) {
    .conference-subtabs,
    .membership-subtabs {
        gap: 14px;
        padding: 10px;
    }

    .conference-subtabs button,
    .membership-subtabs button {
        min-width: 220px;
        width: 100%;
        max-width: 420px;
        min-height: 68px;
        font-size: 1rem;
    }
}

.membership-subsection {
    display: none;
}

.membership-subsection.active {
    display: block;
}

/* =========================
   PAST CONFERENCE ARCHIVE CARDS
   ========================= */

.archive-grid {
    align-items: stretch;
}

.archive-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    padding: 28px 24px;
    border: 2px solid rgba(214, 178, 94, 0.72);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 248, 231, 0.97) 0%, rgba(240, 229, 198, 0.96) 100%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.archive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
    border-color: rgba(214, 178, 94, 1);
}

.archive-year {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #16623f;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.archive-card h3 {
    margin-bottom: 12px;
    color: #0b1d2a;
    font-size: 1.2rem;
}

.archive-card p {
    margin-bottom: 22px;
    color: #2a2a2a;
    line-height: 1.65;
}

.programme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 13px 18px;
    border-radius: 10px;
    background: #0b1d2a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.programme-btn:hover {
    background: #16623f;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

/* ======================================
   STEP 3: VISUAL HIERARCHY SYSTEM
====================================== */

/* 1. FEATURE CARDS - strongest emphasis */
.card-feature,
.card-featured-panel {
    background: linear-gradient(180deg, rgba(214, 178, 94, 0.96) 0%, rgba(224, 210, 166, 0.96) 100%);
    border: 2px solid rgba(7, 25, 46, 0.9);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

/* 2. STANDARD PANELS - main content */
.card-standard {
    background: rgba(255, 248, 231, 0.94);
    border: 1.5px solid rgba(7, 25, 46, 0.18);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

/* 3. SOFT CARDS - supportive/secondary content */
.card-soft {
    background: rgba(255, 252, 243, 0.88);
    border: 1px solid rgba(7, 25, 46, 0.12);
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* 4. Reduce heaviness on repeated grid cards */
.conference-card,
.news-card,
.membership-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.conference-card:hover,
.news-card:hover,
.membership-card:hover {
    transform: translateY(-4px);
}

/* 5. Improve readable body text */
.card-reading,
.card-reading p,
.card-reading li,
.card-reading ul {
    text-align: left;
}

/* 6. Keep headings centered where needed */
.card-reading h2,
.card-reading h3,
.card-reading .page-title {
    text-align: center;
}

/* 7. Reduce visual density in long-form cards */
.card-reading p {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

/* 8. Better spacing inside longer content sections */
.conference-card-large.card-standard,
.membership-card.card-standard,
.image-card-layout.card-feature {
    padding: clamp(24px, 4vw, 54px);
}

/* 9. Make standard cards more restrained than feature cards */
.conference-card-large.card-standard,
.membership-card.card-standard {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

/* 10. Stronger featured conference invitation panel */
.card-featured-panel {
    position: relative;
    overflow: hidden;
}

.card-featured-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 25, 46, 0.08) 0%, rgba(22, 98, 63, 0.08) 100%);
    pointer-events: none;
}

.card-featured-panel > * {
    position: relative;
    z-index: 1;
}

.card-reading .card-text::before,
.card-reading .card-text::after {
    display: none;
}

.card-reading ul {
    max-width: 760px;
    margin: 20px auto 0;
    padding-left: 22px;
}

/* ======================================
   NEWS HIERARCHY
====================================== */

.news-card {
    background: rgba(255, 248, 231, 0.92);
    border: 1px solid rgba(7, 25, 46, 0.12);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.news-card-featured {
    background: linear-gradient(180deg, rgba(214, 178, 94, 0.96) 0%, rgba(235, 223, 187, 0.96) 100%);
    border-left: 6px solid var(--primary-green);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.news-card h3 {
    margin-bottom: 10px;
    color: #07192e;
}

.news-card p {
    line-height: 1.7;
    color: #1f2937;
}

.image-card-layout,
.conference-card,
.conference-card-large,
.membership-card,
.news-card {
    border-color: rgba(7, 25, 46, 0.18) !important;
}

.card-feature,
.card-featured-panel {
    border-color: rgba(7, 25, 46, 0.85) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.15);
    max-width: 600px;
line-height: 1.6;
}

/* ======================================
   STEP 4: SPACING AND READABILITY SYSTEM
====================================== */

/* Section spacing */
.section {
    padding-top: clamp(60px, 8vw, 100px);
    padding-bottom: clamp(60px, 8vw, 100px);
}

/* Inner content width consistency */
.section > .image-card-layout,
.section > .conference-card-large,
.section > .membership-card,
.section > .news-card,
.section > .conference-grid,
.section > .leaders-grid,
.section > .support-card-split,
.section > .support-card {
    margin-top: 28px;
}

/* Intro card spacing */
.image-card-layout,
.conference-card-large,
.membership-card,
.news-card,
.conference-card,
.archive-card {
    padding: clamp(22px, 3vw, 36px);
}

/* Better heading rhythm */
.page-title,
.section h2,
.section h3 {
    margin-top: 0;
    margin-bottom: 14px;
    line-height: 1.2;
}

/* Better paragraph rhythm */
.section p,
.section li {
    line-height: 1.75;
}

/* Limit paragraph width for readability */
.card-reading p,
.membership-card p,
.conference-card-large p,
.news-card p,
.leader-card p {
    max-width: 820px;
}

/* Grid spacing */
.conference-grid,
.leaders-grid,
.news-grid,
.partners-grid {
    gap: 24px;
}

/* Subtab spacing */
.subtabs {
    margin-bottom: 34px;
}

/* Lists inside cards */
.card-reading ul,
.membership-card ul,
.conference-card-large ul {
    margin-top: 16px;
    padding-left: 22px;
    line-height: 1.7;
}

/* Smaller paragraphs inside cards should not feel cramped */
.card-text p + p,
.membership-card p + p,
.conference-card-large p + p,
.leader-card p + p {
    margin-top: 14px;
}

/* Mobile refinement */
@media (max-width: 768px) {
    .section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .conference-grid,
    .leaders-grid,
    .news-grid,
    .partners-grid {
        gap: 18px;
    }

    .image-card-layout,
    .conference-card-large,
    .membership-card,
    .news-card,
    .conference-card,
    .archive-card {
        padding: 20px;
    }
}

/* ======================================
   PIONEER / LEADER CARD READ MORE SYSTEM
====================================== */

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.leader-card {
    background: rgba(255, 248, 231, 0.95);
    border: 1px solid rgba(7, 25, 46, 0.14);
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.leader-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.leader-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d6b25e;
}

.leader-card h3 {
    margin-bottom: 8px;
    color: #07192e;
    font-size: 1.2rem;
}

.leader-role {
    margin-bottom: 14px;
    color: #16623f;
    font-weight: 600;
    font-size: 0.95rem;
}

.bio-preview,
.bio-more {
    text-align: left;
    color: #1f2937;
    line-height: 1.75;
    font-size: 0.98rem;
}

.bio-preview {
    margin-bottom: 10px;
}

.bio-more {
    display: none;
}

.leader-card.expanded .bio-more {
    display: block;
}

.read-more-btn {
    margin-top: auto;
    align-self: center;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: #07192e;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.read-more-btn:hover {
    background: #d6b25e;
    color: #07192e;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .leader-card {
        padding: 20px;
    }

    .leader-img {
        width: 100px;
        height: 100px;
    }
}

.bio-preview {
    position: relative;
}

.bio-preview::after {
    content: "";
    display: block;
    height: 24px;
    margin-top: -24px;
    background: linear-gradient(to bottom, rgba(255, 248, 231, 0), rgba(255, 248, 231, 1));
}

.leader-card.expanded .bio-preview::after {
    display: none;
}

/* ======================================
   LEADER GRID
====================================== */

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: start; /* important: stops other cards from stretching */
}

/* ======================================
   LEADER CARD
====================================== */

.leader-card {
    background: rgba(255, 248, 231, 0.95);
    border: 1px solid rgba(7, 25, 46, 0.14);
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: auto; /* important */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.leader-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.leader-card img,
.leader-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d6b25e;
}

.leader-card h4,
.leader-card h3 {
    margin-bottom: 8px;
    color: #07192e;
    font-size: 1.2rem;
}

.leader-role {
    margin-bottom: 14px;
    color: #16623f;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ======================================
   BIO TEXT
====================================== */

.bio-preview,
.bio-more {
    text-align: left;
    color: #1f2937;
    line-height: 1.75;
    font-size: 0.98rem;
}

.bio-preview {
    margin-bottom: 10px;
}

/* smooth expand/collapse setup */
.bio-more {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.45s ease,
        opacity 0.3s ease,
        margin-top 0.3s ease;
    margin-top: 0;
}

.leader-card.expanded .bio-more {
    opacity: 1;
    margin-top: 10px;
}

/* spacing inside expanded text */
.bio-more p {
    margin: 0 0 12px 0;
}

.bio-more p:last-child {
    margin-bottom: 0;
}

/* ======================================
   BUTTON
====================================== */

.read-more-btn {
    margin-top: 18px; /* changed from auto */
    align-self: center;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: #07192e;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.read-more-btn:hover {
    background: #d6b25e;
    color: #07192e;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .leader-card {
        padding: 20px;
    }

    .leader-card img,
    .leader-img {
        width: 100px;
        height: 100px;
    }
}

/* ======================================
   LEADERS SECTION - FINAL FIX
====================================== */

.leaders-grid {
    column-count: 3;
    column-gap: 24px;
}

.leader-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 24px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    background: rgba(255, 248, 231, 0.95);
    border: 1px solid rgba(7, 25, 46, 0.14);
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
    padding: 24px;
    text-align: center;
    vertical-align: top;
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.leader-card.expanded {
    border-color: #d6b25e;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.leader-img,
.leader-card img {
    width: 120px;
    height: 120px;
    margin: 0 auto 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d6b25e;
    display: block;
}

.leader-card h4,
.leader-card h3 {
    margin-bottom: 8px;
    color: #07192e;
    font-size: 1.2rem;
}

.leader-role {
    margin-bottom: 14px;
    color: #16623f;
    font-weight: 600;
    font-size: 0.95rem;
}

.bio-preview,
.bio-more {
    text-align: left;
    color: #1f2937;
    line-height: 1.75;
    font-size: 0.98rem;
}

.bio-preview {
    margin-bottom: 10px;
}

.bio-more {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition:
        max-height 0.45s ease,
        opacity 0.3s ease,
        margin-top 0.3s ease;
}

.leader-card.expanded .bio-more {
    opacity: 1;
    margin-top: 10px;
}

.bio-more p {
    margin: 0 0 12px 0;
}

.bio-more p:last-child {
    margin-bottom: 0;
}

.read-more-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: #07192e;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.read-more-btn:hover {
    background: #d6b25e;
    color: #07192e;
    transform: translateY(-2px);
}

@media (max-width: 1100px) {
    .leaders-grid {
        column-count: 2;
    }
}

@media (max-width: 700px) {
    .leaders-grid {
        column-count: 1;
    }

    .leader-card {
        padding: 20px;
    }

    .leader-img,
    .leader-card img {
        width: 100px;
        height: 100px;
    }
}

/* ======================================
   FIX: PARTNERSHIPS AREA AS ONE NAVY SECTION
====================================== */

/* The whole partnerships area should be one continuous navy block */
.partnerships-section {
    background: #00124b !important;
    padding: 40px 20px 30px !important;
    margin: 0 !important;
}

/* The title card must sit inside this navy area cleanly */
.partnerships-section .image-card-layout.conference-partnerships {
    background: #d0caa7 !important;
    margin: 0 auto 28px auto !important;
    width: min(100%, 1100px);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Remove any separate band effect from the logo container */
.partnerships-section .home-tabs {
    background: transparent !important;
    width: min(100%, 1100px) !important;
    margin: 0 auto !important;
    padding: 20px 0 0 0 !important;

    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Keep the individual logo cards clean */
.partnerships-section .home-tab {
    background-color: #9a9a9a;
    border-radius: 14px;
}

/* Remove extra bottom spacing inside this area */
.partnerships-section .home-tab:last-child {
    margin-bottom: 0 !important;
}

/* ======================================
   FINAL PARTNERSHIPS + FOOTER SPACING FIX
   Place at VERY END of styles.css
====================================== */

/* Keep the whole partnerships area as one navy block */
.partnerships-section {
    background: #00124b !important;
    padding: 34px 20px 8px !important;  /* top, sides, bottom */
    margin: 0 !important;
}

/* Partnership intro card */
.partnerships-section .image-card-layout.conference-partnerships {
    background: #d0caa7 !important;
    width: min(100%, 1100px) !important;
    margin: 0 auto 34px auto !important; /* creates space above logo tabs */
    border-radius: 18px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
}

/* Logo row should stay inside same navy block */
.partnerships-section .home-tabs {
    background: transparent !important;
    width: min(100%, 1100px) !important;
    margin: 0 auto !important;
    padding: 8px 0 0 0 !important; /* small breathing room only */
    display: flex !important;
    justify-content: center !important;
    gap: 40px !important;
    flex-wrap: wrap !important;
}

/* Logo cards */
.partnerships-section .home-tab {
    background-color: #9a9a9a !important;
    border-radius: 14px !important;
    margin-bottom: 0 !important;
}

/* Reduce extra bottom spacing on the whole home section */
#home.section {
    padding-bottom: 0 !important;
}

/* Stop active section from artificially stretching */
.section.active {
    flex: 0 0 auto !important;
}

/* Footer should visually attach to the partnerships section */
.site-footer {
    margin-top: 0 !important;
    padding-top: 14px !important;
}

/* Remove leftover space between partnerships block and footer */
.partnerships-section + .site-footer,
#home + .site-footer {
    margin-top: 0 !important;
}

/* ======================================
   FIX: ADD SPACE ABOVE PARTNERSHIPS BLOCK
   Place at VERY END of styles.css
====================================== */

/* Add breathing room between About card and partnerships area */
.partnerships-section {
    margin-top: 32px !important;
    padding-top: 32px !important;
}

/* Keep the beige partnerships card from sticking to the top */
.partnerships-section .image-card-layout.conference-partnerships {
    margin-top: 0 !important;
}

/* If home-level overrides are compressing everything, relax them here */
#home.section {
    padding-top: 32px !important;
}

/* ======================================
   FINAL FIX: FULL-WIDTH PARTNERSHIPS BAND
   Place at VERY END of styles.css
====================================== */

/* Make the partnerships band stretch edge-to-edge */
.partnerships-section {
    background: #00124b !important;

    width: 100vw !important;
    max-width: 100vw !important;

    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    margin-top: 40px !important;
    margin-bottom: 0 !important;

    padding: 32px 20px 8px !important;
    box-sizing: border-box !important;
}

/* Keep the inner content neatly centered inside the full-width navy band */
.partnerships-section .image-card-layout.conference-partnerships,
.partnerships-section .home-tabs {
    width: min(100%, 1100px) !important;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Title card spacing */
.partnerships-section .image-card-layout.conference-partnerships {
    margin-top: 0 !important;
    margin-bottom: 34px !important;
    background: #d0caa7 !important;
}

/* Logo row stays transparent inside the navy band */
.partnerships-section .home-tabs {
    background: transparent !important;
    padding: 0 !important;
}

/* Remove any leftover section side constraints affecting this band */
#home .partnerships-section {
    position: relative;
    left: 0;
    right: 0;
}

/* ======================================
   FINAL FIX: STABLE SECTION VIDEO BACKGROUNDS
   Place at VERY END of styles.css
====================================== */

/* Each section should own its own background layers */
.section {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
}

/* Video belongs to the section, not the viewport */
.section .video-bg {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* Actual video fills the whole section area */
.section .video-bg video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Section tint belongs to the section too */
.section::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* All visible section content sits above video + tint */
.section > *:not(.video-bg) {
    position: relative !important;
    z-index: 2 !important;
}

/* Make the About tint lighter so the video is visible */
#about::before {
    background: rgba(214, 178, 94, 0.18) !important;
}

/* Optional: keep the other sections as they are */
#home::before {
    background: rgba(214, 178, 94, 0.28) !important;
}

#conferences::before {
    background: rgba(10, 40, 95, 0.40) !important;
}

#membership::before {
    background: rgba(60, 20, 80, 0.35) !important;
}

#news::before {
    background: rgba(120, 60, 10, 0.30) !important;
}

#about .video-bg video {
    object-fit: cover;
    transform: scale(1.0);
    object-position: center 30%; /* shifts focus upward */
}

/* ======================================
   STEP 6: HOME PAGE ENTRY CARD UPGRADE
====================================== */

.home-tabs {
    width: min(100%, 1100px) !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px !important;
    padding: 0 !important;
    background: transparent !important;
}

.home-tab {
    position: relative;
    min-height: 260px;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        filter 0.35s ease;
}

.home-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(7, 25, 46, 0.18) 0%,
        rgba(7, 25, 46, 0.58) 55%,
        rgba(7, 25, 46, 0.82) 100%
    );
    z-index: 1;
    transition: background 0.35s ease;
}

.home-tab:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
    filter: saturate(1.05);
}

.home-tab:hover::before {
    background: linear-gradient(
        180deg,
        rgba(7, 25, 46, 0.10) 0%,
        rgba(7, 25, 46, 0.48) 50%,
        rgba(7, 25, 46, 0.78) 100%
    );
}

.home-tab-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: #ffffff;
    text-align: left;
}

.home-tab-overlay h3 {
    margin: 0 0 10px 0;
    color: #ffffff !important;
    font-size: clamp(1.25rem, 1.5vw, 1.55rem);
    line-height: 1.15;
}

.home-tab-overlay h3::after {
    display: none !important;
}

.home-tab-overlay p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 90%;
}

/* Small gold accent */
.home-tab-overlay h3 {
    position: relative;
    padding-left: 14px;
}

.home-tab-overlay h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: #d6b25e;
}

@media (max-width: 768px) {
    .home-tab {
        min-height: 220px;
    }

    .home-tab-overlay {
        padding: 20px;
    }

    .home-tab-overlay p {
        max-width: 100%;
        font-size: 0.94rem;
    }
}

.partnerships-section .image-card-layout.conference-partnerships {
    background: #d0caa7 !important;
    border: 1px solid rgba(7, 25, 46, 0.18) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12) !important;
}

.home-tab {
    animation: homeCardRise 0.7s ease both;
}

.home-tab:nth-child(1) { animation-delay: 0.05s; }
.home-tab:nth-child(2) { animation-delay: 0.12s; }
.home-tab:nth-child(3) { animation-delay: 0.19s; }
.home-tab:nth-child(4) { animation-delay: 0.26s; }

@keyframes homeCardRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================================
   PREMIUM MEMBERSHIP FORM
====================================== */

.membership-form-shell {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 248, 231, 0.96);
    border: 1px solid rgba(7, 25, 46, 0.12);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
    padding: clamp(24px, 4vw, 42px);
}

.membership-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.membership-form-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(214, 178, 94, 0.18);
    border: 1px solid rgba(214, 178, 94, 0.8);
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.membership-form-header h3 {
    margin-bottom: 12px;
    color: var(--primary-green);
}

.membership-form-header p {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
    color: #333;
}

.membership-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    background: #fffdf7;
    border: 1px solid rgba(7, 25, 46, 0.08);
    border-radius: 16px;
    padding: 22px;
}

.form-section h4 {
    margin-bottom: 16px;
    color: var(--primary-green);
    font-size: 1.05rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(7, 25, 46, 0.14);
    border-radius: 12px;
    background: #ffffff;
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #d6b25e;
    box-shadow: 0 0 0 4px rgba(214, 178, 94, 0.18);
    background: #fffefb;
}

.membership-form-footer {
    text-align: center;
    margin-top: 6px;
}

.membership-form-footer button {
    min-width: 260px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: var(--primary-green);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.membership-form-footer button:hover {
    transform: translateY(-2px);
    background: #d6b25e;
    color: #07192e;
}

.membership-support-text {
    margin-top: 14px;
    font-size: 0.95rem;
    color: #444;
}

.membership-support-text a {
    color: var(--primary-green);
    font-weight: 700;
    text-decoration: none;
}

.membership-support-text a:hover {
    text-decoration: underline;
}

.form-success {
    margin-top: 20px;
    text-align: center;
    border-radius: 12px;
    padding: 14px 16px;
}

@media (max-width: 768px) {
    .membership-form-shell {
        padding: 22px 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .membership-form-footer button {
        width: 100%;
        min-width: 0;
    }
}

/* ======================================
   PARTNERSHIP LOGO SIZE REDUCTION
====================================== */

.partnerships-section .home-tabs {
    gap: 24px !important;
    padding-top: 0 !important;
}

.partnerships-section .home-tab {
    width: 190px !important;
    height: 115px !important;
    min-height: 115px !important;
    border-radius: 12px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14) !important;
}

@media (max-width: 768px) {
    .partnerships-section .home-tab {
        width: 150px !important;
        height: 95px !important;
        min-height: 95px !important;
    }
}

/* ======================================
   SCROLL FIX
   Restore normal page scrolling
====================================== */

html,
body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100% !important;
    overscroll-behavior-y: auto !important;
}

/* Let the page scroll naturally */
main,
.section,
.section.active,
.subsection,
.subsection.active {
    overflow: visible !important;
    overscroll-behavior: auto !important;
}

/* Remove layout containment that can interfere with scrolling */
.section,
.subsection {
    contain: none !important;
}

/* Make sure overlays never trap input */
.section::before,
.video-bg,
.video-bg video {
    pointer-events: none !important;
}

/* Keep visible content interactive */
.section > *:not(.video-bg),
.subsection > * {
    pointer-events: auto !important;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.logo-card:hover {
  transform: scale(1.05);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.phone-field-advanced {
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 12px;
    align-items: start;
}

.country-picker {
    position: relative;
    width: 100%;
}

.country-picker-toggle {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid rgba(7, 25, 46, 0.14);
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.96rem;
    text-align: left;
}

.country-picker-toggle:focus {
    outline: none;
    border-color: #d6b25e;
    box-shadow: 0 0 0 4px rgba(214, 178, 94, 0.18);
}

.country-caret {
    margin-left: auto;
    font-size: 0.9rem;
}

.country-picker-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    max-height: 320px;
    background: #ffffff;
    border: 1px solid rgba(7, 25, 46, 0.12);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
    padding: 10px;
    display: none;
    z-index: 50;
}

.country-picker.open .country-picker-dropdown {
    display: block;
}

.country-search {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(7, 25, 46, 0.12);
    border-radius: 10px;
    margin-bottom: 10px;
}

.country-options {
    max-height: 240px;
    overflow-y: auto;
}

.country-option {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
}

.country-option:hover {
    background: rgba(214, 178, 94, 0.14);
}

.country-option-flag {
    width: 24px;
    text-align: center;
    font-size: 1rem;
}

.country-option-name {
    flex: 1;
    color: #1f2937;
}

.country-option-code {
    color: #16623f;
    font-weight: 700;
}

#phone {
    width: 100%;
}

.input-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .phone-field-advanced {
        grid-template-columns: 1fr;
    }
}

.home-tab {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 150px !important;
        min-height: 150px !important;
        margin: 0 !important;
        border-radius: 14px !important;
    }

    .home-tab-overlay {
        padding: 16px !important;
    }

    .home-tab-overlay h3 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }

    .home-tab-overlay p {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
    }
}

/* ======================================
   HEADER FIX: MOBILE LOGO + TABLET OVERLAP
   Place at VERY END of styles.css
====================================== */

/* ---------- Tablet header cleanup ---------- */
@media (max-width: 1024px) {
    .header {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        align-items: center !important;
        gap: 10px !important;
        min-height: 76px !important;
        height: auto !important;
        padding: 14px 16px !important;
    }

    .logo-bg {
        position: static !important;
        transform: none !important;
        display: block !important;
        height: 52px !important;
        width: 52px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        margin: 0 !important;
    }

    .logo {
        position: static !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        min-width: 0 !important;
    }

    .logo-text,
    .logo-fill {
        position: static !important;
        display: block !important;
        max-width: 100% !important;
        font-size: clamp(18px, 2.2vw, 26px) !important;
        line-height: 1.1 !important;
        letter-spacing: 0.5px !important;
        text-align: center !important;
        white-space: normal !important;
    }

    .header-right {
        position: static !important;
        transform: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 10px !important;
        margin: 0 !important;
    }

    .menu-btn {
        font-size: 24px !important;
        line-height: 1 !important;
    }
}

/* ---------- Mobile-specific refinement ---------- */
@media (max-width: 768px) {
    .header {
        grid-template-columns: auto 1fr auto !important;
        padding: 10px 12px !important;
        min-height: 68px !important;
        gap: 8px !important;
    }

    /* bring logo back on mobile */
    .logo-bg {
        display: block !important;
        height: 42px !important;
        width: 42px !important;
    }

    .logo {
        justify-content: flex-start !important;
    }

    .logo-text,
    .logo-fill {
        font-size: clamp(14px, 3.5vw, 18px) !important;
        letter-spacing: 0.2px !important;
        line-height: 1.05 !important;
        text-align: center !important;
    }

    .header-right {
        justify-content: flex-end !important;
    }

    .menu-btn {
        font-size: 22px !important;
    }
}

/* ---------- Very small phones ---------- */
@media (max-width: 420px) {
    .logo-bg {
        height: 36px !important;
        width: 36px !important;
    }

    .logo-text,
    .logo-fill {
        font-size: 13px !important;
    }

    .menu-btn {
        font-size: 20px !important;
    }
}

.programme-download-card {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
}

/* Layout inside the card */
.download-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Icon styling */
.download-icon {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

/* Subtle hover effect */
.programme-download-card:hover .download-icon {
    transform: translateY(2px);
}

/* Force white text inside the download card */
.conference-card-large.programme-download-card,
.conference-card-large.programme-download-card * {
    color: #ffffff !important;
}

/* Fix SVG icon */
.conference-card-large.programme-download-card .download-icon {
    fill: #ffffff !important;
}

/* ======================================
   FINAL MOBILE HEADER FIX
====================================== */

@media (max-width: 768px) {
    .header {
        display: grid !important;
        grid-template-columns: 52px 1fr 44px !important;
        align-items: center !important;
        gap: 10px !important;
        min-height: 78px !important;
        padding: 12px 14px !important;
    }

    .logo-bg {
        display: block !important;
        position: static !important;
        transform: none !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 3 !important;
    }

    .logo {
        position: static !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .logo-text,
    .logo-fill {
        position: static !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
        white-space: normal !important;
        line-height: 1.08 !important;
        letter-spacing: 0.2px !important;
        font-size: clamp(16px, 3.8vw, 20px) !important;
    }

    .header-right {
        position: static !important;
        transform: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        width: 44px !important;
        min-width: 44px !important;
        margin: 0 !important;
        z-index: 3 !important;
    }

    .menu-btn {
        font-size: 24px !important;
        width: 40px !important;
        height: 40px !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Extra-small phones */
@media (max-width: 420px) {
    .header {
        grid-template-columns: 44px 1fr 40px !important;
        min-height: 72px !important;
        padding: 10px 12px !important;
    }

    .logo-bg {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
    }

    .logo-text,
    .logo-fill {
        font-size: clamp(14px, 4vw, 17px) !important;
    }

    .menu-btn {
        font-size: 22px !important;
        width: 36px !important;
        height: 36px !important;
    }
}

/* ======================================
   MOBILE DROPDOWN MENU SIZE FIX
====================================== */

@media (max-width: 768px) {
    .dropdown-menu {
        top: 56px !important;
        right: 12px !important;
        min-width: 220px !important;
        border-radius: 12px !important;
        padding: 6px 0 !important;
    }

    .dropdown-menu a {
        padding: 14px 16px !important;
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 420px) {
    .dropdown-menu {
        min-width: 200px !important;
        right: 10px !important;
    }

    .dropdown-menu a {
        font-size: 0.96rem !important;
        padding: 13px 14px !important;
    }
}

/* ======================================
   BACKGROUND VIDEO UI FIX
====================================== */

.video-bg video {
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    object-fit: cover !important;
    background: transparent !important;
}

/* Hide iOS / WebKit media overlays where possible */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

/* ======================================
   MAINTENANCE BANNER
====================================== */

.maintenance-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #d6b25e; /* your gold accent */
    color: #000843; /* your navy */
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideDown 0.4s ease;
}

.maintenance-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.maintenance-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

.maintenance-close {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #000843;
}

/* Push header down so it doesn't overlap */
body.has-banner .header {
    margin-top: 50px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .maintenance-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .maintenance-text {
        font-size: 0.85rem;
    }

    body.has-banner .header {
        margin-top: 70px;
    }
}

/* Animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

