/* =====================================================
   Kautilya Educational Academy, Dewas - Main Stylesheet
   ===================================================== */

/* =====================================================
   Page Loader - DPS Style Premium Loader (Homepage/First Visit)
   ===================================================== */
.page-loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0a1f3d 0%, #1a365d 50%, #0a1f3d 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* =====================================================
   Light Page Transition (Internal Navigation)
   ===================================================== */
.page-loader.light-loader {
    background: rgba(10, 31, 61, 0.95);
    backdrop-filter: blur(10px);
}

.page-loader.light-loader .loader-content {
    gap: 15px;
}

.page-loader.light-loader .loader-logo {
    width: 60px;
    height: 60px;
    animation: light-logo-spin 0.8s ease-in-out infinite;
    opacity: 1;
    transform: scale(1);
}

.page-loader.light-loader .loader-logo img {
    filter: drop-shadow(0 0 15px rgba(212, 168, 75, 0.5));
}

.page-loader.light-loader .loader-text,
.page-loader.light-loader .loader-subtext,
.page-loader.light-loader .loader-progress,
.page-loader.light-loader .loader-tagline,
.page-loader.light-loader .loader-decoration {
    display: none;
}

.page-loader.light-loader .light-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.page-loader.light-loader .light-spinner span {
    width: 8px;
    height: 8px;
    background: #d4a84b;
    border-radius: 50%;
    animation: light-bounce 0.6s ease-in-out infinite;
}

.page-loader.light-loader .light-spinner span:nth-child(2) {
    animation-delay: 0.1s;
}

.page-loader.light-loader .light-spinner span:nth-child(3) {
    animation-delay: 0.2s;
}

.light-spinner {
    display: none;
}

@keyframes light-logo-spin {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.05) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

@keyframes light-bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Full Premium Loader Styles */
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 2;
}

.loader-logo {
    width: 140px;
    height: 140px;
    animation: logo-reveal 1.2s ease-out forwards, logo-glow 2s ease-in-out 1.2s infinite;
    opacity: 0;
    transform: scale(0.5);
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(212, 168, 75, 0.6)) drop-shadow(0 0 60px rgba(212, 168, 75, 0.3));
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 4px;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: text-reveal 1s ease-out 0.5s forwards;
}

.loader-subtext {
    font-size: 1rem;
    color: #d4a84b;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0;
    text-shadow: 0 0 15px rgba(212, 168, 75, 0.5);
    animation: text-reveal 1s ease-out 0.8s forwards;
}

/* Progress Bar */
.loader-progress {
    width: 280px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 30px;
    opacity: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    animation: text-reveal 0.6s ease-out 1s forwards;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d4a84b, #f0d78c, #d4a84b);
    background-size: 200% 100%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(212, 168, 75, 0.8), 0 0 40px rgba(212, 168, 75, 0.4);
    animation: progress-fill 2.5s ease-in-out 1.2s forwards, shimmer 1.5s linear infinite;
}

/* Decorative Elements */
.loader-decoration {
    position: absolute;
    width: 350px;
    height: 350px;
    border: 2px solid rgba(212, 168, 75, 0.15);
    border-radius: 50%;
    animation: decoration-spin 8s linear infinite, decoration-pulse 3s ease-in-out infinite;
}

.loader-decoration:nth-child(2) {
    width: 450px;
    height: 450px;
    animation-delay: 0.5s;
    animation-direction: reverse;
    border-color: rgba(255, 255, 255, 0.08);
}

.loader-decoration:nth-child(3) {
    width: 550px;
    height: 550px;
    animation-delay: 1s;
    border-color: rgba(212, 168, 75, 0.08);
}

/* Loader Tagline */
.loader-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    margin-top: 15px;
    opacity: 0;
    animation: text-reveal 1s ease-out 1.5s forwards;
}

@keyframes logo-reveal {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logo-glow {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(212, 168, 75, 0.6)) drop-shadow(0 0 60px rgba(212, 168, 75, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 50px rgba(212, 168, 75, 0.9)) drop-shadow(0 0 80px rgba(212, 168, 75, 0.5));
    }
}

@keyframes text-reveal {
    to {
        opacity: 1;
    }
}

@keyframes progress-fill {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

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

@keyframes decoration-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes decoration-pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.03) rotate(180deg);
        opacity: 0.7;
    }
}

