/* ============================================================
   STYLE.CSS — Website Kelas RPL × BC
   "One Class, Two Talents, One Story."
   
   Mobile-first responsive design
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
    /* Color Palette */
    --bg: #fef6e4;
    --headline: #001858;
    --paragraph: #172c66;
    --button: #f582ae;
    --button-text: #001858;
    --stroke: #001858;
    --main: #f3d2c1;
    --highlight: #fef6e4;
    --secondary: #8bd3dd;
    --tertiary: #f582ae;
    
    /* Extended Colors */
    --white: #ffffff;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 24, 88, 0.08);
    --card-shadow-hover: rgba(0, 24, 88, 0.16);
    --overlay: rgba(0, 24, 88, 0.5);
    --border: rgba(0, 24, 88, 0.1);
    --success: #4caf50;
    --error: #e53935;
    --warning: #ff9800;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 24, 88, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 24, 88, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 24, 88, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 24, 88, 0.16);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-navbar: 1000;
    --z-overlay: 1100;
    --z-modal: 1200;
    --z-toast: 1300;
    
    /* Layout */
    --container-max: 1200px;
    --navbar-height: 72px;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--paragraph);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--headline);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; }

/* ============================================================
   3. UTILITY CLASSES
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--tertiary);
    border-radius: 2px;
}

.section-header p {
    color: var(--paragraph);
    max-width: 600px;
    margin: var(--space-md) auto 0;
    opacity: 0.8;
}

.text-center { text-align: center; }

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--button);
    color: var(--button-text);
    border-color: var(--button);
}

.btn-primary:hover {
    background: transparent;
    color: var(--button);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--headline);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--headline);
    border-color: var(--headline);
}

.btn-outline:hover {
    background: var(--headline);
    color: var(--bg);
    transform: translateY(-2px);
}

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-danger {
    background: var(--error);
    color: var(--white);
    border-color: var(--error);
}

.btn-danger:hover {
    background: transparent;
    color: var(--error);
}

.btn-success {
    background: var(--success);
    color: var(--white);
    border-color: var(--success);
}

/* ============================================================
   5. NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: var(--bg);
    z-index: var(--z-navbar);
    transition: all var(--transition-base);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(254, 246, 228, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    z-index: var(--z-overlay);
    transition: opacity var(--transition-fast);
}

.nav-logo:hover {
    opacity: 0.92;
}

.brand-logo {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 2px 5px rgba(0, 24, 88, 0.12));
    transition: transform var(--transition-fast), filter var(--transition-fast);
    flex-shrink: 0;
}

.nav-logo:hover .brand-logo {
    transform: scale(1.06);
    filter: drop-shadow(0 4px 10px rgba(0, 24, 88, 0.2));
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    user-select: none;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.logo-rpl {
    color: var(--headline);
    transition: color var(--transition-fast);
}

.logo-separator {
    color: var(--tertiary);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 1px;
}

.logo-bc {
    color: #0e8a94;
    transition: color var(--transition-fast);
}

.brand-subtitle {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--paragraph);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--paragraph);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--tertiary);
    border-radius: 1px;
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--headline);
    background: rgba(0, 24, 88, 0.04);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 20px;
}

.nav-link.active {
    color: var(--headline);
    font-weight: 600;
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    z-index: var(--z-overlay);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.nav-hamburger:hover {
    background: rgba(0, 24, 88, 0.04);
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--headline);
    border-radius: 1px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.nav-hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(5px) translateX(5px);
}

.nav-hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-5px) translateX(5px);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay);
    z-index: calc(var(--z-navbar) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.main-content {
    padding-top: var(--navbar-height);
    min-height: 100vh;
}

/* Mobile Menu */
@media (max-width: 767px) {
    .nav-hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: calc(var(--navbar-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
        z-index: var(--z-navbar);
        transition: right var(--transition-base);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link.active {
        background: rgba(0, 24, 88, 0.06);
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .brand-title {
        font-size: 1.2rem;
    }

    .brand-subtitle {
        font-size: 0.62rem;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        gap: 8px;
    }

    .brand-subtitle {
        display: none;
    }
}

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: var(--space-2xl) 0;
}

.hero-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--main);
    color: var(--headline);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    font-family: var(--font-heading);
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: var(--tertiary);
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

.hero h1 {
    margin-bottom: var(--space-lg);
    font-size: clamp(2.5rem, 7vw, 5rem);
    letter-spacing: -0.02em;
}

.hero h1 .highlight-text {
    color: var(--tertiary);
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--paragraph);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    opacity: 0.85;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: var(--space-lg);
}

