/* ========================================
   Star Excellent Academy v2.0 - Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* Hide all dynamic containers until JS loads fresh data — prevents stale-content flash */
#courses-grid,
#faculty-grid,
#testimonials-track,
#gallery-grid,
#director-card,
#carousel-track,
#about-text,
#achievements-list,
#results-grid {
    visibility: hidden !important;
}

.js-loaded #courses-grid,
.js-loaded #faculty-grid,
.js-loaded #testimonials-track,
.js-loaded #gallery-grid,
.js-loaded #director-card,
.js-loaded #carousel-track,
.js-loaded #about-text,
.js-loaded #achievements-list,
.js-loaded #results-grid {
    visibility: visible !important;
}

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary-dark: #0a1628;
    --primary-blue: #1a365d;
    --primary-light: #2563eb;
    --primary-navy: #0f2847;

    --accent-gold: #f59e0b;
    --accent-gold-light: #fbbf24;
    --accent-light-blue: #60a5fa;
    --accent-cyan: #22d3ee;

    --gradient-hero: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0f2847 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-blue: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);

    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --success: #10b981;
    --danger: #ef4444;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 0 20px rgba(245, 158, 11, 0.4);

    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    --z-dropdown: 100;
    --z-header: 200;
    --z-modal: 300;
    --z-toast: 400;
    --z-float: 500;
}

/* ========================================
   Reset & Base
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-dark .section-title {
    background: linear-gradient(135deg, var(--white), var(--accent-light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: var(--text-lg);
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

.section-dark .section-description {
    color: var(--gray-300);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-primary:hover {
    background: var(--gradient-gold);
    color: var(--gray-900);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: #25D366;
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.btn-youtube {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-youtube:hover {
    background: #FF0000;
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.4);
}

.btn-youtube i {
    font-size: 1.1em;
}

.btn-blue {
    background: var(--gradient-blue);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: var(--text-sm);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: var(--text-lg);
}

.btn-outline-gold {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}

.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: var(--gray-900);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border: none;
    font-size: var(--text-base);
}

.btn-whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

/* ========================================
   Announcement Banner
   ======================================== */
.announcement-banner {
    background: linear-gradient(90deg, var(--primary-light), #7c3aed, var(--primary-light));
    background-size: 200% 100%;
    animation: bannerShift 4s ease infinite;
    color: var(--white);
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: var(--text-sm);
    font-weight: 500;
    position: relative;
    z-index: 250;
}

.announcement-banner .close-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.announcement-banner .close-btn:hover {
    opacity: 1;
}

@keyframes bannerShift {

    0%,
    100% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }
}

.announcement-banner.hidden {
    display: none;
}

/* ========================================
   Top Bar
   ======================================== */
.top-bar {
    background: var(--primary-dark);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: var(--text-xs);
    color: var(--gray-400);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-left a {
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-left a:hover {
    color: var(--accent-gold);
}

.top-bar-left i {
    color: var(--accent-gold);
    font-size: 0.7rem;
}

.news-ticker {
    overflow: hidden;
    flex: 1;
}

.news-ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
    color: var(--accent-gold-light);
}

@keyframes ticker {
    0% {
        transform: translateX(100%)
    }

    100% {
        transform: translateX(-100%)
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 0.3rem;
    }

    .top-bar-left {
        flex-wrap: wrap;
        justify-content: center;
    }

    .news-ticker {
        max-width: 100%;
    }
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: var(--white);
    backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    transition: all var(--transition-base);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-dark);
}

.logo-text span {
    color: var(--accent-gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    position: relative;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-600);
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    margin-left: 0.5rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 380px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        padding: 2rem;
        transition: right var(--transition-base);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 1rem;
    }

    .nav-link {
        font-size: var(--text-lg);
        color: var(--gray-700);
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-light);
    }
}

/* View More Button */
.view-more-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: var(--text-base);
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--primary-light);
    background: transparent;
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-view-more:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-view-more i {
    transition: transform var(--transition-base);
}

.btn-view-more:hover i {
    transform: translateX(4px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 5rem 0 4rem;
    width: 100%;
}

.hero-logo {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.hero-logo canvas {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-logo canvas.loaded {
    opacity: 1;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title .highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-300);
    max-width: 750px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-courses {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-course-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--white);
    backdrop-filter: blur(5px);
    transition: all var(--transition-base);
}

.hero-course-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hero-course-tag i {
    color: var(--accent-gold);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 3rem 0 2rem;
    }

    .hero-logo {
        width: 140px;
        height: 140px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-course-tag {
        font-size: var(--text-xs);
        padding: 0.4rem 0.8rem;
    }
}

/* ========================================
   Achievements / Toppers Section
   ======================================== */
.achievements-section {
    background: var(--gray-50);
    padding: 5rem 0;
    overflow: hidden;
}



.toppers-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.topper-stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.topper-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.topper-stat .stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-lg);
}

