/* ===================================================
   DEMO INSTITUTE — MASTER STYLESHEET
   Design: Luxury editorial with bold gradients
   Fonts: Playfair Display + DM Sans
   =================================================== */

/* --- CSS Variables / Theme --- */
:root {
    --primary: #1a1aff;
    --primary-dark: #0d0da8;
    --primary-light: #4d4dff;
    --accent: #ff6b35;
    --accent-light: #ff8f66;
    --gradient: linear-gradient(135deg, #1a1aff 0%, #6c63ff 50%, #ff6b35 100%);
    --gradient-subtle: linear-gradient(135deg, #1a1aff 0%, #6c63ff 100%);
    --gradient-warm: linear-gradient(135deg, #ff6b35 0%, #ff8f66 100%);
    --bg: #ffffff;
    --bg-alt: #f7f7fb;
    --bg-dark: #0a0a1a;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-light: #6b7094;
    --text-lighter: #9ca3c4;
    --border: #e8e8f0;
    --border-light: #f0f0f8;
    --shadow-sm: 0 2px 8px rgba(10,10,26,0.06);
    --shadow-md: 0 8px 30px rgba(10,10,26,0.08);
    --shadow-lg: 0 20px 60px rgba(10,10,26,0.1);
    --shadow-glow: 0 0 40px rgba(26,26,255,0.15);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --nav-h: 80px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Preloader --- */
#preloader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--bg-dark);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
#preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; position: relative; }
.loader-ring {
    width: 60px; height: 60px; margin: 0 auto 16px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.loader-text {
    display: block; color: #fff; font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 700; letter-spacing: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Custom Cursor (desktop only) --- */
.custom-cursor, .cursor-follower {
    display: none; position: fixed; border-radius: 50%;
    pointer-events: none; z-index: 99998;
    transition: transform 0.1s;
}
@media (hover: hover) and (pointer: fine) {
    .custom-cursor {
        display: block; width: 8px; height: 8px;
        background: var(--primary); transform: translate(-50%, -50%);
    }
    .cursor-follower {
        display: block; width: 36px; height: 36px;
        border: 1.5px solid var(--primary); opacity: 0.4;
        transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s, opacity 0.3s, transform 0.1s;
    }
    .cursor-follower.hover { width: 50px; height: 50px; opacity: 0.6; }
}

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; }
.section { padding: 100px 0; }
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.center { text-align: center; }

/* --- Section Header --- */
.section-tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--primary); margin-bottom: 16px;
}
.tag-line { width: 30px; height: 2px; background: var(--gradient); display: inline-block; }
.section-title {
    font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700; line-height: 1.25; color: var(--text); margin-bottom: 16px;
}
.section-desc { font-size: 1.05rem; color: var(--text-light); max-width: 600px; margin-bottom: 24px; }
.section-header.center .section-desc { margin-left: auto; margin-right: auto; }
.section-header { margin-bottom: 50px; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: 0.95rem; border-radius: var(--radius-sm);
    padding: 12px 28px; transition: var(--transition); position: relative; overflow: hidden;
    white-space: nowrap;
}
.btn i { font-size: 0.85em; transition: transform 0.3s; }
.btn:hover i { transform: translateX(3px); }
.btn-primary {
    background: var(--gradient-subtle); color: #fff;
    box-shadow: 0 4px 15px rgba(26,26,255,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 25px rgba(26,26,255,0.4); transform: translateY(-2px); }
.btn-outline {
    border: 2px solid var(--border); color: var(--text); background: transparent;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-glass {
    background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
    color: #fff; border: 1px solid rgba(255,255,255,0.2);
}
.btn-glass:hover { background: rgba(255,255,255,0.25); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f0f0ff; transform: translateY(-2px); }
.btn-glass-white {
    background: rgba(255,255,255,0.15); color: #fff;
    border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(10px);
}
.btn-glass-white:hover { background: rgba(255,255,255,0.25); }
.btn-google {
    background: #fff; color: var(--text); border: 2px solid var(--border);
    justify-content: center;
}
.btn-google:hover { border-color: #4285f4; }
.btn-google svg { flex-shrink: 0; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===================================================
   NAVIGATION
   =================================================== */
#navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--nav-h); display: flex; align-items: center;
    transition: var(--transition);
}
#navbar.scrolled {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm); --nav-h: 70px;
}
.nav-container {
    max-width: 1260px; margin: 0 auto; padding: 0 24px; width: 100%;
    display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
    width: 42px; height: 42px; background: var(--gradient-subtle);
    color: #fff; font-family: var(--font-display); font-weight: 700;
    font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
}
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--text); }
.logo-thin { font-weight: 400; opacity: 0.7; }
#navbar:not(.scrolled) .logo-text { color: #fff; }
#navbar:not(.scrolled) .nav-link { color: rgba(255,255,255,0.8); }
#navbar:not(.scrolled) .nav-link:hover,
#navbar:not(.scrolled) .nav-link.active { color: #fff; }
.main-nav { display: flex; gap: 6px; }
.nav-link {
    padding: 8px 16px; font-size: 0.9rem; font-weight: 500;
    color: var(--text-light); border-radius: var(--radius-sm); position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 2px; background: var(--gradient); border-radius: 2px;
}
#navbar:not(.scrolled) .nav-link.active::after { background: #fff; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
#navbar:not(.scrolled) .btn-outline { border-color: rgba(255,255,255,0.3); color: #fff; }
#navbar:not(.scrolled) .btn-outline:hover { border-color: #fff; }
.menu-toggle { display: none; width: 30px; height: 24px; position: relative; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
#navbar:not(.scrolled) .menu-toggle span { background: #fff; }

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed; inset: 0; z-index: 9999; visibility: hidden; opacity: 0;
    transition: var(--transition);
}
.mobile-menu.open { visibility: visible; opacity: 1; }
.mobile-menu-inner {
    position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 85vw);
    background: var(--bg-dark); padding: 30px; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open .mobile-menu-inner { transform: translateX(0); }
.mobile-menu::before {
    content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.5);
    opacity: 0; transition: var(--transition);
}
.mobile-menu.open::before { opacity: 1; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-menu-header .logo-mark { width: 48px; height: 48px; font-size: 1.5rem; }
.menu-close { color: #fff; font-size: 1.4rem; padding: 8px; }
.mobile-nav { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mobile-nav-link {
    display: flex; align-items: center; gap: 16px; padding: 14px 0;
    font-size: 1.3rem; font-weight: 600; color: rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: var(--transition);
}
.mobile-nav-link::before { content: attr(data-index); font-size: 0.7rem; opacity: 0.4; font-weight: 400; min-width: 20px; }
.mobile-nav-link:hover, .mobile-nav-link.active { color: #fff; }
.mobile-menu-footer { padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); }
.mobile-socials { display: flex; gap: 16px; margin-bottom: 12px; }
.mobile-socials a {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6);
}
.mobile-socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.mobile-contact { color: rgba(255,255,255,0.4); font-size: 0.85rem; }

/* ===================================================
   HERO
   =================================================== */
.hero {
    min-height: 100vh; position: relative; display: flex; align-items: center;
    justify-content: center; text-align: center; padding: 120px 24px 80px;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #0a0a2e 0%, #1a1a4e 30%, #0d0d3a 60%, #0a0a1a 100%);
}
.hero-pattern {
    position: absolute; inset: 0; opacity: 0.03;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.5) 1px, transparent 0);
    background-size: 40px 40px;
}
.floating-shapes .shape {
    position: absolute; border-radius: 50%; opacity: 0.08; filter: blur(60px);
}
.shape-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; right: -100px; animation: float 8s ease-in-out infinite; }
.shape-2 { width: 300px; height: 300px; background: var(--accent); bottom: -50px; left: -50px; animation: float 10s ease-in-out infinite reverse; }
.shape-3 { width: 200px; height: 200px; background: #6c63ff; top: 40%; left: 10%; animation: float 12s ease-in-out infinite; }
.shape-4 { width: 150px; height: 150px; background: var(--accent); top: 20%; right: 15%; animation: float 9s ease-in-out infinite reverse; }
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -30px); }
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 50px;
    padding: 8px 20px; font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.9);
    margin-bottom: 28px;
}
.badge-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; animation: pulse-dot 2s ease infinite; }
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}
.hero-title {
    font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 700; line-height: 1.15; color: #fff; margin-bottom: 22px;
}
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.65); max-width: 560px; margin: 0 auto 36px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 50px; }
.hero-stats {
    display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: #fff; }
.stat-suffix { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.stat-label { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }
.hero-scroll {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
}
.hero-scroll span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.3); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent); animation: scroll-anim 2s ease infinite; }
@keyframes scroll-anim {
    0% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.5); transform-origin: top; }
    100% { opacity: 1; transform: scaleY(1); }
}

