/* ============================================
   BAL NIKETAN MODEL SR. SEC. SCHOOL
   Modern UI/UX Stylesheet
   ============================================ */

/* ===================== CSS VARIABLES ===================== */
:root {
    --primary: #1a3c6e;
    --primary-light: #2a5298;
    --primary-dark: #0f2648;
    --secondary: #e8913a;
    --secondary-light: #f0a855;
    --accent: #27ae60;
    --accent-light: #2ecc71;
    --gradient: linear-gradient(135deg, #1a3c6e 0%, #2a5298 50%, #e8913a 100%);
    --gradient-text: linear-gradient(135deg, #e8913a, #f0a855);
    --gradient-warm: linear-gradient(135deg, #e8913a 0%, #f0a855 100%);
    --bg-light: #f8f9fc;
    --bg-dark: #0c1829;
    --text-dark: #1a1a2e;
    --text-muted: #6b7280;
    --white: #ffffff;
    --shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

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

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

.set img {
    height: 100px;
}

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

.section-padding {
    padding: 100px 0;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(26, 60, 110, 0.08), rgba(232, 145, 58, 0.08));
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-tag.light {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary);
}

.section-title {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-desc {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
}

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

/* ===================== TOP BAR ===================== */
.top-bar {
    background: var(--primary-dark);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-info li {
    color: rgba(255, 255, 255, 0.8);
    padding-right: 20px;
}

.top-info li i {
    color: var(--secondary);
    margin-right: 5px;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 15px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

/* ===================== NAVBAR ===================== */
#mainNavbar {
    background: var(--primary);
    /* padding: 12px 0; */
    transition: var(--transition);
    z-index: 1050;
}

#mainNavbar.scrolled {
    background: rgba(26, 60, 110, 0.97);
    backdrop-filter: blur(10px);
    padding: 8px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-warm);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 16px !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white) !important;
}

.navbar-nav .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:not(.dropdown-toggle):hover::after,
.navbar-nav .nav-link:not(.dropdown-toggle).active::after {
    width: 60%;
}

.navbar-nav .dropdown-toggle::after {
    border: none;
    content: '\F282';
    font-family: 'bootstrap-icons';
    font-size: 0.65rem;
    vertical-align: middle;
    margin-left: 5px;
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    background: none;
    transform: none;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    margin-top: 0;
    animation: fadeInDown 0.3s ease;
}

@media (min-width: 992px) {
    .navbar .dropdown {
        position: relative;
    }

    .navbar .dropdown-menu {
        top: 100%;
        padding-top: 15px;
    }

    .navbar .dropdown:hover>.dropdown-menu {
        display: block;
    }

    .navbar .dropdown:hover>.dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

.dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(26, 60, 110, 0.08), rgba(232, 145, 58, 0.08));
    color: var(--primary);
    transform: translateX(5px);
}

.dropdown-item i {
    color: var(--secondary);
}

.btn-admission {
    background: var(--gradient-warm);
    color: var(--white) !important;
    border: none;
    border-radius: 50px;
    padding: 10px 25px !important;
    font-weight: 600;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-admission:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(232, 145, 58, 0.4);
    color: var(--white) !important;
}

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

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

/* ===================== HERO SECTION ===================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0c1829 0%, #1a3c6e 40%, #2a5298 70%, #1a3c6e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    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");
}

.hero-particles .particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(232, 145, 58, 0.15);
    animation: floatParticle 20s infinite ease-in-out;
}

.hero-particles .particle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.hero-particles .particle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: 100px;
    left: -50px;
    animation-delay: 3s;
}

.hero-particles .particle:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 30%;
    animation-delay: 5s;
    background: rgba(42, 82, 152, 0.1);
}

.hero-particles .particle:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 20%;
    animation-delay: 7s;
    background: rgba(39, 174, 96, 0.1);
}

.hero-particles .particle:nth-child(5) {
    width: 250px;
    height: 250px;
    bottom: -50px;
    right: 30%;
    animation-delay: 2s;
    background: rgba(42, 82, 152, 0.08);
}

.hero-particles .particle:nth-child(6) {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 10%;
    animation-delay: 9s;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(15px, 15px) scale(1.02);
    }
}

.hero-badge {
    background: rgba(232, 145, 58, 0.15);
    color: var(--secondary);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid rgba(232, 145, 58, 0.3);
}

.hero-title {
    font-size: 3.8rem;
    color: var(--white);
    font-weight: 800;
    line-height: 1.2;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, #e8913a, #f0c855);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 550px;
}

.btn-hero-primary {
    background: var(--gradient-warm);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    box-shadow: 0 5px 25px rgba(232, 145, 58, 0.3);
    transition: var(--transition);
}

.btn-hero-primary:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(232, 145, 58, 0.4);
}

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.btn-hero-outline:hover {
    color: var(--white);
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    font-family: var(--font-body);
    margin-bottom: 0;
}

.stat-item span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Image Area */
.hero-image-wrapper {
    position: relative;
    height: 500px;
}

.hero-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, rgba(232, 145, 58, 0.15), rgba(42, 82, 152, 0.15));
    animation: morphShape 8s infinite ease-in-out;
}

