/* ==========================================================================
   DESIGN SYSTEM & CSS CUSTOM PROPERTIES
   ========================================================================== */

/* ----- LIGHT MODE (default) ----- */
:root {
    /* Brand Colors — AIMN Logo */
    --primary-green:        hsl(149, 85%, 27%);
    --primary-green-hover:  hsl(149, 85%, 20%);
    --primary-green-light:  hsl(149, 55%, 94%);
    --primary-green-glow:   rgba(10, 130, 66, 0.20);

    --accent-red:           hsl(353, 85%, 50%);
    --accent-red-hover:     hsl(353, 85%, 40%);
    --accent-red-light:     hsl(353, 70%, 96%);

    --neutral-brown:        hsl(20, 42%, 25%);
    --neutral-brown-hover:  hsl(20, 42%, 18%);
    --neutral-brown-light:  hsl(20, 30%, 95%);

    /* Neutral Palette */
    --bg-body:              hsl(42, 22%, 97%);
    --bg-surface:           #ffffff;
    --bg-subtle:            hsl(42, 18%, 93%);
    --bg-elevated:          #ffffff;

    /* Text */
    --text-main:            hsl(20, 20%, 10%);
    --text-muted:           hsl(20, 10%, 46%);
    --text-inverse:         #ffffff;

    /* Borders */
    --border-color:         hsl(30, 14%, 86%);
    --border-strong:        hsl(30, 14%, 75%);

    /* Marquee & Ticker */
    --ticker-bg:            hsl(20, 20%, 10%);
    --ticker-text:          hsla(42, 22%, 97%, 0.45);
    --ticker-dot:           var(--primary-green);

    /* Shadows */
    --shadow-sm:  0 1px 4px rgba(60, 30, 10, 0.06);
    --shadow-md:  0 6px 22px rgba(60, 30, 10, 0.09);
    --shadow-lg:  0 16px 44px rgba(60, 30, 10, 0.13);
    --shadow-glow: 0 0 40px var(--primary-green-glow);

    /* Layout */
    --radius-sm:  6px;
    --radius-md:  14px;
    --radius-lg:  24px;
    --radius-pill: 999px;

    /* Transitions */
    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: all 0.3s var(--ease-out);
    --transition-fast: all 0.18s var(--ease-out);

    /* Typography */
    --font-display: 'IBM Plex Sans', 'Outfit', sans-serif;
    --font-body:    'Inter', sans-serif;
}

/* ----- DARK MODE ----- */
[data-theme="dark"] {
    --bg-body:              hsl(20, 10%, 7%);
    --bg-surface:           hsl(20, 10%, 11%);
    --bg-subtle:            hsl(20, 10%, 9%);
    --bg-elevated:          hsl(20, 10%, 14%);

    --text-main:            hsl(42, 18%, 91%);
    --text-muted:           hsl(20, 10%, 58%);
    --text-inverse:         hsl(20, 10%, 7%);

    --border-color:         hsl(20, 10%, 20%);
    --border-strong:        hsl(20, 10%, 28%);

    --bg-body-gradient:     radial-gradient(ellipse 70% 50% at 30% 20%,
                                rgba(10,130,66,0.12) 0%,
                                transparent 60%),
                            radial-gradient(ellipse 60% 50% at 70% 80%,
                                rgba(227,27,35,0.07) 0%,
                                transparent 65%),
                            hsl(20, 10%, 7%);

    --ticker-bg:            hsl(20, 10%, 5%);

    --primary-green-light:  hsl(149, 40%, 14%);
    --accent-red-light:     hsl(353, 40%, 14%);
    --neutral-brown-light:  hsl(20, 30%, 14%);

    --shadow-sm:  0 1px 4px rgba(0, 0, 0, 0.25);
    --shadow-md:  0 6px 22px rgba(0, 0, 0, 0.35);
    --shadow-lg:  0 16px 44px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg-body);
}

body {
    font-family: var(--font-body);
    background: var(--bg-body-gradient, var(--bg-body));
    color: var(--text-main);
    line-height: 1.62;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.4s ease;
}

[data-theme="light"] body {
    background:
        radial-gradient(ellipse 80% 55% at 80% 15%,
            rgba(240, 160, 80, 0.22) 0%,
            rgba(240, 160, 80, 0.08) 40%,
            transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%,
            rgba(10, 130, 66, 0.10) 0%,
            transparent 60%),
        var(--bg-body);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button,
input,
select,
textarea {
    font-family: inherit;
    outline: none;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-green  { color: var(--primary-green); }
.text-red    { color: var(--accent-red); }
.text-brown  { color: var(--neutral-brown); }

.bg-green-light  { background-color: var(--primary-green-light); }
.bg-red-light    { background-color: var(--accent-red-light); }
.bg-brown-light  { background-color: var(--neutral-brown-light); }

/* ---------- Scroll Reveal ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-green);
    color: #ffffff;
    box-shadow: 0 4px 18px var(--primary-green-glow);
}

.btn-primary:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--primary-green-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--neutral-brown);
    border: 2px solid var(--border-strong);
}

[data-theme="dark"] .btn-secondary {
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-subtle);
    border-color: var(--neutral-brown);
    transform: translateY(-2px);
}


.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(250, 248, 244, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.4s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .main-header {
    background-color: rgba(18, 14, 11, 0.88);
    border-bottom-color: var(--border-color);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .main-header.scrolled {
    background-color: rgba(18, 14, 11, 0.96);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.main-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

/* Nav Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    border-radius: 2px;
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Register CTA in nav */
.btn-join-nav {
    background-color: var(--primary-green);
    color: #ffffff !important;
    padding: 9px 22px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 3px 12px var(--primary-green-glow);
}

.btn-join-nav::after { display: none; }

.btn-join-nav:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--primary-green-glow);
}

