/* ═══════════════════════════════════════════════════════════════
   SUNRISE COACHING – CLEAN GOOGLE-STYLE DESIGN SYSTEM
   A minimal, professional, Google-developer-quality stylesheet.
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. DESIGN TOKENS (LIGHT MODE DEFAULT) ─── */
:root {
    --primary: #1a73e8;
    --primary-hover: #1557b0;
    --primary-light: #e8f0fe;
    --primary-surface: #d2e3fc;
    --surface: #ffffff;
    --surface-alt: #f1f3f4;
    --background: #f8f9fa;
    --background-alt: #f1f3f4;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-light: #80868b;
    --border: #dadce0;
    --border-light: #e8eaed;
    --success: #1e8e3e;
    --success-light: #e6f4ea;
    --warning: #f9ab00;
    --error: #d93025;
    --footer-bg: #f1f3f4;
    --footer-text: #5f6368;
    --footer-link: #5f6368;
    --footer-link-hover: #202124;
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-1: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
    --shadow-2: 0 1px 2px 0 rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
    --shadow-3: 0 4px 8px 3px rgba(60,64,67,.15), 0 1px 3px rgba(60,64,67,.3);
    --shadow-hover: 0 1px 3px 0 rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
    --nav-height: 64px;
}

/* Explicit Light Mode */
body.light-mode {
    --surface: #ffffff;
    --surface-alt: #f1f3f4;
    --background: #f8f9fa;
    --background-alt: #f1f3f4;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-light: #80868b;
    --border: #dadce0;
    --border-light: #e8eaed;
    --footer-bg: #f1f3f4;
    --footer-text: #5f6368;
    --footer-link: #5f6368;
    --footer-link-hover: #202124;
}

/* ─── 2. CLEAN DARK MODE ─── */
body.dark-mode {
    --surface: #1e1e1e;
    --surface-alt: #282828;
    --background: #121212;
    --background-alt: #1a1a1a;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --text-light: #80868b;
    --border: #3c4043;
    --border-light: #2d2d2d;
    --primary-light: rgba(26,115,232,0.15);
    --primary-surface: rgba(26,115,232,0.25);
    --success-light: rgba(52,168,83,0.15);
    --footer-bg: #171717;
    --footer-text: #9aa0a6;
    --footer-link: #9aa0a6;
    --footer-link-hover: #ffffff;
    --shadow-1: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-2: 0 2px 6px rgba(0,0,0,0.5);
    --shadow-3: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-hover: 0 2px 8px rgba(0,0,0,0.4);
}

/* ─── 3. RESET & BASE ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
html, body {
    width: 100%;
    overflow-x: hidden;
    background: var(--background);
    color: var(--text-primary);
    scroll-behavior: smooth;
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }

/* Remove old background orbs */
.cinematic-bg-orbs, .orb { display: none !important; }

/* ─── 4. RELIABLE SCROLL REVEAL ─── */
/* Default to visible so content is NEVER stuck invisible */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* When actively observing offscreen elements */
.reveal.will-reveal {
    opacity: 0;
    transform: translateY(16px);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── 5. NAVIGATION BAR ─── */
nav {
    background: var(--surface);
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    width: 100%;
    height: var(--nav-height);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
nav.scrolled {
    box-shadow: var(--shadow-1);
}
.nav-left-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}
.nav-logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}
.nav-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}
.nav-logo-img:hover { opacity: 0.85; }
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.nav-links li a:hover {
    background: var(--surface-alt);
    color: var(--text-primary);
    text-decoration: none;
}
.nav-links li a i { display: none; }
.sidebar-header { display: none; }

/* Language Switcher / CTA */
.nav-admission-btn {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    background: transparent;
}
.nav-admission-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-surface);
    text-decoration: none;
}

