/* ============================================================================
   LSA Unified Stylesheet - Merged from all CSS files
   ============================================================================ */

/* ============================================================================
   1. CSS VARIABLES & ROOT
   ============================================================================ */
:root {
    /* Primary Colors - Blue Theme */
    --blue-primary: #2563EB;
    --blue-dark: #1E40AF;
    --blue-light: #3B82F6;
    
    /* Legacy variable mappings for compatibility */
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --primary-light: #3B82F6;
    --secondary: #2563EB;
    --accent: #3B82F6;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-strong: #f8fbff;
    --text-soft: rgba(226, 232, 255, 0.72);
    
    /* Background Colors */
    --bg-light: #fafafa;
    --light: #F3F4F6;
    --dark: #1F2937;
    
    /* Hero styling */
    --hero-gradient-start: #4f7bf7;
    --hero-gradient-end: #3759f5;
    
    /* Additional Colors */
    --color-success: #22c55e;
    --color-accent: #f97316;
    
    /* Shadows */
    --shadow-sm: 0 12px 36px rgba(8, 15, 35, 0.22);
    --shadow-lg: 0 32px 80px rgba(8, 15, 35, 0.35);
    
    /* Border Radius */
    --radius-md: 24px;
    --radius-lg: 32px;
    
    /* Container */
    --container-max: min(1180px, 92vw);
    
    /* Fonts */
    --font-sans: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ============================================================================
   2. RESET & BASE STYLES
   ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: clamp(0.75rem, 1.5vw, 1.5rem) 0;
}

section {
    position: relative;
    z-index: 1;
}

/* ============================================================================
   3. TYPOGRAPHY - Standardized Font Sizes (excluding footer)
   ============================================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    /* Font size set by specific rules below, excluding hero sections */
}

/* Override all heading sizes to be consistent (excluding footer and hero sections) */
:where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) h1 { font-size: 1rem !important; }
:where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) h2 { font-size: 1rem !important; }
:where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) h3 { font-size: 1rem !important; }
:where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) h4 { font-size: 1rem !important; }
:where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) h5,
:where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) h6 { font-size: 1rem !important; }

@media (min-width: 768px) {
    :where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) h1 { font-size: 1rem !important; }
    :where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) h2 { font-size: 1rem !important; }
    :where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) h3 { font-size: 1rem !important; }
}

:where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) p,
:where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) span,
:where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) div,
:where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) a,
:where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) li,
:where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) :is(
    h1, h2, h3, h4, h5, h6,
    p, span, div, a, li, td, th,
    label, input, textarea, select, button,
    blockquote, cite, em, strong, small, b, i, u
) {
    font-size: 1rem !important;
}

/* Override Tailwind text utilities outside hero areas */
:where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) :is(
    .text-xs, .text-sm, .text-base, .text-lg,
    .text-xl, .text-2xl, .text-3xl, .text-4xl, .text-5xl
),
:where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) [class*="text-"] {
    font-size: 1rem !important;
}

ul,
ol {
    margin: 0 0 0.75rem 1.25rem;
    padding: 0;
}

li {
    margin-bottom: 0.35rem;
}

