/* ===================================
   HPEBS School Website - Ultra Modern Design 2026
   Fully Responsive | Mobile-First | Beautiful UI
   =================================== */

/* CSS Variables for Modern Theming */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --secondary-light: #f472b6;
    --accent-color: #14b8a6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #0f172a;
    --dark-gray: #1e293b;
    --light-color: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --white: #ffffff;
    
    --font-primary: 'Inter', 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
    --font-secondary: 'Plus Jakarta Sans', 'Georgia', serif;
    
    --transition-speed: 0.3s;
    --transition-smooth: 0.5s;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --box-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --box-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--dark-gray);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all var(--transition-speed) ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile-first adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    html {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    html {
        font-size: 14px;
    }
}

/* ===================================
   NAVIGATION - Ultra Modern Design
   =================================== */

.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all var(--transition-smooth);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 1001;
}

.nav-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all var(--transition-speed);
    object-fit: cover;
}

.nav-logo:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

.school-name {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: var(--gradient-primary);
    padding: 14px 16px;
    border-radius: 14px;
    box-shadow: var(--box-shadow-md);
    position: relative;
    z-index: 1001;
    transition: all var(--transition-speed);
    min-width: 56px;
    min-height: 56px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.nav-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow-lg);
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 3px;
    transform-origin: center;
    display: block;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu > li > a {
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    position: relative;
    color: var(--gray-700);
    border-radius: 12px;
    transition: all var(--transition-speed) ease;
    font-size: 0.95rem;
}

.nav-menu > li > a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.nav-menu > li > a.active {
    color: var(--white);
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Login Button Special Style */
.nav-menu > li > a.login-btn {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    margin-left: 0.5rem;
}

.nav-menu > li > a.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.nav-menu > li > a.login-btn i {
    margin-right: 6px;
}

/* Dropdown removed but keeping structure for compatibility */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--box-shadow-xl);
    border-radius: var(--border-radius);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all var(--transition-speed) cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 0.75rem 0;
    margin-top: 0.75rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 1rem 1.5rem;
    transition: all 0.25s ease;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    margin: 0 0.5rem;
}

.dropdown-menu a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Mobile Navigation */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 0.25rem;
    }
    
    .nav-menu > li > a {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-menu > li > a.login-btn {
        padding: 0.65rem 1.25rem;
    }
}

