/* ============================================
   ST. JOHN'S SCHOOL - MODERN CSS FRAMEWORK
   ============================================ */

/* ==================================
   1. CSS VARIABLES & DESIGN TOKENS
   ================================== */

:root {
    /* Primary Colors */
    --primary-dark: #051755;
    --primary-light: #0D2E8F;
    --accent-orange: #FD5308;
    --accent-blue: #11ADEB;
    
    /* Neutral Colors */
    --neutral-dark: #2D2D2D;
    --neutral-gray: #666666;
    --neutral-light: #F8F9FA;
    --neutral-white: #FFFFFF;
    
    /* Secondary Colors */
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --info: #17A2B8;
    
    /* Dark shades for footer */
    --footer-dark: #003A6A;
    --footer-darker: #051755;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Font Sizes */
    --fs-xs: 12px;
    --fs-sm: 14px;
    --fs-base: 16px;
    --fs-lg: 18px;
    --fs-xl: 24px;
    --fs-2xl: 30px;
    --fs-3xl: 36px;
    --fs-4xl: 48px;
    
    /* Font Weights */
    --fw-light: 300;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 5px 5px 13px 6px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ==================================
   2. GLOBAL RESETS & BASE STYLES
   ================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: var(--fw-normal);
    color: var(--neutral-gray);
    background-color: var(--neutral-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.caro-head{
    color: #FD5308 !important; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Remove default link styles */
a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-normal);
}



/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: var(--fw-bold);
    color: var(--neutral-dark);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); }

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

/* Sections */
section {
    padding: var(--space-3xl) var(--space-md);
}

section.hero {
    padding: var(--space-2xl) var(--space-md);
}

/* ==================================
   3. HEADER STYLES
   ================================== */

.top-header {
    background-color: var(--primary-dark);
    padding: var(--space-md) var(--space-lg);
    border-bottom-left-radius: 45px;
    position: relative;
    z-index: 1;
}


.top-header .contact-info {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    align-items: center;
}

.top-header .contact-info p {
    color: aliceblue;
    font-size: var(--fs-sm);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.top-header .contact-info a {
    color: aliceblue;
    font-family: var(--font-primary);
}

.top-header .online-fees-btn {
    background-color: var(--accent-orange);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-lg);
    color: white;
    font-weight: var(--fw-bold);
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    transition: all var(--transition-normal);
}

.top-header .online-fees-btn:hover {
    background-color: #E84A00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* School Logo Section */
.school-header {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    background-color: var(--neutral-white);
}

.school-header img {
    max-width: 120px;
    margin-bottom: var(--space-md);
}

.school-header .school-title {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--neutral-dark);
    margin-bottom: var(--space-xs);
}

.school-header .school-subtitle {
    font-size: var(--fs-sm);
    color: var(--accent-blue);
    font-weight: var(--fw-medium);
}

/* Navigation Bar */
.navbar-custom {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #062654 100%);
    padding: 0;
    border-bottom: 3px solid var(--accent-orange);
    transition: all var(--transition-normal);
}

.navbar-custom .navbar-nav {
    gap: 0;
}

.nav-link-custom {
    color: #E8F0F8 !important;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    padding: 12px 15px !important;
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-md);
    margin: 0 2px;
}

.nav-link-custom i {
    font-size: 16px;
    transition: transform var(--transition-normal);
}

.nav-link-custom .nav-text {
    font-size: var(--fs-sm);
}

.nav-link-custom::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-blue));
    transition: width var(--transition-normal);
    border-radius: 2px;
}

.nav-link-custom:hover {
    background-color: rgba(253, 83, 8, 0.15);
    color: white !important;
    padding-top: 10px !important;
    padding-bottom: 14px !important;
}

.nav-link-custom:hover i {
    transform: translateY(-2px);
}

.nav-link-custom:hover::before {
    width: 100%;
}

.nav-link-custom.active {
    background-color: rgba(253, 83, 8, 0.2);
    color: var(--accent-orange) !important;
}

.nav-link-custom.active::before {
    width: 100%;
}

/* Navbar Toggler */
.navbar-toggler-custom {
    border: 2px solid var(--accent-orange);
    padding: 6px 10px;
    transition: all var(--transition-normal);
}

.navbar-toggler-custom:focus,
.navbar-toggler-custom:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(253, 83, 8, 0.4);
}