/* Header Actions (theme toggle + mobile toggle) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Dark mode toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.theme-toggle:hover {
    background-color: var(--bg-subtle);
    color: var(--text-main);
    border-color: var(--border-strong);
    transform: rotate(15deg);
}


.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
}

.mobile-toggle .bar {
    height: 2px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: var(--transition);
    display: block;
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Nav Close button — inside the mobile drawer, hidden on desktop */
.nav-close {
    display: none;          /* hidden on desktop */
    position: absolute;
    top: 18px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    font-size: 1.15rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
    z-index: 10;
}

.nav-close:hover {
    background: var(--primary-green-light);
    color: var(--primary-green);
    border-color: var(--primary-green);
    transform: rotate(90deg) scale(1.1);
}

@media (max-width: 900px) {
    .nav-close {
        display: flex;
    }
}


.hero-section {
    position: relative;
    padding: 160px 0 110px 0;
    overflow: hidden;
}

.hero-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.orb-1 {
    top: 15%;
    left: 5%;
    width: 340px;
    height: 340px;
    background: var(--accent-red);
    opacity: 0.06;
}

.orb-2 {
    bottom: 5%;
    right: 10%;
    width: 420px;
    height: 420px;
    background: var(--primary-green);
    opacity: 0.08;
}

.orb-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: var(--neutral-brown);
    opacity: 0.04;
}

[data-theme="dark"] .orb-1 { opacity: 0.12; }
[data-theme="dark"] .orb-2 { opacity: 0.15; }
[data-theme="dark"] .orb-3 { opacity: 0.06; }

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   POSTAL STAMP BADGE — Hero Section
   ========================================================================== */
.stamp-badge {
    position: relative;
    display: inline-block;
    margin-bottom: 28px;
    /* Padding creates the stamp body zone around the content */
    padding: 14px 22px;
    cursor: default;
}

/* The stamp body — built on ::before using the classic radial-gradient
   perforation technique. Semi-circle "holes" are cut along all 4 edges
   at regular intervals, exactly like a real postage stamp. */
.stamp-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;

    /* 
     * Perforated edges:
     * Each layer is a radial-gradient circle (R=6px) centred ON the edge.
     * Transparent inside the circle → stamp body colour outside → creates holes.
     * Positioned so the circle straddles the edge, punching half-circles inward.
     *
     * Layers 1-2  : top + bottom perforations  (14px period, 12px tall zone)
     * Layers 3-4  : left + right perforations  (12px period, 14px tall zone)
     * Layer  5    : transparent stamp body fill
     */
    background:
        /* ── TOP edge holes ─────────────────────────────────────────── */
        radial-gradient(circle at 50% 0,
            transparent 6px,
            rgba(10, 130, 66, 0.22) 6.5px)
            7px -6px / 14px 12px repeat-x,

        /* ── BOTTOM edge holes ──────────────────────────────────────── */
        radial-gradient(circle at 50% 100%,
            transparent 6px,
            rgba(10, 130, 66, 0.22) 6.5px)
            7px calc(100% + 6px) / 14px 12px repeat-x,

        /* ── LEFT edge holes ────────────────────────────────────────── */
        radial-gradient(circle at 0 50%,
            transparent 6px,
            rgba(10, 130, 66, 0.22) 6.5px)
            -6px 7px / 12px 14px repeat-y,

        /* ── RIGHT edge holes ───────────────────────────────────────── */
        radial-gradient(circle at 100% 50%,
            transparent 6px,
            rgba(10, 130, 66, 0.22) 6.5px)
            calc(100% + 6px) 7px / 12px 14px repeat-y,

        /* ── Stamp body — very transparent green wash ───────────────── */
        rgba(10, 130, 66, 0.07);

    /* Subtle inner glow so edges "glow" on dark bg */
    box-shadow:
        inset 0 0 0 1.5px rgba(10, 130, 66, 0.18),
        0 0 18px rgba(10, 130, 66, 0.10);
}

/* Inner dashed frame — the classic stamp "picture frame" line */
.stamp-badge::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1.5px dashed rgba(10, 130, 66, 0.50);
    border-radius: 2px;
    pointer-events: none;
}

/* Dark mode adjustments */
[data-theme="dark"] .stamp-badge::before {
    background:
        radial-gradient(circle at 50% 0,
            transparent 6px,
            rgba(10, 130, 66, 0.30) 6.5px)
            7px -6px / 14px 12px repeat-x,
        radial-gradient(circle at 50% 100%,
            transparent 6px,
            rgba(10, 130, 66, 0.30) 6.5px)
            7px calc(100% + 6px) / 14px 12px repeat-x,
        radial-gradient(circle at 0 50%,
            transparent 6px,
            rgba(10, 130, 66, 0.30) 6.5px)
            -6px 7px / 12px 14px repeat-y,
        radial-gradient(circle at 100% 50%,
            transparent 6px,
            rgba(10, 130, 66, 0.30) 6.5px)
            calc(100% + 6px) 7px / 12px 14px repeat-y,
        rgba(10, 130, 66, 0.12);
    box-shadow:
        inset 0 0 0 1.5px rgba(10, 130, 66, 0.28),
        0 0 22px rgba(10, 130, 66, 0.18);
}

[data-theme="dark"] .stamp-badge::after {
    border-color: rgba(10, 130, 66, 0.45);
}

/* Content inside the stamp */
.stamp-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stamp-icon {
    font-size: 1.3rem;
    color: var(--primary-green);
    opacity: 0.75;
    margin-bottom: 2px;
}