a {
    color: var(--blue-primary);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

a:hover {
    color: var(--blue-light);
    text-decoration: underline;
}

/* ============================================================================
   4. LAYOUT & CONTAINERS
   ============================================================================ */
.container,
.page-wrapper,
.container.mx-auto {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

.content-section {
    padding: 1.1rem 0;
}

@media (min-width: 768px) {
    .content-section {
        padding: 1.5rem 0;
    }
}

:where(.py-12) {
    padding-top: 1.25rem !important;
    padding-bottom: 1.25rem !important;
}

:where(.py-10) {
    padding-top: 1.1rem !important;
    padding-bottom: 1.1rem !important;
}

:where(.py-8) {
    padding-top: 0.95rem !important;
    padding-bottom: 0.95rem !important;
}

:where(.py-6) {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

@media (min-width: 1024px) {
    :where(.py-12) {
        padding-top: 1.75rem !important;
        padding-bottom: 1.75rem !important;
    }
    :where(.py-10) {
        padding-top: 1.4rem !important;
        padding-bottom: 1.4rem !important;
    }
    :where(.py-8) {
        padding-top: 1.2rem !important;
        padding-bottom: 1.2rem !important;
    }
}

:where(.mb-20, .my-20) { margin-bottom: 1.75rem !important; }
:where(.mb-16, .my-16) { margin-bottom: 1.5rem !important; }
:where(.mb-12, .my-12) { margin-bottom: 1.25rem !important; }
:where(.mb-10, .my-10) { margin-bottom: 1.1rem !important; }
:where(.mb-8, .my-8)   { margin-bottom: 0.95rem !important; }
:where(.mb-6, .my-6)   { margin-bottom: 0.75rem !important; }
:where(.mb-4, .my-4)   { margin-bottom: 0.6rem !important; }
:where(.mb-3, .my-3)   { margin-bottom: 0.45rem !important; }
:where(.mb-2, .my-2)   { margin-bottom: 0.35rem !important; }
:where(.mb-1, .my-1)   { margin-bottom: 0.25rem !important; }

:where(.gap-10) { gap: 1.25rem !important; }
:where(.gap-8)  { gap: 1rem !important; }
:where(.gap-6)  { gap: 0.85rem !important; }
:where(.gap-4)  { gap: 0.6rem !important; }

/* ============================================================================
   5. NAVIGATION
   ============================================================================ */
#lsa-main-header {
    display: block !important;
    visibility: visible !important;
    position: sticky;
    top: 0;
    z-index: 50;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#lsa-main-header nav {
    display: block !important;
    visibility: visible !important;
}

/* Override Tailwind hidden class for desktop nav on large screens */
@media (min-width: 1024px) {
    #lsa-desktop-nav[class*="lg:flex"] {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 1023px) {
    #lsa-desktop-nav {
        display: none !important;
    }
    
    #lsa-mobile-menu-button {
        display: inline-flex !important;
        visibility: visible !important;
    }
}

nav {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
}

nav > div {
    width: 100%;
    display: flex;
    justify-content: center;
}

nav a {
    color: #000000;
    font-weight: 500;
    font-size: 1rem !important;
    transition: color 0.2s;
    font-family: 'Inter', sans-serif;
}

nav a:hover {
    color: #2563EB;
}

nav a.active {
    color: #2563EB;
    font-weight: 600;
}

/* Center navigation on all pages */
nav .container > div,
nav .container > .flex {
    justify-content: center !important;
}

nav .justify-between {
    justify-content: center !important;
}

/* Force all navigation links to use dark text */
:is(header nav a, #main-nav a, #mobile-nav a, nav a, #navigation-container a) {
    color: #1e293b !important;
    text-decoration: none;
}

:is(header nav a, #main-nav a, #mobile-nav a, nav a, #navigation-container a):hover {
    color: #2563EB !important;
}

/* Mobile navigation */
@media (max-width: 1023px) {
    nav ul.mobile-menu-open {
        flex-direction: column;
        position: absolute;
        top: 4rem;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        z-index: 50;
    }
    
    nav ul.mobile-menu-open li {
        margin: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    nav .flex.items-center.space-x-8 {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 1rem;
    }
    
    nav a, nav button {
        font-size: 1rem !important;
    }
}

/* ============================================================================
   6. HERO SECTIONS & PAGE HEADERS - Unified Styling
   ============================================================================ */
/* Base styles for all hero sections and page headers - STRONGEST PRIORITY */
/* Use highest specificity to override Tailwind */
section.hero-section,
section.page-header,
section.hero-bg,
section.page-header.py-12,
section.hero-section.py-12,
section.hero-bg.py-12,
section.page-header.bg-white,
section.hero-section.bg-white,
section.hero-bg.bg-white,
.hero-section,
.page-header,
.hero-bg {
    background: linear-gradient(135deg, var(--hero-gradient-start), var(--hero-gradient-end)) !important;
    color: var(--text-strong) !important;
    position: relative;
    overflow: hidden;
    padding: clamp(1.1rem, 2vw, 2.4rem) clamp(0.9rem, 2.2vw, 2.4rem) !important;
    border-radius: 0;
    box-shadow: inset 0 -25px 60px rgba(13, 35, 110, 0.25);
}

:is(section.hero-section, section.page-header, section.hero-bg, .hero-section, .page-header, .hero-bg)::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.2) 0%, transparent 50%);
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

