/* ==========================================================================
   GIST SMS — Public Landing Page Stylesheet
   --------------------------------------------------------------------------
   Scope: index.php only. Do NOT load on dashboard or admin pages.
   Fonts: Inter (body) + Poppins (headings) — loaded in index.php
   Palette: Deep navy + royal blue + amber accent
   ========================================================================== */

/* ==================== 1. DESIGN TOKENS ==================== */
:root {
    /* Brand */
    --navy-900: #0b1220;
    --navy-800: #0f172a;
    --navy-700: #1a2332;
    --navy-600: #1e293b;
    --royal-600: #1d4ed8;
    --royal-500: #2563eb;
    --royal-400: #3b82f6;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;

    /* Neutrals */
    --white: #ffffff;
    --bg-soft: #f8fafc;
    --bg-mute: #f1f5f9;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    /* Text */
    --text-h: #0f172a;
    --text-b: #334155;
    --text-m: #64748b;
    --text-l: #94a3b8;
    --text-on-dark: #cbd5e1;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 32px 64px rgba(15, 23, 42, 0.16);

    /* Radii */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 999px;

    /* Motion */
    --t-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container-gutter: 24px;
    --section-y: 96px;
    --section-y-sm: 64px;
}

/* ==================== 2. RESET & BASE ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-b);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--royal-500);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover {
    color: var(--royal-600);
}

::selection {
    background: var(--amber-400);
    color: var(--navy-900);
}

/* Smooth anchor offset for fixed header */
section[id] {
    scroll-margin-top: 100px;
}

/* ==================== 3. TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: var(--text-h);
    line-height: 1.25;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 1rem;   font-weight: 600; }

p { margin: 0 0 1rem; }

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-m);
}

.text-muted { color: var(--text-m) !important; }

/* ==================== 4. BUTTONS ==================== */
.btn {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.6rem;
    border-radius: var(--r-md);
    transition: all var(--t-base);
    border: 1.5px solid transparent;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.02rem;
    border-radius: var(--r-md);
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--royal-500) 0%, var(--royal-600) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
    border: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--royal-600) 0%, #1e40af 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: var(--navy-700);
    color: var(--white);
    border: none;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15);
}

.btn-secondary:hover {
    background: var(--navy-800);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.35);
}

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

.btn-outline-light:hover {
    background: var(--white);
    color: var(--navy-800);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--royal-500);
    border: 1.5px solid var(--royal-500);
}

.btn-outline-primary:hover {
    background: var(--royal-500);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--navy-800);
    border: 1.5px solid var(--navy-800);
}

.btn-outline-dark:hover {
    background: var(--navy-800);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==================== 5. HEADER / NAVBAR ==================== */
#siteHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: all var(--t-base);
}

/* --- Top bar --- */
.top-bar {
    background: var(--navy-900);
    color: var(--text-on-dark);
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 44px;
    overflow: hidden;
    transition: all var(--t-base);
    opacity: 1;
}

.top-bar a {
    color: var(--text-on-dark);
    display: inline-flex;
    align-items: center;
    transition: color var(--t-fast);
}

.top-bar a:hover {
    color: var(--amber-400);
}

.top-bar .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-on-dark);
    transition: all var(--t-base);
}

.top-bar .social-icon:hover {
    background: var(--amber-400);
    color: var(--navy-900);
    transform: translateY(-2px);
}

/* Collapse top bar when scrolled */
#siteHeader.scrolled .top-bar {
    max-height: 0;
    padding: 0;
    opacity: 0;
    border-bottom: none;
}

/* --- Main navbar --- */
#mainNav {
    background: var(--navy-800);
    padding: 14px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all var(--t-base);
}

#mainNav.scrolled {
    padding: 10px 0;
    background: rgba(11, 18, 32, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white) !important;
    letter-spacing: -0.01em;
    transition: all var(--t-base);
}

.navbar-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px;
    transition: all var(--t-base);
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.08);
    background: rgba(245, 158, 11, 0.2);
}

.brand-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

#mainNav.scrolled .navbar-logo {
    width: 36px;
    height: 36px;
}

#mainNav.scrolled .brand-text {
    font-size: 1.05rem;
}