/* ===================================================
   PAGE HEADER (inner pages)
   =================================================== */
.page-header {
    position: relative; padding: 160px 0 80px; text-align: center; overflow: hidden;
}
.page-header-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #0a0a2e 0%, #1a1a4e 50%, #0a0a1a 100%);
}
.page-header-content { position: relative; z-index: 2; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 8px; }
.page-title {
    font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700; color: #fff; margin-bottom: 12px;
}
.page-header p { color: rgba(255,255,255,0.6); font-size: 1.05rem; }

/* ===================================================
   ABOUT GRID
   =================================================== */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.about-image-wrapper { position: relative; }
.about-image-main {
    border-radius: var(--radius-lg); overflow: hidden; position: relative; z-index: 1;
    box-shadow: var(--shadow-lg);
}
.about-image-main img { width: 100%; height: 500px; object-fit: cover; }
.about-image-accent {
    position: absolute; bottom: -30px; right: -30px; width: 180px; height: 180px;
    border-radius: var(--radius-md); overflow: hidden; border: 5px solid var(--bg);
    z-index: 2; box-shadow: var(--shadow-md);
}
.about-image-accent img { width: 100%; height: 100%; object-fit: cover; }
.experience-badge {
    position: absolute; top: -20px; left: -20px; z-index: 3;
    background: var(--gradient-subtle); color: #fff;
    padding: 20px; border-radius: var(--radius-md);
    text-align: center; box-shadow: var(--shadow-glow);
}
.exp-number { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.exp-text { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; line-height: 1.3; display: block; margin-top: 4px; }

/* --- About Features --- */
.about-features { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.about-feature {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 16px; border-radius: var(--radius-md);
    background: var(--bg-alt); transition: var(--transition);
}
.about-feature:hover { background: #eef; transform: translateX(5px); }
.feature-icon {
    width: 48px; height: 48px; min-width: 48px; border-radius: var(--radius-sm);
    background: var(--gradient-subtle); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.about-feature h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.about-feature p { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }

/* ===================================================
   COURSE CARDS
   =================================================== */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.course-card {
    position: relative; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px 28px; transition: var(--transition);
    overflow: hidden;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-glow {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(26,26,255,0.04) 0%, transparent 60%);
    opacity: 0; transition: var(--transition-slow);
}
.course-card:hover .card-glow { opacity: 1; }
.card-tag {
    display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--primary); background: rgba(26,26,255,0.08);
    padding: 4px 12px; border-radius: 50px; margin-bottom: 20px;
}
.course-card.featured .card-tag { background: var(--gradient-subtle); color: #fff; }
.card-icon {
    width: 56px; height: 56px; border-radius: var(--radius-md);
    background: var(--bg-alt); display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--primary); margin-bottom: 20px;
}
.course-card.featured .card-icon { background: var(--gradient-subtle); color: #fff; }
.course-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 12px; }
.course-card > p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }
.card-features { margin-bottom: 24px; }
.card-features li {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 0; font-size: 0.88rem; color: var(--text-light);
}
.card-features li i { color: var(--primary); font-size: 0.75rem; }
.course-card.featured { border-color: var(--primary); box-shadow: var(--shadow-glow); }

/* ===================================================
   TESTIMONIALS SLIDER
   =================================================== */
.testimonials-slider { position: relative; overflow: hidden; }
.testimonial-track {
    display: flex; gap: 30px; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.testimonial-card {
    min-width: calc(33.333% - 20px); background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px; flex-shrink: 0;
}
.testimonial-stars { color: #fbbf24; margin-bottom: 16px; font-size: 0.9rem; display: flex; gap: 3px; }
.testimonial-card > p { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-lighter); }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 36px; }
.slider-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center; color: var(--text);
    transition: var(--transition);
}
.slider-btn:hover { border-color: var(--primary); color: var(--primary); }
.slider-dots { display: flex; gap: 8px; }
.slider-dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--border);
    cursor: pointer; transition: var(--transition);
}
.slider-dot.active { background: var(--primary); width: 28px; border-radius: 5px; }