/* ─── 6. HAMBURGER MENU BUTTON ─── */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 8px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}
.menu-toggle:hover { background: var(--surface-alt); }
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-slow);
}
.menu-toggle span:nth-child(1) { margin-bottom: 5px; }
.menu-toggle span:nth-child(3) { margin-top: 5px; }
.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── 7. MOBILE SIDEBAR OVERLAY ─── */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ─── 8. HERO SLIDER (PERFECT RESPONSIVE ASPECT RATIO & ZERO CROPPING) ─── */
.hero-slider-container {
    position: relative;
    width: 100%;
    margin-top: var(--nav-height);
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 2 / 1;
    max-height: 480px;
}
.hero-slider {
    display: flex;
    height: 100%;
    width: 100%;
}
.hero-slider.animating {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slide img, 
.hero-slide video,
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center center;
    display: block;
}
.hero-slide a { 
    display: flex; 
    align-items: center;
    justify-content: center;
    width: 100%; 
    height: 100%; 
    line-height: 0; 
}
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.25);
    z-index: 5;
}
.slider-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: none;
}
.slider-progress-bar.running {
    width: 100%;
    transition: width 5s linear;
}
.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.slider-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

/* ─── 9. NOTICE TICKER ─── */
.notice-ticker {
    display: flex;
    align-items: center;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
}
.notice-ticker:hover { background: var(--border-light); }
.notice-ticker-inner {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    animation: tickerMove 25s linear infinite;
}
.notice-ticker-inner:hover { animation-play-state: paused; }
@keyframes tickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.notice-ticker-label {
    background: var(--error);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.notice-ticker-text, .notice-ticker-text-repeat {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ─── 10. SUNRISE TRUST / HERO TEXT ─── */
.sunrise-trust-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    text-align: center;
}
.sunrise-trust-title {
    font-size: clamp(28px, 4.5vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.hero-word { display: inline-block; }
.sunrise-trust-p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 24px;
}
.sunrise-get-started-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-1);
}
.sunrise-get-started-btn:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
    color: #ffffff;
}

/* ─── 11. FEATURES GRID ─── */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px 48px;
}
.features .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.features .card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
    transition: var(--transition);
}
.features .card:hover .card-icon {
    background: var(--primary);
    color: #ffffff;
}
.features .card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.card-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── 12. COURSES SECTION (SWIPEABLE CARDS) ─── */
.courses-section-wrapper {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.courses-section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 48px 24px;
}
.courses-header {
    text-align: center;
    margin-bottom: 24px;
}
.courses-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.courses-header p {
    font-size: 15px;
    color: var(--text-secondary);
}
.courses-swipe-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    text-align: center;
}
@media (max-width: 860px) {
    .courses-swipe-hint { display: flex; }
}

.courses-carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}
.courses-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}
.courses-nav-arrow:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}
.courses-nav-arrow.prev-arrow { left: -14px; }
.courses-nav-arrow.next-arrow { right: -14px; }
@media (max-width: 600px) {
    .courses-nav-arrow.prev-arrow { left: -6px; }
    .courses-nav-arrow.next-arrow { right: -6px; }
}

.courses-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    scroll-behavior: smooth;
    width: 100%;
}
.courses-grid::-webkit-scrollbar {
    height: 6px;
}
.courses-grid::-webkit-scrollbar-track {
    background: transparent;
}
.courses-grid::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: var(--radius-full);
}
.course-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex: 0 0 190px;
    min-width: 170px;
    scroll-snap-align: start;
}
@media (min-width: 992px) {
    .courses-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        overflow-x: visible;
        padding-bottom: 8px;
    }
    .course-card {
        flex: initial;
        min-width: initial;
    }
}
.course-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-1);
    background: var(--surface);
    transform: translateY(-2px);
}
.course-class-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.course-class-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.course-fee {
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
    background: var(--success-light);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}
.course-view-btn {
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: transparent;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.course-view-btn:hover { text-decoration: underline; }

/* ─── 13. COURSE MODAL ─── */
.course-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.course-modal-overlay.active { display: flex; }
.course-modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-3);
    border: 1px solid var(--border);
    animation: modalFadeIn 0.2s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}
