/* ============================================================
   components.css — Navbar, Footer, Page Hero, Stats Band,
                    Join CTA (shared across all pages)
   ============================================================ */

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1.25rem 2rem;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 0.85rem 2rem;
}

.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-logo-mark {
    width: 40px; height: 40px; background: var(--gradient);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-size: 0.85rem; letter-spacing: -0.5px;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-text b    { font-size: 1rem; font-weight: 800; color: white; }
.nav-logo-text span { font-size: 0.65rem; font-weight: 500; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.07em; }
.navbar.scrolled .nav-logo-text b    { color: var(--blue); }
.navbar.scrolled .nav-logo-text span { color: var(--dark-gray); }

/* Links */
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }

.nav-links > li > a {
    font-size: 0.88rem; font-weight: 500;
    color: rgba(255,255,255,0.9); padding: 0.5rem 0.75rem;
    border-radius: 8px; transition: var(--transition);
    display: flex; align-items: center; gap: 0.3rem;
    position: relative;
}
.nav-links > li > a:hover               { color: white; background: rgba(255,255,255,0.1); }
.navbar.scrolled .nav-links > li > a    { color: var(--dark-gray); }
.navbar.scrolled .nav-links > li > a:hover { color: var(--blue); background: var(--blue-light); }

.nav-links > li > a.nav-active            { color: white; font-weight: 700; }
.navbar.scrolled .nav-links > li > a.nav-active { color: var(--blue); background: var(--blue-light); }

/* Dropdown */
.has-dropdown { position: relative; }
.chevron { font-size: 0.7rem; transition: transform 0.2s; }
.has-dropdown:hover .chevron { transform: rotate(180deg); }

.has-dropdown::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0; right: 0;
    height: 10px;
}
.dropdown {
    position: absolute; top: calc(100% + 4px); left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: white; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md); list-style: none;
    min-width: 230px; padding: 0.4rem;
    opacity: 0; pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    border: 1px solid rgba(0,0,0,0.06);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1; pointer-events: all;
    transform: translateX(-50%) translateY(0);
}
.dropdown li a {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.65rem 0.85rem; border-radius: 7px;
    color: var(--dark-gray) !important; font-size: 0.875rem !important;
    font-weight: 500 !important; background: transparent !important;
    transition: background 0.2s;
}
.dropdown li a:hover { background: var(--blue-light) !important; color: var(--blue) !important; }
.dropdown li a .drop-icon { font-size: 1rem; width: 22px; text-align: center; }
.dropdown .drop-divider {
    height: 1px; background: var(--light-gray);
    margin: 0.4rem 0.85rem;
}

/* Nav CTA */
.nav-cta {
    padding: 0.55rem 1.35rem !important; border-radius: 50px !important;
    font-weight: 700 !important; font-size: 0.88rem;
    background: var(--gradient) !important; color: white !important;
    box-shadow: 0 4px 14px rgba(3,126,243,0.35);
    border: none !important; cursor: pointer; font-family: var(--font);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(3,126,243,0.45) !important; background: var(--gradient) !important; }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px; flex-shrink: 0;
}
.hamburger span { display: block; width: 26px; height: 2px; background: white; border-radius: 2px; transition: var(--transition); }
.navbar.scrolled .hamburger span { background: var(--dark); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.mobile-nav {
    display: none; position: fixed; inset: 0; z-index: 999;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 0.5rem; padding: 2rem;
    overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    font-size: 1.3rem; font-weight: 700; color: var(--dark);
    padding: 0.6rem 2rem; border-radius: 12px; width: 100%;
    text-align: center; transition: var(--transition);
}
.mobile-nav a:hover, .mobile-nav a.nav-active { background: var(--blue-light); color: var(--blue); }
.mobile-nav .mobile-sub { display: flex; flex-direction: column; gap: 0.25rem; width: 100%; }
.mobile-nav .mobile-sub a {
    font-size: 1rem; color: var(--dark-gray);
    padding: 0.5rem 2rem; background: var(--light-gray);
    border-radius: 10px;
}
.mobile-nav .mobile-sub a:hover { background: var(--blue-light); color: var(--blue); }
.mobile-nav .btn { margin-top: 1rem; width: 80%; max-width: 260px; justify-content: center; }

@media (max-width: 960px) {
    .nav-links, .nav-cta-wrap { display: none; }
    .hamburger { display: flex; }
}

/* ══════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════ */
.page-hero {
    padding-top: 9rem; padding-bottom: 4rem; padding-left: 2rem; padding-right: 2rem;
    background: var(--gradient-dark);
    position: relative; overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.page-hero-blob {
    position: absolute; border-radius: 50%; pointer-events: none;
    background: rgba(255,255,255,0.04);
}
.page-hero-blob-1 { width: 500px; height: 500px; top: -200px; right: -100px; }
.page-hero-blob-2 { width: 300px; height: 300px; bottom: -100px; left: 10%; }

.page-hero-content {
    max-width: 1200px; margin: 0 auto;
    position: relative; z-index: 1; color: white;
}

.breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.8rem; color: rgba(255,255,255,0.55);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.breadcrumb a:hover { color: white; }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }
.breadcrumb .current { color: rgba(255,255,255,0.85); font-weight: 500; }

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900; line-height: 1.1; letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.page-hero p {
    font-size: 1.1rem; opacity: 0.82; max-width: 560px; line-height: 1.75;
    margin-bottom: 2rem;
}
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 768px) {
    .page-hero { padding-top: 7rem; padding-bottom: 3rem; padding-left: 1.25rem; padding-right: 1.25rem; }
    .page-hero h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
    .page-hero { padding-top: 6rem; padding-bottom: 2.25rem; }
    .page-hero p { margin-bottom: 1.25rem; }
    .breadcrumb { margin-bottom: 1rem; }
}

