/*
Theme Name: HGS Kewa School Theme
Description: Premium CBSE School Website Design System
Version: 1.0
Author: HGS Kewa
*/

/* ============================
   CSS VARIABLES
   ============================ */
:root {
    --primary: #2C3E8F;
    --primary-light: #3D5A99;
    --primary-dark: #1A2744;
    --secondary: #E74C3C;
    --secondary-light: #F06B5E;
    --secondary-dark: #C0392B;
    --accent: #F39C12;
    --accent-light: #F5B342;
    --accent-dark: #D68910;
    --success: #27AE60;
    --info: #3498DB;
    --warning: #F1C40F;
    --danger: #E74C3C;
    --bg-color: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-dark: #1A1A2E;
    --bg-gray: #F0F2F5;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --header-bg: #FFFFFF;
    --footer-bg: #1A1A2E;
    --footer-text: #B0B0C8;
    --border-color: #E8ECF1;
    --font-family: 'Poppins', sans-serif;
    --heading-font: 'Playfair Display', serif;
    --gradient-primary: linear-gradient(135deg, #2C3E8F, #1A2744);
    --gradient-secondary: linear-gradient(135deg, #E74C3C, #C0392B);
    --gradient-accent: linear-gradient(135deg, #F39C12, #D68910);
    --gradient-success: linear-gradient(135deg, #27AE60, #1E8449);
    --gradient-info: linear-gradient(135deg, #3498DB, #2980B9);
    --gradient-hero: linear-gradient(135deg, rgba(44,62,143,0.92), rgba(26,39,68,0.88));
    --gradient-cta: linear-gradient(135deg, #2C3E8F, #E74C3C);
    --gradient-dark: linear-gradient(135deg, #1A1A2E, #16213E);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-hover: 0 15px 50px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.25);
    --glass-bg: rgba(255,255,255,0.95);
    --glass-border: rgba(255,255,255,0.3);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    --transition-slow: all 0.5s cubic-bezier(0.4,0,0.2,1);
    --transition-bounce: all 0.5s cubic-bezier(0.68,-0.55,0.265,1.55);
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-preloader: 9999;
    --container-width: 1200px;
    --header-height: 80px;
    --header-height-scrolled: 60px;
}

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

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

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--primary-dark);
}

a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--primary-dark);
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1rem, 1.8vw, 1.2rem); }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

p:last-child {
    margin-bottom: 0;
}

::selection {
    background: var(--primary);
    color: #fff;
}

::-moz-selection {
    background: var(--primary);
    color: #fff;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 30px;
}

/* ============================
   TYPOGRAPHY UTILITIES
   ============================ */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 10px;
    position: relative;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--accent);
    vertical-align: middle;
    margin: 0 10px;
}