.course-modal-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    border: none;
    background: var(--surface-alt);
    border-radius: var(--radius-full);
    font-size: 20px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1;
}
.course-modal-close:hover { background: var(--border); color: var(--text-primary); }
.course-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-light);
}
.course-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.course-modal-fee {
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
}
.course-modal-body {
    padding: 20px 24px 24px;
}
.course-modal-body h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.subject-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.subject-row:last-child { border-bottom: none; }
.subject-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}
.teacher-mini-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--background);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.teacher-mini-card:hover { background: var(--surface-alt); }
.teacher-mini-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.teacher-mini-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}
.teacher-mini-qual {
    font-size: 11px;
    color: var(--text-light);
}

/* ─── 14. VIDEO CONTAINERS (Courses & Faculty) ─── */
.course-video-container,
.faculty-video-container {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 28px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000000;
}
.course-video-wrapper,
.faculty-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}
.course-video-wrapper iframe,
.faculty-video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.advanced-mute-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(0,0,0,0.65);
    color: #ffffff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}
.advanced-mute-btn:hover {
    background: rgba(0,0,0,0.85);
    transform: scale(1.06);
}
.advanced-mute-btn.unmuted {
    background: var(--primary);
}

/* ─── 15. TOP PERFORMERS SECTION (LEFT-TO-RIGHT SWIPE CARDS) ─── */
.top-performers-section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 48px 24px;
    position: relative;
}
.tp-header {
    text-align: center;
    margin-bottom: 28px;
}
.tp-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.tp-header p {
    font-size: 15px;
    color: var(--text-secondary);
}
.tp-swipe-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    text-align: center;
}
@media (max-width: 860px) {
    .tp-swipe-hint { display: flex; }
}
.tp-carousel-container {
    position: relative;
    width: 100%;
}
.tp-cards-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.tp-cards-wrapper::-webkit-scrollbar {
    height: 6px;
}
.tp-cards-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.tp-cards-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: var(--radius-full);
}
.tp-class-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    flex: 1 1 360px;
    min-width: 320px;
    max-width: 100%;
    scroll-snap-align: start;
    box-shadow: var(--shadow-1);
    transition: var(--transition);
}
@media (max-width: 768px) {
    .tp-class-card {
        flex: 0 0 85vw;
        min-width: 280px;
        max-width: 380px;
        scroll-snap-align: center;
    }
}
.tp-class-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-surface);
}
.tp-class-title {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}
.tp-class-title i { color: var(--primary); font-size: 16px; }
.tp-students-list {
    padding: 8px 0;
}
.tp-student {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    transition: var(--transition);
}
.tp-student:hover { background: var(--background); }
.tp-rank-badge {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: var(--text-light);
    flex-shrink: 0;
}
.tp-rank-1 { background: #f59e0b; }
.tp-rank-2 { background: #94a3b8; }
.tp-rank-3 { background: #d97706; }
.tp-student-photo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-light);
}
.tp-student-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tp-student-info { flex: 1; min-width: 0; }
.tp-student-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tp-student-marks {
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
    background: var(--success-light);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-top: 2px;
}
.tp-empty {
    padding: 24px 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.tp-view-more {
    display: block;
    text-align: center;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    border-top: 1px solid var(--border-light);
    transition: var(--transition);
    text-decoration: none;
    background: var(--surface);
}
.tp-view-more:hover {
    background: var(--primary-light);
    text-decoration: none;
}

/* ─── 16. FACULTY SECTION (CLEAN & REVERSIBLE FLIP) ─── */
.faculty-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 48px 0;
}
.fs-header {
    text-align: center;
    max-width: var(--container);
    margin: 0 auto 32px;
    padding: 0 24px;
}
.fs-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.fs-header p {
    font-size: 15px;
    color: var(--text-secondary);
}
.fs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Faculty Card Container (Google Material 3) */
.fs-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 260px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.fs-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
    transform: translateY(-3px);
}
.fs-card.active, .fs-card.flipped {
    border-color: var(--primary);
    box-shadow: var(--shadow-2);
}