/* --- Nav links --- */
#mainNav .nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 14px !important;
    margin: 0 2px;
    border-radius: var(--r-sm);
    transition: all var(--t-fast);
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 2px;
    background: var(--amber-400);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--t-base);
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.06);
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
    transform: scaleX(1);
}

/* Login pill button in nav */
#mainNav .btn-primary.rounded-pill {
    padding: 8px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--r-pill) !important;
}

.navbar-toggler {
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: var(--r-sm);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Header spacer — JS updates height dynamically, this is the fallback */
.header-spacer {
    height: 116px;
}

/* ==================== 6. HERO ==================== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-carousel .hero-slide {
    height: 88vh;
    min-height: 560px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-carousel .hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 18, 32, 0.65) 0%, rgba(11, 18, 32, 0.35) 100%);
    z-index: 1;
}

.hero-carousel .hero-slide > .container {
    position: relative;
    z-index: 2;
}

.hero-carousel .hero-slide h1 {
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

.hero-carousel .hero-slide .lead {
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.75rem;
    max-width: 640px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(245, 158, 11, 0.18);
    color: var(--amber-400);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--r-pill);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Hero carousel nav arrows */
.hero-carousel .owl-nav button {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 72px;
    background: rgba(11, 18, 32, 0.55) !important;
    color: var(--white) !important;
    font-size: 26px !important;
    border-radius: var(--r-sm) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all var(--t-base);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-carousel .owl-nav button:hover {
    background: var(--amber-500) !important;
    color: var(--navy-900) !important;
}

.hero-carousel .owl-prev { left: 24px !important; }
.hero-carousel .owl-next { right: 24px !important; }

/* Hero carousel dots */
.hero-carousel .owl-dots {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
}

.hero-carousel .owl-dot span {
    width: 10px !important;
    height: 10px !important;
    background: rgba(255, 255, 255, 0.4) !important;
    margin: 5px !important;
    transition: all var(--t-base);
}

.hero-carousel .owl-dot.active span {
    width: 32px !important;
    background: var(--amber-400) !important;
    border-radius: var(--r-pill) !important;
}

/* Scroll-down chevron */
.scroll-down {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.75rem;
    z-index: 3;
    animation: bounce 2s infinite;
    transition: color var(--t-fast);
}

.scroll-down:hover { color: var(--amber-400); }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40%                      { transform: translateX(-50%) translateY(-14px); }
    60%                      { transform: translateX(-50%) translateY(-7px); }
}

/* ==================== 7. SECTIONS ==================== */
.section {
    padding: var(--section-y) 0;
}

.section.bg-light {
    background: var(--bg-soft) !important;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.section-title {
    display: inline-block;
    position: relative;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--amber-500), var(--amber-400));
    border-radius: var(--r-pill);
    margin: 12px auto 0;
}

.section-subtitle {
    color: var(--text-m);
    font-size: 1.05rem;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title-small {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 8px;
}

/* ==================== 8. STATS ==================== */
.stats-section {
    padding: 72px 0;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.stat-card {
    position: relative;
    text-align: center;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--t-base);
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-card i {
    color: var(--amber-400);
    margin-bottom: 12px;
    transition: transform var(--t-base);
}

.stat-card:hover i {
    transform: scale(1.12);
}

.stat-card h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    margin: 8px 0 4px;
    letter-spacing: -0.02em;
}

.stat-card p {
    color: var(--text-l);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0;
}

/* ==================== 9. ADMISSION / DOWNLOAD ==================== */
.download-section {
    padding: 72px 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--bg-soft) 100%);
    border-bottom: 1px solid var(--border);
}

.download-links .btn {
    margin: 6px 4px;
    min-width: 200px;
}

/* ==================== 10. NOTIFICATIONS ==================== */
.notifications-container {
    max-width: 900px;
    margin: 0 auto;
}

.notification-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--royal-500) !important;
    border-radius: var(--r-md) !important;
    padding: 20px 22px !important;
    margin-bottom: 14px !important;
    transition: all var(--t-base);
    box-shadow: var(--shadow-xs);
}

.notification-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--amber-500) !important;
}