.topper-stat .stat-value {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 0.25rem;
}

.topper-stat .stat-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .toppers-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Topper Photo Carousel */
.toppers-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 2.5rem 0;
}



.carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: carouselScroll 30s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.toppers-carousel:empty,
.carousel-track:empty {
    display: none;
}

@keyframes carouselScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.carousel-card {
    flex-shrink: 0;
    width: 220px;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-200);
    transition: all var(--transition-base);
}

.carousel-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.carousel-card-photo {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
}

.carousel-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-card-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    color: var(--accent-gold);
    font-size: 3rem;
}

.carousel-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 0.2rem 0.6rem;
    background: var(--accent-gold);
    color: var(--gray-900);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.carousel-card-info {
    padding: 0.85rem 1rem;
    text-align: center;
}

.carousel-card-name {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-card-exam {
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 600;
    margin: 0;
}

.carousel-card-rank {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin: 0;
}

@media (max-width: 768px) {
    .carousel-card {
        width: 180px;
    }

    .carousel-card-photo {
        height: 200px;
    }

    .toppers-carousel::before,
    .toppers-carousel::after {
        width: 30px;
    }
}

/* ── Results Page — Static 5-column grid ── */
.results-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.results-grid .carousel-card {
    width: 100%;
}

@media (max-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Dynamic Achievements List (loaded from admin) */
.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.achievements-list:empty {
    display: none;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
}

.achievement-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-gold);
}

.achievement-photo {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-gold);
    background: var(--gray-100);
}

.achievement-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.achievement-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    color: var(--gray-900);
    font-size: 1.5rem;
}

.achievement-name {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.achievement-exam {
    font-size: var(--text-sm);
    color: var(--primary-light);
    font-weight: 600;
    margin: 0;
}

.achievement-rank {
    font-size: var(--text-sm);
    color: var(--accent-gold);
    font-weight: 700;
    margin: 0;
}

.achievement-year {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--gray-600);
    margin-top: 0.25rem;
}

@media (max-width: 640px) {
    .achievements-list {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Courses Section
   ======================================== */
.courses-section {
    padding: 5rem 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.course-header {
    padding: 2rem 1.5rem 1.5rem;
    background: var(--gradient-hero);
    color: var(--white);
}

.course-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-gold);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.course-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.course-target {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--accent-gold);
}

.course-body {
    padding: 1.5rem;
}

.course-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.course-duration i {
    color: var(--primary-light);
}

.course-features {
    margin-bottom: 1.5rem;
}

.course-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.4rem 0;
    font-size: var(--text-sm);
    color: var(--gray-700);
}

.course-features li i {
    color: var(--accent-gold);
    margin-top: 3px;
    font-size: 0.7rem;
}

.course-cta {
    width: 100%;
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   USP / Why Choose Us
   ======================================== */
.usp-section {
    background: var(--gradient-hero);
    padding: 5rem 0;
    color: var(--white);
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.usp-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.usp-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.usp-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--gradient-gold);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: var(--gray-900);
}

.usp-content h4 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.usp-content p {
    font-size: var(--text-sm);
    color: var(--gray-300);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .usp-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content .section-subtitle {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
}

.about-content p {
    color: var(--gray-600);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.about-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--gradient-gold);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-gold);
}

.about-badge-number {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--gray-900);
}

.about-badge-text {
    font-size: var(--text-sm);
    color: var(--gray-800);
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ========================================
   Faculty Section
   ======================================== */
.faculty-section {
    background: var(--gray-50);
    padding: 5rem 0;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.faculty-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
}

.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.faculty-photo {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-gold);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
    background: var(--gray-100);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.faculty-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}

.faculty-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faculty-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    color: var(--accent-gold);
    font-size: 2.5rem;
}