/* ===================================================
   CHAMPIONS
   =================================================== */
.champions-flex { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.mosaic-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.mosaic-item {
    border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1;
    transition: var(--transition);
}
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.mosaic-item:hover img { transform: scale(1.1); }
.more-badge {
    background: var(--gradient-subtle); display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: #fff;
}
.more-badge span { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.more-badge small { font-size: 0.8rem; opacity: 0.7; }

/* Filter tabs */
.filter-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.filter-tab {
    padding: 10px 24px; border-radius: 50px; border: 2px solid var(--border);
    font-size: 0.9rem; font-weight: 600; color: var(--text-light); transition: var(--transition);
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--gradient-subtle); color: #fff; border-color: transparent; }

/* Champions grid (champions page) */
.champions-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px;
}
.champion-card {
    border-radius: var(--radius-md); overflow: hidden;
    background: var(--bg-card); border: 1px solid var(--border);
    transition: var(--transition);
}
.champion-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.champion-card.hidden { display: none; }
.champion-img { position: relative; aspect-ratio: 1; overflow: hidden; }
.champion-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.champion-card:hover .champion-img img { transform: scale(1.08); }
.champion-overlay {
    position: absolute; inset: 0; background: rgba(26,26,255,0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.champion-card:hover .champion-overlay { opacity: 1; }
.champion-overlay i { color: #fff; font-size: 1.8rem; }
.champion-info { padding: 16px; text-align: center; }
.champion-info h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.champion-info p { font-size: 0.8rem; color: var(--text-light); }

/* ===================================================
   SERVICES
   =================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    padding: 32px; border-radius: var(--radius-md); border: 1px solid var(--border);
    background: var(--bg-card); transition: var(--transition); position: relative;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-num {
    font-family: var(--font-display); font-size: 2.5rem; font-weight: 700;
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; opacity: 0.3; line-height: 1; margin-bottom: 12px; display: block;
}
.service-card h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.service-card p { font-size: 0.88rem; color: var(--text-light); }

/* ===================================================
   STEPS
   =================================================== */
.steps-grid { display: flex; align-items: flex-start; justify-content: center; gap: 0; flex-wrap: wrap; }
.step-card {
    flex: 1; min-width: 180px; max-width: 240px; text-align: center; padding: 24px 16px;
}
.step-num {
    font-family: var(--font-display); font-size: 2rem; font-weight: 700;
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 12px; display: block;
}
.step-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: 0.85rem; color: var(--text-light); }
.step-connector {
    display: flex; align-items: center; padding-top: 30px;
    color: var(--border); font-size: 1rem;
}

/* ===================================================
   BLOG
   =================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card {
    border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card);
    border: 1px solid var(--border); transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-image { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-image img { transform: scale(1.05); }
.blog-category {
    position: absolute; top: 16px; left: 16px; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; color: #fff;
    background: var(--gradient-subtle); padding: 4px 14px; border-radius: 50px;
}
.blog-content { padding: 24px; }
.blog-meta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-lighter); margin-bottom: 12px; }
.blog-meta i { margin-right: 4px; }
.blog-content h3 { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.4; margin-bottom: 10px; }
.blog-content h3 a { color: var(--text); }
.blog-content h3 a:hover { color: var(--primary); }
.blog-content > p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 16px; }
.blog-read-more { font-size: 0.85rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.blog-read-more:hover { gap: 10px; }

/* ===================================================
   FAQ
   =================================================== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    border: 1px solid var(--border); border-radius: var(--radius-md);
    overflow: hidden; transition: var(--transition);
}
.faq-item.active { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; font-size: 1rem; font-weight: 600; color: var(--text);
    text-align: left; transition: var(--transition); gap: 16px;
}
.faq-question:hover { color: var(--primary); }
.faq-question i { transition: transform 0.3s; color: var(--primary); font-size: 0.85rem; flex-shrink: 0; }
.faq-item.active .faq-question i { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
.faq-answer p { padding: 0 24px 20px; font-size: 0.92rem; color: var(--text-light); line-height: 1.8; }

/* ===================================================
   TIMELINE
   =================================================== */
.timeline { max-width: 700px; margin: 0 auto; position: relative; padding-left: 40px; }
.timeline::before {
    content: ''; position: absolute; left: 12px; top: 0; bottom: 0;
    width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: ''; position: absolute; left: -34px; top: 6px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--gradient-subtle); border: 3px solid var(--bg);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.timeline-year {
    font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
    color: var(--primary); margin-bottom: 4px;
}
.timeline-content h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.timeline-content p { font-size: 0.9rem; color: var(--text-light); }

/* ===================================================
   AFFILIATIONS
   =================================================== */
.affiliations-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 700px; margin: 0 auto; }
.affiliation-card {
    display: flex; align-items: center; gap: 16px; padding: 24px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    transition: var(--transition);
}
.affiliation-card:hover { border-color: var(--primary); background: var(--bg-alt); }
.affiliation-card i { font-size: 1.4rem; color: var(--primary); min-width: 24px; }
.affiliation-card span { font-size: 0.92rem; font-weight: 500; }

/* ===================================================
   CTA SECTION
   =================================================== */
.cta-section {
    position: relative; padding: 80px 0; text-align: center; overflow: hidden;
    background: linear-gradient(135deg, #1a1aff 0%, #4d4dff 50%, #6c63ff 100%);
}
.cta-bg { position: absolute; inset: 0; }
.cta-shape {
    position: absolute; border-radius: 50%; opacity: 0.1;
}
.cta-shape-1 { width: 400px; height: 400px; background: #fff; top: -150px; right: -100px; }
.cta-shape-2 { width: 300px; height: 300px; background: #fff; bottom: -100px; left: -80px; }
.cta-content { position: relative; z-index: 2; }
.cta-content h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: #fff; margin-bottom: 12px; }
.cta-content p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-bottom: 30px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===================================================
   CONTACT
   =================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact-info-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.contact-info-card {
    display: flex; gap: 16px; align-items: flex-start; padding: 16px;
    background: var(--bg-alt); border-radius: var(--radius-md); transition: var(--transition);
}
.contact-info-card:hover { background: #eef; }
.contact-info-icon {
    width: 44px; height: 44px; min-width: 44px; border-radius: var(--radius-sm);
    background: var(--gradient-subtle); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.contact-info-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.contact-info-card a, .contact-info-card p { font-size: 0.85rem; color: var(--text-light); display: block; }
.contact-info-card a:hover { color: var(--primary); }
.contact-socials h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 12px; }
.social-links-row { display: flex; gap: 10px; }
.social-link-card {
    width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light); transition: var(--transition);
}
.social-link-card:hover { background: var(--gradient-subtle); color: #fff; border-color: transparent; }

/* Contact form */
.contact-form-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md);
}
.contact-form-card h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 6px; }
.contact-form-card > p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border: 2px solid var(--border);
    border-radius: var(--radius-sm); background: var(--bg); color: var(--text);
    transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.map-section iframe { display: block; width: 100%; }

/* ===================================================
   PORTAL
   =================================================== */
.portal-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; padding: 100px 24px;
}
.portal-bg { position: absolute; inset: 0; }
.portal-container { position: relative; z-index: 2; width: 100%; max-width: 460px; }
.portal-card {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
    border-radius: var(--radius-xl); padding: 44px 36px; box-shadow: var(--shadow-lg);
}
.portal-header { text-align: center; margin-bottom: 32px; }
.portal-header .logo-mark { width: 56px; height: 56px; font-size: 1.6rem; margin: 0 auto 16px; }
.portal-header h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 6px; }
.portal-header p { font-size: 0.88rem; color: var(--text-light); }
.input-icon-wrap {
    position: relative; display: flex; align-items: center;
}
.input-icon-wrap i { position: absolute; left: 14px; color: var(--text-lighter); font-size: 0.9rem; }
.input-icon-wrap input { padding-left: 42px; }
.toggle-password { position: absolute; right: 14px; color: var(--text-lighter); font-size: 0.85rem; padding: 4px; }
.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.checkbox-label { font-size: 0.85rem; color: var(--text-light); display: flex; align-items: center; gap: 6px; }
.forgot-link { font-size: 0.85rem; color: var(--primary); font-weight: 500; }
.portal-divider {
    text-align: center; margin: 24px 0; position: relative;
}
.portal-divider::before {
    content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border);
}
.portal-divider span {
    background: var(--bg); padding: 0 16px; position: relative; font-size: 0.8rem; color: var(--text-lighter);
}
.otp-inputs { display: flex; gap: 10px; justify-content: center; }
.otp-box {
    width: 48px; height: 54px; text-align: center; font-size: 1.3rem; font-weight: 700;
    border: 2px solid var(--border); border-radius: var(--radius-sm); outline: none;
    transition: var(--transition);
}
.otp-box:focus { border-color: var(--primary); }
.portal-footer { text-align: center; margin-top: 24px; }
.portal-footer p { font-size: 0.85rem; color: var(--text-light); }
.portal-footer a { color: var(--primary); font-weight: 600; }