@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 120px 30px 40px;
        gap: 0;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        overflow-y: auto;
        align-items: stretch;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu > li {
        margin-bottom: 0.5rem;
    }

    .nav-menu > li > a {
        display: block;
        padding: 1.1rem 1.5rem;
        font-size: 1.05rem;
        border-radius: 14px;
        font-weight: 600;
    }

    .nav-menu > li > a.active {
        background: var(--gradient-primary);
        color: var(--white);
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    }

    .nav-menu > li > a.login-btn {
        background: var(--gradient-secondary);
        margin: 1rem 0 0 0;
        padding: 1.2rem 1.5rem;
        text-align: center;
        font-size: 1.1rem;
        box-shadow: 0 6px 25px rgba(236, 72, 153, 0.3);
    }

    .nav-menu > li > a.login-btn:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(99, 102, 241, 0.05);
        margin: 0.5rem 0 0 0;
        padding: 0.5rem 0;
        border: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem 14px;
    }

    .nav-logo {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .school-name {
        font-size: 1.2rem;
    }

    .nav-toggle {
        min-width: 50px;
        min-height: 50px;
        padding: 12px 14px;
    }

    .nav-menu {
        max-width: 100%;
        padding: 100px 20px 30px;
    }

    .nav-menu > li > a {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
}

/* ===================================
   HERO SECTION - Modern Gradient Design
   =================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 950px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    transform: scale(1.1);
}

.hero-slide.active {
    opacity: 1;
    animation: zoomOut 20s ease-out forwards;
}

@keyframes zoomOut {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 2;
    max-width: 1000px;
    padding: 2.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.25rem;
    animation: fadeInUp 1s ease-out;
    letter-spacing: -1.5px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    opacity: 0.95;
    font-weight: 600;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
    opacity: 0.9;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-indicator i {
    font-size: 2.5rem;
    color: var(--white);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
    .hero {
        min-height: 550px;
        max-height: 700px;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero-buttons {
        gap: 1rem;
    }

    .scroll-indicator {
        bottom: 2rem;
    }

    .scroll-indicator i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero-buttons {
        gap: 0.75rem;
        flex-direction: column;
        width: 100%;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-delay { animation: fadeInUp 0.8s ease-out 0.2s backwards; }
.fade-in-delay-2 { animation: fadeInUp 0.8s ease-out 0.4s backwards; }
.fade-in-delay-3 { animation: fadeInUp 0.8s ease-out 0.6s backwards; }

/* ===================================
   BUTTONS
   =================================== */

/* ===================================
   BUTTONS - Modern & Responsive
   =================================== */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    transition: all var(--transition-speed) cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-4px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.btn-sm {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-icon {
    background: transparent;
    color: var(--gray-600);
    padding: 0.75rem;
    border-radius: 10px;
}

.btn-icon:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
    
    .btn-sm {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.85rem 1.75rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    .btn-sm {
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }
}

/* ===================================
   SECTIONS - Ultra Modern
   =================================== */

section {
    padding: 6rem 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--dark-color);
    margin-bottom: 1.25rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-underline {
    width: 120px;
    height: 6px;
    background: var(--gradient-primary);
    margin: 0 auto 1.75rem;
    border-radius: 3px;
    position: relative;
}

.section-underline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 12px;
    background: var(--gradient-primary);
    opacity: 0.2;
    border-radius: 6px;
    filter: blur(8px);
}

.section-header p {
    color: var(--gray-600);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 500;
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-underline {
        width: 100px;
        height: 5px;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-underline {
        width: 80px;
        height: 4px;
        margin-bottom: 1rem;
    }
}

/* ===================================
   PAGE HEADER - Modern Gradient
   =================================== */

.page-header {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    background-image: url('https://png.pngtree.com/background/20210711/original/pngtree-develop-education-slogan-exhibition-board-background-material-picture-image_1068490.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: var(--white);
    text-align: center;
    padding: 2.5rem;
    min-height: 400px;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    margin-bottom: 1rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.page-header p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    opacity: 0.95;
    margin: 0;
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@media (max-width: 768px) {
    .page-header {
        height: 380px;
        min-height: 350px;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        height: 320px;
        min-height: 300px;
        padding: 1.5rem 1rem;
    }
}

/* ===================================
   INTRO SECTION
   =================================== */

.intro-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--light-color) 100%);
}

.intro-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .intro-content {
        gap: 2rem;
    }

    .intro-text .lead {
        font-size: 1.1rem;
    }

    .intro-highlight {
        font-size: 1rem !important;
    }

    .intro-main {
        font-size: 0.95rem !important;
    }

    .intro-text p {
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }

    .intro-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .intro-content {
        gap: 1.5rem;
    }

    .intro-text .lead {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .intro-highlight {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }

    .intro-main {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
    }

    .intro-text p {
        margin-bottom: 1rem;
        font-size: 0.85rem;
    }

    .intro-image {
        max-width: 200px;
    }
}

.intro-text .lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.intro-highlight {
    font-family: 'Segoe UI', 'Roboto', sans-serif !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    line-height: 1.9 !important;
    letter-spacing: -0.2px;
    font-size: 1.15rem !important;
}

.intro-main {
    font-family: 'Segoe UI', 'Roboto', sans-serif !important;
    font-weight: 500 !important;
    color: var(--gray-600) !important;
    line-height: 1.9 !important;
    font-size: 1rem !important;
    letter-spacing: -0.1px;
}

.intro-text p {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
    line-height: 1.9;
}

.intro-image {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.25);
    aspect-ratio: 1;
    border: 4px solid var(--primary-light);
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(124, 58, 237, 0.05));
}

.intro-image:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 70px rgba(37, 99, 235, 0.35);
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===================================
   REDESIGNED INTRO SECTION
   =================================== */

.intro-content-redesign {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.school-info-box {
    max-width: 1100px;
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 70px rgba(37, 99, 235, 0.3);
    border: 6px solid var(--white);
    outline: 2px solid var(--primary-light);
    transition: all var(--transition-smooth);
    background: var(--white);
    overflow: hidden;
}

.school-info-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 90px rgba(37, 99, 235, 0.4);
}

.school-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    max-height: 400px;
}

.school-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-smooth);
}

.school-info-box:hover .school-image-wrapper img {
    transform: scale(1.05);
}

.school-text-content {
    padding: 2.5rem 3.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(124, 58, 237, 0.03));
}

.school-text-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1.25rem;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.school-text-content p {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: center;
}

.school-text-content p:last-child {
    margin-bottom: 0;
}

/* ===================================
   UNIVERSAL CARD STYLES - Ultra Modern
   =================================== */

.card-modern {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-md);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.card-modern:hover {
    box-shadow: var(--box-shadow-xl);
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-image-frame {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--gradient-primary);
}

.card-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.card-modern:hover .card-image-frame img {
    transform: scale(1.12) rotate(2deg);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.92) 0%, rgba(236, 72, 153, 0.92) 100%);
    opacity: 0;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-modern:hover .card-overlay {
    opacity: 1;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.45rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.card-subtitle {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .card-image-frame {
        height: 200px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .card-image-frame {
        height: 180px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-text {
        font-size: 0.95rem;
    }
}

/* ===================================
   HIGHLIGHTS SECTION - Modern Design
   =================================== */

.highlights-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.highlight-card {
    background: var(--white);
    padding: 2.75rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-speed);
}

.highlight-card:hover::before {
    transform: scaleX(1);
}

.highlight-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--box-shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.highlight-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.75rem;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    transition: all var(--transition-speed);
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
}

@media (max-width: 1024px) {
    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.75rem;
    }
    
    .highlight-card {
        padding: 2.25rem;
    }
    
    .highlight-icon {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 480px) {
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .highlight-card {
        padding: 2rem;
    }
    
    .highlight-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
        transition: all var(--transition-smooth);
    }
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.1);
}