.stamp-label {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary-green);
    opacity: 0.80;
    line-height: 1;
}

.stamp-year {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary-green);
    line-height: 1;
}

/* Hover: stamp lifts and glows */
.stamp-badge:hover::before {
    box-shadow:
        inset 0 0 0 1.5px rgba(10, 130, 66, 0.28),
        0 0 32px rgba(10, 130, 66, 0.20);
    background:
        radial-gradient(circle at 50% 0,
            transparent 6px,
            rgba(10, 130, 66, 0.28) 6.5px)
            7px -6px / 14px 12px repeat-x,
        radial-gradient(circle at 50% 100%,
            transparent 6px,
            rgba(10, 130, 66, 0.28) 6.5px)
            7px calc(100% + 6px) / 14px 12px repeat-x,
        radial-gradient(circle at 0 50%,
            transparent 6px,
            rgba(10, 130, 66, 0.28) 6.5px)
            -6px 7px / 12px 14px repeat-y,
        radial-gradient(circle at 100% 50%,
            transparent 6px,
            rgba(10, 130, 66, 0.28) 6.5px)
            calc(100% + 6px) 7px / 12px 14px repeat-y,
        rgba(10, 130, 66, 0.11);
}

.stamp-badge:hover {
    transform: translateY(-2px) rotate(-1deg);
    transition: transform 0.35s var(--ease-spring);
}


/* Hero Title */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.6vw, 3rem);
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(0.92rem, 1.1vw, 1.05rem);
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.72;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Hero Image wrapper */
.hero-image-content {
    display: flex;
    justify-content: center;
}

.hero-frame {
    position: relative;
    width: 100%;
    max-width: 440px;
}

/* Hero Slideshow (replaces static image) */
.hero-slideshow {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--bg-surface);
    background: var(--bg-subtle);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.85s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dot indicators */
.slideshow-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s var(--ease-out);
    flex-shrink: 0;
}

.dot.active {
    width: 24px;
    border-radius: 4px;
    background: #ffffff;
}

/* Prev / Next arrows */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: #ffffff;
    font-size: 0.85rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.slide-arrow:hover {
    background: rgba(255, 255, 255, 0.38);
    transform: translateY(-50%) scale(1.08);
}

.slide-prev { left: 12px; }
.slide-next { right: 12px; }

.hero-badge-card {
    position: absolute;
    bottom: -22px;
    left: -22px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    animation: float 4.5s ease-in-out infinite alternate;
}

[data-theme="dark"] .hero-badge-card {
    background: rgba(30, 22, 16, 0.80);
    border-color: var(--border-color);
}

@keyframes float {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(-12px); }
}

.hero-badge-logo {
    height: 50px;
    width: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.hero-badge-card h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.hero-badge-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   MARQUEE TICKER
   ========================================================================== */
.marquee-ticker {
    width: 100%;
    background-color: var(--ticker-bg);
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: marquee 32s linear infinite;
    will-change: transform;
}

.marquee-ticker:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee-item {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ticker-text);
    padding: 0 20px;
    white-space: nowrap;
}

.marquee-dot {
    color: var(--ticker-dot);
    font-size: 0.8rem;
    flex-shrink: 0;
    opacity: 0.7;
}

/* ==========================================================================
   SECTION COMMON HEADER
   ========================================================================== */
.section-header {
    max-width: 680px;
    margin: 0 auto 64px auto;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    color: var(--accent-red);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 18px;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.title-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-red));
    margin: 0 auto 20px auto;
    border-radius: 3px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.72;
}


.about-section {
    padding: 110px 0;
    background-color: var(--bg-surface);
}

/* ==========================================================================
   ABOUT TIMELINE — desktop: vertical alternating layout with zoom-fade scroll
   Mobile: horizontal scroll (handled in @media block further below)
   ========================================================================== */

/* ── Timeline wrapper ── */
.about-timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto 80px;
    padding: 0 0 20px;
}

/* ── Centre vertical line ── */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--primary-green) 8%,
        var(--primary-green) 92%,
        transparent 100%
    );
    opacity: 0.35;
    pointer-events: none;
}

[data-theme="dark"] .timeline-line {
    opacity: 0.25;
}

/* ── Timeline card base (resets ghost-card hover translateX) ── */
.tl-card {
    width: calc(50% - 48px);
    margin-bottom: 40px;
    /* zoom-fade starting state */
    opacity: 0;
    transform: scale(0.88) translateY(24px);
    transition:
        opacity 0.55s cubic-bezier(.22,.68,0,1.2),
        transform 0.55s cubic-bezier(.22,.68,0,1.2),
        box-shadow var(--transition),
        border-color var(--transition);
}

/* Override ghost-card hover so it scales instead of translateX */
.tl-card:hover {
    transform: scale(1.025) translateY(-2px) !important;
    box-shadow: var(--shadow-md);
}

/* ── Alternating positions ── */
.tl-card:nth-child(odd) {
    margin-left: 0;
    margin-right: auto;
}

.tl-card:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
}

/* ── Scroll-reveal: JS adds .tl-visible ── */
.tl-card.tl-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* ── Timeline connecting node (numbered dot) ── */
.timeline-node {
    position: absolute;
    top: 28px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary-green);
    letter-spacing: 0;
    z-index: 2;
    box-shadow: 0 0 0 5px var(--bg-surface);
    transition: background 0.3s, color 0.3s;
}

/* Odd cards → node on right edge pointing toward the line */
.tl-card:nth-child(odd) .timeline-node {
    right: -67px;
}

/* Even cards → node on left edge pointing toward the line */
.tl-card:nth-child(even) .timeline-node {
    left: -67px;
}