.hero-illustration {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 560px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Ambient Glow Aura */
.hero-glow-aura {
    position: absolute;
    width: 440px;
    height: 490px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 50% 40%, rgba(245, 130, 174, 0.42) 0%, rgba(139, 211, 221, 0.45) 45%, rgba(254, 246, 228, 0) 72%);
    filter: blur(45px);
    z-index: 1;
    pointer-events: none;
    animation: auraPulse 6.5s ease-in-out infinite alternate;
}

@keyframes auraPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.94);
        opacity: 0.65;
        filter: blur(38px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 0.95;
        filter: blur(52px);
    }
}

/* Modern Arch Backdrop */
.hero-arch-backdrop {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 370px;
    height: 480px;
    border-radius: 195px 195px 36px 36px;
    background: linear-gradient(155deg, #ffffff 0%, #fff2f6 28%, #e3f5f8 68%, #fdeaf2 100%);
    border: 2.5px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 24px 50px -10px rgba(0, 24, 88, 0.14),
                inset 0 2px 20px rgba(255, 255, 255, 0.92),
                inset 0 -12px 25px rgba(245, 130, 174, 0.12);
    overflow: hidden;
    z-index: 2;
    transition: all 0.4s ease;
}

.hero-illustration:hover .hero-arch-backdrop {
    box-shadow: 0 28px 60px -10px rgba(0, 24, 88, 0.2),
                inset 0 2px 25px rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
}

.hero-backdrop-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 24, 88, 0.08) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    opacity: 0.55;
}

.hero-backdrop-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 310px;
    height: 310px;
    border: 1.5px dashed rgba(0, 24, 88, 0.14);
    border-radius: 50%;
    animation: rotateRing 40s linear infinite;
    pointer-events: none;
}

@keyframes rotateRing {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Teacher Photo with 3D Pop-out & Animation */
.hero-photo-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.hero-teacher-img {
    width: auto;
    max-width: 430px;
    max-height: 540px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 16px 32px rgba(0, 24, 88, 0.18));
    mask-image: linear-gradient(to bottom, black 86%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 86%, transparent 100%);
    pointer-events: auto;
    animation: floatTeacher 5.2s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
}

.hero-teacher-img:hover {
    animation-play-state: paused;
    transform: translateY(-8px) scale(1.025);
    filter: drop-shadow(0 22px 42px rgba(0, 24, 88, 0.25));
}

@keyframes floatTeacher {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.012);
    }
}

/* Floating Elements with Modern Glassmorphism */
.float-element {
    position: absolute;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(0, 24, 88, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    color: var(--headline);
    z-index: 4;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: pointer;
}

.float-element:hover {
    transform: translateY(-6px) scale(1.08) !important;
    box-shadow: 0 16px 32px rgba(0, 24, 88, 0.18), inset 0 1px 3px rgba(255, 255, 255, 1);
}

.float-code {
    top: 10%;
    left: -12px;
    background: rgba(139, 211, 221, 0.92);
    animation: floatCode 5.5s ease-in-out infinite;
}

.float-camera {
    top: 7%;
    right: -10px;
    background: rgba(245, 130, 174, 0.92);
    animation: floatCamera 6s ease-in-out infinite 0.8s;
}

.float-team {
    bottom: 22%;
    left: -18px;
    background: rgba(243, 210, 193, 0.94);
    padding: 12px;
    border-radius: 50%;
    animation: floatTeam 5.2s ease-in-out infinite 1.4s;
}

.float-creative {
    top: 48%;
    right: -20px;
    background: rgba(139, 211, 221, 0.9);
    padding: 12px;
    border-radius: 50%;
    animation: floatCreative 5.8s ease-in-out infinite 0.5s;
}

.float-label {
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 0.88rem;
}

@keyframes floatCode {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes floatCamera {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-12px) rotate(-2deg); }
}