.fs-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Card Front */
.fs-card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 12px 14px;
    text-align: center;
    height: 100%;
    flex: 1;
    width: 100%;
    min-width: 0;
}
.fs-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--surface-alt);
    position: relative;
}
.fs-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
    display: block;
}
.fs-photo:hover img {
    transform: scale(1.04);
}
.fs-photo a { display: block; width: 100%; height: 100%; }

.fs-verified-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(4px);
    color: var(--primary);
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    border: 1px solid rgba(26,115,232,0.25);
}

.fs-info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 100%;
    min-width: 0;
}
.fs-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.fs-sub {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-light);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    margin-top: 2px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fs-tap-hint {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card Back (Slide-up Overlay with internal scroll) */
.fs-card-back {
    position: absolute;
    inset: 0;
    background: var(--surface);
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* When flipped/active via click/tap */
.fs-card.flipped .fs-card-back,
.fs-card.active .fs-card-back {
    transform: translateY(0);
}

/* On desktop with real mouse pointer, also allow hover */
@media (hover: hover) and (pointer: fine) {
    .fs-card:hover .fs-card-back {
        transform: translateY(0);
    }
}

.fs-back-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fs-back-sub {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}
.fs-back-info-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
}
.fs-info-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 11px;
    border-bottom: 1px dashed var(--border-light);
    padding-bottom: 3px;
    text-align: left;
    width: 100%;
}
.fs-info-label {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.fs-info-val {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 11.5px;
    word-break: break-word;
}
.fs-back-tap-hint {
    font-size: 10.5px;
    color: var(--text-light);
    text-align: center;
    margin-top: 6px;
    flex-shrink: 0;
}

/* ─── 17. CONTACT SECTION ─── */
.contact-section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 48px 24px;
}
.contact-header {
    text-align: center;
    margin-bottom: 32px;
}
.contact-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.contact-header p {
    font-size: 15px;
    color: var(--text-secondary);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}
.contact-info-item:hover {
    border-color: var(--primary);
}
.ci-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.ci-text { display: flex; flex-direction: column; }
.ci-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.ci-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}
.contact-action-btns {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}
.contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff !important;
    transition: var(--transition);
}
.contact-btn:hover { text-decoration: none; opacity: 0.92; transform: translateY(-1px); }
.contact-btn-whatsapp { background: #25D366; }
.contact-btn-call { background: var(--primary); }
.contact-map-panel {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
    background: var(--surface);
}
.contact-map-panel iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ─── 18. ABOUT SECTION ─── */
.about {
    max-width: var(--container);
    margin: 0 auto;
    padding: 48px 24px;
    text-align: center;
}
.about h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.about p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 760px;
    margin: 0 auto;
}

/* ─── 19. CLEAN GOOGLE FOOTER ─── */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 36px 24px 28px;
    text-align: center;
    border-top: 1px solid var(--border);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    margin-bottom: 16px;
}
.footer-links a {
    color: var(--footer-link);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}
.footer-links a:hover { 
    color: var(--footer-link-hover); 
    text-decoration: underline; 
}
footer p {
    font-size: 12px;
    color: var(--footer-text);
    line-height: 1.6;
}
footer strong { 
    color: var(--text-primary); 
    font-weight: 600; 
}