/* ══════════════════════════════════════
   STATS BAND (reusable)
══════════════════════════════════════ */
.stats-band { background: var(--gradient); color: white; padding: 5rem 2rem; }
.stats-band-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 2rem; text-align: center;
}
.stats-band-item { padding: 1.5rem 1rem; }
.stat-num { display: block; font-size: 3.5rem; font-weight: 900; line-height: 1; margin-bottom: 0.5rem; }
.stat-lbl { font-size: 0.95rem; font-weight: 500; opacity: 0.85; }

@media (max-width: 768px) {
    .stats-band-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-num { font-size: 2.5rem; }
}

/* ══════════════════════════════════════
   JOIN CTA BAND (reusable)
══════════════════════════════════════ */
.join-cta {
    background: var(--gradient-dark);
    color: white; text-align: center;
    padding: 6rem 2rem; position: relative; overflow: hidden;
}
.join-blob {
    position: absolute; border-radius: 50%; pointer-events: none;
}
.join-blob-1 { width: 700px; height: 700px; background: radial-gradient(circle,rgba(255,200,69,.1) 0%,transparent 65%); top: -300px; right: -200px; }
.join-blob-2 { width: 450px; height: 450px; background: radial-gradient(circle,rgba(12,185,193,.12) 0%,transparent 65%); bottom: -150px; left: -100px; }
.join-cta .container { position: relative; z-index: 1; }
.join-cta .section-title { color: white; font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
.join-cta .section-sub   { color: rgba(255,255,255,0.7); margin: 1rem auto 2.75rem; }
.join-cta .tag           { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); }
.join-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
    background: #080813; color: white;
    padding: 4.5rem 2rem 2rem;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 3rem; padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo-mark {
    width: 40px; height: 40px; background: var(--gradient);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-size: 0.85rem;
}
.footer-logo-text b    { font-size: 1rem; font-weight: 800; }
.footer-logo-text span { display: block; font-size: 0.65rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.07em; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.42); line-height: 1.75; max-width: 290px; }
.footer-social  { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.footer-soc {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.6);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.footer-soc:hover { background: var(--blue); color: white; transform: translateY(-3px); }

.footer-col h4 {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul li a { color: rgba(255,255,255,0.62); font-size: 0.88rem; transition: var(--transition); }
.footer-col ul li a:hover { color: white; padding-left: 4px; }

.footer-bottom {
    max-width: 1200px; margin: 2rem auto 0;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.75rem;
}
.footer-bottom p   { color: rgba(255,255,255,0.32); font-size: 0.82rem; }
.footer-bottom a   { color: var(--blue); }

@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .footer-inner { grid-template-columns: 1fr; }
}

/* ══ REAL AIESEC LOGO — CSS override (no HTML changes needed) ══ */
.nav-logo-mark {
    width: 104px !important; height: 30px !important;
    background: transparent !important; box-shadow: none !important;
    border-radius: 0 !important; font-size: 0 !important;
    position: relative; overflow: hidden; flex-shrink: 0;
}
.nav-logo-mark::after {
    content: '';
    position: absolute; inset: 0;
    background: url('https://aiesec-logos.s3.eu-west-1.amazonaws.com/Blue-Logo.png') left center / contain no-repeat;
}
/* Hide "AIESEC" wordmark from text since logo shows it — keep "in Thailand" */
.nav-logo-text b { display: none; }
.nav-logo-text span { font-size: 0.62rem; opacity: 0.78; }

.footer-logo-mark {
    width: 90px !important; height: 26px !important;
    background: transparent !important; box-shadow: none !important;
    border-radius: 0 !important; font-size: 0 !important;
    position: relative; overflow: hidden; flex-shrink: 0;
}
.footer-logo-mark::after {
    content: '';
    position: absolute; inset: 0;
    background: url('https://aiesec-logos.s3.eu-west-1.amazonaws.com/Blue-Logo.png') left center / contain no-repeat;
}
.footer-logo-text b { display: none; }

/* Drop-icon SVG alignment */
.drop-icon { display: flex; align-items: center; flex-shrink: 0; width: 20px; }
.drop-icon svg { width: 15px; height: 15px; }

/* ══════════════════════════════════════
   PRODUCT STICKY TAB NAV (shared — used on program pages)
══════════════════════════════════════ */
.prog-tab-nav {
    background: white;
    border-bottom: 2px solid var(--light-gray);
    position: sticky; top: 70px; z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.prog-tabs { display: flex; gap: 0; overflow-x: auto; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.prog-tab {
    padding: 1rem 1.5rem; white-space: nowrap;
    font-size: 0.88rem; font-weight: 600; color: var(--dark-gray);
    border-bottom: 3px solid transparent; margin-bottom: -2px;
    transition: all 0.2s;
}
.prog-tab:hover, .prog-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