/* Active state: node fills green on hover */
.tl-card:hover .timeline-node {
    background: var(--primary-green);
    color: #fff;
}

/* ── Connector line from card to centre line ── */
.tl-card::before {
    content: '';
    position: absolute;
    top: 46px;
    width: 28px;
    height: 2px;
    background: var(--primary-green);
    opacity: 0.3;
}

.tl-card:nth-child(odd)::before  { right: -30px; }
.tl-card:nth-child(even)::before { left: -30px; }


/* ==========================================================================
   GHOST-NUMBER ABOUT CARDS (staysafewithseun style)
   ========================================================================== */
.about-ghost-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 26px 24px 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.about-ghost-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

/* Big transparent ghost number in top-right corner */
.ghost-number {
    position: absolute;
    top: -12px;
    right: 10px;
    font-family: var(--font-display);
    font-size: 7.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text-main);
    opacity: 0.045;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.35s ease;
}

.about-ghost-card:hover .ghost-number {
    opacity: 0.075;
}

[data-theme="dark"] .ghost-number {
    opacity: 0.09;
}

[data-theme="dark"] .about-ghost-card:hover .ghost-number {
    opacity: 0.15;
}

/* Small icon */
.ghost-card-icon {
    font-size: 1.1rem;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.about-ghost-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 2px;
    letter-spacing: -0.01em;
}

.about-ghost-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* About timeline mobile nav — dot indicators + counter (hidden on desktop) */
.about-mobile-nav {
    display: none;         /* hidden on desktop */
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .about-mobile-nav {
        display: flex;
    }
}

.about-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.about-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: var(--border-strong);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, width 0.3s;
}

.about-dot.about-dot-active {
    background: var(--primary-green);
    width: 20px;
    border-radius: 4px;
}

.about-counter {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Progress bar that drains while a card is visible */
.about-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--primary-green);
    border-radius: 0 2px 2px 0;
    opacity: 0.65;
    width: 0%;
    transition: width linear;
}


/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: linear-gradient(135deg,
        var(--neutral-brown) 0%,
        var(--neutral-brown-hover) 60%,
        hsl(20, 42%, 18%) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .stats-grid {
    background: linear-gradient(135deg,
        hsl(20, 30%, 15%) 0%,
        hsl(149, 40%, 12%) 100%);
    border: 1px solid var(--border-color);
}

.stat-box {
    position: relative;
    padding: 48px 24px;
    text-align: center;
    color: #ffffff;
}

.stat-box:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-red);
}

.stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.62);
    margin-top: 8px;
    font-family: var(--font-body);
}


.leadership-section {
    padding: 110px 0;
    background-color: var(--bg-body);
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.leader-skeleton {
    grid-column: 1 / -1;
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
    padding: 48px;
}

.leader-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.leader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neutral-brown), var(--primary-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.leader-card:hover::before {
    transform: scaleX(1);
}

.leader-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--bg-subtle);
    position: relative;
}

.leader-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.leader-card:hover .leader-img {
    transform: scale(1.06);
}

.leader-info {
    padding: 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.leader-name {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.leader-role {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--accent-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: var(--accent-red-light);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
}

.leader-email {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    word-break: break-all;
}

.leader-email i { margin-right: 4px; }

.leader-linkedin {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    background-color: var(--primary-green-light);
    color: var(--primary-green);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.leader-linkedin:hover {
    background-color: var(--primary-green);
    color: #ffffff;
}

/* ==========================================================================
   GALLERY SECTION — Carousel
   ========================================================================== */
.gallery-section {
    padding: 110px 0;
    background-color: var(--bg-surface);
}

/* ── Carousel wrapper ── */
.gallery-carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 7;
    background: #0d0d0d;
    cursor: pointer;
}

@media (max-width: 640px) {
    .gallery-carousel { aspect-ratio: 4 / 3; }
}
@media (max-width: 380px) {
    .gallery-carousel { aspect-ratio: 1 / 1; }
}

/* ── Track: all slides sit behind each other ── */
.gallery-carousel-track {
    position: absolute;
    inset: 0;
}

/* ── Each slide ── */
.gc-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.75s ease;
    overflow: hidden;
}

.gc-slide.gc-active {
    opacity: 1;
    z-index: 1;
}

/* ── Ken Burns zoom on the active image ── */
.gc-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 6s ease-out;
}

.gc-slide.gc-active img {
    transform: scale(1.06);
}

/* ── Caption overlay ── */
.gc-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 56px 32px 28px;
    background: linear-gradient(
        to top,
        rgba(8, 5, 2, 0.92) 0%,
        rgba(8, 5, 2, 0.5) 60%,
        transparent 100%
    );
    transform: translateY(12px);
    opacity: 0;
    transition: opacity 0.5s 0.2s ease, transform 0.5s 0.2s ease;
}

.gc-slide.gc-active .gc-caption {
    opacity: 1;
    transform: translateY(0);
}

.gc-caption-cat {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-green);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(var(--primary-green-rgb, 34,197,94), 0.4);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 8px;
}

.gc-caption h4 {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 5px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.gc-caption p {
    font-size: clamp(0.78rem, 1.5vw, 0.9rem);
    color: rgba(255,255,255,0.68);
    line-height: 1.55;
    margin: 0;
    max-width: 560px;
}

/* ── Navigation Arrows ── */
.gc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.25s;
    backdrop-filter: blur(4px);
}

.gc-arrow:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-50%) scale(1.1);
}

.gc-prev { left: 20px; }
.gc-next { right: 20px; }

/* ── Dot indicators ── */
.gc-dots {
    position: absolute;
    bottom: 18px;
    right: 24px;
    z-index: 10;
    display: flex;
    gap: 7px;
    align-items: center;
}