:is(section.hero-section, section.page-header, section.hero-bg, .hero-section, .page-header, .hero-bg)::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.28), transparent 55%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.14));
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
}

/* Hero typography */
:is(.hero-bg, .hero-section, .page-header) h1,
:is(section.hero-bg, section.hero-section, section.page-header) h1 {
    font-size: clamp(2.25rem, 1.4rem + 2vw, 3.5rem) !important;
    font-weight: 800;
    line-height: 1.12 !important;
    letter-spacing: -0.02em;
    margin-bottom: clamp(0.6rem, 0.4rem + 0.6vw, 1.1rem) !important;
}

:is(.hero-bg, .hero-section, .page-header) p,
:is(section.hero-bg, section.hero-section, section.page-header) p,
:is(.hero-bg, .hero-section, .page-header) .hero-tagline,
:is(section.hero-bg, section.hero-section, section.page-header) .hero-tagline {
    font-size: clamp(1.05rem, 0.95rem + 1vw, 1.7rem) !important;
    line-height: 1.45 !important;
    margin-bottom: clamp(0.6rem, 0.4rem + 0.6vw, 1rem) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

/* Hero buttons */
:is(.hero-bg, .hero-section, .page-header) .btn,
:is(section.hero-bg, section.hero-section, section.page-header) .btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.95rem 2.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

:is(.hero-bg, .hero-section, .page-header) .btn-primary,
:is(section.hero-bg, section.hero-section, section.page-header) .btn-primary {
    background: linear-gradient(120deg, #4f7bf7, #3759f5) !important;
    border: none;
    color: #ffffff !important;
    box-shadow: 0 18px 30px rgba(55, 89, 245, 0.35);
}

:is(.hero-bg, .hero-section, .page-header) .btn-secondary,
:is(section.hero-bg, section.hero-section, section.page-header) .btn-secondary {
    background: #ffffff !important;
    color: var(--blue-primary) !important;
    border: none;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

:is(.hero-bg, .hero-section, .page-header) .btn:hover,
:is(section.hero-bg, section.hero-section, section.page-header) .btn:hover {
    transform: translateY(-2px);
}

/* Override Tailwind bg-white utility class specifically */
section.page-header.bg-white,
section.hero-section.bg-white,
section.hero-bg.bg-white {
    background: linear-gradient(135deg, var(--hero-gradient-start), var(--hero-gradient-end)) !important;
    background-color: transparent !important;
}

/* Force white text for all content in hero/page-header */
:is(.hero-section, .hero-bg, .page-header),
:is(.hero-section, .hero-bg, .page-header) * {
    color: white !important;
}

/* Removed excessive padding - already handled above */

.header-content,
.hero-content {
    position: relative;
    z-index: 2;
}

/* ============================================================================
   7. BUTTONS
   ============================================================================ */
.btn,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem !important;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

@media (min-width: 768px) {
    .btn,
    .btn-primary,
    .btn-secondary {
        padding: 1rem 2rem;
        font-size: 1rem !important;
    }
}

.btn-primary {
    background: var(--blue-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--blue-primary);
    border: 2px solid var(--blue-primary);
}

.btn-secondary:hover {
    background: var(--blue-primary);
    color: white;
}

/* Override hero-bg text color for secondary button */
.hero-bg .btn-secondary,
.hero-section .btn-secondary,
.page-header .btn-secondary {
    color: var(--blue-primary) !important;
    background: white !important;
}

.hero-bg .btn-secondary:hover,
.hero-section .btn-secondary:hover,
.page-header .btn-secondary:hover {
    background: var(--blue-primary) !important;
    color: white !important;
}

.btn-success {
    background-color: var(--secondary);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-success:hover {
    background-color: #0ea271;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-next,
.btn-submit,
.btn-prev {
    background-color: #2563EB;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-next:hover,
.btn-submit:hover,
.btn-prev:hover {
    background-color: #3B82F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-next:disabled,
.btn-submit:disabled {
    background-color: #9CA3AF !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.5 !important;
}

/* ============================================================================
   8. FORMS
   ============================================================================ */
input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    background-color: white;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input:invalid,
select:invalid {
    border-color: #EF4444;
}

input:focus:invalid,
select:focus:invalid {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

label,
.form-label {
    display: block;
    font-size: 1rem !important;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-size: 1rem !important;
    line-height: 1.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    color: #1F2937;
}

.form-section {
    border-radius: 1rem;
    background-color: white;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.form-section:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.07);
}

.form-section h3 {
    color: #1F2937;
    font-size: 1rem !important;
    font-weight: 600;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
    position: relative;
}

.form-section h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 3rem;
    height: 3px;
    background-color: #2563EB;
    border-radius: 3px;
}

.form-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.form-title {
    font-size: 1rem !important;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

input[type="file"]::file-selector-button {
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 0;
    font-size: 1rem !important;
    font-weight: 600;
    background-color: rgba(37, 99, 235, 0.1);
    color: #2563EB;
    cursor: pointer;
    transition: background-color 0.2s;
}

input[type="file"]::file-selector-button:hover {
    background-color: rgba(37, 99, 235, 0.2);
}

.selection-button {
    background-color: #2563EB;
    color: white;
    transition: all 0.3s ease;
}

.selection-button:hover {
    background-color: #1E40AF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.selection-button.selected {
    background-color: #1E40AF !important;
    color: white !important;
    border-color: #1E40AF !important;
}

.input-field {
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-field:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
    outline: none;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.session {
    border: 1px solid #e5e7eb;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    background-color: #f9fafb;
}

.session:not(:first-child) {
    border-top: 1px solid #e5e7eb;
}

/* ============================================================================
   9. CARDS & COMPONENTS
   ============================================================================ */
.card,
.content-card,
.program-card,
.teacher-card,
.job-card,
.highlight-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.1);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .card {
        border-radius: 16px;
        padding: 2rem;
    }
}

.program-card:hover,
.teacher-card:hover,
.job-card:hover,
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.menu-card {
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.menu-link {
    display: block;
    padding: 1.5rem;
    color: var(--text);
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
}

.menu-link:hover {
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--primary);
}

.menu-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    color: var(--primary);
    flex-shrink: 0;
}

.section-card {
    background-color: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

/* ============================================================================
   10. TABLES
   ============================================================================ */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

table,
.calendar-table,
.tuition-table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-table th {
    background-color: #2563EB;
    color: white;
    font-weight: normal;
    padding: 0.4rem 0.2rem;
    text-align: center;
}

tr:hover {
    background-color: #F9FAFB;
}

.overdue {
    background-color: #FEE2E2;
}

.due-soon {
    background-color: #FEF3C7;
}

.amount-cell {
    font-weight: 600;
    color: #2563EB;
}

.email-link {
    color: #3B82F6;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
    }
    
    table {
        min-width: 700px;
    }
}

/* ============================================================================
   11. FOOTER
   ============================================================================ */
footer {
    background: linear-gradient(to right, #2563EB, #1E40AF);
    color: #FFFFFF;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

footer .container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
}

footer p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    text-align: center;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s;
}

footer a:hover {
    color: #FFFFFF;
}

/* ============================================================================
   12. ADMIN-SPECIFIC STYLES
   ============================================================================ */
.admin-sidebar {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    color: white;
    width: 280px;
    transition: all 0.3s ease;
}

.admin-sidebar h2 {
    color: white;
    font-weight: 600;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar ul li a,
.admin-sidebar ul li button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.admin-sidebar ul li a:hover,
.admin-sidebar ul li button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left: 3px solid var(--primary);
}

.admin-sidebar ul li a.active {
    background-color: rgba(37, 99, 235, 0.2);
    color: white;
    border-left: 3px solid var(--primary);
}

.teacher-icon-bg {
    background-color: rgba(37, 99, 235, 0.1);
}

.group:hover .teacher-icon-bg {
    background-color: #2563EB;
}

.teacher-icon {
    color: #2563EB;
}

.group:hover .teacher-icon {
    color: white;
}

.teacher-title {
    color: #1e293b;
}

.group:hover .teacher-title {
    color: #2563EB;
}

.login-button {
    background-color: #2563EB;
}

.login-button:hover {
    background-color: #3B82F6;
}

.password-toggle {
    color: #2563EB;
}

.password-toggle:hover {
    color: #3B82F6;
}

.spinner,
.spinner-border,
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    border-left-color: var(--primary);
    animation: spin 1s linear infinite;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-left-color: #3B82F6;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9CA3AF;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #D1D5DB;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
    
    .admin-content {
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .admin-sidebar.mobile-hidden {
        display: none;
    }
}

/* ============================================================================
   13. PAGE-SPECIFIC STYLES
   ============================================================================ */
/* News Page */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Facilities Page */
.logo-container img {
    height: 50px;
}

.logo-container h1 {
    font-size: 1rem !important;
    margin-left: 10px;
    color: #ECF0F1;
}

/* Policy Page */
.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h3 {
    color: #1F2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E5E7EB;
}

/* Seminar Page */
.seminar-info {
    background-color: rgba(37, 99, 235, 0.1);
    border-left: 4px solid #2563EB;
}

.confirmation-container {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.form-container {
    animation: slideIn 0.5s ease-in-out;
}

.btn-action {
    transition: all 0.3s ease;
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.radio-item {
    transition: all 0.2s ease;
    animation: fadeIn 0.3s ease-in-out;
}

.radio-item:hover {
    border-color: #BFDBFE;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

/* Payment Success */
.success-checkmark {
    animation: scaleIn 0.5s ease-in-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Photo Slider */
.photo-container {
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.photo-container .carousel-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.photo-slider-wrapper {
    flex: 1;
    overflow: hidden;
}

.photo-slider {
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease;
    width: max-content;
}

@media (min-width: 768px) {
    .photo-slider {
        gap: 1.5rem;
    }
}

.photo-item {
    flex: 0 0 200px;
    height: 130px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

@media (min-width: 768px) {
    .photo-item {
        flex: 0 0 240px;
        height: 155px;
        border-radius: 20px;
    }
}

.photo-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* News Cards */
.news-container {
    position: relative;
    overflow: visible;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-container .carousel-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.news-slider-wrapper {
    flex: 1;
    overflow: hidden;
}

.news-slider {
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease;
    width: max-content;
}

@media (min-width: 768px) {
    .news-slider {
        gap: 1.5rem;
    }
}

.news-card {
    flex: 0 0 240px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .news-card {
        flex: 0 0 260px;
        border-radius: 20px;
        padding: 1.5rem;
    }
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2563EB 0%, #3B82F6 50%, #1E40AF 100%);
}

.news-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.news-card h3 {
    font-size: 1rem !important;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-family: 'Inter', sans-serif;
}

.news-card p {
    font-size: 1rem !important;
    color: #64748b;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
}

@media (min-width: 768px) {
    .news-card h3 {
        font-size: 1rem !important;
        line-height: 1.4;
    }
    
    .news-card p {
        font-size: 1rem !important;
        margin-bottom: 1rem;
    }
}

.news-card a {
    font-size: 1rem !important;
    color: #2563EB;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .news-card a {
        font-size: 1rem !important;
    }
}

.news-card a:hover {
    gap: 0.6rem;
    color: #3B82F6;
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem !important;
    color: #1e293b;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: #f3f4f6;
}

/* Social Icons */
.social-icon {
    width: 26px;
    height: 26px;
    transition: all 0.2s;
}

.social-icon:hover {
    transform: scale(1.15) rotate(-5deg);
}

/* Hero Tagline */
.hero-tagline {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .hero-tagline {
        white-space: normal;
        /* Hero text font sizes preserved */
    }
}

/* Follow Us in Hero */
.hero-bg > div:first-child {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 20;
}

@media (max-width: 640px) {
    .hero-bg > div:first-child {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .hero-bg > div:first-child span {
        /* Hero text font sizes preserved */
    }
    
    .hero-bg > div:first-child .social-icon {
        width: 20px;
        height: 20px;
    }
    
    .hero-bg > div:first-child svg {
        width: 20px;
        height: 20px;
    }
}

/* Dropdown Menu */
.group:hover .group-hover\:block {
    display: block;
    animation: dropIn 0.2s ease;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

nav .group-hover\:block a {
    display: block;
    width: 100%;
}

/* ============================================================================
   14. UTILITIES & RESPONSIVE
   ============================================================================ */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
    
    .desktop-only {
        display: block;
    }
}

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }

/* Force blue color overrides */
[class*="bg-blue"] {
    background-color: #2563EB !important;
}

[class*="from-blue"] {
    --tw-gradient-from: #2563EB !important;
}

[class*="to-blue"] {
    --tw-gradient-to: #1E40AF !important;
}

.bg-gradient-to-r.from-blue-700.to-blue-400 {
    background-image: linear-gradient(to right, var(--blue-primary), var(--blue-light)) !important;
}

.bg-gradient-to-r.from-blue-600.to-blue-700 {
    background-image: linear-gradient(to right, var(--blue-primary), var(--blue-dark)) !important;
}

[class*="from-blue-"][class*="to-blue-"] {
    background-image: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-light) 50%, var(--blue-dark) 100%) !important;
}

.bg-gradient-to-r[class*="blue"] {
    background-image: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-light) 50%, var(--blue-dark) 100%) !important;
}

.bg-gradient-to-l[class*="blue"] {
    background-image: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-light) 50%, var(--blue-dark) 100%) !important;
}

.hero-section.bg-gradient-to-r {
    background-image: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-light) 50%, var(--blue-dark) 100%) !important;
}

/* Mobile Responsive - Standardized font sizes (excluding footer and hero sections) */
@media (max-width: 768px) {
    :where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) .page-header h1 {
        font-size: 1rem !important;
    }
    
    :where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) h1 {
        font-size: 1rem !important;
    }
    
    :where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) h2 {
        font-size: 1rem !important;
    }
    
    main {
        padding: 2rem 0;
    }
    
    .footer-meta {
        justify-content: center;
        text-align: center;
    }
}