/* CSS Custom Properties (Variables) */
:root {
    /* Color Palette */
    --primary-color: #0a1f3d;
    --primary-dark: #061529;
    --secondary-color: #d4a84b;
    --secondary-light: #e8c77b;
    --accent-color: #12305a;
    --white: #ffffff;
    --light-gray: #f7f9fc;
    --medium-gray: #e2e8f0;
    --dark-gray: #4a5568;
    --text-color: #2d3748;
    --text-light: #718096;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    /* Header Height */
    --header-height: 80px;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

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

a:hover {
    color: var(--secondary-color);
}

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

ul, ol {
    list-style-position: inside;
    margin-bottom: var(--spacing-md);
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

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

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

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-md);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: var(--spacing-md) auto 0;
}

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

.bg-light { background-color: var(--light-gray); }
.bg-primary { background-color: var(--primary-color); color: var(--white); }
.bg-white { background-color: var(--white); }

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

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

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

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

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

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

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

.btn-white:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
}

/* =====================================================
   Header & Navigation
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-lg);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .school-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-text .school-location {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

/* Dropdown Menu */
.nav-item.has-dropdown > .nav-link::after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: var(--spacing-xs);
    transition: transform var(--transition-fast);
}

.nav-item.has-dropdown:hover > .nav-link::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    list-style: none;
    padding: var(--spacing-sm) 0;
    z-index: 100;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.dropdown-menu li a:hover {
    background-color: var(--light-gray);
    color: var(--secondary-color);
    padding-left: var(--spacing-xl);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--spacing-sm);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10, 31, 61, 0.6) 0%, rgba(18, 48, 90, 0.5) 100%),
                url('../images/campus.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: var(--header-height);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: var(--spacing-2xl);
    max-width: 900px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Page Hero (for inner pages) */
.page-hero {
    background: linear-gradient(135deg, rgba(10, 31, 61, 0.9) 0%, rgba(18, 48, 90, 0.9) 100%),
                url('../images/campus.JPG');
    background-size: cover;
    background-position: center;
    margin-top: var(--header-height);
    padding: var(--spacing-3xl) 0;
    text-align: center;
    color: var(--white);
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    animation: heroFadeIn 0.8s ease forwards;
}

.page-hero .breadcrumb {
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: var(--secondary-color);
}

/* =====================================================
   Quick Links Section
   ===================================================== */
.quick-links {
    background-color: var(--white);
    padding: var(--spacing-xl) 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.quick-link-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    text-decoration: none;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.quick-link-card .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.quick-link-card h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.quick-link-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* =====================================================
   Welcome Section
   ===================================================== */
.welcome-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.welcome-image {
    position: relative;
}

.welcome-image .image-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--light-gray), var(--medium-gray));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.25rem;
}

.welcome-image .welcome-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.welcome-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--secondary-color);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.5;
}

.welcome-content h2 {
    margin-bottom: var(--spacing-lg);
}

.welcome-content .lead {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.welcome-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.welcome-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.welcome-feature .check-icon {
    width: 24px;
    height: 24px;
    background-color: var(--secondary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* =====================================================
   Highlights Section
   ===================================================== */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.highlight-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border-bottom: 4px solid transparent;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--secondary-color);
}

.highlight-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.highlight-card h4 {
    margin-bottom: var(--spacing-sm);
}

.highlight-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* =====================================================
   Facilities Preview
   ===================================================== */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.facility-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

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

.facility-card .image-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.facility-card .facility-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

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

.facility-card .content {
    padding: var(--spacing-lg);
    background-color: var(--white);
}

.facility-card h4 {
    margin-bottom: var(--spacing-xs);
}

.facility-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* =====================================================
   News Section
   ===================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.news-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

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

.news-card .date {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-md);
    text-align: center;
}

.news-card .date .day {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.news-card .date .month {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.news-card .content {
    padding: var(--spacing-lg);
}

.news-card .badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
}

.news-card h4 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
}

.news-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.news-card .read-more {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: var(--spacing-3xl) 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

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

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding-top: var(--spacing-3xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.footer-about .footer-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.footer-about .logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-about .logo-text {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-lg);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

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

.footer-social a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    font-size: 1.125rem;
}

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

.footer-column ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
    padding-left: var(--spacing-sm);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md) !important;
}

.footer-contact li .icon {
    color: var(--secondary-color);
    flex-shrink: 0;
}