@keyframes floatTeam {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.06); }
}

@keyframes floatCreative {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-11px) rotate(3deg); }
}

/* Teacher Identity Floating Card */
.hero-teacher-card {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 8px 18px 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 14px 32px rgba(0, 24, 88, 0.14),
                0 2px 6px rgba(0, 24, 88, 0.04);
    z-index: 5;
    white-space: nowrap;
    animation: floatCard 6s ease-in-out infinite 1.2s;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-teacher-card:hover {
    transform: translateX(-50%) translateY(-5px) scale(1.04);
    box-shadow: 0 18px 40px rgba(0, 24, 88, 0.2);
}

.teacher-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--tertiary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--headline);
    box-shadow: 0 4px 10px rgba(245, 130, 174, 0.35);
}

.teacher-card-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.teacher-card-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--headline);
    line-height: 1.2;
}

.teacher-card-subtitle {
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--paragraph);
    opacity: 0.75;
}

.teacher-card-badge {
    font-size: 1rem;
    animation: sparkle 2.5s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
    50% { transform: scale(1.25) rotate(15deg); opacity: 1; }
}

/* Background Decorations */
.hero-bg-shape {
    position: absolute;
    border-radius: var(--radius-full);
    opacity: 0.15;
    z-index: 0;
}

.hero-bg-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    top: -100px;
    right: -100px;
}

.hero-bg-shape-2 {
    width: 300px;
    height: 300px;
    background: var(--tertiary);
    bottom: -50px;
    left: -80px;
}

.hero-bg-shape-3 {
    width: 200px;
    height: 200px;
    background: var(--main);
    top: 40%;
    left: 20%;
}

@media (min-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-subtitle {
        margin: 0 0 var(--space-xl);
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .hero-illustration {
        max-width: 480px;
        height: 560px;
    }
}

@media (min-width: 1024px) {
    .hero {
        min-height: 90vh;
    }
    .hero-illustration {
        max-width: 520px;
        height: 600px;
    }
    .hero-arch-backdrop {
        width: 400px;
        height: 510px;
    }
    .hero-teacher-img {
        max-width: 460px;
        max-height: 580px;
    }
}

@media (max-width: 767px) {
    .hero-illustration {
        max-width: 380px;
        height: 480px;
    }
    .hero-arch-backdrop {
        width: 300px;
        height: 400px;
        border-radius: 150px 150px 28px 28px;
    }
    .hero-teacher-img {
        max-width: 330px;
        max-height: 460px;
    }
    .float-element {
        padding: 7px 12px;
        font-size: 0.82rem;
    }
    .float-code { left: -5px; }
    .float-camera { right: -5px; }
    .float-team { left: -5px; padding: 9px; }
    .float-creative { right: -5px; padding: 9px; }
    .hero-teacher-card {
        padding: 6px 14px 6px 8px;
        bottom: 8px;
    }
    .teacher-card-avatar {
        width: 30px;
        height: 30px;
    }
    .teacher-card-title {
        font-size: 0.82rem;
    }
    .teacher-card-subtitle {
        font-size: 0.68rem;
    }
}

/* ============================================================
   7. STATS SECTION
   ============================================================ */
.stats {
    background: var(--headline);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(139, 211, 221, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(245, 130, 174, 0.15) 0%, transparent 50%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card.rpl .stat-number { color: var(--secondary); }
.stat-card.bc .stat-number { color: var(--tertiary); }

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================================
   8. STUDENT CARDS SECTION
   ============================================================ */
.students-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.student-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--border);
}

.student-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.student-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--main);
}

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

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