/* Additional mobile responsive styles for admin menus */
@media (max-width: 640px) {
    .flex.items-center.p-4 {
        padding: 0.75rem;
    }
    
    .flex-shrink-0.w-10.h-10 {
        width: 2.25rem;
        height: 2.25rem;
    }
    
    :where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) h1.text-2xl,
    :where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) h2.text-xl {
        font-size: 1rem !important;
    }
    
    :where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) h3.font-medium {
        font-size: 1rem !important;
    }
    
    :where(:not(footer):not(.hero-section):not(.hero-bg):not(.page-header)) p.text-sm {
        font-size: 1rem !important;
    }
    
    .space-y-3 > * + * {
        margin-top: 0.5rem;
    }
    
    .p-6 {
        padding: 1rem !important;
    }
    
    .py-8 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .w-10 {
        width: 2.25rem !important;
    }
    
    .h-10 {
        height: 2.25rem !important;
    }
    
    .h-5 {
        height: 1.125rem !important;
    }
    
    .w-5 {
        width: 1.125rem !important;
    }
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: relative;
    background: white;
    border: 2px solid var(--blue-primary);
    color: var(--blue-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    visibility: visible !important;
    opacity: 1 !important;
}

.carousel-btn:hover {
    background: var(--blue-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.carousel-btn:disabled:hover {
    background: white;
    color: var(--blue-primary);
    transform: none;
}

@media (max-width: 640px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================================================
   MOBILE RESPONSIVE - Comprehensive Mobile Optimization
   ============================================================================ */

/* Mobile-first: Base styles for mobile, then enhance for larger screens */
@media (max-width: 767px) {
    /* Container adjustments */
    .container,
    .container.mx-auto {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    /* Hero section mobile optimization */
    .hero-bg,
    .hero-section,
    .page-header {
        padding: 1.2rem 0.9rem !important;
    }
    
    .hero-bg h1,
    .hero-section h1,
    .page-header h1 {
        font-size: clamp(1.8rem, 1rem + 2.2vw, 2.2rem) !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-bg p,
    .hero-section p,
    .page-header p,
    .hero-bg .hero-tagline,
    .hero-section .hero-tagline {
        font-size: clamp(0.95rem, 0.8rem + 1vw, 1.2rem) !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Content sections - reduced spacing */
    .content-section {
        padding: 1rem 0 !important;
    }
    
    /* Navigation mobile */
    nav {
        padding: 0.75rem 0;
    }
    
    nav .flex.items-center.space-x-8 {
        gap: 0.5rem;
        flex-wrap: wrap;
        padding: 0 0.5rem;
    }
    
    /* Carousel adjustments for mobile */
    .photo-container,
    .news-container {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    
    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* Buttons mobile */
    .btn,
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem !important;
    }
    
    /* Reduce all margins and paddings */
    h1, h2, h3, h4, h5, h6 {
        margin-bottom: 0.5rem !important;
    }
    
    p {
        margin-bottom: 0.75rem !important;
    }
    
    /* Hero buttons stack on mobile */
    .hero-bg .flex.flex-wrap,
    .hero-section .flex.flex-wrap {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-bg .btn,
    .hero-section .btn {
        width: 100%;
        text-align: center;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .content-section {
        padding: 1.5rem 0;
    }
    
    .hero-bg,
    .hero-section,
    .page-header {
        padding: 2rem 1.5rem;
    }
}

/* Ensure viewport meta tag is respected */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Touch-friendly targets on mobile */
@media (max-width: 767px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Make carousel buttons easier to tap */
    .carousel-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Photo and news items mobile optimization */
    .photo-item {
        flex: 0 0 calc(50% - 0.5rem) !important;
        min-width: calc(50% - 0.5rem) !important;
        height: 120px !important;
    }
    
    .news-card {
        flex: 0 0 calc(100% - 1rem) !important;
        min-width: calc(100% - 1rem) !important;
    }
    
    /* Ensure images don't overflow on mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Stack elements vertically on very small screens */
    .flex.flex-wrap {
        flex-direction: column;
    }
    
    /* Reduce gap between elements */
    .gap-4 {
        gap: 0.75rem !important;
    }
}

/* ============================================================================
   BLUE BOXES - Ensure white text on blue backgrounds
   ============================================================================ */
/* Force white text on all blue background boxes */
.bg-blue-600,
.bg-blue-500,
.bg-blue-700,
.bg-blue-800 {
    color: white !important;
}

.bg-blue-600 h1,
.bg-blue-600 h2,
.bg-blue-600 h3,
.bg-blue-600 h4,
.bg-blue-600 h5,
.bg-blue-600 h6,
.bg-blue-600 p,
.bg-blue-600 span,
.bg-blue-600 li,
.bg-blue-600 div,
.bg-blue-500 h1,
.bg-blue-500 h2,
.bg-blue-500 h3,
.bg-blue-500 h4,
.bg-blue-500 h5,
.bg-blue-500 h6,
.bg-blue-500 p,
.bg-blue-500 span,
.bg-blue-500 li,
.bg-blue-500 div,
.bg-blue-700 h1,
.bg-blue-700 h2,
.bg-blue-700 h3,
.bg-blue-700 h4,
.bg-blue-700 h5,
.bg-blue-700 h6,
.bg-blue-700 p,
.bg-blue-700 span,
.bg-blue-700 li,
.bg-blue-700 div,
.bg-blue-800 h1,
.bg-blue-800 h2,
.bg-blue-800 h3,
.bg-blue-800 h4,
.bg-blue-800 h5,
.bg-blue-800 h6,
.bg-blue-800 p,
.bg-blue-800 span,
.bg-blue-800 li,
.bg-blue-800 div {
    color: white !important;
}

/* Override gray text classes on blue backgrounds */
.bg-blue-600 .text-gray-700,
.bg-blue-600 .text-gray-800,
.bg-blue-600 .text-gray-600,
.bg-blue-600 .text-gray-500,
.bg-blue-500 .text-gray-700,
.bg-blue-500 .text-gray-800,
.bg-blue-500 .text-gray-600,
.bg-blue-500 .text-gray-500,
.bg-blue-700 .text-gray-700,
.bg-blue-700 .text-gray-800,
.bg-blue-700 .text-gray-600,
.bg-blue-700 .text-gray-500,
.bg-blue-800 .text-gray-700,
.bg-blue-800 .text-gray-800,
.bg-blue-800 .text-gray-600,
.bg-blue-800 .text-gray-500 {
    color: white !important;
}