.footer-contact li span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom {
    padding: var(--spacing-lg) 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* =====================================================
   Content Sections (for inner pages)
   ===================================================== */
.content-section {
    padding: var(--spacing-3xl) 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-image .image-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 50%, #f0f4f8 100%);
    background-size: 200% 200%;
    animation: placeholder-shimmer 2s ease-in-out infinite;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    position: relative;
    overflow: hidden;
}

/* Coming Soon Placeholder Animation */
.image-placeholder {
    position: relative;
}

.image-placeholder::before {
    content: '📸';
    font-size: 2.5rem;
    margin-bottom: 8px;
    animation: placeholder-bounce 2s ease-in-out infinite;
}

.image-placeholder::after {
    content: 'Coming Soon';
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

@keyframes placeholder-shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

/* Gallery Placeholder - Special Styling */
.gallery-item .image-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #0a1f3d 0%, #1a365d 100%);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item .image-placeholder::before {
    content: none;
}

.gallery-item .image-placeholder::after {
    content: 'View Photo';
    position: absolute;
    bottom: 12px;
    font-size: 0.7rem;
    color: var(--secondary-color);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.gallery-item:hover .image-placeholder::after {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover .image-placeholder {
    background: linear-gradient(135deg, #12305a 0%, #234578 100%);
    transform: scale(1.02);
}

/* Principal/Staff Placeholder */
.team-card .image-placeholder,
.content-image .image-placeholder[style*="border-radius: 50%"] {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
    color: #ffffff;
    font-size: 3rem;
}

.team-card .image-placeholder::before,
.content-image .image-placeholder[style*="border-radius: 50%"]::before {
    content: '👤';
    font-size: 3rem;
    animation: none;
}

.team-card .image-placeholder::after,
.content-image .image-placeholder[style*="border-radius: 50%"]::after {
    content: 'Photo Coming';
    font-size: 0.65rem;
}

/* Student Life Activity Placeholders */
.activity-placeholder {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px dashed var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    animation: placeholder-pulse 2s ease-in-out infinite;
}

@keyframes placeholder-pulse {
    0%, 100% {
        border-color: var(--secondary-color);
        opacity: 1;
    }
    50% {
        border-color: var(--primary-color);
        opacity: 0.7;
    }
}

.content-image .content-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.info-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

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

.info-card .icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.info-card h4 {
    margin-bottom: var(--spacing-sm);
}

.info-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: var(--spacing-3xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    text-align: center;
    color: var(--white);
}

.stat-item .number {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

.stat-item .label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

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

.team-card .image-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--light-gray), var(--medium-gray));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}

.team-card .team-image {
    width: 150px;
    height: 150px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-md);
}

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

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-card h4 {
    margin-bottom: var(--spacing-xs);
}

.team-card .role {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Accordion */
.accordion {
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--medium-gray);
}

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

.accordion-header {
    background-color: var(--white);
    padding: var(--spacing-lg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    transition: background-color var(--transition-fast);
}

.accordion-header:hover {
    background-color: var(--light-gray);
}

.accordion-header .icon {
    transition: transform var(--transition-normal);
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: var(--spacing-lg);
    background-color: var(--light-gray);
    color: var(--text-color);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

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

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

/* Tables */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-lg);
}

th, td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

tr:hover {
    background-color: var(--light-gray);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-gray), var(--medium-gray));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .image-placeholder {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 54, 93, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Gallery Filter */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--light-gray);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

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

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

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: 2px solid var(--white);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Map */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 1024px) {
    .highlights-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: var(--spacing-xl);
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        overflow-y: auto;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--medium-gray);
    }
    
    .nav-link {
        padding: var(--spacing-md);
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        background-color: var(--light-gray);
        border-radius: 0;
    }
    
    .nav-item.has-dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    /* Hero */
    .hero {
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Quick Links */
    .quick-links {
        margin-top: 0;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    /* Content Sections */
    .welcome-section,
    .content-grid,
    .content-grid.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .welcome-features {
        grid-template-columns: 1fr;
    }
    
    /* Cards */
    .highlights-grid,
    .facilities-grid,
    .news-grid,
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .stat-item .number {
        font-size: 2rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-text .school-name {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero {
        margin-top: 0;
    }
    
    body {
        font-size: 12pt;
    }
}

/* =====================================================
   Scroll Animations
   ===================================================== */

/* Fade In Up Animation */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Left Animation */
.animate-fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-in-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In Right Animation */
.animate-fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Scale In Animation */
.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-scale-in.animated {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Children Animation */
.animate-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-stagger.animated > *:nth-child(1) { transition-delay: 0.1s; }
.animate-stagger.animated > *:nth-child(2) { transition-delay: 0.2s; }
.animate-stagger.animated > *:nth-child(3) { transition-delay: 0.3s; }
.animate-stagger.animated > *:nth-child(4) { transition-delay: 0.4s; }
.animate-stagger.animated > *:nth-child(5) { transition-delay: 0.5s; }
.animate-stagger.animated > *:nth-child(6) { transition-delay: 0.6s; }

.animate-stagger.animated > * {
    opacity: 1;
    transform: translateY(0);
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.95);
}

/* Pulse Animation for CTA buttons */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 168, 75, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(212, 168, 75, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 168, 75, 0);
    }
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Card Hover Glow */
.card-glow:hover {
    box-shadow: 0 10px 40px rgba(10, 31, 61, 0.15);
}

/* Text Reveal Animation */
.animate-text-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-text-reveal.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Counter Animation */
.animate-counter {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-counter.animated {
    opacity: 1;
    transform: scale(1);
}

/* Hero Text Animation */
.hero-animate-title {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease forwards;
    animation-delay: 0.3s;
}

.hero-animate-subtitle {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease forwards;
    animation-delay: 0.6s;
}

.hero-animate-buttons {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease forwards;
    animation-delay: 0.9s;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Animation */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

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

/* Shine Effect on Images */
.image-shine {
    position: relative;
    overflow: hidden;
}

.image-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: transform 0.6s;
    opacity: 0;
}

.image-shine:hover::after {
    transform: rotate(30deg) translate(50%, 50%);
    opacity: 1;
}

/* =====================================================
   AI Chat Assistant Widget
   ===================================================== */
.chat-assistant {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: var(--font-primary);
}

/* Chat Toggle Button */
.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a1f3d 0%, #1a365d 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(10, 31, 61, 0.4), 0 0 0 0 rgba(212, 168, 75, 0.4);
    transition: all 0.3s ease;
    animation: chat-pulse 2s ease-in-out infinite;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(10, 31, 61, 0.5);
}

.chat-toggle svg {
    width: 28px;
    height: 28px;
    fill: #d4a84b;
    transition: transform 0.3s ease;
}

.chat-toggle.active svg {
    transform: rotate(90deg);
}

@keyframes chat-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(10, 31, 61, 0.4), 0 0 0 0 rgba(212, 168, 75, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(10, 31, 61, 0.4), 0 0 0 8px rgba(212, 168, 75, 0);
    }
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 500px;
    max-height: calc(100vh - 150px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
}

.chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #0a1f3d 0%, #1a365d 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chat-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chat-header-info h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.chat-header-info span {
    color: #7bed9f;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-header-info span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #7bed9f;
    border-radius: 50%;
    animation: online-pulse 1.5s ease-in-out infinite;
}

@keyframes online-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-close {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.chat-close:hover {
    color: #ffffff;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8fafc;
}

.chat-message {
    display: flex;
    gap: 10px;
    max-width: 85%;
    animation: message-fade-in 0.3s ease;
}

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

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0a1f3d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-message-avatar img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.chat-message.user .chat-message-avatar {
    background: #d4a84b;
}

.chat-message-avatar svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}

.chat-message-content {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.bot .chat-message-content {
    background: #ffffff;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chat-message.user .chat-message-content {
    background: linear-gradient(135deg, #0a1f3d 0%, #1a365d 100%);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

/* Quick Actions */
.chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-action-btn {
    padding: 8px 14px;
    background: #f0f4f8;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #0a1f3d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: #0a1f3d;
    color: #ffffff;
    border-color: #0a1f3d;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #0a1f3d;
    border-radius: 50%;
    animation: typing-bounce 1s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typing-bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Chat Input */
.chat-input-container {
    padding: 16px 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input:focus {
    border-color: #0a1f3d;
    box-shadow: 0 0 0 3px rgba(10, 31, 61, 0.1);
}

.chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a1f3d 0%, #1a365d 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(10, 31, 61, 0.3);
}

.chat-send svg {
    width: 20px;
    height: 20px;
    fill: #d4a84b;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chat-assistant {
        bottom: 16px;
        right: 16px;
    }
    
    .chat-toggle {
        width: 54px;
        height: 54px;
    }
    
    .chat-window {
        width: calc(100vw - 32px);
        height: calc(100vh - 120px);
        bottom: 70px;
        right: -8px;
    }
}

/* =====================================================
   WhatsApp Floating Button
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9998;
}

.whatsapp-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

.whatsapp-tooltip {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #333;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #ffffff;
}

.whatsapp-btn:hover + .whatsapp-tooltip,
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

/* Mobile Responsive - WhatsApp */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 16px;
        left: 16px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}