.student-card-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.badge-rpl {
    background: var(--secondary);
    color: var(--headline);
}

.badge-bc {
    background: var(--tertiary);
    color: var(--headline);
}

.student-card-body {
    padding: var(--space-lg);
}

.student-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--headline);
    margin-bottom: 0.25rem;
}

.student-card-nickname {
    font-size: 0.85rem;
    color: var(--paragraph);
    opacity: 0.7;
    margin-bottom: var(--space-sm);
}

.student-card-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 0.85rem;
    color: var(--paragraph);
    opacity: 0.6;
}

.student-card-bio {
    font-size: 0.9rem;
    color: var(--paragraph);
    opacity: 0.8;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.student-card-footer {
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.student-card-footer .btn {
    width: 100%;
    padding: 0.6rem;
    font-size: 0.85rem;
}

/* Student placeholder when no photo */
.student-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--main) 0%, var(--secondary) 100%);
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--headline);
    opacity: 0.5;
}

/* ============================================================
   9. FILTERS & SEARCH
   ============================================================ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.filter-group {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-xl);
    font-weight: 500;
    font-size: 0.85rem;
    background: var(--card-bg);
    color: var(--paragraph);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
    cursor: pointer;
    font-family: var(--font-heading);
}

.filter-btn:hover {
    border-color: var(--headline);
    color: var(--headline);
}

.filter-btn.active {
    background: var(--headline);
    color: var(--bg);
    border-color: var(--headline);
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--paragraph);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    border-color: var(--headline);
    box-shadow: 0 0 0 3px rgba(0, 24, 88, 0.1);
}

.search-box input::placeholder {
    color: var(--paragraph);
    opacity: 0.5;
}

.search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--paragraph);
    opacity: 0.5;
}

.sort-select {
    padding: 0.65rem 2.5rem 0.65rem 1rem;
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--paragraph);
    font-size: 0.85rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23172c66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    transition: all var(--transition-fast);
}

.sort-select:focus {
    border-color: var(--headline);
    box-shadow: 0 0 0 3px rgba(0, 24, 88, 0.1);
}

.controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.controls-left {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.controls-right {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================================
   10. STUDENT DETAIL / PROFILE PAGE
   ============================================================ */
.profile-section {
    padding: var(--space-2xl) 0 var(--space-4xl);
}

.profile-back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--paragraph);
    font-weight: 500;
    margin-bottom: var(--space-xl);
    transition: all var(--transition-fast);
}

.profile-back:hover {
    color: var(--headline);
    transform: translateX(-4px);
}

.profile-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.profile-photo {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 3/4;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--main);
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: var(--space-sm);
}

.profile-nickname {
    font-size: 1.1rem;
    color: var(--paragraph);
    opacity: 0.7;
    margin-bottom: var(--space-md);
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

.profile-quote {
    padding: var(--space-lg);
    background: var(--main);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--tertiary);
    font-style: italic;
    color: var(--headline);
    font-size: 1.05rem;
    margin-bottom: var(--space-xl);
}

.profile-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.profile-detail-card {
    background: var(--card-bg);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.profile-detail-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.profile-tag {
    padding: 0.35rem 0.85rem;
    background: var(--bg);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    color: var(--paragraph);
    border: 1px solid var(--border);
}

.profile-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: var(--bg);
    color: var(--headline);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    border: 1px solid var(--border);
}