.navbar-toggler-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FD5308' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown Menu */
.dropdown-menu-custom {
    background: linear-gradient(180deg, var(--primary-light) 0%, #0D2E8F 100%);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    margin-top: 8px;
    padding: 8px 0;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item-custom {
    color: #E8F0F8 !important;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    padding: 12px 18px;
    transition: all var(--transition-normal);
    position: relative;
    margin: 0 6px;
    border-radius: var(--radius-md);
}

.dropdown-item-custom::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-orange);
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.dropdown-item-custom:hover {
    background-color: rgba(253, 83, 8, 0.2);
    color: var(--accent-orange) !important;
    padding-left: 20px;
}

.dropdown-item-custom:hover::before {
    opacity: 1;
}

.dropdown-divider {
    border-color: rgba(232, 240, 248, 0.15);
    margin: 4px 0;
}

/* Sticky Navigation */
.navbar-sticky {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ==================================
   4. CAROUSEL / HERO STYLES
   ================================== */

.hero-carousel-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}

.carousel-custom {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    margin: 0;
}

.carousel-item {
    min-height: 600px;
    position: relative;
}

/* Hero Slide Wrapper */
.hero-slide-wrapper {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(5, 23, 85, 0.55) 0%, 
        rgba(5, 23, 85, 0.65) 50%,
        rgba(253, 83, 8, 0.25) 100%);
    transition: opacity 0.6s ease-out;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    animation: slideInUp 0.8s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(253, 83, 8, 0.2);
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: var(--fw-extrabold);
    color: white;
    line-height: 1.2;
    margin: 16px 0;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    max-width: 650px;
    margin: 16px 0;
    font-weight: var(--fw-medium);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

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

.btn-hero {
    padding: 12px 28px;
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    border-radius: 6px;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.btn-hero:hover::before {
    transform: scaleX(1);
}

.btn-light.btn-hero {
    background-color: white;
    color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-light.btn-hero:hover {
    background-color: white;
    color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.btn-outline-light.btn-hero {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light.btn-hero:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    transform: translateY(-2px);
}

/* Modern Carousel Indicators */
.carousel-indicators-modern {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 10px;
}

.carousel-indicators-modern button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background-color: transparent;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.carousel-indicators-modern button:hover {
    border-color: white;
    transform: scale(1.3);
}

.carousel-indicators-modern button.active {
    width: 32px;
    border-radius: 6px;
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(253, 83, 8, 0.5);
}

/* Modern Carousel Controls */
.carousel-control-modern {
    width: 50px;
    height: 50px;
    background: rgba(253, 83, 8, 0.8);
    border: 2px solid var(--accent-orange);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    z-index: 14;
}

.carousel-control-modern:hover {
    background: var(--accent-orange);
    opacity: 1;
    box-shadow: 0 0 20px rgba(253, 83, 8, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-modern i {
    font-size: 20px;
    color: white;
}

.carousel-control-prev {
    left: 25px;
}

.carousel-control-next {
    right: 25px;
}

/* ==================================
   6. BUTTON STYLES
   ================================== */

.btn-primary-custom {
    background-color: var(--accent-orange);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-lg);
    color: var(--neutral-white);
    font-weight: var(--fw-bold);
    font-family: var(--font-primary);
    transition: all var(--transition-normal);
}

.btn-primary-custom:hover {
    background-color: #E84A00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-custom {
    background-color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-lg);
    color: var(--neutral-white);
    font-weight: var(--fw-bold);
    font-family: var(--font-primary);
    transition: all var(--transition-normal);
}

.btn-secondary-custom:hover {
    background-color: transparent;
    color: var(--primary-dark);
}

.btn-outline-custom {
    background-color: transparent;
    border: 2px solid var(--accent-orange);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-lg);
    color: var(--accent-orange);
    font-weight: var(--fw-bold);
    font-family: var(--font-primary);
    transition: all var(--transition-normal);
}

.btn-outline-custom:hover {
    background-color: var(--accent-orange);
    color: var(--neutral-white);
}

/* ==================================
   5. CARD STYLES
   ================================== */

.card-modern {
    background: var(--neutral-white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    overflow: hidden;
    height: 100%;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-modern .card-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: var(--neutral-white);
    padding: var(--space-lg);
    border: none;
}

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

.card-modern .card-title {
    color: var(--neutral-dark);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-md);
}

.card-modern .card-text {
    color: var(--neutral-gray);
    font-size: var(--fs-sm);
    line-height: 1.8;
}

/* Transparent Card */
.card-transparent {
    background: transparent;
    border: none;
}

/* ==================================
   5.5 PRINCIPAL SECTION STYLES
   ================================== */

.principal-image-wrapper {
    position: relative;
    overflow: hidden;
}

.principal-image-wrapper img {
    border-radius: var(--radius-lg);
    transition: all var(--transition-slow);
}

.principal-image-wrapper:hover img {
    transform: scale(1.05);
}

.principal-content h2 {
    position: relative;
    padding-bottom: var(--space-lg);
}

.principal-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-blue));
    border-radius: var(--radius-full);
}