.faculty-name {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.faculty-designation {
    font-size: var(--text-sm);
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.faculty-subject {
    font-size: var(--text-xs);
    color: var(--gray-500);
}

/* ========================================
   Director Message
   ======================================== */
.director-section {
    padding: 5rem 0;
}

.director-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--gradient-hero);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    color: var(--white);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.director-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 40px;
    font-size: 15rem;
    color: rgba(245, 158, 11, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
}

.director-photo {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 4px solid var(--accent-gold);
    box-shadow: var(--shadow-gold);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.director-photo:hover {
    transform: scale(1.05);
}

.director-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
    font-size: 4rem;
}

.director-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.director-name {
    font-size: var(--text-2xl);
    margin-bottom: 0.25rem;
    color: var(--white);
}

.director-title {
    font-size: var(--text-sm);
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.director-message-text {
    font-size: var(--text-base);
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.director-vision {
    font-size: var(--text-sm);
    color: var(--gray-400);
}

.director-vision strong {
    color: var(--accent-gold);
}

@media (max-width: 768px) {
    .director-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }

    .director-photo {
        width: 150px;
        height: 150px;
    }
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery-section {
    background: var(--gray-50);
    padding: 5rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay p {
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 500;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    object-fit: contain;
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gray-300);
    font-size: var(--text-sm);
}

/* ========================================
   Testimonials Section (Carousel)
   ======================================== */
.testimonials-section {
    padding: 5rem 0;
    overflow: hidden;
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
}



.testimonials-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: carouselScroll 35s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonials-carousel:empty,
.testimonials-track:empty {
    display: none;
}

.testimonial-card {
    flex-shrink: 0;
    width: 340px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    font-size: 5rem;
    color: rgba(37, 99, 235, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-stars {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: var(--text-sm);
}

.testimonial-content {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: var(--text-lg);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-900);
}

.testimonial-role {
    font-size: var(--text-xs);
    color: var(--gray-500);
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 290px;
        padding: 1.5rem;
    }



    .testimonials-track {
        animation-duration: 25s;
    }
}

/* ========================================
   Contact / Footer Section
   ======================================== */
.contact-section {
    background: var(--gray-50);
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h3 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-family: var(--font-body);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-info {
    padding: 0;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: var(--text-base);
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.contact-details p,
.contact-details a {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.contact-details a:hover {
    color: var(--primary-light);
}

.contact-map {
    margin-top: 1.5rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-map iframe {
    width: 100%;
    height: 220px;
    border: none;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: var(--text-lg);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-3px);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
}

.social-link.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.footer-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
}

.footer-logo-text span {
    color: var(--accent-gold);
}

.footer-brand p {
    font-size: var(--text-sm);
    color: var(--gray-400);
    line-height: 1.8;
}

.footer-column h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact-item i {
    color: var(--accent-gold);
    margin-top: 3px;
}

.footer-contact-item span,
.footer-contact-item a {
    font-size: var(--text-sm);
    color: var(--gray-400);
}

.footer-contact-item a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--gray-900);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Floating Buttons
   ======================================== */
.floating-buttons {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: var(--z-float);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all var(--transition-base);
}

.float-btn:hover {
    transform: translateY(-3px) scale(1.08);
}

.float-btn-whatsapp {
    background: #25d366;
}

.float-btn-whatsapp:hover {
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.float-btn-top {
    background: var(--gradient-blue);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.float-btn-top.visible {
    opacity: 1;
    visibility: visible;
}

.float-btn-top:hover {
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.5);
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 1rem;
        right: 1rem;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* ========================================
   FAQ Section (native <details>/<summary>)
   ======================================== */
.faq-section {
    padding: 5rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item[open] {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    font-family: var(--font-heading);
    list-style: none;
}

/* Remove default marker */
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    display: none;
    content: "";
}

/* Custom chevron indicator */
.faq-question::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-light);
    transition: transform var(--transition-base);
    font-size: var(--text-sm);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer-content {
    padding: 0 1.5rem 1.25rem;
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========================================
   Page Header (for sub-pages)
   ======================================== */
.page-header {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 6rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.page-header p {
    color: var(--gray-300);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Notification Toast
   ======================================== */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: var(--z-toast);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: var(--success);
}

.toast-error {
    background: var(--danger);
}

.toast-info {
    background: var(--primary-light);
}

/* ========================================
   Mobile-First Aesthetic Enhancements
   ======================================== */

/* ── Smooth scroll behavior for mobile ────── */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ── Enhanced Mobile Navigation (≤1024px) ── */
@media (max-width: 1024px) {
    .nav-menu {
        background: #0a1628;
        width: 100%;
        max-width: 100%;
        padding: 5rem 2rem 3rem;
        gap: 0;
        z-index: 999;
        align-items: stretch;
    }

    .nav-link {
        font-size: 1.1rem;
        font-weight: 500;
        padding: 1.1rem 0.5rem;
        width: 100%;
        text-align: center;
        border-radius: 0;
        color: rgba(255, 255, 255, 0.85);
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        letter-spacing: 0.3px;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .nav-link:hover {
        color: var(--accent-gold);
    }

    .nav-link.active {
        color: var(--accent-gold);
        background: transparent;
        font-weight: 600;
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        margin-top: 2rem;
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: var(--text-base);
        font-weight: 600;
        align-self: center;
    }
}

/* ── Mobile Typography & Spacing (≤768px) ── */
@media (max-width: 768px) {
    :root {
        --text-5xl: 2.25rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
    }

    body {
        font-size: 1.0125rem;
        line-height: 1.7;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-subtitle {
        font-size: var(--text-sm);
    }

    /* Hero mobile improvements */
    .hero {
        min-height: 80vh;
    }

    .hero-content {
        padding: 2.5rem 0 2rem;
    }

    .hero-logo {
        width: 130px;
        height: 130px;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: var(--text-base);
        line-height: 1.7;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .hero-courses {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-course-tag {
        font-size: 0.72rem;
        padding: 0.4rem 0.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2rem;
    }

    /* Top bar mobile */
    .top-bar {
        padding: 0.4rem 0;
        font-size: 0.68rem;
    }

    /* Stats mobile grid */
    .toppers-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .topper-stat {
        padding: 1.25rem 1rem;
    }

    .topper-stat .stat-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }

    .topper-stat .stat-value {
        font-size: var(--text-xl);
    }

    .topper-stat .stat-label {
        font-size: var(--text-xs);
    }

    /* Carousel mobile */
    .toppers-carousel {
        margin: 1.5rem -1rem;
    }

    /* Course cards mobile */
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-header {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .course-body {
        padding: 1.25rem;
    }

    /* USP mobile */
    .usp-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .usp-card {
        padding: 1.25rem;
    }

    .usp-icon {
        width: 48px;
        height: 48px;
    }

    /* About mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content .section-subtitle,
    .about-content .section-title {
        text-align: center;
    }

    .about-content .section-title::after {
        margin: 0.75rem auto 0;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: var(--text-2xl);
    }

    .about-image {
        order: -1;
        max-width: 80%;
        margin: 0 auto;
    }

    .about-badge {
        bottom: -10px;
        right: -10px;
        padding: 0.75rem 1rem;
    }

    .about-badge-number {
        font-size: var(--text-2xl);
    }

    /* Faculty mobile */
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .faculty-card {
        padding: 1.5rem 1rem;
    }

    .faculty-photo {
        width: 90px;
        height: 90px;
    }

    .faculty-name {
        font-size: var(--text-base);
    }

    /* Director mobile */
    .director-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .director-photo {
        width: 140px;
        height: 140px;
    }

    .director-card::before {
        font-size: 8rem;
        right: 20px;
        top: -10px;
    }

    /* Gallery mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .gallery-item {
        border-radius: var(--radius-lg);
    }

    /* Overlay always visible on mobile (no hover) */
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.6));
    }

    /* Testimonials carousel mobile */
    .testimonial-card {
        width: 290px;
        padding: 1.5rem;
    }

    /* Contact mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
        /* Prevent iOS zoom */
    }

    .contact-map iframe {
        height: 200px;
    }

    /* Footer mobile */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* Floating buttons mobile */
    .floating-buttons {
        bottom: 1rem;
        right: 1rem;
    }

    .float-btn {
        width: 52px;
        height: 52px;
    }
}

/* ── Small phones (≤480px) ────────────────── */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: clamp(1.4rem, 7vw, 2rem);
    }

    .hero-logo {
        width: 110px;
        height: 110px;
    }

    .hero-course-tag {
        font-size: 0.65rem;
        padding: 0.35rem 0.6rem;
    }

    .toppers-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .faculty-grid {
        grid-template-columns: 1fr;
    }

    .faculty-card {
        display: flex;
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        padding: 1.25rem;
    }

    .faculty-photo {
        margin: 0;
        width: 72px;
        height: 72px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .usp-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ── Touch-device form enhancements ──────── */
@media (hover: none) and (pointer: coarse) {

    /* Larger touch targets */
    .btn {
        min-height: 48px;
    }

    .btn-sm {
        min-height: 44px;
        padding: 0.6rem 1.25rem;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Tap highlight for interactive cards */
    .course-card,
    .faculty-card,
    .testimonial-card,
    .usp-card,
    .contact-item {
        -webkit-tap-highlight-color: rgba(245, 158, 11, 0.08);
    }

    /* Form inputs - prevent zoom on iOS */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* iOS won't zoom if >= 16px */
    }

    /* Better scroll on carousel */
    .carousel-track {
        -webkit-overflow-scrolling: touch;
    }

    /* Social links bigger tap targets */
    .social-link {
        width: 48px;
        height: 48px;
    }

    .footer-social a {
        width: 44px;
        height: 44px;
    }
}

/* ── Enhanced focus states for accessibility ── */
:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.btn:focus-visible {
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3);
}

/* ── Form input enhanced focus glow ────────── */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12),
        0 2px 8px rgba(37, 99, 235, 0.08);
}

/* ── Landscape mobile fix ──────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .nav-menu {
        padding: 1rem 2rem;
        overflow-y: auto;
    }
}