.highlight-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 700;
    line-height: 1.3;
}

.highlight-card p {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .highlight-card {
        padding: 2rem;
    }

    .highlight-card h3 {
        font-size: 1.1rem;
    }

    .highlight-card p {
        font-size: 0.9rem;
    }

    .highlight-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .highlight-card {
        padding: 1.5rem;
    }

    .highlight-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .highlight-card h3 {
        font-size: 1rem;
    }

    .highlight-card p {
        font-size: 0.85rem;
    }
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.cta-section .btn {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .cta-section {
        padding: 3rem 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .cta-section p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 2rem 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-section .btn {
        width: 100%;
    }
}

/* ===================================
   FOOTER - Modern Design
   =================================== */

.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--gray-300);
    padding: 1.5rem 0;
    position: relative;
    border-top: 3px solid var(--primary-color);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.mini-footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-copyright {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 480px) {
    .footer {
        padding: 1.25rem 0;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
    }
}

/* ===================================
   ABOUT PAGE
   =================================== */

.about-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--light-color) 100%);
    padding: 4rem 0;
}

.about-intro-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(124, 58, 237, 0.03) 100%);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    border: 2px solid rgba(37, 99, 235, 0.1);
    box-shadow: var(--box-shadow-lg);
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.about-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.about-icon-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.about-icon-badge i {
    font-size: 2.5rem;
    color: var(--white);
}

.about-intro-card h3 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.about-lead {
    font-size: 1.15rem;
    color: var(--gray-700);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.about-highlight {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.8;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.info-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.info-box i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-box strong {
    display: block;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.info-box p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Vision, Mission, Objectives */
.vmo-section {
    background: var(--white);
}

.vmo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.vmo-card {
    background: linear-gradient(180deg, var(--light-color) 0%, var(--white) 100%);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--box-shadow-md);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.vmo-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-5px);
}

.vmo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.vmo-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 700;
}

.vmo-card p, .vmo-card ul {
    color: var(--gray-600);
    line-height: 1.8;
    text-align: left;
    font-size: 0.95rem;
}

.vmo-card ul { padding-left: 1.5rem; }
.vmo-card ul li { list-style: disc; margin-bottom: 0.5rem; }

/* Principal Section */
.principal-section {
    background: linear-gradient(180deg, var(--light-color) 0%, var(--white) 100%);
    padding: 4rem 0;
}

.principal-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.principal-photo-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--white);
}

.principal-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.principal-photo-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.principal-title {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.principal-contact {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.principal-contact i {
    font-size: 1rem;
}

.principal-contact a {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    transition: opacity var(--transition-speed);
}

.principal-contact a:hover {
    opacity: 0.8;
}

.principal-message-section {
    padding: 2.5rem 2rem;
    position: relative;
}

.quote-mark {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.15;
    line-height: 1;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.principal-greeting {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.principal-message-text {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
}

.principal-signature {
    font-style: italic;
    margin-top: 1.5rem;
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Excellence Section */
.excellence-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 4.5rem 0;
}

.excellence-content h2 {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.excellence-content .counter {
    font-weight: 800;
}

.excellence-content p {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.excellence-detail {
    font-size: 1.1rem !important;
    opacity: 0.9;
}

/* ===================================
   ACADEMICS PAGE
   =================================== */

.levels-section {
    background: linear-gradient(180deg, var(--light-color) 0%, var(--white) 100%);
    padding: 4rem 0;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.level-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(37, 99, 235, 0.08);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.level-card:hover::before {
    transform: scaleX(1);
}

.level-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.2);
}

.level-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.8rem;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
    transition: all 0.4s ease;
    position: relative;
}

.level-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.level-card:hover .level-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.level-card:hover .level-icon::after {
    transform: scale(1);
}

.level-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    font-weight: 800;
    transition: color 0.3s ease;
}

.level-card:hover h3 {
    color: var(--primary-color);
}

.level-card > p {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 20px;
    display: inline-block;
}

.level-description {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 0.98rem;
    margin: 0;
}

/* Enrollment Section */
.enrollment-section {
    background: var(--white);
}

.enrollment-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.summary-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 100%);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-5px);
}

.summary-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.summary-data h3 {
    font-size: 2.75rem;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    font-weight: 800;
}

.summary-data p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    margin-top: 2.5rem;
    border-radius: var(--border-radius-lg);
    -webkit-overflow-scrolling: touch;
}

.enrollment-table,
.routine-table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-md);
    font-size: 0.95rem;
}

.enrollment-table th,
.routine-table th,
.admin-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1.25rem;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
}

.enrollment-table td,
.routine-table td,
.admin-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.enrollment-table tbody tr:hover,
.routine-table tbody tr:hover,
.admin-table tbody tr:hover {
    background: var(--light-color);
    transition: all var(--transition-speed);
}

.total-row {
    background: var(--light-color);
    font-weight: 700;
}

.positive { color: var(--success-color); font-weight: 600; }
.negative { color: var(--danger-color); font-weight: 600; }
.neutral { color: var(--gray-600); }