.principal-content .lead {
    font-size: var(--fs-lg);
    color: var(--accent-orange);
}

.form-wrapper {
    background-color: rgba(255, 255, 255, 0.95);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin: var(--space-2xl) 0;
}

.form-wrapper h2 {
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--neutral-dark);
}

.form-wrapper .form-subtitle {
    text-align: center;
    color: var(--neutral-gray);
    margin-bottom: var(--space-xl);
    font-size: var(--fs-sm);
}

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

.form-control-custom {
    border: 1px solid #E0E0E0;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    transition: all var(--transition-normal);
}

.form-control-custom:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(253, 83, 8, 0.1);
    outline: none;
}

.form-control-custom::placeholder {
    color: #999;
}

/* ==================================
   8. SECTION STYLES
   ================================== */

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

.section-title h2 {
    position: relative;
    display: inline-block;
    color: var(--neutral-dark);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-blue));
    border-radius: var(--radius-full);
}

.section-subtitle {
    text-align: center;
    color: var(--neutral-gray);
    margin-top: var(--space-lg);
}

/* ==================================
   8.1 STATISTICS SECTION
   ================================== */

.statistics-section {
    position: relative;
    overflow: hidden;
}

.stat-card {
    padding: var(--space-2xl) var(--space-lg);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 48px;
    color: var(--accent-orange);
    margin-bottom: var(--space-lg);
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.stat-number {
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-sm);
    color: var(--accent-orange);
}

/* Numeric value inside stat-number — keep as inline-block so JS can replace its content */
.stat-value {
    display: inline-block;
    min-width: 2ch; /* prevents layout shift during counting */
}

/* Suffix shown after numeric value (for example '+') */
.stat-suffix {
    margin-left: 0.375rem; /* ~6px */
    font-weight: 700;
    color: var(--neutral-white);
    display: inline-block;
}

.stat-label {
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Reusable page hero with optional background image and overlay */
.page-hero {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    min-height: 320px;
    display: flex;
    align-items: center;
}

.page-hero .hero-inner {
    position: relative;
    z-index: 2;
}

.page-hero::before {
    /* dark overlay for text readability */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
    z-index: 1;
}

/* ==================================
   8.2 TESTIMONIALS SECTION
   ================================== */

.testimonials-carousel {
    margin: var(--space-2xl) 0;
}

.testimonial-card {
    background: var(--neutral-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    margin: var(--space-md) var(--space-sm);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.testimonial-body {
    flex-grow: 1;
}

.testimonial-text {
    font-size: var(--fs-sm);
    line-height: 1.8;
    color: var(--neutral-gray);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.stars {
    display: flex;
    gap: var(--space-xs);
    justify-content: flex-start;
}

.stars i {
    color: var(--accent-orange);
    font-size: 14px;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid #eee;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.testimonial-info {
    flex-grow: 1;
}

.testimonial-name {
    margin-bottom: 0;
    color: var(--neutral-dark);
    font-weight: var(--fw-bold);
    font-size: var(--fs-sm);
}

.testimonial-role {
    margin-bottom: 0;
    color: var(--accent-orange);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
}

/* ==================================
   8.3 FORM SECTION STYLES
   ================================== */

.contact-form-section {
    background-color: var(--neutral-light);
}

.form-label {
    font-weight: var(--fw-medium);
    color: var(--neutral-dark);
    margin-bottom: var(--space-sm);
    font-size: var(--fs-sm);
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    border: 2px solid #ccc;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.form-check-input:checked {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.form-check-label {
    margin-left: var(--space-md);
    cursor: pointer;
    color: var(--neutral-gray);
    font-size: var(--fs-sm);
}

.error-message {
    color: var(--danger);
    font-size: var(--fs-xs);
    display: block;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-control-custom.error {
    border-color: var(--danger);
    background-color: rgba(220, 53, 69, 0.05);
}

/* ==================================
   8.4 VIDEO SECTION
   ================================== */

.video-section {
    background-color: var(--neutral-white);
}

.video-container {
    background-color: #000;
}

.video-container video {
    max-width: 100%;
}

/* ==================================
   9. FOOTER STYLES
   ================================== */

footer {
    background-color: var(--footer-dark);
    color: aliceblue;
    padding: var(--space-2xl) 0;
}

footer h5 {
    color: var(--neutral-white);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
}

footer .nav-link {
    color: aliceblue;
    padding: var(--space-sm) 0;
    font-size: var(--fs-sm);
    transition: all var(--transition-normal);
}

footer .nav-link:hover {
    color: var(--accent-orange);
    padding-left: var(--space-md);
}

footer .footer-section-img {
    max-width: 283px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}

footer .footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--space-xl);
    margin-top: var(--space-xl);
}

footer .social-links {
    list-style: none;
    display: flex;
    gap: var(--space-lg);
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

footer .social-links a:hover {
    background-color: var(--accent-orange);
    transform: translateY(-4px);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white;
}

.newsletter-form .input-group {
    display: flex;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.newsletter-form .form-control-custom {
    flex: 1;
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: 0;
}

.newsletter-form .btn {
    border-radius: 0;
    padding: var(--space-md) var(--space-xl);
}

/* Footer Modern */
.footer-modern {
    background-color: var(--footer-dark);
}

.footer-title {
    color: var(--neutral-white);
    font-weight: var(--fw-bold);
    font-size: var(--fs-base);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-sm);
}

.footer-about {
    margin-bottom: var(--space-lg);
}

.footer-logo img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.footer-section {
    margin-bottom: var(--space-lg);
}

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

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: aliceblue;
    text-decoration: none;
    font-size: var(--fs-sm);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--accent-orange);
    padding-left: var(--space-sm);
}

.footer-links i {
    color: var(--accent-orange);
    font-size: 12px;
}

.footer-contact-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    margin-bottom: var(--space-lg);
}

.footer-icon {
    color: var(--accent-orange);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-label {
    color: var(--accent-orange);
    font-weight: var(--fw-bold);
    font-size: var(--fs-xs);
    margin-bottom: 4px;
}

.footer-info {
    color: aliceblue;
    font-size: var(--fs-sm);
    margin-bottom: 0;
}

.footer-info a {
    color: aliceblue;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-info a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.1);
}

.footer-copyright {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
}

.social-links-footer {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
}

.social-link-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 20px;
    transition: all var(--transition-normal);
}