@keyframes morphShape {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

.hero-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 25px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    animation: floatCard 6s infinite ease-in-out;
}

.hero-card i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.hero-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-card.card-1 {
    top: 60px;
    right: 20px;
    animation-delay: 0s;
}

.hero-card.card-2 {
    top: 50%;
    left: 0;
    animation-delay: 2s;
}

.hero-card.card-3 {
    bottom: 80px;
    right: 40px;
    animation-delay: 4s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* ===================== NOTICE BAR / MARQUEE ===================== */
.notice-bar {
    background: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.notice-label {
    background: var(--gradient-warm);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.marquee-wrapper {
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 60px;
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===================== ABOUT SECTION ===================== */
.about-images {
    position: relative;
    padding: 20px;
}

.img-placeholder,
.gallery-placeholder,
.blog-placeholder,
.staff-placeholder,
.principal-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.img-placeholder i,
.gallery-placeholder i,
.blog-placeholder i,
.staff-placeholder i,
.principal-img-placeholder i {
    font-size: 3rem;
    opacity: 0.4;
}

.about-img-main .img-placeholder {
    background: linear-gradient(135deg, #e8e4f0, #d4e4f7);
    border-radius: var(--radius);
    height: 380px;
    width: 100%;
}

.about-img-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
}

.about-img-secondary .img-placeholder {
    background: linear-gradient(135deg, #fde8d0, #f7e4c4);
    border-radius: var(--radius);
    height: 200px;
    width: 200px;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.about-experience-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gradient-warm);
    color: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(232, 145, 58, 0.3);
    z-index: 3;
}

.about-experience-badge h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0;
    font-family: var(--font-body);
}

.about-experience-badge p {
    font-size: 0.85rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.about-features {
    margin-top: 20px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.about-feature-item i {
    color: var(--accent);
    font-size: 1.1rem;
}

.about-feature-item span {
    font-weight: 500;
    color: var(--text-dark);
}

.btn-primary-custom {
    background: var(--gradient-warm);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 145, 58, 0.35);
}

/* ===================== HISTORY SECTION (Modern Redesign) ===================== */
.history-section {
    padding: 100px 0;
    background: linear-gradient(160deg, #0c1829 0%, #132744 40%, #1a3c6e 70%, #0f2648 100%);
    position: relative;
    overflow: hidden;
}

/* Floating background shapes */
.history-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.history-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
}

.history-shape.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    top: -100px;
    right: -100px;
    animation: historyFloat 15s ease-in-out infinite;
}

.history-shape.shape-2 {
    width: 350px;
    height: 350px;
    background: #6366f1;
    bottom: -80px;
    left: -80px;
    animation: historyFloat 18s ease-in-out infinite reverse;
}

.history-shape.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    animation: historyFloat 20s ease-in-out infinite 3s;
}

@keyframes historyFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.08);
    }

    66% {
        transform: translate(-25px, 25px) scale(0.94);
    }
}

.history-section .section-title {
    color: var(--white);
}

.history-section .section-subtitle {
    color: rgba(255, 255, 255, 0.5);
}

.history-section .section-tag {
    background: rgba(255, 255, 255, 0.06);
    color: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Year Navigation */
.history-year-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 10px;
}