.notification-item .fw-bold {
    color: var(--navy-800);
    font-size: 1.02rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.notification-item p {
    color: var(--text-b);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.notification-item small {
    color: var(--text-m);
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==================== 11. EVENTS ==================== */
.event-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all var(--t-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--royal-400);
}

.event-image {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform var(--t-slow);
}

.event-card:hover .event-image {
    transform: scale(1.05);
}

.event-card .p-4 {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px !important;
}

.event-card .card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 10px;
    line-height: 1.35;
}

.event-card .card-text {
    color: var(--text-m);
    font-size: 0.92rem;
    margin-bottom: 14px;
    flex: 1;
}

.event-card .btn {
    align-self: flex-start;
}

/* ==================== 12. SPORTS ==================== */
.sports-tabs,
.performance-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.tab-btn {
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--text-b);
    padding: 10px 22px;
    border-radius: var(--r-pill);
    font-weight: 500;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all var(--t-base);
    font-family: inherit;
}

.tab-btn:hover {
    border-color: var(--royal-400);
    color: var(--royal-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--royal-500) 0%, var(--royal-600) 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.sports-grid,
.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.sport-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all var(--t-base);
    box-shadow: var(--shadow-xs);
}

.sport-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--amber-400);
}

.sport-img {
    height: 200px;
    overflow: hidden;
    background: var(--bg-mute);
}

.sport-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}

.sport-card:hover .sport-img img {
    transform: scale(1.08);
}

.sport-info {
    padding: 22px;
}

.sport-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 8px;
}

.sport-coach {
    color: var(--text-m);
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.sport-info p {
    color: var(--text-b);
    font-size: 0.92rem;
    margin-bottom: 14px;
}

.sport-schedule {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-m);
    gap: 12px;
    flex-wrap: wrap;
}

.sport-schedule .btn {
    flex-shrink: 0;
}

/* ==================== 13. ALUMNI ==================== */
.alumni-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--text-b);
    padding: 8px 20px;
    border-radius: var(--r-pill);
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--t-base);
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--amber-500);
    color: var(--amber-500);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-400) 100%);
    color: var(--navy-900);
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
    font-weight: 600;
}

.alumni-card {
    background: var(--white) !important;
    border: 1px solid var(--border);
    border-radius: var(--r-lg) !important;
    padding: 24px 18px !important;
    text-align: center;
    transition: all var(--t-base);
    box-shadow: var(--shadow-xs);
    height: 100%;
}

.alumni-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--royal-400);
}

.alumni-card img {
    margin: 0 auto 14px;
    border: 3px solid var(--royal-500);
    transition: all var(--t-base);
}

.alumni-card:hover img {
    border-color: var(--amber-500);
    transform: scale(1.05);
}

.alumni-card h5 {
    font-size: 1.05rem;
    color: var(--navy-800);
    margin-bottom: 4px;
}

.alumni-card p {
    color: var(--text-m);
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.alumni-card .badge {
    font-size: 0.75rem;
    padding: 5px 12px;
}

/* ==================== 14. PERFORMANCE ==================== */
.performance-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 26px 20px;
    text-align: center;
    transition: all var(--t-base);
    box-shadow: var(--shadow-xs);
}

.performance-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--amber-400);
}

.student-photo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 14px;
    border: 3px solid var(--royal-400);
    transition: all var(--t-base);
}

.performance-card:hover .student-photo {
    border-color: var(--amber-500);
    transform: scale(1.06);
}

.performance-card h4 {
    font-size: 1.05rem;
    color: var(--navy-800);
    margin-bottom: 4px;
}

.student-class {
    color: var(--text-m);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.performance-card .score {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--royal-500);
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.performance-card .badge {
    background: linear-gradient(135deg, var(--amber-500), var(--amber-400));
    color: var(--navy-900);
    font-weight: 600;
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: var(--r-pill);
}

/* ==================== 15. FEEDBACK ==================== */
.feedback-section {
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--white) 100%);
}

.feedback-form-card,
.recent-feedback-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all var(--t-base);
    display: flex;
    flex-direction: column;
}

.feedback-form-card:hover,
.recent-feedback-card:hover {
    box-shadow: var(--shadow-md);
}