.social-link:hover {
    background: var(--headline);
    color: var(--bg);
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

@media (min-width: 768px) {
    .profile-header {
        grid-template-columns: 300px 1fr;
    }
    
    .profile-photo {
        margin: 0;
    }
    
    .profile-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   11. GALLERY
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: linear-gradient(transparent, rgba(0, 24, 88, 0.8));
    color: var(--white);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-overlay h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.gallery-item-overlay p {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.gallery-item-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    background: var(--white);
    color: var(--headline);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    padding: var(--space-xl);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-info {
    color: var(--white);
    text-align: center;
    margin-top: var(--space-md);
}

.lightbox-info h4 {
    color: var(--white);
    font-size: 1.1rem;
}

.lightbox-info p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ============================================================
   12. ABOUT PAGE
   ============================================================ */
.about-hero {
    text-align: center;
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

.about-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.about-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.about-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

.about-card-icon.rpl {
    background: var(--secondary);
    color: var(--headline);
}

.about-card-icon.bc {
    background: var(--tertiary);
    color: var(--headline);
}

.about-card-icon.class {
    background: var(--main);
    color: var(--headline);
}

.about-card h3 {
    margin-bottom: var(--space-md);
}

.about-card p {
    opacity: 0.85;
    line-height: 1.8;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.info-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg);
    border-radius: var(--radius-md);
}

.info-item-label {
    font-weight: 600;
    color: var(--headline);
    min-width: 120px;
    font-family: var(--font-heading);
}

.info-item-value {
    color: var(--paragraph);
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content .about-card.full-width {
        grid-column: 1 / -1;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   13. ACHIEVEMENTS / TIMELINE
   ============================================================ */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--secondary), var(--tertiary));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-2xl);
    padding-left: var(--space-xl);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    background: var(--tertiary);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 3px var(--tertiary);
}

.timeline-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition-base);
}

.timeline-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.timeline-position {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: var(--space-sm);
    background: var(--main);
    color: var(--headline);
}

.timeline-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
}

.timeline-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-md);
    font-size: 0.8rem;
    color: var(--paragraph);
    opacity: 0.6;
}

.timeline-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (min-width: 768px) {
    .timeline {
        padding-left: 50px;
    }
    
    .timeline-dot {
        left: -56px;
        width: 16px;
        height: 16px;
    }
}

/* ============================================================
   14. PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    background: var(--card-bg);
    color: var(--paragraph);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.page-link:hover {
    border-color: var(--headline);
    color: var(--headline);
}

.page-link.active {
    background: var(--headline);
    color: var(--bg);
    border-color: var(--headline);
}

.page-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ============================================================
   15. EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--headline);
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--paragraph);
    opacity: 0.6;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================================
   16. 404 PAGE
   ============================================================ */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.error-page .error-code {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    color: var(--headline);
    opacity: 0.1;
    line-height: 1;
}

.error-page h2 {
    margin-bottom: var(--space-md);
}

.error-page p {
    margin-bottom: var(--space-xl);
    opacity: 0.7;
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.footer {
    background: var(--headline);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.brand-logo-footer {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.footer-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.6;
}

.footer-heading {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.6;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    text-align: center;
    font-size: 0.85rem;
}

.footer-credit {
    margin-top: var(--space-sm);
    opacity: 0.5;
}

.footer-credit .heart {
    color: var(--tertiary);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ============================================================
   18. ANIMATIONS
   ============================================================ */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
}

.fade-up {
    transform: translateY(40px);
}

.fade-up.visible {
    transform: translateY(0);
}

.fade-left {
    transform: translateX(-40px);
}

.fade-left.visible {
    transform: translateX(0);
}

.fade-right {
    transform: translateX(40px);
}

.fade-right.visible {
    transform: translateX(0);
}

.scale-in {
    transform: scale(0.9);
}

.scale-in.visible {
    transform: scale(1);
}

/* Stagger delay for cards */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .float-element {
        animation: none;
    }
    
    .hero-circle {
        animation: none;
    }
}

/* ============================================================
   19. ADMIN PANEL
   ============================================================ */

/* Admin Login */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    background: var(--bg);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.login-card h1 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: var(--space-sm);
}