.section-title {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.section-title .highlight {
    color: var(--secondary);
}

.section-desc {
    max-width: 650px;
    margin: 0 auto 40px;
    color: var(--text-light);
    font-size: 1.05rem;
}

/* ============================
   PRELOADER
   ============================ */
#page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-preloader);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

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

.loader-logo {
    margin-bottom: 20px;
}

.loader-logo img {
    height: 60px;
    margin: 0 auto;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.loader-text {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

/* ============================
   TOP BAR
   ============================ */
.top-bar {
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
    position: relative;
    z-index: var(--z-sticky);
}

.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left a {
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.top-bar-left a:hover {
    color: #fff;
}

.top-bar-left i {
    font-size: 0.75rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-social a {
    color: rgba(255,255,255,0.8);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition);
}

.top-bar-social a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.admission-open-btn {
    background: var(--accent);
    color: #fff !important;
    padding: 5px 18px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.admission-open-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(243,156,18,0.4);
}

/* Notice Ticker */
.notice-ticker {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    overflow: hidden;
}

.notice-ticker-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notice-ticker-label {
    background: var(--secondary);
    color: #fff;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.notice-ticker-content {
    overflow: hidden;
    flex: 1;
    position: relative;
}

.notice-ticker-content ul {
    display: flex;
    animation: ticker 25s linear infinite;
}

.notice-ticker-content ul li {
    white-space: nowrap;
    padding-right: 50px;
    font-size: 0.88rem;
    color: var(--text-light);
}

.notice-ticker-content ul li a {
    color: var(--text-light);
}

.notice-ticker-content ul li a:hover {
    color: var(--primary);
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ============================
   HEADER
   ============================ */
.header {
    position: sticky;
    top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    z-index: var(--z-sticky);
    transition: var(--transition);
    height: var(--header-height);
}

.header.scrolled {
    height: var(--header-height-scrolled);
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-logo img {
    height: 50px;
    transition: var(--transition);
}

.header.scrolled .header-logo img {
    height: 42px;
}

.header-logo-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--primary);
    line-height: 1.2;
}

.header-logo-text span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================
   NAVIGATION
   ============================ */
.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav > li {
    position: relative;
}

.main-nav > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.main-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.main-nav > li > a:hover::after,
.main-nav > li > a.active::after {
    transform: scaleX(1);
}

.main-nav > li > a:hover,
.main-nav > li > a.active {
    color: var(--primary);
    background: rgba(44,62,143,0.06);
}

.main-nav > li > a i {
    font-size: 0.75rem;
}

/* Mega Menu */
.main-nav .mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-color);
    min-width: 600px;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: var(--z-dropdown);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.main-nav > li:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-column h5 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    font-family: var(--font-family);
    font-weight: 600;
}

.mega-menu-column ul li {
    margin-bottom: 8px;
}

.mega-menu-column ul li a {
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 5px 0;
    display: block;
    transition: var(--transition);
}

.mega-menu-column ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Dropdown Menu */
.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    min-width: 220px;
    padding: 12px 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: var(--z-dropdown);
    border: 1px solid var(--border-color);
    transform: translateY(10px);
}

.main-nav > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 25px;
}

.dropdown-menu .sub-dropdown {
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--bg-color);
    min-width: 220px;
    padding: 12px 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.dropdown-menu li:hover .sub-dropdown {
    opacity: 1;
    visibility: visible;
}

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.search-toggle,
.mobile-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover,
.mobile-toggle:hover {
    background: var(--primary);
    color: #fff;
}

.mobile-toggle {
    display: none;
}

/* ============================
   HERO SLIDER
   ============================ */
