/* =========================================================================
   ARCRISE TALENT - DESIGN SYSTEM
   ========================================================================= */

:root {
    /* Brand Colors based on the Logo */
    --clr-primary: #0f62b3;       /* LinkedIn Blue */
    --clr-primary-dark: #0a4682;
    --clr-primary-light: #247dd4;
    
    --clr-accent: #e9ac2e;        /* Golden */
    --clr-accent-hover: #d29824;
    
    --clr-secondary: #66badf;     /* Sky Blue */
    
    /* Layout Colors */
    --clr-dark: #0B1E33;          /* Deep Navy Backgrounds */
    --clr-dark-surface: #102a47;  /* Slightly lighter for cards on dark bg */
    --clr-bg-light: #F8FAFC;      /* Main Application Background (Slate 50) */
    --clr-surface: #FFFFFF;       /* White Cards */
    
    /* Text Colors */
    --clr-text-main: #0F172A;     /* Slate 900 for high readability headings */
    --clr-text-body: #334155;     /* Slate 700 for body */
    --clr-text-muted: #64748B;    /* Slate 500 for labels */
    --clr-text-light: #F1F5F9;    /* For dark backgrounds */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 6rem 1rem;
    
    /* Shadows & Border Radius */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(15, 98, 179, 0.08), 0 4px 6px -2px rgba(15, 98, 179, 0.04);
    --shadow-glow: 0 0 30px rgba(15, 98, 179, 0.2);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   RESET & GLOBAL STYLES
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-body);
    background-color: var(--clr-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-text-main);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--clr-primary);
    transition: color var(--transition-fast);
}

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

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

/* =========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================= */
.text-gradient {
    background: linear-gradient(135deg, var(--clr-secondary), var(--clr-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--clr-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    background-color: var(--clr-accent);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-gold:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(233, 172, 46, 0.3);
}

.btn-outline-light {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

.btn-outline-primary:hover {
    background-color: var(--clr-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* LinkedIn brand button */
.btn-linkedin {
    background-color: #0077B5;
    color: white;
    border-color: #0077B5;
    font-weight: 600;
}

.btn-linkedin:hover {
    background-color: #005f94;
    border-color: #005f94;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.35);
}

/* Navigation CTA button - pill style, prominent */
.btn-nav {
    padding: 0.85rem 2rem !important;
    font-size: 0.95rem !important;
    border-radius: 50px !important;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, var(--clr-primary), #1a7fd4) !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(15, 98, 179, 0.4);
    transition: all 0.25s ease;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 98, 179, 0.5);
    background: linear-gradient(135deg, #1a7fd4, var(--clr-primary)) !important;
}

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all var(--transition-fast);
    padding: 12px 0 13px 0;
    height: 89px;
    overflow: visible;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    width: 96%;
}

.logo-text {
    font-family: 'Canva Sans', var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--clr-primary);
}

.logo-accent {
    color: var(--clr-accent);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-left: 2px;
}

/* Nav brand text next to logo image */
.nav-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
    gap: 0;
}

.nav-brand-arcrise {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f62b3;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.nav-brand-talent {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f62b3;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    margin-left: 3rem; /* distance from logo */
}

.nav-links a {
    color: var(--clr-text-main);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: width var(--transition-fast);
}

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

.nav-links a:hover {
    color: var(--clr-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--clr-text-main);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform var(--transition-smooth);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    color: var(--clr-text-main);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

.mobile-menu .btn {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 0.5rem;
}

/* Logo image sizing */
.nav-logo-img {
    height: 135px;
    width: auto;
    display: block;
    object-fit: contain;
    padding-top: 8px;
    margin-right: -30px; /* tighten gap between logo and text */
}

@media (max-width: 900px) {
    .navbar {
        height: 70px;
        padding: 8px 0;
    }
    .nav-logo-img {
        height: 100px;
        margin-right: -15px;
        padding-top: 4px;
    }
    .nav-brand-arcrise {
        font-size: 1.3rem;
    }
    .nav-brand-talent {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 60px;
        padding: 8px 0;
    }
    .nav-logo-img {
        height: 80px;
        margin-right: -10px;
    }
    .nav-brand-arcrise {
        font-size: 1.1rem;
    }
    .nav-brand-talent {
        font-size: 0.65rem;
    }
    /* Show text but scaled down, overriding previous display: none */
    .logo-text { display: none; }
}


/* Footer brand text */
.footer .nav-brand-arcrise,
.footer .nav-brand-talent {
    color: #0f62b3;
}
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-actions .btn {
        display: none;
    }
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.section-dark {
    background-color: var(--clr-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.section-dark h1, .section-dark h2, .section-dark h3 {
    color: white;
}

.hero {
    padding: 5.5rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(102, 186, 223, 0.15) 0%, rgba(15, 98, 179, 0) 70%);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--clr-secondary);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    max-width: 90%;
}

.hero-highlight {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-accent);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* HERO VISUAL (Glassmorphism Mockup) */
.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--clr-primary);
    top: 10%;
    left: 10%;
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--clr-accent);
    bottom: 10%;
    right: 10%;
    opacity: 0.3;
    animation: float 10s ease-in-out infinite reverse;
}

.glass-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-visual .glass-card {
    width: 90%;
    height: 80%;
}

.glass-header {
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.glass-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pulse-line {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    width: 100%;
}

.pulse-line.short { width: 60%; }
.pulse-line.medium { width: 80%; }

.stats-row {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.stat-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--clr-secondary);
}

/* =========================================================================
   ANIMATIONS 
   ========================================================================= */
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

[data-reveal="bottom"] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="right"] {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.2s;
}

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

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
    }
    .hero-subtitle {
        margin: 0 auto 1.5rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero {
        min-height: auto;
    }
}