.year-nav-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    padding: 10px 22px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.year-nav-btn:hover {
    color: var(--white);
    border-color: rgba(232, 145, 58, 0.4);
    background: rgba(232, 145, 58, 0.1);
}

.year-nav-btn.active {
    background: var(--gradient-warm);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(232, 145, 58, 0.35);
    transform: scale(1.08);
}

.year-nav-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(232, 145, 58, 0.3), rgba(255, 255, 255, 0.08));
    min-width: 15px;
}

/* History Cards */
.history-card {
    position: relative;
    height: 100%;
}

.history-card-glow {
    position: absolute;
    inset: -1px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(232, 145, 58, 0.25), rgba(42, 82, 152, 0.25), rgba(232, 145, 58, 0.15));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    filter: blur(1px);
}

.history-card-glow.glow-accent {
    background: linear-gradient(135deg, rgba(232, 145, 58, 0.4), rgba(39, 174, 96, 0.25), rgba(232, 145, 58, 0.3));
    opacity: 0.5;
}

.history-card:hover .history-card-glow {
    opacity: 1;
}

.history-card-inner {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 30px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
    z-index: 1;
}

.history-card:hover .history-card-inner {
    transform: translateY(-8px);
    border-color: rgba(232, 145, 58, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

.history-card-inner.card-featured {
    background: rgba(232, 145, 58, 0.06);
    border-color: rgba(232, 145, 58, 0.15);
}

/* Shine effect */
.history-card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(225deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.03) 45%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.03) 55%,
            transparent 60%,
            transparent 100%);
    transform: rotate(0deg);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.history-card:hover .history-card-shine {
    transform: rotate(180deg);
}

/* Card Header */
.history-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.history-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(232, 145, 58, 0.12), rgba(232, 145, 58, 0.04));
    border: 1px solid rgba(232, 145, 58, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
    transition: var(--transition);
}

.history-card:hover .history-icon-wrap {
    background: var(--gradient-warm);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(232, 145, 58, 0.3);
    transform: rotate(-5deg) scale(1.05);
}

.history-icon-wrap.icon-featured {
    background: var(--gradient-warm);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(232, 145, 58, 0.25);
}

.history-year-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: 1px;
}

.history-year-badge.badge-featured {
    background: rgba(232, 145, 58, 0.15);
    border-color: rgba(232, 145, 58, 0.3);
    color: var(--secondary);
}

/* Card Body */
.history-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.history-card-body h4 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 12px;
    transition: var(--transition);
}

.history-card:hover .history-card-body h4 {
    color: var(--secondary-light);
}

.history-card-body p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

/* Mini Stats Row */
.history-stats-row {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.history-mini-stat {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.history-card:hover .history-mini-stat {
    background: rgba(232, 145, 58, 0.06);
    border-color: rgba(232, 145, 58, 0.1);
}

.history-mini-stat .stat-num {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--secondary);
    font-family: var(--font-body);
    line-height: 1.2;
}

.history-mini-stat .stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Progress Bar */
.history-progress-wrap {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.history-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
}

.history-progress-title {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.history-progress-bar {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: visible;
}

.history-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-warm);
    border-radius: 10px;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(232, 145, 58, 0.3);
}

.history-progress-fill.animated {
    width: 100%;
}

.history-progress-dots {
    position: absolute;
    inset: 0;
}

.progress-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary-dark);
    border: 2px solid rgba(232, 145, 58, 0.4);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.history-progress-fill.animated~.history-progress-dots .progress-dot {
    background: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 0 8px rgba(232, 145, 58, 0.4);
}

/* ===================== MISSION & VISION ===================== */
.mv-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 4px 4px 0 0;
}

.mission-card::before {
    background: var(--primary);
}

.vision-card::before {
    background: var(--secondary);
}

.values-card::before {
    background: var(--accent);
}

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

.mv-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.mission-card .mv-icon {
    background: rgba(26, 60, 110, 0.1);
    color: var(--primary);
}

.vision-card .mv-icon {
    background: rgba(232, 145, 58, 0.1);
    color: var(--secondary);
}