.hero-section {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: calc(100vh - var(--header-height));
    min-height: 600px;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide img,
.hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(243,156,18,0.2);
    border: 1px solid rgba(243,156,18,0.4);
    color: var(--accent);
    padding: 6px 24px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content h1 .highlight {
    color: var(--accent);
}

.hero-typing {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    min-height: 1.7em;
}

.hero-typing .typed-cursor {
    color: var(--accent);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Swiper Navigation */
.hero-section .swiper-pagination {
    bottom: 30px !important;
}

.hero-section .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    opacity: 1;
    border-radius: 50%;
    transition: var(--transition);
}

.hero-section .swiper-pagination-bullet-active {
    background: var(--accent);
    width: 35px;
    border-radius: 10px;
}

.hero-section .swiper-button-next,
.hero-section .swiper-button-prev {
    width: 55px;
    height: 55px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}

.hero-section .swiper-button-next:hover,
.hero-section .swiper-button-prev:hover {
    background: var(--accent);
}

.hero-section .swiper-button-next::after,
.hero-section .swiper-button-prev::after {
    font-size: 1.2rem;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-family);
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.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, height 0.6s;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(44,62,143,0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(44,62,143,0.45);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(231,76,60,0.3);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(231,76,60,0.45);
    transform: translateY(-2px);
    color: #fff;
}

.btn-accent {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(243,156,18,0.3);
}

.btn-accent:hover {
    box-shadow: 0 8px 25px rgba(243,156,18,0.45);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-white:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 25px rgba(44,62,143,0.3);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 18px 42px;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ============================
   SECTION STYLES
   ============================ */
.section {
    padding: 100px 0;
}

.section-sm {
    padding: 60px 0;
}

.section-lg {
    padding: 130px 0;
}

.section-bg-light {
    background: var(--bg-light);
}

.section-bg-gray {
    background: var(--bg-gray);
}

.section-bg-dark {
    background: var(--bg-dark);
    color: #fff;
}

.section-bg-dark .section-title,
.section-bg-dark .section-desc {
    color: #fff;
}

.section-bg-dark .section-desc {
    color: rgba(255,255,255,0.8);
}

/* ============================
   ABOUT SECTION
   ============================ */
.about-section {
    position: relative;
}

.about-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image-wrap img {
    width: 100%;
    border-radius: var(--radius-lg);
    transition: var(--transition-slow);
}

.about-image-wrap:hover img {
    transform: scale(1.03);
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient-primary);
    color: #fff;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.about-experience-badge .number {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--heading-font);
}

.about-experience-badge .text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.about-floating-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.about-floating-card.top-left {
    top: 20px;
    left: 20px;
}

.about-floating-card.bottom-left {
    bottom: 30px;
    left: -30px;
}

.about-floating-card .icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.about-floating-card .text h6 {
    font-size: 0.85rem;
    margin-bottom: 2px;
    font-family: var(--font-family);
    color: var(--primary-dark);
}

.about-floating-card .text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.about-content {
    padding-left: 40px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 25px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.about-features li i {
    color: var(--success);
    font-size: 0.85rem;
    width: 22px;
    height: 22px;
    background: rgba(39,174,96,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================
   MESSAGE CARDS
   ============================ */
.message-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

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

.message-card .quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.08;
}

.message-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.message-card-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    padding: 3px;
}

.message-card-header .info h5 {
    margin-bottom: 3px;
    font-family: var(--font-family);
}

.message-card-header .info span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.message-card p {
    font-style: italic;
    line-height: 1.8;
    color: var(--text-light);
}

/* ============================
   WHY CHOOSE US
   ============================ */
.choose-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.choose-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.choose-card:hover::before {
    transform: scaleX(1);
}

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

.choose-icon {
    width: 75px;
    height: 75px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: #fff;
    transition: var(--transition-bounce);
}

.choose-card:hover .choose-icon {
    border-radius: 50%;
    transform: rotateY(180deg);
}

.choose-card h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-family: var(--font-family);
    font-weight: 600;
}

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

/* ============================
   STATS COUNTER
   ============================ */
.stats-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: statsBg 20s linear infinite;
}

@keyframes statsBg {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.stat-item {
    text-align: center;
    padding: 30px;
    position: relative;
    z-index: 1;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    font-family: var(--heading-font);
    line-height: 1.2;
}

.stat-number .suffix {
    font-size: 0.6em;
    vertical-align: super;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-top: 8px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================
   FACILITIES
   ============================ */
.facility-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.facility-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.facility-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26,39,68,0.95) 0%, rgba(26,39,68,0.1) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: var(--transition);
}

.facility-overlay .icon {
    width: 55px;
    height: 55px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 15px;
    transition: var(--transition-bounce);
}

.facility-card:hover .facility-overlay .icon {
    transform: rotateY(180deg);
}

.facility-overlay h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.facility-overlay p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin: 0;
}

/* ============================
   NEWS & EVENTS
   ============================ */
.news-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.news-card-image {
    position: relative;
    overflow: hidden;
}

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

.news-card:hover .news-card-image img {
    transform: scale(1.08);
}

.news-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: #fff;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: var(--text-color);
    font-weight: 500;
}

.news-card-body {
    padding: 25px;
}

.news-card-body .category {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
}

.news-card-body h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-family: var(--font-family);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-body p {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-card-footer a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary);
}

.news-card-footer a i {
    transition: var(--transition);
}

.news-card-footer a:hover i {
    transform: translateX(5px);
}