.social-link-footer:hover {
    background: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.visitor-counter {
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================================
   10. SPACING UTILITIES
   ================================== */

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.px-lg { padding: 0 var(--space-lg); }
.py-lg { padding: var(--space-lg) 0; }

/* Spacer Classes */
.spacer-xs { height: var(--space-xs); }
.spacer-sm { height: var(--space-sm); }
.spacer-md { height: var(--space-md); }
.spacer-lg { height: var(--space-lg); }
.spacer-xl { height: var(--space-xl); }
.spacer-2xl { height: var(--space-2xl); }
.spacer-3xl { height: var(--space-3xl); }

/* ==================================
   11. UTILITY CLASSES
   ================================== */

.text-center { text-align: center; }
.text-primary { color: var(--primary-dark); }
.text-accent { color: var(--accent-orange); }
.text-muted { color: var(--neutral-gray); }

.bg-primary { background-color: var(--primary-dark); }
.bg-light { background-color: var(--neutral-light); }
.bg-accent { background-color: var(--accent-orange); }

.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.transition-fast { transition: all var(--transition-fast); }
.transition-normal { transition: all var(--transition-normal); }

/* ==================================
   ACADEMIC SECTION
   ================================== */
.academic-section {
    background: linear-gradient(180deg, rgba(253,83,8,0.03), rgba(13,46,143,0.02));
}
.section-header .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(13,46,143,0.06);
    color: var(--accent-orange);
    font-weight: var(--fw-semibold);
    border: 1px solid rgba(253,83,8,0.08);
}
.section-title { font-size: 1.75rem; margin-top: 10px; font-weight: var(--fw-bold); }
.section-subtitle { color: var(--neutral-gray); max-width: 720px; margin: 0 auto; }
.title-divider { width: 80px; height: 4px; background: linear-gradient(90deg,var(--accent-orange),var(--accent-blue)); margin: 18px auto 0; border-radius: 4px; }

.academic-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(3,37,65,0.06);
    height: 100%;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.academic-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(3,37,65,0.09); }
.card-icon-wrapper { width: 64px; height: 64px; border-radius: 12px; background: linear-gradient(135deg, rgba(253,83,8,0.12), rgba(17,173,235,0.08)); display:flex; align-items:center; justify-content:center; font-size: 26px; color: var(--accent-orange); margin-bottom: 12px; }
.card-title { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 8px; font-weight: var(--fw-semibold); }
.card-description { color: var(--neutral-gray); margin-bottom: 14px; line-height: 1.6; }
.card-features { display:flex; flex-direction:column; gap:8px; }
.feature-item { display:flex; gap:10px; align-items:center; color: var(--neutral-dark); font-weight: var(--fw-medium); }
.feature-item i { color: var(--accent-blue); }