.feedback-form-header {
    background: linear-gradient(135deg, var(--royal-500) 0%, var(--royal-600) 100%);
    color: var(--white);
    padding: 26px 24px;
    text-align: center;
}

.feedback-form-header i {
    font-size: 2rem;
    color: var(--amber-400);
    margin-bottom: 10px;
    display: block;
}

.feedback-form-header h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.feedback-form-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.feedback-form-card .card-body {
    padding: 28px 24px !important;
}

.feedback-form-card .form-control {
    border-radius: var(--r-md);
    border: 1.5px solid var(--border-strong);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all var(--t-fast);
}

.feedback-form-card .form-control:focus {
    border-color: var(--royal-500);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    outline: none;
}

/* Star rating */
.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.rating input { display: none; }

.rating label {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: all var(--t-fast);
    line-height: 1;
}

.rating input:checked ~ label,
.rating label:hover,
.rating label:hover ~ label {
    color: var(--amber-400);
}

.rating input:checked ~ label:hover,
.rating input:checked ~ label:hover ~ label {
    color: #d97706;
}

.recent-feedback-header {
    padding: 22px 26px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}

.recent-feedback-header h4 {
    font-size: 1.1rem;
    color: var(--navy-800);
    margin: 0;
}

.recent-feedback-header i {
    color: var(--amber-500);
}

.feedback-list-container {
    padding: 20px 26px;
    flex: 1;
    overflow-y: auto;
    max-height: 520px;
}

.feedback-item-modern {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px dashed var(--border);
}

.feedback-item-modern:last-child {
    border-bottom: none;
}

.feedback-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--royal-500), var(--royal-600));
    color: var(--white);
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

.feedback-content {
    flex: 1;
    min-width: 0;
}

.feedback-name {
    font-weight: 600;
    color: var(--navy-800);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.feedback-stars {
    color: var(--amber-400);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.feedback-message {
    color: var(--text-b);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.55;
    word-wrap: break-word;
}

.feedback-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-m);
}

.feedback-empty i {
    font-size: 2.5rem;
    opacity: 0.25;
    margin-bottom: 14px;
    display: block;
}

.feedback-empty p {
    margin: 0;
    font-size: 0.92rem;
}

/* ==================== 16. CONTACT ==================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.contact-info-card,
.contact-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: all var(--t-base);
}

.contact-info-card:hover,
.contact-form-card:hover {
    box-shadow: var(--shadow-md);
}

.contact-info-card h3,
.contact-form-card h3 {
    font-size: 1.3rem;
    color: var(--navy-800);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px dashed var(--border);
    align-items: flex-start;
}

.contact-item:last-of-type {
    border-bottom: none;
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--royal-500), var(--royal-600));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform var(--t-base);
}

.contact-item:hover .contact-icon {
    transform: scale(1.08) rotate(-4deg);
    background: linear-gradient(135deg, var(--amber-500), var(--amber-400));
    color: var(--navy-900);
}

.contact-details h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-m);
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-details p {
    color: var(--text-b);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-mute);
    color: var(--navy-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all var(--t-base);
}

.social-links a:hover {
    background: var(--royal-500);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.contact-form-card .form-group {
    margin-bottom: 16px;
}

.contact-form-card .form-control {
    border-radius: var(--r-md);
    border: 1.5px solid var(--border-strong);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all var(--t-fast);
}

.contact-form-card .form-control:focus {
    border-color: var(--royal-500);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    outline: none;
}

.contact-form-card .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.map-container {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.map-container iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
}

/* ==================== 17. FOOTER ==================== */
.footer {
    background: var(--navy-900);
    color: var(--text-on-dark);
    padding: 72px 0 28px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--royal-500), var(--amber-500), var(--royal-500));
}

.footer-title {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--amber-400);
    border-radius: 2px;
}

.footer-about {
    color: var(--text-on-dark);
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-on-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--t-base);
}

.footer-social a:hover {
    background: var(--amber-400);
    color: var(--navy-900);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: var(--text-on-dark);
    font-size: 0.9rem;
    display: inline-block;
    transition: all var(--t-fast);
}

.footer-links a:hover {
    color: var(--amber-400);
    padding-left: 6px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--amber-400);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer .input-group .form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 0.9rem;
}