/* =========================================================================
   LAYOUT UTILITIES
   ========================================================================= */
.section-light {
    background-color: var(--clr-bg-light);
    padding: var(--section-padding);
}

.section-white {
    background-color: var(--clr-surface);
    padding: var(--section-padding);
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.text-center { text-align: center; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }

/* =========================================================================
   CARDS & COMPONENTS
   ========================================================================= */
.card {
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 98, 179, 0.2);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: rgba(15, 98, 179, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    color: var(--clr-primary);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.quote-card {
    background: var(--clr-bg-light);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.quote-card p {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--clr-text-main);
    font-style: italic;
    position: relative;
    z-index: 1;
}

.icon-xl {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.opacity-50 { opacity: 0.1; }
.text-secondary { color: var(--clr-secondary); }
.text-accent { color: var(--clr-accent); }

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.dark-surface {
    background: var(--clr-dark-surface);
    border: 1px solid rgba(255,255,255,0.1);
}

.border-gradient {
    position: relative;
}

.border-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card-header { margin-bottom: 1rem; }
.f-row { display: flex; align-items: center; gap: 1rem; }
.icon-lg { font-size: 2.5rem; }

.mt-3 { margin-top: 1.5rem; }


/* =========================================================================
   RESPONSIVE DESIGN SYSTEM
   =========================================================================
   Breakpoints:
   - Tablet:    ≤ 1024px
   - Mobile-L:  ≤ 768px
   - Mobile-S:  ≤ 480px
   ========================================================================= */

/* --- TABLET (≤ 1024px) --- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }

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

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

    .section-dark .grid-2,
    .section-light .grid-2,
    .section-white .grid-2 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Fix capstone grid on tablet */
    .capstone-grid {
        grid-template-columns: 1fr;
    }

    /* AEX form rows go single col on tablet */
    .aex-form-row {
        grid-template-columns: 1fr;
    }
}

/* --- MOBILE-L (≤ 768px) --- */
@media (max-width: 768px) {

    /* ---- Typography Scaling ---- */
    html { font-size: 15px; }

    h1 { font-size: clamp(1.9rem, 7vw, 2.8rem) !important; }
    h2 { font-size: clamp(1.6rem, 5vw, 2.2rem) !important; }
    h3 { font-size: 1.2rem; }

    /* ---- Layout ---- */
    .container { padding: 0 1.25rem; }

    .grid-4,
    .grid-3,
    .grid-2 { grid-template-columns: 1fr !important; gap: 1.5rem; }

    .section-light,
    .section-white { padding: 4rem 1.25rem; }

    .section-dark { padding: 4rem 1.25rem; }

    /* ---- Navigation ---- */
    .nav-links { display: none; }

    .mobile-menu-btn { display: block; }

    .nav-actions .btn-nav { display: none; }

    .mobile-menu {
        top: 64px;
        padding: 1.5rem 1.25rem;
        gap: 1.25rem;
    }

    .mobile-menu a {
        font-size: 1rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    /* ---- Hero ---- */
    .hero {
        padding: 7rem 1.25rem 4rem;
        min-height: auto;
    }

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

    .hero-subtitle {
        margin: 0 auto 1.5rem;
        font-size: 1.05rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .hero-visual { display: none; } /* hide decorative visual on mobile */

    /* ---- Sections ---- */
    [style*="padding: 8rem"] { padding: 4.5rem 1.25rem !important; }
    [style*="padding: 7rem"] { padding: 4.5rem 1.25rem !important; }
    [style*="padding: 6rem"] { padding: 4rem 1.25rem !important; }

    /* ---- Cards ---- */
    .card { padding: 1.5rem; }

    .glass-card { padding: 1.5rem !important; }

    /* ---- Core Pillars absolute icon circles ---- */
    .card[style*="padding-top: 3rem"] {
        padding-top: 3.5rem !important;
    }

    /* ---- Capstone Section ---- */
    .cert-card-wrapper { margin-top: 2rem; }

    /* ---- Weekly Accordion ---- */
    .aex-week h4 { font-size: 0.95rem !important; }

    /* ---- AEX Form ---- */
    form[style*="max-width: 640px"] {
        padding: 2rem 1.25rem !important;
        border-radius: 16px !important;
    }

    /* Name+Phone side-by-side row → stacked on mobile */
    form div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* ---- Partnership page ---- */
    .partnership-steps { flex-direction: column; align-items: center; }

    /* ---- Founder Section ---- */
    .founder-grid { grid-template-columns: 1fr !important; }
    
    .exp-badge {
        right: 1rem !important;
        bottom: 2.5rem !important;
        padding: 1rem 1.25rem !important;
        gap: 1rem !important;
    }
    .exp-badge h3 { font-size: 1.5rem !important; }
    .exp-badge p { font-size: 0.8rem !important; }
    .exp-badge div[style*="width: 50px"] {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.25rem !important;
    }

    /* ---- How Partnerships Begin steps ---- */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* ---- Innovation & Recognition rows ---- */
    div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* ---- Future Vision / Global Network ---- */
    div[style*="display: grid; grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* ---- Stat badges/tags row ---- */
    div[style*="display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap"] {
        flex-direction: column;
        align-items: center;
    }

    /* ---- Section badge pill ---- */
    .badge { font-size: 0.8rem; }

    /* ---- CTA Button pairs ---- */
    div[style*="display: flex; gap: 1rem; justify-content: center"] {
        flex-direction: column;
        align-items: center;
    }

    div[style*="display: flex; gap: 1rem; justify-content: center"] .btn {
        width: 100%;
        max-width: 320px;
    }

    .mt-mobile { margin-top: 2rem; }
    .mt-3 { margin-top: 1rem; }
}

/* --- MOBILE-S (≤ 480px) --- */
@media (max-width: 480px) {

    html { font-size: 14px; }

    .container { padding: 0 1rem; }

    /* .navbar { padding: 0.85rem 0; } - Replaced by logo sizing media query above */

    .logo-text { font-size: 1.2rem; }

    .btn { padding: 0.65rem 1.2rem; font-size: 0.88rem; }

    .btn-lg { padding: 0.8rem 1.5rem; font-size: 0.95rem; }

    .card { padding: 1.25rem; }

    .hero { padding: 6rem 1rem 3.5rem; }

    .hero h1 { letter-spacing: -0.5px; }

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

    /* Full-width action buttons on tiny screens */
    .btn-nav { display: none !important; }

    /* Accordion week number circles */
    .aex-week div[style*="width: 36px"] {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.75rem !important;
    }

    /* Certificate card inner padding */
    .cert-card-inner { padding: 2rem 1.25rem !important; }

    /* Form inner padding */
    form[style*="padding: 3rem 2.5rem"] {
        padding: 1.5rem 1rem !important;
    }

    /* Section headers */
    .section-header { margin-bottom: 2rem; }

    .subtitle { font-size: 1rem; }

    /* Footer grid to single col */
    footer .grid-3 { grid-template-columns: 1fr !important; gap: 2rem; }
}

/* --- LANDSCAPE PHONE FIX --- */
@media (max-width: 900px) and (orientation: landscape) {
    .hero { padding: 5rem 1.25rem 3rem; }
    .hero-visual { display: none; }
}

section { scroll-margin-top: 80px; }

/* Timeline Line Animation */
.animated-timeline-line {
    transition: height 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.animated-timeline-line.active {
    height: 100% !important;
}