.section-cta-text { color: var(--neutral-gray); }

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .academic-card { padding: 18px; }
    .card-icon-wrapper { width: 52px; height: 52px; font-size: 22px; }
}
.transition-slow { transition: all var(--transition-slow); }

.lead {
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
    line-height: 1.6;
}

/* ==================================
   12. ANIMATION KEYFRAMES
   ================================== */

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

.animate-fadeInUp { animation: fadeInUp 0.6s ease-out; }
.animate-fadeInDown { animation: fadeInDown 0.6s ease-out; }
.animate-slideInLeft { animation: slideInLeft 0.6s ease-out; }
.animate-slideInRight { animation: slideInRight 0.6s ease-out; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-bounce { animation: bounce 1s ease-in-out infinite; }

/* ==================================
   13. RESPONSIVE MEDIA QUERIES
   ================================== */

@media (max-width: 768px) {
    :root {
        --fs-3xl: 28px;
        --fs-2xl: 24px;
        --fs-xl: 20px;
        --space-3xl: 32px;
        --space-2xl: 24px;
    }
    
    .carousel-item {
        min-height: 380px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin: 12px 0;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin: 12px 0;
    }
    
    .hero-buttons {
        gap: 10px;
    }
    
    .btn-hero {
        padding: 10px 20px;
        font-size: var(--fs-sm);
    }
    
    .carousel-control-modern {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-modern i {
        font-size: 18px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
    
    .carousel-indicators-modern {
        bottom: 20px;
        gap: 8px;
    }
    
    .carousel-indicators-modern button {
        width: 10px;
        height: 10px;
    }
    
    .carousel-indicators-modern button.active {
        width: 28px;
    }
    
    .carousel-caption-custom h2 {
        font-size: var(--fs-2xl);
    }
    
    .carousel-caption-custom p {
        font-size: var(--fs-base);
    }
    
    .carousel-control-custom {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-custom i {
        font-size: 20px;
    }
    
    .top-header .contact-info {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .school-header .school-title {
        font-size: var(--fs-2xl);
    }
    
    .navbar-custom .nav-link {
        padding: var(--space-md) 0 !important;
    }
    
    /* Mobile navbar adjustments */
    .nav-link-custom {
        padding: 10px 0 !important;
        margin: 4px 0 !important;
    }
    
    .nav-link-custom .nav-text {
        display: inline;
    }
    
    .dropdown-menu-custom {
        background: linear-gradient(180deg, #0A1F5C 0%, #061B4A 100%);
        margin-left: 0;
    }
    
    .dropdown-item-custom {
        padding: 10px 16px;
    }
    
    section {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .form-wrapper {
        padding: var(--space-lg);
    }

    /* Mobile footer tweaks */
    .footer-modern {
        padding: var(--space-lg) 0;
    }

    .footer-title {
        font-size: var(--fs-sm);
        margin-bottom: var(--space-md);
    }

    .footer-links a {
        font-size: var(--fs-xs);
    }

    .footer-logo img {
        max-width: 90px;
    }

    .social-links-footer {
        justify-content: center;
        gap: var(--space-md);
    }

    .footer-contact-item {
        gap: var(--space-sm);
    }

    .visitor-counter small {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    :root {
        --fs-2xl: 20px;
        --fs-xl: 18px;
        --space-2xl: 16px;
        --space-lg: 16px;
    }
    
    .school-header .school-title {
        font-size: var(--fs-xl);
    }
    
    .carousel-item {
        min-height: 200px;
    }
    
    .carousel-caption-custom h2 {
        font-size: var(--fs-xl);
    }
    
    .carousel-caption-custom p {
        font-size: var(--fs-xs);
        max-width: 100%;
    }
    
    .form-wrapper {
        margin: var(--space-lg) 0;
        padding: var(--space-lg);
    }
    
    .stat-icon {
        font-size: 36px;
    }
    
    .stat-number {
        font-size: var(--fs-3xl);
    }
    
    .testimonial-card {
        margin: var(--space-md) 0;
        min-height: auto;
    }
}

/* ==================================
   14. ACCESSIBILITY
   ================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* ==================================
   15. PRINT STYLES
   ================================== */

@media print {
    .navbar-custom,
    footer,
    .btn-primary-custom,
    .btn-secondary-custom {
        display: none;
    }
}

/* ==================================
   16. SCROLL TO TOP BUTTON
   ================================== */

.scroll-to-top {
    position: fixed;
    bottom: -60px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-orange), #E84A00);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    z-index: var(--z-fixed);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top.show {
    bottom: 20px;
}