.gc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: background 0.25s, width 0.25s;
    padding: 0;
}

.gc-dot.gc-dot-active {
    background: var(--primary-green);
    width: 22px;
    border-radius: 4px;
}

/* ── Slide counter badge ── */
.gc-counter {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 10;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.55);
    background: rgba(0,0,0,0.3);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(4px);
}


/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(8, 5, 3, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}

.lightbox.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
}

.lightbox-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-fast);
}

.lightbox-arrow:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.arrow-prev { left: 24px; }
.arrow-next { right: 24px; }

.lightbox-content {
    max-width: 900px;
    width: 90%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7);
}

.lightbox-content img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #111;
}

.lightbox-caption {
    padding: 20px 24px;
    background: rgba(20, 12, 8, 0.95);
}

.lightbox-category {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-red);
    display: block;
    margin-bottom: 6px;
}

.lightbox-text {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.55;
}

/* ==========================================================================
   JOIN SECTION
   ========================================================================== */
.join-section {
    padding: 110px 0;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.join-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-green-glow) 0%, transparent 70%);
    pointer-events: none;
}

.join-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
}

/* Join Info */
.join-info .section-tag {
    display: block;
    margin-bottom: 12px;
}

.join-info h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 18px;
}

.lead-text {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.72;
    margin-bottom: 36px;
}

.membership-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--primary-green);
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    background: var(--primary-green);
    color: #ffffff;
}

.benefit-card h5 {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.benefit-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Form Wrapper */
.join-form-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

[data-theme="dark"] .join-form-wrapper {
    background: var(--bg-elevated);
}

.form-header {
    padding: 28px 32px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
    padding-bottom: 24px;
}

.form-header h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.interest-form {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.captcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.form-row.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    color: var(--text-main);
}

.required { color: var(--accent-red); }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    color: var(--text-main);
    background: var(--bg-body);
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

[data-theme="dark"] .input-wrapper input,
[data-theme="dark"] .input-wrapper select {
    background: var(--bg-body);
    color: var(--text-main);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px var(--primary-green-glow);
    background: var(--bg-surface);
    outline: none;
}

textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    color: var(--text-main);
    background: var(--bg-body);
    resize: vertical;
    min-height: 110px;
    transition: var(--transition);
    line-height: 1.6;
}

[data-theme="dark"] textarea {
    background: var(--bg-body);
    color: var(--text-main);
}

textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px var(--primary-green-glow);
    background: var(--bg-surface);
    outline: none;
}

/* Submit button */
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: linear-gradient(135deg, var(--primary-green), hsl(149, 80%, 22%));
    color: #ffffff;
    width: 100%;
    box-shadow: 0 4px 18px var(--primary-green-glow);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--primary-green-glow);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Form status messages */
.form-status {
    font-size: 0.88rem;
    border-radius: var(--radius-md);
    padding: 0;
    min-height: 0;
    transition: var(--transition);
}

.form-status.success {
    padding: 14px 18px;
    background: var(--primary-green-light);
    color: var(--primary-green);
    border: 1px solid rgba(10, 130, 66, 0.25);
}

.form-status.error {
    padding: 14px 18px;
    background: var(--accent-red-light);
    color: var(--accent-red);
    border: 1px solid rgba(227, 27, 35, 0.25);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background: linear-gradient(
        160deg,
        var(--neutral-brown) 0%,
        var(--neutral-brown-hover) 100%
    );
    color: rgba(255, 255, 255, 0.85);
    padding-top: 72px;
}

[data-theme="dark"] .main-footer {
    background: linear-gradient(
        160deg,
        hsl(20, 14%, 9%) 0%,
        hsl(20, 10%, 7%) 100%
    );
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-brand .footer-logo {
    height: 52px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.72;
    max-width: 340px;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.68);
    transition: var(--transition-fast);
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-green);
    transition: width 0.3s var(--ease-out);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
}

.footer-contact i {
    margin-top: 2px;
    color: var(--primary-green);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 24px;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.7;
}

.footer-credits {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.28);
}

/* ==========================================================================
   RESPONSIVE — MOBILE & TABLET
   ========================================================================== */
@media (max-width: 1100px) {
    .hero-container {
        gap: 36px;
    }

    .join-grid {
        gap: 44px;
    }
}