@media (max-width: 768px) {
    .table-responsive {
        margin-top: 1.5rem;
    }

    .enrollment-table,
    .routine-table,
    .admin-table {
        font-size: 0.85rem;
    }

    .enrollment-table th,
    .routine-table th,
    .admin-table th {
        padding: 0.75rem;
    }

    .enrollment-table td,
    .routine-table td,
    .admin-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .table-responsive {
        margin-top: 1rem;
    }

    .enrollment-table,
    .routine-table,
    .admin-table {
        font-size: 0.75rem;
    }

    .enrollment-table th,
    .routine-table th,
    .admin-table th {
        padding: 0.5rem 0.25rem;
    }

    .enrollment-table td,
    .routine-table td,
    .admin-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Curriculum Section */
.curriculum-section {
    background: linear-gradient(180deg, var(--light-color) 0%, var(--white) 100%);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.curriculum-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
    text-align: center;
    transition: all var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.curriculum-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.curriculum-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.curriculum-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 700;
}

.curriculum-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===================================
   FEATURES PAGE
   =================================== */

.features-main-section {
    background: linear-gradient(180deg, var(--light-color) 0%, var(--white) 100%);
}

.features-grid-large {
    display: grid;
    gap: 3.5rem;
}

.feature-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 2.5rem;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-5px);
}

.feature-icon-large {
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    flex-shrink: 0;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.25);
}

.feature-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 800;
}

.feature-content p {
    color: var(--gray-600);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.feature-list { padding-left: 1.5rem; }
.feature-list li {
    list-style: disc;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* Additional Features */
.additional-features-section {
    background: var(--white);
}

.features-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.small-feature-card {
    background: linear-gradient(180deg, var(--light-color) 0%, var(--white) 100%);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all var(--transition-smooth);
    box-shadow: var(--box-shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.small-feature-card:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.small-feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: color var(--transition-speed);
}

.small-feature-card:hover i {
    color: var(--white);
}

.small-feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.small-feature-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.small-feature-card:hover p {
    color: var(--white);
}

/* ===================================
   ALUMNI PAGE
   =================================== */

.alumni-intro-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.alumni-intro-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.alumni-intro-premium {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(37, 99, 235, 0.1);
    position: relative;
}

.premium-badge {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 20px 45px rgba(37, 99, 235, 0.5);
        transform: scale(1.05);
    }
}

.premium-badge i {
    font-size: 3rem;
    color: var(--white);
}

.alumni-tagline-header {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.lead-premium {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.divider-fancy {
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    margin: 2rem auto;
    border-radius: 2px;
}

.description-premium {
    color: var(--gray-600);
    line-height: 2;
    font-size: 1.05rem;
    margin: 0;
}

.description-premium strong {
    color: var(--primary-color);
    font-weight: 700;
}

.alumni-section {
    background: var(--white);
    padding: 5rem 0;
}

.alumni-grid {
    display: grid;
    gap: 3rem;
}

.alumni-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 0;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(37, 99, 235, 0.08);
    position: relative;
}

.alumni-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.alumni-card:hover::before {
    transform: scaleX(1);
}

.alumni-card:hover {
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15);
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.2);
}

.alumni-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    height: 100%;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alumni-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.15), transparent 70%);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.alumni-photo-frame {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    padding: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    z-index: 1;
}

.alumni-card:hover .alumni-photo-frame {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 25px 70px rgba(37, 99, 235, 0.4);
}

.alumni-photo-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(15px);
}

.alumni-card:hover .alumni-photo-frame::before {
    opacity: 0.7;
}

.alumni-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    transition: all 0.5s ease;
}

.photo-border {
    position: absolute;
    inset: 4px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    pointer-events: none;
    transition: all 0.5s ease;
}

.alumni-card:hover .photo-border {
    border-color: rgba(255, 255, 255, 0.4);
    inset: 2px;
}

.alumni-card:hover .alumni-image img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.05);
}

.alumni-info {
    padding: 3rem 2.5rem;
    background: linear-gradient(180deg, var(--white) 0%, rgba(248, 250, 252, 0.5) 100%);
}

.alumni-info h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 800;
    transition: color 0.3s ease;
}

.alumni-card:hover .alumni-info h3 {
    color: var(--primary-color);
}

.alumni-batch {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
    display: inline-block;
    font-size: 0.95rem;
    padding: 0.5rem 1.25rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 20px;
}

.alumni-quote {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(124, 58, 237, 0.04) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.alumni-quote i {
    font-size: 1.8rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 0.75rem;
}

.alumni-quote p {
    color: var(--gray-700);
    line-height: 1.9;
    font-style: italic;
    font-size: 0.95rem;
    margin: 0;
}

.alumni-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.achievement-tag {
    display: inline-block;
    padding: 0.7rem 1.3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
}

.achievement-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* Alumni Community */
.alumni-community-section {
    background: linear-gradient(180deg, var(--light-color) 0%, var(--white) 100%);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.impact-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--box-shadow-md);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.impact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.impact-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.impact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 700;
}