/* ============================
   GALLERY GRID
   ============================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

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

.gallery-grid-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid-item:nth-child(4) { grid-column: span 2; }

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

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

.gallery-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44,62,143,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-grid-overlay i {
    font-size: 2.5rem;
    color: #fff;
}

.gallery-grid-overlay span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Video Gallery */
.video-gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

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

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

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75px;
    height: 75px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    transition: var(--transition);
    box-shadow: 0 0 0 0 rgba(243,156,18,0.5);
    animation: pulse-ring 2s infinite;
}

.video-gallery-item:hover .video-play-btn {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(243,156,18,0.5); }
    100% { box-shadow: 0 0 0 30px rgba(243,156,18,0); }
}

/* ============================
   TESTIMONIALS
   ============================ */
.testimonial-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    margin: 15px;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 5rem;
    line-height: 1;
    color: var(--primary);
    opacity: 0.08;
    font-family: serif;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 15px;
    color: var(--accent);
    font-size: 0.9rem;
}

.testimonial-text {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.testimonial-author img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author .info h6 {
    font-size: 0.95rem;
    margin-bottom: 2px;
    font-family: var(--font-family);
    font-weight: 600;
}

.testimonial-author .info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.testimonials-slider .swiper-pagination {
    position: relative;
    margin-top: 30px;
}

.testimonials-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    opacity: 1;
}

.testimonials-slider .swiper-pagination-bullet-active {
    background: var(--primary);
}

/* ============================
   FACULTY CARDS
   ============================ */
.faculty-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.faculty-card-image {
    position: relative;
    overflow: hidden;
}

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

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

.faculty-social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44,62,143,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: var(--transition);
}

.faculty-card:hover .faculty-social-overlay {
    opacity: 1;
}

.faculty-social-overlay a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition-bounce);
}

.faculty-social-overlay a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.faculty-card-body {
    padding: 25px;
    text-align: center;
}

.faculty-card-body h5 {
    font-size: 1.05rem;
    margin-bottom: 3px;
    font-family: var(--font-family);
    font-weight: 600;
}