/* ===================================================
   FOOTER
   =================================================== */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); }
.footer-top { padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand > p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6);
    transition: var(--transition);
}
.footer-socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-links h4, .footer-contact h4 {
    color: #fff; font-size: 0.95rem; font-weight: 600; margin-bottom: 20px;
}
.footer-links a {
    display: block; font-size: 0.88rem; color: rgba(255,255,255,0.5); padding: 5px 0;
}
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.footer-contact-item i { color: var(--primary-light); margin-top: 3px; font-size: 0.85rem; }
.footer-contact-item a, .footer-contact-item span { font-size: 0.88rem; }
.footer-contact-item a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06); padding: 20px 0;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ===================================================
   BACK TO TOP / WHATSAPP
   =================================================== */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient-subtle); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
    transform: translateY(20px); transition: var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }
.whatsapp-float {
    position: fixed; bottom: 30px; left: 30px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff; font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    animation: wa-pulse 2s ease infinite;
}
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* ===================================================
   ANIMATIONS
   =================================================== */
.anim-fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
    transition-delay: var(--delay, 0s);
}
.anim-fade-up.visible { opacity: 1; transform: translateY(0); }
.anim-slide-right {
    opacity: 0; transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
    transition-delay: var(--delay, 0s);
}
.anim-slide-right.visible { opacity: 1; transform: translateX(0); }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
    .nav-actions .btn-outline, .nav-actions .btn-primary { display: none; }
    .courses-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image-main img { height: 380px; }
    .champions-flex { grid-template-columns: 1fr; gap: 40px; }
    .testimonial-card { min-width: calc(50% - 15px); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .hero { padding: 120px 20px 60px; }
    .hero-title { font-size: clamp(2rem, 7vw, 2.8rem); }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 1.8rem; }
    .stat-divider { height: 30px; }
    .page-header { padding: 130px 0 60px; }
    .testimonial-card { min-width: calc(100% - 0px); }
    .services-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .affiliations-grid { grid-template-columns: 1fr; }
    .steps-grid { flex-direction: column; align-items: center; }
    .step-connector { transform: rotate(90deg); padding: 0; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .champions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .mosaic-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-card { padding: 30px 20px; }
    .contact-form-card { padding: 28px 20px; }
    .whatsapp-float { bottom: 20px; left: 20px; width: 48px; height: 48px; font-size: 1.3rem; }
    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}