.impact-card p {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ===================================
   CLUBS PAGE
   =================================== */

.club-main-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.club-hero {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.club-logo-container {
    flex-shrink: 0;
}

.club-logo-large {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 6px solid var(--white);
    box-shadow: var(--box-shadow-xl);
}

.club-title {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.club-tagline {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.club-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.club-meta span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.club-about-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.club-about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.club-about-premium {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(37, 99, 235, 0.1);
    position: relative;
}

.club-icon-badge {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

.club-icon-badge i {
    font-size: 3rem;
    color: var(--white);
}

.club-tagline-header {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.club-about-content .lead {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.club-about-content p {
    color: var(--gray-600);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Leadership */
.club-leadership-section {
    background: var(--white);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.leader-card {
    background: linear-gradient(180deg, var(--light-color) 0%, var(--white) 100%);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--box-shadow-md);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.leader-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-5px);
}

.leader-card.featured {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    color: var(--white);
    border: none;
    box-shadow: var(--box-shadow-lg);
}

.leader-image {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.75rem;
    position: relative;
}

.leader-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: var(--box-shadow-lg);
}

.leader-card.featured .leader-image img {
    border-color: var(--white);
}

.leader-card h3 {
    font-size: 1.55rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 800;
}

.leader-card.featured h3 {
    color: var(--white);
}

.leader-role {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.leader-card.featured .leader-role {
    color: var(--light-color);
}

.leader-description {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.9rem;
}

.leader-card.featured .leader-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Club Members */
.club-members-section {
    background: linear-gradient(180deg, var(--light-color) 0%, var(--white) 100%);
}

.members-showcase {
    max-width: 900px;
    margin: 0 auto;
}

.members-intro {
    text-align: center;
    color: var(--gray-600);
    line-height: 1.9;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
}

.member-badge {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--box-shadow-md);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.member-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.member-badge i {
    font-size: 2.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.member-badge p {
    color: var(--gray-600);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Club Mission */
.club-mission-section {
    background: var(--white);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 2.5rem;
}

.mv-card {
    background: linear-gradient(180deg, var(--light-color) 0%, var(--white) 100%);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
    transition: all var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mv-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-5px);
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.mv-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 800;
}

.mv-card p {
    color: var(--gray-600);
    line-height: 1.9;
    font-size: 0.95rem;
}

/* Club Activities */
.club-activities-section {
    background: linear-gradient(180deg, var(--light-color) 0%, var(--white) 100%);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.activity-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
    text-align: center;
    transition: all var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.activity-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.activity-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 700;
}

.activity-card p {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ===================================
   GALLERY PAGE
   =================================== */

.gallery-filters-section {
    background: linear-gradient(180deg, var(--light-color) 0%, var(--white) 100%);
    padding: 3rem 0;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.85rem 1.75rem;
    background: var(--white);
    color: var(--gray-800);
    border-radius: 25px;
    font-weight: 600;
    transition: all var(--transition-speed);
    border: 1px solid var(--gray-300);
    box-shadow: var(--box-shadow);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--box-shadow-md);
    transform: translateY(-2px);
}

.farewell-slider-section {
    background: linear-gradient(180deg, var(--light-color) 0%, var(--white) 100%);
    padding: 4rem 0;
}

.farewell-slider {
    position: relative;
    height: 420px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.farewell-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.farewell-slide.active {
    position: relative;
    opacity: 1;
}

.farewell-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.farewell-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.85) 100%);
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.gallery-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.gallery-filters-section {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-speed) cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    height: 320px;
    box-shadow: var(--box-shadow-md);
    transition: all var(--transition-smooth) cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.gallery-item:hover {
    box-shadow: var(--box-shadow-xl);
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gallery-item:hover img {
    transform: scale(1.15) rotate(2deg);
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.75rem;
    }
    
    .gallery-item {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .gallery-filters {
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-item {
        height: 260px;
    }
}

@media (max-width: 480px) {
    .gallery-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .gallery-item {
        height: 240px;
    }
}

.gallery-item.slider-item {
    padding: 0;
}

.gallery-mini-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-mini-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.gallery-mini-slide.active {
    opacity: 1;
}

.gallery-mini-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.gallery-item:hover {
    box-shadow: var(--box-shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.12);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(236, 72, 153, 0.95) 100%);
    opacity: 0;
    transition: all var(--transition-smooth) cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: var(--white);
    padding: 2rem;
    transform: translateY(20px);
    transition: transform var(--transition-smooth);
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.gallery-content p {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    opacity: 0.95;
    font-weight: 500;
}

.view-btn {
    background: var(--white);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all var(--transition-speed) cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.view-btn:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.97);
    z-index: 9999;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--border-radius-lg);
}

.lightbox-caption {
    text-align: center;
    color: var(--white);
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

/* ===================================
   CONTACT PAGE
   =================================== */

.contact-main-section {
    background: linear-gradient(180deg, var(--light-color) 0%, var(--white) 100%);
    padding: 4.5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.contact-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--white) 100%);
    padding: 2.75rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    border: 1px solid rgba(37, 99, 235, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 100%;
}

.contact-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.panel-header h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    font-weight: 800;
}

.panel-header p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.required {
    color: var(--danger-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-speed);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form .btn {
    align-self: flex-start;
}

.form-message {
    margin-top: 0.5rem;
    padding: 1.25rem;
    border-radius: var(--border-radius-lg);
    display: none;
    font-weight: 500;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
    border: 1px solid #6ee7b7;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
    border: 1px solid #fca5a5;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-speed);
}

.contact-info-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.contact-info-item .info-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex: 0 0 auto;
}

.contact-info-item h3 {
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    font-weight: 700;
    font-size: 1rem;
}

.contact-info-item p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.contact-mini-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--box-shadow);
}

.contact-mini-map iframe {
    width: 100%;
    height: 200px;
    border: none;
}

.social-media-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.social-links-large {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-links-large a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed);
}

.social-links-large a:hover {
    transform: translateY(-2px);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--box-shadow-md);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .hero-title { font-size: 2.5rem; }
    .section-header h2 { font-size: 2rem; }
    .principal-card { grid-template-columns: 1fr; }
    .alumni-card { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .feature-item { grid-template-columns: 100px 1fr; }
    .club-hero { gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 75px);
        flex-direction: column;
        gap: 0;
        background: var(--white);
        display: none;
        padding: 0;
        overflow-y: auto;
        border-top: 2px solid var(--gray-200);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        animation: slideDown 0.35s ease-out;
        z-index: 999;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-menu.active { display: flex; }
    .nav-menu li {
        border-bottom: 1px solid var(--gray-150);
    }
    
    .nav-menu a {
        display: block;
        padding: 1.3rem 1.8rem;
        color: var(--gray-700);
        font-weight: 500;
        font-size: 1rem;
        transition: all 0.25s ease;
        position: relative;
    }
    
    .nav-menu a.active {
        background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), transparent);
        border-left: 5px solid var(--primary-color);
        color: var(--primary-color);
        padding-left: 1.3rem;
        font-weight: 600;
    }
    
    .nav-menu a::after { display: none; }

    .hero-title { font-size: 2rem; }
    .hero { min-height: 350px; max-height: 500px; }
    .page-header h1 { font-size: 2rem; }
    .section-header h2 { font-size: 1.75rem; }
    .hero-buttons { flex-direction: column; gap: 1rem; }
    .hero-buttons .btn { width: 100%; }

    .intro-content,
    .intro-content-redesign,
    .principal-card,
    .alumni-card,
    .contact-grid,
    .mission-vision-grid,
    .vmo-grid,
    .club-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .school-text-content {
        padding: 2rem;
    }

    .school-text-content h3 {
        font-size: 1.5rem;
    }

    .stats-grid,
    .highlights-grid,
    .levels-grid,
    .enrollment-summary,
    .activities-grid,
    .impact-grid,
    .curriculum-grid,
    .features-grid-small,
    .features-grid-large {
        grid-template-columns: 1fr;
    }

    .feature-item {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 1.5rem;
    }

    .feature-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin: 0 auto;
    }

    .feature-content h3 {
        font-size: 1.4rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        background: var(--gray-50);
        box-shadow: none;
        padding: 0;
        min-width: auto;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        background: linear-gradient(180deg, rgba(37, 99, 235, 0.05), transparent);
    }

    .dropdown.active .dropdown-menu a {
        display: block;
        padding: 0.8rem 1.8rem 0.8rem 3rem;
        border-bottom: none;
        color: var(--gray-700);
        font-weight: 400;
        font-size: 0.95rem;
    }

    .dropdown.active .dropdown-menu a:first-child {
        padding-top: 0.8rem;
    }

    .club-hero {
        flex-direction: column;
    }

    .club-logo-large {
        width: 160px;
        height: 160px;
    }

    .club-title {
        font-size: 1.8rem;
    }

    .club-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .leadership-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .member-badge {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }

    .contact-panel {
        padding: 2rem;
    }

    .contact-form {
        gap: 1.25rem;
    }
}