@media (max-width: 900px) {
    /* Mobile nav overlay */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--bg-surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 28px 32px;
        gap: 4px;
        transition: right 0.4s var(--ease-out);
        box-shadow: var(--shadow-lg);
        z-index: 999;
        border-left: 1px solid var(--border-color);
        overflow-y: auto;
    }

    [data-theme="dark"] .nav-menu {
        background: var(--bg-elevated);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 0.88rem;
        padding: 13px 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .btn-join-nav {
        margin-top: 16px;
        padding: 12px 24px;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
        display: block;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Hero */
    .hero-section {
        padding: 110px 0 72px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .hero-text-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        max-width: 480px;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-image-content {
        order: -1;
    }

    .hero-frame {
        max-width: 340px;
        margin: 0 auto;
    }

    .hero-slideshow {
        aspect-ratio: 3 / 3;
    }

    .hero-badge-card {
        bottom: -16px;
        left: -10px;
        padding: 10px 14px;
        gap: 10px;
    }

    /* ────────────────────────────────────────────────────────
       ABOUT TIMELINE — mobile: flat horizontal scroll
       (timeline line, nodes, alternating layout all hidden)
    ──────────────────────────────────────────────────────── */
    .about-section { padding: 72px 0 64px; }

    /* Hide the timeline structural decorations on mobile */
    .timeline-line,
    .timeline-node,
    .tl-card::before { display: none !important; }

    /* Timeline wrapper becomes a horizontal scroll track */
    .about-timeline {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 14px;
        padding-bottom: 18px;
        margin: 0 0 32px;
        max-width: 100%;
        -webkit-mask-image: linear-gradient(
            to right, black 0%, black calc(100% - 52px), transparent 100%
        );
        mask-image: linear-gradient(
            to right, black 0%, black calc(100% - 52px), transparent 100%
        );
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .about-timeline::-webkit-scrollbar { display: none; }

    /* Each tl-card becomes a fixed-width swipeable card */
    .tl-card {
        flex: 0 0 80vw;
        max-width: 320px;
        min-width: 240px;
        width: auto;
        margin: 0;             /* reset desktop alternating margins */
        scroll-snap-align: start;
        padding: 22px 20px;
        /* Override desktop animation — show immediately on mobile */
        opacity: 1 !important;
        transform: none !important;
        transition: box-shadow var(--transition), border-color var(--transition);
    }

    .ghost-number {
        font-size: 5.5rem;
        top: -10px;
    }


    /* ── LEADERSHIP — 2-column grid on mobile ── */
    .leadership-section { padding: 72px 0; }

    .leaders-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .leader-card {
        flex: unset;
        max-width: unset;
        min-width: unset;
        scroll-snap-align: unset;
    }


    /* ── MEMBERSHIP BENEFITS — vertical stack on mobile ── */
    .membership-benefits {
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow-x: visible;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .benefit-card {
        flex: unset;
        max-width: unset;
        min-width: unset;
        scroll-snap-align: unset;
        flex-direction: row;
        align-items: flex-start;
        padding: 16px;
    }

    /* ────────────────────────────────────────────────────────
       GALLERY — 2-col grid (filter system makes scroll complex)
    ──────────────────────────────────────────────────────── */
    .gallery-section { padding: 72px 0; }

    /* Hero font reductions at tablet size */
    .hero-title {
        font-size: clamp(1.75rem, 4.5vw, 2.6rem);
    }

    .hero-subtitle {
        font-size: 0.94rem;
        max-width: 440px;
    }

    .section-desc {
        font-size: 0.94rem;
    }

    /* ────────────────────────────────────────────────────────
       STATS — keep all 4 in one row, shrink fonts to fit
    ──────────────────────────────────────────────────────── */
    .stats-grid {
        /* Stay 4-column — just reduce sizes */
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-box {
        padding: 28px 8px;
    }

    .stat-number {
        font-size: clamp(1.4rem, 3.5vw, 2.4rem);
    }

    .stat-plus {
        font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    }

    .stat-label {
        font-size: clamp(0.55rem, 1.1vw, 0.72rem);
        letter-spacing: 0.04em;
    }

    /* Join */
    .join-section { padding: 72px 0; }

    .join-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .form-row.split {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    /* Header */
    .header-container {
        height: 64px;
        padding: 0 16px;
    }

    .main-logo {
        height: 42px;
    }

    /* Hero */
    .hero-section {
        padding: 90px 0 60px;
    }

    .hero-title {
        font-size: clamp(1.65rem, 7vw, 2.2rem);
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-frame {
        max-width: 280px;
    }

    .hero-slideshow {
        aspect-ratio: 1 / 1;
    }

    .hero-badge-card {
        bottom: -12px;
        left: -8px;
        padding: 8px 12px;
        gap: 8px;
    }

    .hero-badge-logo {
        height: 36px;
        width: 36px;
    }

    .hero-badge-card h4 { font-size: 0.82rem; }
    .hero-badge-card p  { font-size: 0.7rem; }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    /* Stamp badge — scale down on small screens */
    .stamp-badge {
        padding: 10px 16px;
        margin-bottom: 22px;
    }

    .stamp-year {
        font-size: 1.3rem;
    }

    .stamp-icon {
        font-size: 1.1rem;
    }

    .stamp-label {
        font-size: 0.55rem;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 32px;
        padding: 0 4px;
    }

    .section-tag {
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }

    .section-title {
        font-size: clamp(1.4rem, 5.5vw, 1.85rem);
        margin-bottom: 12px;
    }

    .section-desc {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    /* Marquee */
    .marquee-item {
        font-size: 0.63rem;
        padding: 0 10px;
    }

    /* About */
    .about-section { padding: 56px 0; }

    /* Tighter cards at small phone size */
    .about-cards-row .about-ghost-card {
        flex: 0 0 84vw;
        padding: 18px 16px;
    }

    .ghost-number {
        font-size: 4.5rem;
        top: -5px;
    }

    .about-ghost-card h4 {
        font-size: 0.95rem;
    }

    .about-ghost-card p {
        font-size: 0.84rem;
    }


    /* ── STATS — keep all 4 counters on one row, shrink fonts ── */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-box {
        padding: 20px 6px;
    }

    .stat-number {
        /* Very tight clamp so 4-digit numbers still fit at 320px */
        font-size: clamp(1.15rem, 5vw, 1.8rem);
    }

    .stat-plus {
        font-size: clamp(0.9rem, 3.5vw, 1.4rem);
    }

    .stat-label {
        font-size: clamp(0.48rem, 1.5vw, 0.65rem);
        letter-spacing: 0.02em;
    }

    /* Leaders */
    .leadership-section { padding: 56px 0; }

    .leaders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .leader-info {
        padding: 12px;
    }

    .leader-name { font-size: 0.85rem; }
    .leader-role { font-size: 0.62rem; }
    .leader-email { display: none; }
    .leader-linkedin { font-size: 0.75rem; padding: 7px 10px; }

    /* Gallery */
    .gallery-section { padding: 60px 0; }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .gallery-filters {
        gap: 7px;
    }

    .filter-btn {
        padding: 7px 14px;
        font-size: 0.75rem;
    }

    /* ── JOIN / CONTACT FORM — mobile polish ── */
    .join-section { padding: 56px 0; }

    .join-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .join-info h2 {
        font-size: clamp(1.25rem, 5vw, 1.65rem);
    }

    .lead-text {
        font-size: 0.88rem;
        margin-bottom: 24px;
    }

    /* Benefit cards — tighter on mobile */
    .benefit-card {
        padding: 14px 12px;
        gap: 12px;
    }

    .benefit-icon {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    .benefit-card h5 {
        font-size: 0.88rem;
        margin-bottom: 2px;
    }

    .benefit-card p {
        font-size: 0.8rem;
    }

    /* Form box */
    .join-form-wrapper {
        border-radius: 12px;
    }

    .form-header {
        padding: 18px 16px 16px;
    }

    .form-header h3 {
        font-size: 1.1rem;
    }

    .form-header p {
        font-size: 0.8rem;
    }

    .interest-form {
        padding: 16px 16px 20px;
        gap: 14px;
    }

    .form-row.split {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .form-group label {
        font-size: 0.75rem;
        letter-spacing: 0.03em;
    }

    .input-wrapper input,
    .input-wrapper select {
        font-size: 0.9rem;
        padding: 11px 12px 11px 36px;
    }

    textarea {
        font-size: 0.9rem;
        padding: 11px 14px;
        min-height: 88px;
    }

    .btn-submit {
        font-size: 0.88rem;
        padding: 13px 24px;
        width: 100%;
        justify-content: center;
    }

    /* Lightbox */
    .lightbox-close {
        top: 12px;
        right: 12px;
        font-size: 1.4rem;
        width: 36px;
        height: 36px;
    }

    .lightbox-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .arrow-prev { left: 6px; }
    .arrow-next { right: 6px; }

    .lightbox-caption {
        padding: 14px 16px;
    }

    /* ── FOOTER — full mobile polish ── */
    .main-footer {
        padding-top: 56px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: left;
    }

    .footer-brand .footer-logo {
        height: 38px;
    }

    .footer-brand p {
        font-size: 0.88rem;
        max-width: 100%;
        line-height: 1.65;
        margin-top: 12px;
        margin-bottom: 16px;
    }

    .social-links {
        justify-content: flex-start;
    }

    .footer-links h4,
    .footer-contact h4 {
        font-size: 0.88rem;
        margin-bottom: 12px;
    }

    .footer-links ul,
    .footer-contact ul {
        gap: 10px;
    }

    .footer-links a {
        font-size: 0.86rem;
    }

    .footer-contact li {
        font-size: 0.84rem;
        gap: 10px;
    }

    .footer-bottom {
        padding: 18px 0;
        margin-top: 36px;
    }

    .footer-bottom p {
        font-size: 0.74rem;
        line-height: 1.65;
    }

    .footer-credits {
        display: block;
        margin-top: 4px;
        opacity: 0.7;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 0 14px;
    }

    /* Hero — tightest phones */
    .hero-section {
        padding: 80px 0 52px;
    }

    .hero-frame {
        max-width: 240px;
    }

    .hero-title {
        font-size: clamp(1.45rem, 8vw, 1.9rem);
    }

    .hero-subtitle {
        font-size: 0.84rem;
    }

    .stamp-badge {
        padding: 8px 14px;
    }

    .stamp-year {
        font-size: 1.15rem;
    }

    /* About cards — nearly full viewport width */
    .about-cards-row .about-ghost-card {
        flex: 0 0 90vw;
    }

    /* Stats — keep all 4 in a row, even smaller fonts */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-box {
        padding: 16px 4px;
    }

    .stat-number {
        font-size: clamp(1rem, 4.5vw, 1.4rem);
    }

    .stat-plus {
        font-size: clamp(0.8rem, 3vw, 1rem);
    }

    .stat-label {
        font-size: clamp(0.42rem, 1.3vw, 0.58rem);
        letter-spacing: 0;
    }

    /* Leadership — single column on very small phones */
    .leaders-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery — single column */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Footer tightest */
    .footer-grid {
        gap: 28px;
    }

    .footer-bottom p {
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   GOOGLE FORM EMBED
   ========================================================================== */
.gform-embed-wrapper {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    /* Reserve height so the page doesn't jump while iframe loads */
    min-height: 640px;
    display: flex;
    flex-direction: column;
}

.gform-embed-wrapper iframe {
    width: 100%;
    /* Let the iframe fill the wrapper height naturally;
       Google Forms typically needs ~1240px to show without internal scrollbars */
    min-height: 1240px;
    flex: 1;
    border: none;
    display: block;
    /* Fade in once loaded */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gform-embed-wrapper iframe.loaded {
    opacity: 1;
}

/* Tighten up the wrapper card a little on mobile */
@media (max-width: 640px) {
    .gform-embed-wrapper {
        min-height: 480px;
        border-radius: var(--radius-sm);
    }

    .gform-embed-wrapper iframe {
        min-height: 1400px; /* Google Forms can be taller on narrow viewports */
    }
}

/* ==========================================================================
   REDUCED MOTION SUPPORT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .hero-badge-card {
        animation: none;
    }

    .marquee-track {
        animation: none;
    }

    .slide {
        transition: none;
    }
    
    .banner-marquee-track {
        animation: none;
    }
}

/* ==========================================================================
   ANNOUNCEMENT BANNER
   ========================================================================== */
.announcement-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green-hover) 100%);
    color: #ffffff;
    font-size: 0.82rem;
    overflow: hidden;
    position: relative;
    padding: 0 45px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.35s var(--ease-out);
    z-index: 1001;
}

.announcement-banner.closed {
    height: 0;
    opacity: 0;
    border-bottom-width: 0;
    pointer-events: none;
}

.banner-badge {
    background-color: var(--accent-red);
    color: #ffffff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 16px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.banner-badge i {
    font-size: 0.75rem;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.banner-marquee {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

.banner-marquee::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: linear-gradient(90deg, transparent, var(--primary-green-hover));
    pointer-events: none;
    z-index: 5;
}

.banner-marquee-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: announcement-marquee 35s linear infinite;
    will-change: transform;
}

.banner-marquee:hover .banner-marquee-track {
    animation-play-state: paused;
}

@keyframes announcement-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.announcement-item {
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.95);
    padding: 0 30px;
}

.announcement-bullet {
    color: var(--accent-red);
    font-size: 1.1rem;
    opacity: 0.9;
}

.banner-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: var(--transition-fast);
    z-index: 12;
}

.banner-close:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   PAYMENT & REGISTRATION STEP CARDS
   ========================================================================== */
.payment-steps {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    border-bottom: 1px solid var(--border-color);
}

.payment-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-badge {
    align-self: flex-start;
    background-color: var(--primary-green-light);
    color: var(--primary-green);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(10, 130, 66, 0.15);
}

[data-theme="dark"] .step-badge {
    background-color: rgba(10, 130, 66, 0.2);
    color: #ffffff;
    border-color: rgba(10, 130, 66, 0.3);
}

.payment-step h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.bank-details-card {
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .bank-details-card {
    background-color: var(--bg-subtle);
}

.bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
}

.bank-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bank-label {
    color: var(--text-muted);
    font-weight: 500;
}

.bank-value {
    color: var(--text-main);
    font-weight: 600;
    text-align: right;
}

.bank-value.acct-num {
    cursor: pointer;
    background-color: var(--bg-surface);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bank-value.acct-num:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.copy-icon {
    font-size: 0.8rem;
    opacity: 0.7;
}

.copy-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background-color: var(--ticker-bg);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

.copy-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.fee-amount {
    color: var(--primary-green);
    font-size: 1.05rem;
    font-weight: 700;
}

.payment-warning {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background-color: var(--accent-red-light);
    border: 1px solid rgba(227, 27, 35, 0.15);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-top: 6px;
}

[data-theme="dark"] .payment-warning {
    background-color: rgba(227, 27, 35, 0.08);
}

.payment-warning i {
    color: var(--accent-red);
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.payment-warning span {
    font-size: 0.82rem;
    color: var(--text-main);
    line-height: 1.45;
}

.iframe-alert-box {
    display: flex;
    gap: 14px;
    background-color: rgba(240, 160, 80, 0.1);
    border: 1px solid rgba(240, 160, 80, 0.25);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}

[data-theme="dark"] .iframe-alert-box {
    background-color: rgba(240, 160, 80, 0.05);
}

.iframe-alert-box .alert-icon {
    color: #e67e22;
    font-size: 1.15rem;
    margin-top: 2px;
}

.alert-content h5 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.alert-content p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.form-cta-container {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.open-form-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
}

.gform-embed-container {
    padding: 32px;
    background-color: var(--bg-body);
}

[data-theme="dark"] .gform-embed-container {
    background-color: var(--bg-subtle);
}

.preview-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

/* ==========================================================================
   MEMBERSHIP TIER SELECTOR GRID
   ========================================================================== */
.tier-selector-section {
    padding: 32px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-surface);
}

[data-theme="dark"] .tier-selector-section {
    background-color: var(--bg-elevated);
}

.selector-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.tier-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tier-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    background-color: var(--bg-body);
}

[data-theme="dark"] .tier-card {
    background-color: var(--bg-subtle);
}

.tier-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.tier-card.active {
    border-color: var(--primary-green);
    background-color: var(--primary-green-light);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .tier-card.active {
    background-color: rgba(10, 130, 66, 0.15);
    border-color: var(--primary-green);
}

.tier-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

[data-theme="dark"] .tier-icon {
    background-color: var(--bg-elevated);
}

.tier-card.active .tier-icon {
    background-color: var(--primary-green);
    color: #ffffff;
    border-color: var(--primary-green);
}

.tier-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tier-details h5 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.tier-price {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition-fast);
}

.tier-card.active .tier-price {
    color: var(--primary-green);
}

[data-theme="dark"] .tier-card.active .tier-price {
    color: #ffffff;
    opacity: 0.9;
}

.tier-check {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--primary-green);
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.25s var(--ease-spring);
}

.tier-card.active .tier-check {
    opacity: 1;
    transform: scale(1);
}

/* Custom Sponsorship input */
.custom-amount-card {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: slide-down-fade 0.3s var(--ease-out);
}

[data-theme="dark"] .custom-amount-card {
    background-color: var(--bg-subtle);
}

@keyframes slide-down-fade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-amount-card label {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
}

.custom-amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 14px;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.custom-amount-input-wrapper input {
    width: 100%;
    padding: 10px 14px 10px 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

[data-theme="dark"] .custom-amount-input-wrapper input {
    background-color: var(--bg-elevated);
}

.custom-amount-input-wrapper input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px var(--primary-green-glow);
}

.amount-validation-error {
    color: var(--accent-red);
    font-size: 0.75rem;
    font-weight: 500;
    display: none;
    margin-top: 2px;
}

.amount-validation-error.show {
    display: block;
}

@media (max-width: 640px) {
    .tier-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