.login-card .login-subtitle {
    text-align: center;
    opacity: 0.6;
    margin-bottom: var(--space-2xl);
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.admin-sidebar {
    width: 260px;
    background: var(--headline);
    color: var(--white);
    padding: var(--space-xl) 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.admin-sidebar-logo {
    padding: 0 var(--space-xl);
    margin-bottom: var(--space-2xl);
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-admin {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
}

.brand-logo-login {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 4px 12px rgba(0, 24, 88, 0.15));
}

.admin-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0.75rem var(--space-xl);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.admin-sidebar-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.admin-sidebar-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--tertiary);
}

.admin-sidebar-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.admin-sidebar-section {
    padding: var(--space-md) var(--space-xl) var(--space-sm);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: var(--space-xl) var(--space-2xl);
    min-height: 100vh;
    min-width: 0;
    width: calc(100% - 260px);
    max-width: 100%;
    background: var(--bg);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.admin-header h1 {
    font-size: 1.8rem;
}

.admin-toggle-sidebar {
    display: none;
    background: transparent;
    border: none;
    color: var(--headline);
    font-size: 1.5rem;
    padding: var(--space-sm);
    cursor: pointer;
}

/* Admin Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.admin-stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    transition: all var(--transition-base);
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.admin-stat-icon.blue { background: rgba(139, 211, 221, 0.2); color: var(--secondary); }
.admin-stat-icon.pink { background: rgba(245, 130, 174, 0.2); color: var(--tertiary); }
.admin-stat-icon.peach { background: rgba(243, 210, 193, 0.3); color: var(--headline); }

.admin-stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--headline);
    line-height: 1;
}

.admin-stat-label {
    font-size: 0.85rem;
    color: var(--paragraph);
    opacity: 0.6;
}

/* Admin Table */
.admin-table-wrapper {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.admin-table th,
.admin-table td {
    padding: 0.875rem var(--space-lg);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: rgba(0, 24, 88, 0.03);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--headline);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    font-size: 0.9rem;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(0, 24, 88, 0.02);
}

.admin-table .table-photo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.admin-table .table-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Admin Forms */
.admin-form {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    max-width: 800px;
    width: 100%;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--headline);
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--paragraph);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--headline);
    box-shadow: 0 0 0 3px rgba(0, 24, 88, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group .form-hint {
    font-size: 0.8rem;
    color: var(--paragraph);
    opacity: 0.5;
    margin-top: 0.35rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 576px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-buttons {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.form-photo-preview {
    margin-top: var(--space-sm);
}

.form-photo-preview img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
}

/* Alert Messages */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.alert-error {
    background: rgba(229, 57, 53, 0.1);
    color: var(--error);
    border: 1px solid rgba(229, 57, 53, 0.2);
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning);
    border: 1px solid rgba(255, 152, 0, 0.2);
}

/* Admin Responsive */
@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
        z-index: 1050;
        width: 280px;
        max-width: 85vw;
        box-shadow: none;
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 0 100vmax rgba(0, 24, 88, 0.45);
    }
    
    .admin-main {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding: var(--space-xl);
    }
    
    .admin-toggle-sidebar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: var(--card-bg);
        color: var(--headline);
        font-size: 1.3rem;
        line-height: 1;
        cursor: pointer;
        flex-shrink: 0;
        margin-bottom: var(--space-xs);
        transition: background var(--transition-fast), border-color var(--transition-fast);
    }

    .admin-toggle-sidebar:hover {
        background: var(--bg);
        border-color: var(--headline);
    }

    .admin-header {
        margin-bottom: var(--space-xl);
    }

    .confirm-modal-content {
        max-height: 90vh;
        max-height: 90dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 767px) {
    .admin-main {
        padding: 1.25rem 1rem;
    }
    
    .admin-header {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .admin-header h1 {
        font-size: 1.5rem;
        word-break: break-word;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .admin-stat-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .admin-stat-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .admin-stat-number {
        font-size: 1.4rem;
    }

    .admin-stat-label {
        font-size: 0.78rem;
    }

    .admin-table-wrapper {
        border-radius: var(--radius-md);
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.875rem;
    }

    .admin-table .table-actions {
        flex-wrap: nowrap;
    }

    .admin-form {
        padding: 1.5rem 1.25rem;
        border-radius: var(--radius-md);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        max-width: 100%;
    }

    .form-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 1.25rem;
    }

    .form-buttons .btn {
        flex: 1 1 auto;
        text-align: center;
        justify-content: center;
    }

    .confirm-modal {
        padding: 1rem;
    }

    .confirm-modal-content {
        padding: 1.5rem 1.25rem;
        border-radius: var(--radius-lg);
        width: calc(100% - 1rem);
    }

    .confirm-modal-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .confirm-modal-buttons .btn {
        flex: 1 1 auto;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .admin-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-header > div:first-child {
        width: 100%;
    }

    .admin-header > .btn,
    .admin-header > div:nth-child(2) {
        width: 100%;
    }

    .admin-header > div:nth-child(2) {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .admin-header > div:nth-child(2) .btn,
    .admin-header > .btn {
        flex: 1 1 auto;
        text-align: center;
        justify-content: center;
    }

    .admin-login {
        padding: 1rem 0.75rem;
    }

    .login-card {
        padding: 1.5rem 1.25rem;
        border-radius: var(--radius-lg);
    }

    .login-card h1 {
        font-size: 1.5rem;
    }

    .login-card .login-subtitle {
        margin-bottom: 1.5rem;
        font-size: 0.88rem;
    }
}

@media (max-width: 360px) {
    .admin-main {
        padding: 0.875rem 0.5rem;
    }

    .admin-header h1 {
        font-size: 1.3rem;
    }

    .admin-stats {
        grid-template-columns: 1fr !important;
        gap: 0.625rem;
    }

    .admin-stat-card {
        padding: 0.875rem;
    }

    .admin-stat-number {
        font-size: 1.3rem;
    }

    .login-card {
        padding: 1.25rem 0.875rem;
    }

    .btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* ============================================================
   20. MISC / UTILITIES
   ============================================================ */

/* Confirm delete modal */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    padding: var(--space-xl);
}

.confirm-modal.active {
    opacity: 1;
    visibility: visible;
}

.confirm-modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.confirm-modal-content h3 {
    margin-bottom: var(--space-md);
}

.confirm-modal-content p {
    opacity: 0.7;
    margin-bottom: var(--space-xl);
}

.confirm-modal-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--border) 25%, rgba(0, 24, 88, 0.06) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Badge general */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

/* Meet Our Class section */
.meet-section .section-footer {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* Gallery placeholder */
.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--main) 0%, var(--secondary) 100%);
    font-size: 3rem;
}

/* Admin table photo placeholder */
.table-photo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--headline);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--paragraph);
    opacity: 0.6;
    margin-bottom: var(--space-lg);
}

.breadcrumb a:hover {
    color: var(--headline);
    opacity: 1;
}

.breadcrumb .separator {
    font-size: 0.7rem;
}

/* Page header */
.page-header {
    padding: var(--space-2xl) 0 var(--space-lg);
    text-align: center;
}

.page-header h1 {
    margin-bottom: var(--space-sm);
}

.page-header p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.7;
}

/* ============================================================
   21. RESPONSIVE FINE-TUNING
   ============================================================ */
@media (min-width: 576px) {
    .students-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .students-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section {
        padding: var(--space-4xl) 0;
    }
}

@media (min-width: 1280px) {
    .students-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra small screens */
@media (max-width: 375px) {
    :root {
        --space-lg: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}