.footer .input-group .form-control::placeholder {
    color: var(--text-l);
}

.footer .input-group .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--amber-400);
    color: var(--white);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 40px 0 22px;
}

.footer-bottom p {
    color: var(--text-l);
    font-size: 0.85rem;
    margin: 0;
}

/* ==================== 18. BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--royal-500), var(--royal-600));
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--t-base);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--amber-500), var(--amber-400));
    color: var(--navy-900);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.45);
}

/* ==================== 19. MODALS ==================== */
.modal-content {
    border: none;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border: none;
    padding: 22px 26px;
}

.modal-header.bg-primary {
    background: linear-gradient(135deg, var(--royal-500), var(--royal-600)) !important;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

.modal-body {
    padding: 26px;
    font-size: 0.95rem;
    color: var(--text-b);
}

.modal-body strong { color: var(--navy-800); }

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 18px 26px;
}

.modal .form-label {
    font-weight: 500;
    color: var(--navy-700);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.modal .form-control,
.modal .form-select {
    border-radius: var(--r-md);
    border: 1.5px solid var(--border-strong);
    padding: 10px 14px;
    font-size: 0.92rem;
}

.modal .form-control:focus,
.modal .form-select:focus {
    border-color: var(--royal-500);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    outline: none;
}

/* ==================== 20. RESPONSIVE ==================== */
@media (max-width: 991px) {
    :root {
        --section-y: 72px;
    }

    .header-spacer { height: 76px; }

    #mainNav .navbar-collapse {
        background: var(--navy-900);
        padding: 20px;
        border-radius: var(--r-md);
        margin-top: 14px;
        box-shadow: var(--shadow-lg);
    }

    #mainNav .nav-link {
        padding: 12px 16px !important;
        margin: 2px 0;
    }

    #mainNav .nav-link::after { display: none; }

    .hero-carousel .hero-slide { height: 72vh; min-height: 480px; }
    .hero-carousel .owl-nav button { width: 42px; height: 60px; font-size: 20px !important; }
    .hero-carousel .owl-prev { left: 8px !important; }
    .hero-carousel .owl-next { right: 8px !important; }

    .contact-wrapper { grid-template-columns: 1fr; }
    .map-container iframe { height: 320px; }
}

@media (max-width: 767px) {
    :root {
        --section-y: 56px;
        --section-y-sm: 44px;
    }

    .hero-carousel .hero-slide { height: 68vh; min-height: 440px; }
    .hero-carousel .hero-slide h1 { font-size: 1.85rem; }
    .hero-carousel .hero-slide .lead { font-size: 1rem; }
    .hero-carousel .owl-dots { bottom: 70px; }

    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { width: 100%; }

    .stat-card { padding: 24px 16px; }
    .stat-card h2 { font-size: 2rem; }

    .download-links .btn { min-width: 0; width: 100%; }

    .sports-grid,
    .performance-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card,
    .contact-form-card { padding: 24px 20px; }

    .map-container iframe { height: 260px; }

    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
    }

    .footer { padding: 56px 0 22px; }

    .feedback-list-container { padding: 16px 20px; max-height: 400px; }
    .feedback-form-card .card-body { padding: 22px 18px !important; }
}

@media (max-width: 480px) {
    .hero-carousel .hero-slide h1 { font-size: 1.6rem; }
    .hero-carousel .owl-nav { display: none; }

    .section-title { font-size: 1.5rem; }
    .stat-card h2 { font-size: 1.75rem; }

    .contact-icon { width: 38px; height: 38px; min-width: 38px; font-size: 0.95rem; }
    .contact-item { gap: 12px; }

    .social-links a { width: 36px; height: 36px; }
}

/* ==================== 21. REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-down { animation: none; }
}

/* ==================== 22. PRINT ==================== */
@media print {
    #siteHeader,
    .back-to-top,
    .hero-carousel .owl-nav,
    .hero-carousel .owl-dots,
    .scroll-down,
    .footer-social,
    .social-links {
        display: none !important;
    }

    .hero-carousel .hero-slide { height: auto; padding: 40px 0; }
    body { background: #fff; }
    .section { padding: 24px 0; break-inside: avoid; }
}