.faculty-card-body .designation {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.faculty-card-body .qualification {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================
   ADMISSION PROCESS
   ============================ */
.admission-timeline {
    position: relative;
    padding: 20px 0;
}

.admission-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 50px;
}

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

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.timeline-number {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.timeline-content h5 {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin: 0;
}

/* ============================
   CTA SECTIONS
   ============================ */
.cta-section {
    background: var(--gradient-cta);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-content h2 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-content .btn {
    margin: 0 5px;
}

/* ============================
   CONTACT FORM
   ============================ */
.contact-form-wrap {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.9rem;
    font-family: var(--font-family);
    color: var(--text-color);
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    background: var(--bg-color);
    box-shadow: 0 0 0 4px rgba(44,62,143,0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(231,76,60,0.1);
}

.form-control.success {
    border-color: var(--success);
}

.form-error {
    font-size: 0.78rem;
    color: var(--danger);
    margin-top: 5px;
    display: none;
}

.form-control.error + .form-error {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.9rem;
    font-family: var(--font-family);
    color: var(--text-color);
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(44,62,143,0.1);
}

/* ============================
   FOOTER
   ============================ */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-about img {
    height: 55px;
    margin-bottom: 18px;
}

.footer-about p {
    font-size: 0.88rem;
    color: var(--footer-text);
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

.footer h5 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 20px;
    font-family: var(--font-family);
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: var(--footer-text);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-links li a i {
    font-size: 0.6rem;
    color: var(--accent);
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    color: var(--footer-text);
}

.footer-contact li i {
    color: var(--accent);
    font-size: 1rem;
    margin-top: 4px;
    min-width: 18px;
}

.footer-contact li a {
    color: var(--footer-text);
}

.footer-contact li a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 60px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--footer-text);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 0.82rem;
    color: var(--footer-text);
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* ============================
   BACK TO TOP
   ============================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: var(--z-fixed);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

/* ============================
   FLOATING BUTTONS
   ============================ */
.floating-buttons {
    position: fixed;
    bottom: 100px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: var(--z-fixed);
}

.floating-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.floating-btn .tooltip {
    position: absolute;
    right: calc(100% + 15px);
    background: var(--bg-dark);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.floating-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.floating-btn .tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-left: 5px solid var(--bg-dark);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.floating-btn.whatsapp {
    background: #25D366;
}

.floating-btn.call {
    background: var(--secondary);
}

.floating-btn.email-btn {
    background: var(--info);
}

/* ============================
   BREADCRUMB
   ============================ */
.breadcrumb-section {
    background: var(--gradient-primary);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.breadcrumb-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.breadcrumb-content h1 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 10px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: rgba(255,255,255,0.7);
}

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

.breadcrumb-nav span {
    color: rgba(255,255,255,0.4);
}

.breadcrumb-nav .current {
    color: var(--accent);
}

/* ============================
   PAGINATION
   ============================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-color);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(44,62,143,0.3);
}

.pagination .dots {
    border: none;
    background: none;
}

.pagination .prev,
.pagination .next {
    width: auto;
    padding: 0 20px;
    border-radius: var(--radius-full);
    gap: 5px;
}

/* ============================
   SEARCH MODAL
   ============================ */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.search-modal-content {
    width: 100%;
    max-width: 650px;
    padding: 20px;
}

.search-modal-input-wrap {
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

.search-modal-input-wrap i {
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
    margin-right: 15px;
}

.search-modal-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 1.8rem;
    color: #fff;
    font-family: var(--font-family);
}

.search-modal-input-wrap input::placeholder {
    color: rgba(255,255,255,0.3);
}

.search-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-modal-close:hover {
    background: var(--secondary);
}

.search-hints {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

.search-hints kbd {
    background: rgba(255,255,255,0.1);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-family: var(--font-family);
}

/* ============================
   POPUP ANNOUNCEMENT
   ============================ */
.popup-announcement {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: var(--z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.popup-announcement.active {
    opacity: 1;
    visibility: visible;
}

.popup-announcement-content {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    padding: 50px;
    max-width: 550px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
}

.popup-announcement.active .popup-announcement-content {
    transform: scale(1) translateY(0);
}

.popup-announcement-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #fff;
}

.popup-announcement-content h3 {
    margin-bottom: 10px;
}

.popup-announcement-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.popup-announcement-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-announcement-close:hover {
    background: var(--secondary);
    color: #fff;
}

.popup-dont-show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    margin-top: 15px;
}

/* ============================
   PAGE LOADER / SPINNER
   ============================ */
.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-lg {
    width: 45px;
    height: 45px;
    border-width: 4px;
}

/* ============================
   ALERT / TOAST
   ============================ */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(39,174,96,0.1);
    color: var(--success);
    border: 1px solid rgba(39,174,96,0.2);
}

.alert-danger {
    background: rgba(231,76,60,0.1);
    color: var(--danger);
    border: 1px solid rgba(231,76,60,0.2);
}

.alert-info {
    background: rgba(52,152,219,0.1);
    color: var(--info);
    border: 1px solid rgba(52,152,219,0.2);
}

.alert-warning {
    background: rgba(241,196,15,0.1);
    color: var(--warning);
    border: 1px solid rgba(241,196,15,0.2);
}

/* ============================
   ACCORDION
   ============================ */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-header {
    padding: 18px 22px;
    background: var(--bg-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: var(--transition);
}

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

.accordion-header.active {
    background: var(--primary);
    color: #fff;
}

.accordion-header i {
    transition: var(--transition);
}

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

.accordion-body {
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-body.open {
    padding: 22px;
    max-height: 500px;
}

.accordion-body p {
    font-size: 0.88rem;
    color: var(--text-light);
}

/* ============================
   TABS
   ============================ */
.tabs-nav {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    border: none;
    background: none;
    font-family: var(--font-family);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ============================
   CARD
   ============================ */
.card {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-body {
    padding: 25px;
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ============================
   CUSTOM GRID HELPERS (non-Bootstrap)
   ============================ */
.grid-row {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.gcol-12 { grid-column: span 12; }
.gcol-11 { grid-column: span 11; }
.gcol-10 { grid-column: span 10; }
.gcol-9 { grid-column: span 9; }
.gcol-8 { grid-column: span 8; }
.gcol-7 { grid-column: span 7; }
.gcol-6 { grid-column: span 6; }
.gcol-5 { grid-column: span 5; }
.gcol-4 { grid-column: span 4; }
.gcol-3 { grid-column: span 3; }
.gcol-2 { grid-column: span 2; }

/* ============================
   PARTNER / CLIENT LOGOS
   ============================ */
.partner-slider {
    padding: 20px 0;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
}

.partner-item:hover {
    filter: grayscale(0);
    opacity: 1;
}

.partner-item img {
    max-height: 60px;
}

/* ============================
   BLOG CARD
   ============================ */
.blog-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.blog-card-image {
    position: relative;
    overflow: hidden;
}

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

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

.blog-card-image .date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
}

.blog-card-body {
    padding: 25px;
}

.blog-card-body .meta {
    display: flex;
    gap: 15px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-card-body h4 {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-body p {
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-body .read-more {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-card-body .read-more i {
    transition: var(--transition);
}

.blog-card-body .read-more:hover i {
    transform: translateX(5px);
}

/* ============================
   SIDEBAR WIDGET
   ============================ */
.widget {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.widget-title {
    font-size: 1.05rem;
    font-family: var(--font-family);
    font-weight: 600;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.widget-categories li {
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.widget-categories li:last-child {
    border-bottom: none;
}

.widget-categories li a {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-light);
}

.widget-categories li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.widget-categories li a span {
    background: var(--bg-light);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

.widget-posts li {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget-posts li:last-child {
    border-bottom: none;
}

.widget-posts img {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.widget-posts .info h6 {
    font-size: 0.88rem;
    font-family: var(--font-family);
    font-weight: 500;
    margin-bottom: 4px;
}

.widget-posts .info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget-tags a {
    padding: 6px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.widget-tags a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================
   SOCIAL SHARE
   ============================ */
.social-share {
    display: flex;
    gap: 8px;
}

.social-share a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-share a:hover {
    transform: translateY(-3px);
}

.social-share .facebook { background: #3b5998; }
.social-share .twitter { background: #1da1f2; }
.social-share .instagram { background: #e4405f; }
.social-share .linkedin { background: #0077b5; }
.social-share .youtube { background: #ff0000; }

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.5s ease forwards;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1399.98px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }

    .main-nav .mega-menu {
        min-width: 500px;
        padding: 25px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-grid-item:nth-child(4) {
        grid-column: span 2;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        padding-left: 0;
        margin-top: 40px;
    }
}

@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }

    .grid-3, .grid-4, .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 15px 0;
    }

    .main-nav > li > a {
        padding: 14px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav > li > a::after {
        display: none;
    }

    .main-nav .mega-menu,
    .main-nav .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        display: none;
        min-width: auto;
        padding: 10px 0;
        background: var(--bg-light);
        border-radius: 8px;
        margin: 4px 0;
    }

    .main-nav .mega-menu.open,
    .main-nav .dropdown-menu.open {
        display: block;
    }

    .main-nav .mega-menu {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .main-nav .dropdown-menu .sub-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        display: none;
    }

    .main-nav .dropdown-menu .sub-dropdown.open {
        display: block;
    }

    .admission-timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 50px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-number {
        left: 20px;
        transform: translateX(-50%);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid-item:nth-child(1),
    .gallery-grid-item:nth-child(4) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .hero-section .swiper-button-next,
    .hero-section .swiper-button-prev {
        display: none;
    }

    .stats-section .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }

    .top-bar-left a span {
        display: none;
    }

    .admission-open-btn {
        padding: 4px 12px;
        font-size: 0.7rem;
    }

    .top-bar {
        font-size: 0.75rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-lg {
        padding: 80px 0;
    }

    .grid-2, .grid-3, .grid-4, .grid-5 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cta-content .btn {
        display: block;
        margin: 10px auto;
        max-width: 250px;
    }

    .contact-form-wrap {
        padding: 30px 20px;
    }

    .about-floating-card.bottom-left {
        left: 10px;
        bottom: 15px;
    }

    .popup-announcement-content {
        padding: 30px 25px;
    }

    .search-modal-input-wrap input {
        font-size: 1.3rem;
    }

    .hero-slider {
        height: 500px;
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-buttons .btn {
        padding: 10px 22px;
        font-size: 0.82rem;
    }

    .footer {
        padding: 50px 0 0;
    }

    .footer-bottom {
        margin-top: 30px;
    }
}

@media (max-width: 575.98px) {
    .top-bar-left,
    .top-bar-right {
        gap: 10px;
    }

    .top-bar-social a {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }

    .header-logo img {
        height: 38px !important;
    }

    .header-logo-text h4 {
        font-size: 0.9rem;
    }

    .header-logo-text span {
        font-size: 0.6rem;
    }

    .hero-slider {
        height: 420px;
        min-height: 350px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 4px 16px;
    }

    .facility-card img {
        height: 200px;
    }

    .gallery-grid-item img {
        min-height: 150px;
    }

    .about-experience-badge {
        width: 100px;
        height: 100px;
        right: -10px;
        bottom: -10px;
    }

    .about-experience-badge .number {
        font-size: 1.6rem;
    }

    .about-experience-badge .text {
        font-size: 0.6rem;
    }

    .breadcrumb-section {
        padding: 40px 0;
    }

    .message-card {
        padding: 25px;
    }

    .pagination a,
    .pagination span {
        width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    .pagination .prev,
    .pagination .next {
        width: auto;
        padding: 0 14px;
    }
}

/* ============================
   DARK MODE
   ============================ */
body.dark-mode {
    --bg-color: #1A1A2E;
    --bg-light: #16213E;
    --bg-gray: #0F3460;
    --text-color: #E0E0E0;
    --text-light: #B0B0C8;
    --text-muted: #8888A0;
    --border-color: rgba(255,255,255,0.08);
    --header-bg: rgba(26,26,46,0.95);
    --glass-bg: rgba(26,26,46,0.95);
    --glass-border: rgba(255,255,255,0.05);
}

body.dark-mode .header {
    background: var(--glass-bg);
}

body.dark-mode .main-nav > li > a {
    color: var(--text-color);
}

body.dark-mode .news-card,
body.dark-mode .blog-card,
body.dark-mode .faculty-card,
body.dark-mode .choose-card,
body.dark-mode .testimonial-card,
body.dark-mode .message-card,
body.dark-mode .contact-form-wrap,
body.dark-mode .widget {
    background: var(--bg-light);
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background: var(--bg-color);
    color: var(--text-color);
}

body.dark-mode .about-floating-card {
    background: rgba(22,33,62,0.95);
}

body.dark-mode .news-card-footer {
    border-color: var(--border-color);
}

/* ============================
   LARGE DESKTOP (xxl) BREAKPOINTS
   ============================ */
@media (min-width: 1400px) and (max-width: 1599.98px) {
    .container { max-width: 1320px; }
    .hero-slider .slide-content { padding: 0 60px; }
    .hero-slider .slide-content .title { font-size: 52px; }
    section { padding: 100px 0; }
    .section-lg { padding: 130px 0; }
    .about-preview-img img { height: 500px; }
    .message-card { padding: 40px 35px; }
    .why-card { padding: 40px 30px; }
    .stat-counter .counter-item .number { font-size: 52px; }
    .news-card .news-img { height: 240px; }
    .facility-card .fac-img { height: 200px; }
}

@media (min-width: 1600px) {
    .container { max-width: 1500px; }
    .hero-slider { height: 90vh; min-height: 650px; }
    .hero-slider .slide-content { padding: 0 80px; }
    .hero-slider .slide-content .title { font-size: 64px; }
    .hero-slider .slide-content .description { font-size: 20px; max-width: 700px; }
    section { padding: 110px 0; }
    .section-lg { padding: 150px 0; }
    .section-header .section-title { font-size: 42px; }
    .about-preview-img img { height: 550px; }
    .message-card { padding: 45px 40px; }
    .why-card { padding: 45px 35px; }
    .why-card .icon-box { width: 80px; height: 80px; font-size: 32px; }
    .stat-counter .counter-item .number { font-size: 56px; }
    .stat-counter .counter-item .icon { font-size: 48px; }
    .news-card .news-img { height: 260px; }
    .news-card .news-body { padding: 28px; }
    .facility-card .fac-img { height: 220px; }
    .facility-card .fac-body { padding: 28px; }
    .faculty-card .faculty-img { height: 280px; }
    .gallery-grid-item img { height: 260px; }
    .video-thumb img { height: 260px; }
    .testimonial-card { padding: 40px; }
    .section-desc { max-width: 750px; font-size: 1.15rem; }
    .cta-section h2 { font-size: 44px; }
    .contact-section .contact-card { padding: 30px; }
    .event-item { padding: 22px 28px; }
    .admission-steps .step { padding: 35px 25px; }
    .admission-steps .step .step-num { width: 60px; height: 60px; font-size: 26px; }
}

/* ============================
   ACCESSIBILITY
   ============================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 1199.98px) {
    .container { max-width: 960px; }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991.98px) {
    .container { max-width: 720px; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .mobile-toggle { display: flex; }
    .main-nav { flex-direction: column; align-items: stretch; width: 100%; padding: 15px 0; }
    .main-nav > li > a { padding: 14px 0; border-bottom: 1px solid var(--border-color); }
    .main-nav > li > a::after { display: none; }
    .main-nav .mega-menu, .main-nav .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; min-width: auto; padding: 10px 0; background: var(--bg-light); border-radius: 8px; margin: 4px 0; }
    .main-nav .mega-menu.open, .main-nav .dropdown-menu.open { display: block; }
    .main-nav .dropdown-menu .sub-dropdown { position: static; opacity: 1; visibility: visible; box-shadow: none; border: none; display: none; }
    .main-nav .dropdown-menu .sub-dropdown.open { display: block; }
    .admission-timeline::before { left: 20px; }
    .timeline-item, .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { flex-direction: row; padding-left: 50px; }
    .timeline-content { width: 100%; }
    .timeline-number { left: 20px; transform: translateX(-50%); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid-item:nth-child(1), .gallery-grid-item:nth-child(4) { grid-column: span 1; grid-row: span 1; }
    .hero-section .swiper-button-next, .hero-section .swiper-button-prev { display: none; }
}

@media (max-width: 767.98px) {
    .container { max-width: 540px; }
    .top-bar-left a span { display: none; }
    .section { padding: 60px 0; }
    .section-lg { padding: 80px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cta-content .btn { display: block; margin: 10px auto; max-width: 250px; }
    .contact-form-wrap { padding: 30px 20px; }
    .popup-announcement-content { padding: 30px 25px; }
    .hero-slider { height: 500px; min-height: 400px; }
    .hero-content h1 { font-size: 1.8rem; }
    .footer { padding: 50px 0 0; }
    .footer-bottom { margin-top: 30px; }
}

@media (max-width: 575.98px) {
    .top-bar-left, .top-bar-right { gap: 10px; }
    .top-bar-social a { width: 24px; height: 24px; font-size: 0.65rem; }
    .header-logo img { height: 38px !important; }
    .header-logo-text h4 { font-size: 0.9rem; }
    .hero-slider { height: 420px; min-height: 350px; }
    .hero-content h1 { font-size: 1.5rem; }
    .facility-card img { height: 200px; }
    .about-experience-badge { width: 100px; height: 100px; right: -10px; bottom: -10px; }
    .about-experience-badge .number { font-size: 1.6rem; }
    .breadcrumb-section { padding: 40px 0; }
    .message-card { padding: 25px; }
}

@media print {
    .header, .top-bar, .footer, .back-to-top, .floating-buttons, .search-modal, .popup-announcement, #page-preloader { display: none !important; }
    body { color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
    .section { padding: 30px 0; }
    @page { margin: 2cm; }
}