/* ─── 20. TEACHER PHOTO MODAL / LIGHTBOX ─── */
.teacher-photo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.2s ease;
}
.teacher-photo-overlay.active { display: flex; }
.teacher-photo-modal {
    position: relative;
    max-width: 480px;
    width: 100%;
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-3);
    border: 1px solid var(--border);
}
.teacher-photo-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--surface-alt);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    z-index: 5;
}
.teacher-photo-close:hover {
    background: var(--border);
}
.teacher-photo-modal img {
    max-width: 100%;
    max-height: 65vh;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin: 0 auto 12px;
}
.teacher-photo-caption {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ─── 21. RESPONSIVE BREAKPOINTS ─── */
@media screen and (max-width: 960px) {
    .nav-links { 
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        padding: 0;
        z-index: 1001;
        box-shadow: var(--shadow-3);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }
    .sidebar-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 24px 20px;
        border-bottom: 1px solid var(--border-light);
        gap: 4px;
        width: 100%;
    }
    .sidebar-logo-img {
        height: 36px;
        width: auto;
        object-fit: contain;
        margin-bottom: 4px;
    }
    .sidebar-title {
        font-size: 16px;
        font-weight: 700;
        color: var(--text-primary);
    }
    .sidebar-subtitle {
        font-size: 12px;
        color: var(--text-light);
    }
    .nav-links li { margin: 0; width: 100%; }
    .nav-links li a {
        padding: 14px 20px;
        border-radius: 0;
        font-size: 14px;
        color: var(--text-secondary);
        border-bottom: 1px solid var(--border-light);
        gap: 12px;
    }
    .nav-links li a i { 
        display: inline-block; 
        width: 20px; 
        text-align: center; 
        font-size: 15px; 
        color: var(--text-light); 
    }
    .nav-links li a:hover { 
        background: var(--surface-alt); 
        color: var(--text-primary); 
    }
    .menu-toggle { display: flex; }
    .menu-overlay { cursor: pointer; }

    .sunrise-trust-title { font-size: 28px; }
    .contact-grid { grid-template-columns: 1fr; }
    .tp-cards-wrapper { grid-template-columns: 1fr; }
    .fs-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
        padding: 0 16px;
    }
}

@media screen and (max-width: 600px) {
    nav { padding: 0 16px; height: 56px; }
    :root { --nav-height: 56px; }
    .nav-logo-img { height: 32px; }
    
    .hero-slider-container { aspect-ratio: 2 / 1 !important; max-height: 240px; }
    .sunrise-trust-section { padding: 36px 16px 28px; }
    .sunrise-trust-title { font-size: 22px; }
    .sunrise-trust-p { font-size: 14px; margin-bottom: 18px; }
    .sunrise-get-started-btn { font-size: 13px; padding: 10px 20px; }
    
    .features { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px 32px; }
    .features .card { padding: 16px 8px 12px; }
    .card-icon { width: 38px; height: 38px; font-size: 15px; margin-bottom: 6px; }
    .features .card h3 { font-size: 11px; }
    .card-badge { font-size: 9px; padding: 1px 6px; }
    
    .courses-section { padding: 32px 16px; }
    .courses-header h2, .tp-header h2, .fs-header h2, .contact-header h2, .about h2 { font-size: 22px; }
    .course-card { padding: 14px 10px; }
    
    .top-performers-section { padding: 32px 16px; }
    .fs-container { 
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; 
        gap: 10px; 
        padding: 0 10px; 
    }
    .fs-card-front { padding: 10px 8px 10px; }
    .fs-photo { 
        width: 100%; 
        aspect-ratio: 3 / 4; 
        height: auto; 
        margin-bottom: 6px;
    }
    .fs-name { font-size: 13px; line-height: 1.2; }
    .fs-sub { font-size: 10px; padding: 2px 6px; }
    .fs-tap-hint { font-size: 9px; margin-top: 4px; }
    .fs-card { min-height: 220px; }
    .faculty-section { padding: 32px 0; }
    
    .contact-section { padding: 32px 16px; }
    .contact-action-btns { flex-direction: column; }
    
    .about { padding: 32px 16px; }
    
    .course-video-container, .faculty-video-container { border-radius: 0; border-left: 0; border-right: 0; max-width: 100%; }
    .advanced-mute-btn { width: 32px; height: 32px; font-size: 12px; bottom: 8px; right: 8px; }
    
    footer { padding: 24px 16px; }
}

/* ─── 22. CUSTOM SCROLLBAR ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ─── 23. PRINT STYLES ─── */
@media print {
    nav, .notice-ticker, .slider-dots, .slider-progress,
    .sunrise-get-started-btn, .course-view-btn, .contact-action-btns,
    .menu-toggle, .menu-overlay, #sunrise-preloader, #home-skeleton-loader,
    .cinematic-bg-orbs { display: none !important; }
    body { background: #fff; color: #000; }
    .reveal { opacity: 1; transform: none; }
}