.values-card .mv-icon {
    background: rgba(39, 174, 96, 0.1);
    color: var(--accent);
}

.mv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.mv-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.mv-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.mv-list li {
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
}

.mv-list li i {
    color: var(--accent);
}

/* ===================== PRINCIPAL'S MESSAGE ===================== */
.principal-img-wrapper {
    position: relative;
    display: inline-block;
}

.principal-img-placeholder {
    background: linear-gradient(135deg, #e8e4f0, #d4e4f7);
    width: 100%;
    height: 450px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.principal-img-placeholder i {
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.3;
}

.principal-img-placeholder span {
    font-size: 1rem;
    color: var(--primary);
    opacity: 0.5;
    font-weight: 600;
}

.principal-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    width: 70px;
    height: 70px;
    background: var(--gradient-warm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(232, 145, 58, 0.3);
}

.principal-message blockquote {
    border-left: 4px solid var(--secondary);
    padding-left: 25px;
    margin-bottom: 25px;
}

.principal-message blockquote p {
    color: #555;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.principal-info h5 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.principal-info span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===================== WHY CHOOSE US ===================== */
.why-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

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

.why-card:hover .why-icon {
    background: var(--gradient-warm);
    color: var(--white);
}

.why-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(232, 145, 58, 0.1), rgba(26, 60, 110, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.why-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===================== SERVICES ===================== */
.bg-dark-section {
    background: linear-gradient(135deg, #0c1829 0%, #1a3c6e 100%);
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 25px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    backdrop-filter: blur(5px);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
    border-color: rgba(232, 145, 58, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(232, 145, 58, 0.15), rgba(232, 145, 58, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-warm);
    color: var(--white);
}

.service-card h5 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    margin-bottom: 15px;
}

.service-link {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.85rem;
}

.service-link:hover {
    color: var(--secondary-light);
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ===================== COUNTER SECTION ===================== */
.counter-section {
    background: var(--gradient-warm);
    padding: 60px 0;
}

.counter-box {
    color: var(--white);
}

.counter-box i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.counter-box h3 {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-body);
    margin-bottom: 5px;
}

.counter-box p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 0;
}

/* ===================== STAFF SECTION ===================== */
.staff-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.staff-img {
    position: relative;
    overflow: hidden;
}

.staff-placeholder {
    background: linear-gradient(135deg, #e8e4f0, #d4e4f7);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-placeholder i {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
}

.staff-social {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    transition: var(--transition);
}

.staff-card:hover .staff-social {
    bottom: 15px;
}

.staff-social a {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.staff-social a:hover {
    background: var(--secondary);
    color: var(--white);
}

.staff-info {
    padding: 20px 20px 25px;
    text-align: center;
}

.staff-info h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.staff-role {
    display: inline-block;
    background: linear-gradient(135deg, rgba(232, 145, 58, 0.1), rgba(26, 60, 110, 0.1));
    color: var(--primary);
    padding: 3px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.staff-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ===================== EVENTS ===================== */
.event-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.event-date {
    background: var(--primary);
    padding: 20px;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
}

.event-date .day {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-body);
}

.event-date .month {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.event-date .year {
    font-size: 0.75rem;
    opacity: 0.7;
}

.event-content {
    padding: 20px 25px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.event-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.event-meta i {
    color: var(--secondary);
    margin-right: 4px;
}

.event-content h5 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.event-content p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 15px;
    flex: 1;
}

.event-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
}

.event-link:hover {
    color: var(--secondary);
}

/* ===================== GALLERY ===================== */
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-placeholder {
    background: linear-gradient(135deg, #e8e4f0, #d4e4f7);
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-placeholder i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
}

.gallery-placeholder span {
    color: var(--primary);
    font-weight: 600;
    opacity: 0.5;
    font-size: 0.9rem;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

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

.gallery-overlay h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* ===================== TESTIMONIALS ===================== */
.testimonial-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '\F6B0';
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 3rem;
    color: rgba(232, 145, 58, 0.1);
}

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

.testimonial-stars {
    margin-bottom: 15px;
}

.testimonial-stars i {
    color: #ffc107;
    font-size: 0.9rem;
}

.testimonial-text {
    color: #555;
    font-size: 0.93rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.author-avatar {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.5;
}

.testimonial-author h6 {
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--text-dark);
}

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

/* ===================== BLOGS ===================== */
.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.blog-img {
    position: relative;
    overflow: hidden;
}

.blog-placeholder {
    background: linear-gradient(135deg, #e8e4f0, #d4e4f7);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.blog-placeholder i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
}

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

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-warm);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-content {
    padding: 20px 25px 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.blog-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-meta i {
    color: var(--secondary);
    margin-right: 4px;
}

.blog-content h5 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.blog-content h5 a {
    color: var(--text-dark);
}

.blog-content h5 a:hover {
    color: var(--secondary);
}

.blog-content p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 15px;
    /* display: -webkit-box; */
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
}

.blog-read-more:hover {
    color: var(--secondary);
}

/* ===================== CTA SECTION ===================== */
.cta-section {
    background: var(--primary);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(232, 145, 58, 0.1);
}

.cta-section h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.btn-cta {
    background: var(--gradient-warm);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
}

.btn-cta:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 145, 58, 0.4);
}

.btn-cta-outline {
    background: transparent;
    color: var(--white);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.btn-cta-outline:hover {
    color: var(--white);
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* ===================== CONTACT SECTION ===================== */
.contact-info-wrapper {
    height: 100%;
}

.contact-info-card {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 35px 30px;
    color: var(--white);
}

.contact-info-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(232, 145, 58, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary);
    flex-shrink: 0;
}

.contact-info-item h5 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--white);
}

.contact-info-item p {
    font-size: 0.88rem;
    opacity: 0.75;
    margin-bottom: 0;
    line-height: 1.6;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h4 {
    color: var(--text-dark);
}

.form-control,
.form-select {
    border: 2px solid #e8e8e8;
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(232, 145, 58, 0.15);
}

.form-floating label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===================== FOOTER ===================== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-brand .brand-name {
    color: var(--white);
    font-size: 1.3rem;
}

.footer-brand .brand-sub {
    color: rgba(255, 255, 255, 0.5);
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.7;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 8px;
}

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

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.footer-contact li i {
    color: var(--secondary);
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

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

/* ===================== BACK TO TOP ===================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-warm);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(232, 145, 58, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(232, 145, 58, 0.4);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 991px) {
    .section-padding {
        padding: 70px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    .history-year-nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .year-nav-line {
        display: none;
    }

    .year-nav-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .history-section {
        padding: 70px 0;
    }

    .navbar-collapse {
        background: var(--primary);
        padding: 20px;
        border-radius: var(--radius);
        margin-top: 10px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-nav .nav-link {
        padding: 10px 16px !important;
        border-radius: 8px;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: rgba(255, 255, 255, 0.1);
    }

    .navbar-nav .nav-link:not(.dropdown-toggle)::after {
        display: none;
    }

    .navbar-nav .dropdown-toggle::after {
        display: inline-block;
        float: right;
        margin-top: 4px;
        transition: transform 0.3s ease;
    }

    .navbar-nav .dropdown.show .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        border: none;
        margin-top: 0;
        padding: 5px 0 5px 10px;
        animation: none;
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.8);
        padding: 8px 15px;
        font-size: 0.88rem;
    }

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: rgba(255, 255, 255, 0.1);
        color: var(--white);
        transform: none;
    }

    .dropdown-item i {
        color: var(--secondary-light);
    }

    .btn-admission {
        display: block;
        text-align: center;
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 0.95rem;
    }

    .hero-btns .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-stats {
        gap: 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .about-img-secondary {
        position: relative;
        margin-top: -50px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .counter-box h3 {
        font-size: 1.8rem;
    }

    .history-section {
        padding: 50px 0;
    }

    .history-card-inner {
        padding: 22px 20px;
    }

    .history-stats-row {
        gap: 5px;
    }

    .history-mini-stat .stat-num {
        font-size: 0.85rem;
    }

    .history-progress-wrap {
        display: none;
    }

    .year-nav-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* ===================== SELECTION ===================== */
::selection {
    background: rgba(232, 145, 58, 0.2);
    color: var(--primary);
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ===================== LOADING / PRELOADER ===================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(26, 60, 110, 0.1);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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