@media (max-width: 480px) {
    :root { font-size: 13.5px; }

    .navbar {
        padding: 0.8rem 0;
    }

    .nav-container {
        padding: 0.8rem 15px;
    }

    .nav-logo {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .school-name {
        font-size: 1.1rem;
    }

    .nav-menu {
        top: 65px;
        max-height: calc(100vh - 65px);
    }

    .hero-title { font-size: 1.5rem; }
    .hero { min-height: 300px; max-height: 400px; height: 70vh; }
    .hero-subtitle { font-size: 1rem; }
    .hero-description { font-size: 0.9rem; }
    .page-header h1 { font-size: 1.5rem; }
    .page-header p { font-size: 0.95rem; }

    .section-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .stats-grid,
    .highlights-grid,
    .levels-grid,
    .curriculum-grid,
    .features-grid-small,
    .features-grid-large,
    .activities-grid,
    .impact-grid,
    .gallery-grid,
    .leadership-grid,
    .members-grid,
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .school-text-content {
        padding: 1.5rem;
    }

    .school-text-content h3 {
        font-size: 1.25rem;
    }

    .school-text-content p {
        font-size: 0.9rem;
    }

    .feature-item {
        padding: 1.5rem;
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    .feature-icon-large {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin: 0 auto 0.5rem;
    }

    .feature-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .feature-content p {
        font-size: 0.85rem;
    }

    .feature-list li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .small-feature-card {
        padding: 1.5rem 1rem;
    }

    .small-feature-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .small-feature-card p {
        font-size: 0.8rem;
    }

    .small-feature-card i {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .enrollment-table,
    .routine-table {
        font-size: 0.75rem;
    }

    .enrollment-table th,
    .routine-table th {
        padding: 0.5rem 0.3rem;
    }

    .enrollment-table td,
    .routine-table td {
        padding: 0.5rem 0.3rem;
    }

    .contact-panel {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .panel-header h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .panel-header p {
        font-size: 0.85rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .contact-info-item {
        padding: 1rem;
        gap: 0.75rem;
    }

    .contact-info-item .info-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .contact-info-item h3 {
        font-size: 0.95rem;
    }

    .contact-info-item p {
        font-size: 0.85rem;
    }

    .contact-mini-map {
        border-radius: var(--border-radius);
    }

    .contact-mini-map iframe {
        height: 150px;
    }

    .social-links-large a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .club-hero {
        gap: 1.5rem;
    }

    .club-logo-large {
        width: 120px;
        height: 120px;
        border-width: 4px;
    }

    .club-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .club-tagline {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .club-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
        font-size: 0.85rem;
    }

    .club-icon-badge {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .club-about-premium {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin: 0 auto;
    }

    .club-tagline-header {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .lead-premium {
        font-size: 0.95rem;
    }

    .description-premium {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .leader-card {
        padding: 1.5rem 1rem;
    }

    .leader-image {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }

    .leader-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .leader-role {
        font-size: 0.85rem;
    }

    .leader-description {
        font-size: 0.8rem;
    }

    .members-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .member-badge {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .member-badge i {
        font-size: 1.5rem;
    }

    .activity-card {
        padding: 1.5rem 1rem;
    }

    .activity-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .activity-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .activity-card p {
        font-size: 0.85rem;
    }

    .mv-card {
        padding: 1.5rem;
    }

    .mv-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .mv-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .mv-card p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .cta-section {
        padding: 2rem 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .cta-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}


/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-danger { color: var(--danger-color); }
.text-success { color: var(--success-color); }

/* ===================================
   COMPREHENSIVE MOBILE RESPONSIVE ENHANCEMENTS
   Ultra Modern Design for All Devices
   =================================== */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
    h1 { font-size: clamp(2rem, 4vw, 2.5rem); }
    h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
    h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
    
    .container {
        padding: 0 18px;
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
    h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
    h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
    
    /* Grid adjustments */
    .highlights-grid,
    .features-grid,
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    /* Spacing adjustments */
    section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    /* Button adjustments */
    .btn {
        font-size: 0.95rem;
        padding: 0.9rem 2rem;
    }
    
    /* Hero adjustments */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

/* Mobile Landscape (640px and below) */
@media (max-width: 640px) {
    .container {
        padding: 0 15px;
    }
    
    /* Single column layouts */
    .highlights-grid,
    .features-grid,
    .stats-grid,
    .info-boxes {
        grid-template-columns: 1fr;
    }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
    h2 { font-size: clamp(1.35rem, 4.5vw, 1.75rem); }
    h3 { font-size: clamp(1.2rem, 4vw, 1.5rem); }
    h4 { font-size: clamp(1.1rem, 3.5vw, 1.35rem); }
    
    .container {
        padding: 0 14px;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    /* Buttons */
    .btn {
        font-size: 0.9rem;
        padding: 0.85rem 1.75rem;
        border-radius: 12px;
    }
    
    .btn-sm {
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Cards */
    .card-modern,
    .highlight-card {
        border-radius: var(--border-radius);
    }
    
    /* Typography */
    p, li {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    /* Images */
    img {
        border-radius: 12px;
    }
}

/* Extra Small Mobile (380px and below) */
@media (max-width: 380px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets for mobile */
    button,
    .btn,
    a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .card-modern:hover,
    .gallery-item:hover,
    .highlight-card:hover {
        transform: none;
    }
    
    /* Tap to reveal instead of hover */
    .gallery-item:active .gallery-overlay {
        opacity: 1;
    }
    
    .card-modern:active {
        transform: scale(0.98);
    }
}

/* Landscape orientation optimizations */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 450px;
    }
    
    .page-header {
        height: 300px;
        min-height: 280px;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .nav-logo,
    .highlight-icon {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced Motion Preferences */
@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;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Can be enabled if needed */
    /* body {
        background: #0f172a;
        color: #e2e8f0;
    } */
}

/* Print Styles */
@media print {
    .navbar,
    .nav-toggle,
    .footer,
    .btn,
    .scroll-indicator {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ===================================
   RESPONSIVE UTILITY CLASSES
   =================================== */

/* Hide/Show on different breakpoints */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
    .show-desktop { display: block !important; }
}

/* Responsive text alignment */
@media (max-width: 768px) {
    .text-center-mobile { text-align: center !important; }
    .text-left-mobile { text-align: left !important; }
}

/* ===================================
   PORTAL PAGES - ULTRA MODERN DESIGN
   Admin Portal Specific Styles
   =================================== */

.portal-navbar {
    background: var(--gradient-primary);
    padding: 1.75rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.portal-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.portal-brand img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.portal-brand span {
    font-size: 1.75rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.5px;
}

.portal-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.portal-user > span {
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.btn-logout {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-logout:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
}

.portal-container {
    display: flex;
    min-height: calc(100vh - 100px);
}

.portal-sidebar {
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    padding: 2rem 0;
    position: sticky;
    top: 100px;
    height: calc(100vh - 100px);
    overflow-y: auto;
}

.portal-menu {
    list-style: none;
    padding: 0 1rem;
}

.portal-menu li {
    margin-bottom: 0.75rem;
}

.portal-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid transparent;
}

.portal-menu a:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(5px);
    color: var(--primary-color);
}

.portal-menu a.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.portal-menu i {
    width: 28px;
    text-align: center;
    font-size: 1.25rem;
}

.portal-main {
    flex: 1;
    padding: 2.5rem;
    background: var(--light-bg);
}

.portal-section {
    display: none;
}

.portal-section.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.dashboard-card {
    background: white;
    padding: 2.25rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(99, 102, 241, 0.1);
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.card-icon.blue {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.card-icon.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.card-icon.orange {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.card-icon.purple {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.card-content h3 {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin: 0;
}

/* Responsive Portal Styles */
@media (max-width: 1024px) {
    .portal-sidebar {
        width: 260px;
    }
    
    .portal-main {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .portal-navbar {
        padding: 1.25rem 0;
    }
    
    .portal-brand span {
        font-size: 1.4rem;
    }
    
    .portal-user > span {
        display: none;
    }
    
    .portal-sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        height: 100vh;
        z-index: 2000;
        transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    .portal-sidebar.open {
        left: 0;
    }
    
    .portal-main {
        padding: 1.5rem 1rem;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .portal-brand img {
        width: 48px;
        height: 48px;
    }
    
    .portal-brand span {
        font-size: 1.2rem;
    }
    
    .btn-logout {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .portal-main {
        padding: 1.25rem 0.75rem;
    }
}

/* ===================================
   STYLE IMPROVEMENTS - NO TRANSFORM HOVERS
   =================================== */

/* Remove scroll indicator */
.scroll-indicator {
    display: none !important;
}

/* Update button hovers - remove transform, keep subtle effects */
.btn-primary:hover,
.btn-primary:active {
    transform: none !important;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35) !important;
    opacity: 0.95 !important;
}

.btn-secondary:hover {
    transform: none !important;
    opacity: 0.95 !important;
}

.btn-success:hover {
    transform: none !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35) !important;
    opacity: 0.95 !important;
}

.btn-danger:hover {
    transform: none !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.35) !important;
    opacity: 0.95 !important;
}

/* Remove button ripple effect */
.btn::before {
    display: none !important;
}

/* Update gallery overlay - less blue, more natural dark gradient */
.gallery-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
    align-items: flex-end !important;
}

.gallery-content {
    transform: none !important;
    width: 100%;
}

.gallery-item:hover .gallery-content {
    transform: none !important;
}

.gallery-content h3 {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
}

.gallery-content p {
    font-size: 0.9rem !important;
    margin-bottom: 1.25rem !important;
}

.view-btn {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.2rem !important;
}

.view-btn:hover {
    transform: none !important;
    opacity: 0.95 !important;
}

/* Remove card transforms */
.card-modern:hover {
    transform: none !important;
}

.card-modern:hover .card-image-frame img {
    transform: scale(1.08) !important;
}

/* Remove nav logo transform */
.nav-logo:hover {
    transform: none !important;
}

/* Remove nav menu transforms */
.nav-menu > li > a:hover {
    transform: none !important;
}

.nav-menu > li > a.login-btn:hover {
    transform: none !important;
    opacity: 0.95 !important;
}

/* Remove gallery item transforms */
.gallery-item:hover {
    transform: none !important;
}

.gallery-item:hover img {
    transform: scale(1.08) !important;
}

/* Portal button updates */
.logout-btn:hover,
.btn-logout:hover {
    transform: none !important;
    opacity: 0.95 !important;
}

/* Sidebar menu updates */
.sidebar-menu a:hover,
.portal-menu a:hover {
    transform: none !important;
}

/* Dashboard card updates */
.dashboard-card:hover,
.stat-card:hover {
    transform: none !important;
}

/* Mobile menu button updates */
.nav-toggle:hover,
.mobile-menu-btn:hover {
    transform: none !important;
}

/* Highlight cards */
.highlight-card:hover,
.stat-item:hover,
.notice-card:hover {
    transform: none !important;
}

/* END OF STYLESHEET */
