/* ==========================================================
   EduNova Public School
   Premium School Website
   COMPLETE CSS (Parts 3A, 3B, 3C + Extras)
   ========================================================== */

/*==========================
Google Font
===========================*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/*==========================
CSS Variables
===========================*/
:root {
    --primary: #0A2A66;
    --secondary: #D4AF37;
    --dark: #1d1d1d;
    --light: #ffffff;
    --gray: #f4f6f9;
    --text: #555;
    --shadow: 0 15px 35px rgba(0,0,0,.12);
    --radius: 15px;
    --transition: .35s ease;
    
    /* Theme Variables (for JS theme switcher) */
    --theme-primary: #0A2A66;
    --theme-secondary: #D4AF37;
    --theme-accent: #f39c12;
    --theme-light: #f8f9fa;
    --theme-dark: #1a1a2e;
}

/*==========================
Reset
===========================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 100px;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

section {
    padding: 90px 0;
}

.container {
    max-width: 1200px;
}

/*==========================
Typography
===========================*/
h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 700;
}

p {
    line-height: 1.8;
    font-size: 16px;
}

/*==========================
Top Bar
===========================*/
.top-bar {
    background: var(--primary);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar i {
    color: var(--secondary);
    margin-right: 6px;
}

.top-bar .fab {
    cursor: pointer;
    margin-left: 15px;
    transition: .3s;
}

.top-bar .fab:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

/*==========================
Navbar
===========================*/
.navbar {
    background: rgba(10, 42, 102, .92);
    backdrop-filter: blur(8px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 15px rgba(0, 0, 0, .1);
    transition: all 0.3s ease;
}

.navbar.navbar-sticky {
    background: var(--primary) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-size: 28px;
    font-weight: 700;
    color: #fff !important;
}

.navbar-brand img {
    margin-right: 10px;
}

.nav-link {
    color: #fff !important;
    margin-left: 18px;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: .35s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary) !important;
}

/*==========================
Buttons
===========================*/
.btn {
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    transition: .35s;
}

.btn-primary {
    background: var(--primary);
    border: none;
}

.btn-primary:hover {
    background: var(--secondary);
    color: #000;
    transform: translateY(-3px);
}

.btn-warning {
    background: var(--secondary);
    border: none;
    color: #000;
}

.btn-warning:hover {
    background: #ffd54a;
    transform: translateY(-3px);
}

.btn-outline-light:hover {
    color: #000;
}

/*==========================
Hero Section
===========================*/
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    /* Ek dafa ../ likhne se aap css folder se bahar aayenge, phir images folder mein chale jayenge */
    background: linear-gradient(rgba(10, 42, 102, .75), rgba(10, 42, 102, .75)), url("../images/school.png");
    background-size: cover;
    background-position: center;
    color: white;
}

.hero h5 {
    color: var(--secondary);
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.hero h1 {
    color: white;
    font-size: 62px;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    color: #eee;
    font-size: 19px;
    margin: 25px 0;
}

.hero img {
    animation: float 4s ease-in-out infinite;
}

/*==========================
About Section
===========================*/
.about img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.about ul li {
    margin-bottom: 14px;
    font-weight: 500;
}

.about ul li::before {
    content: "✔ ";
    color: green;
    font-weight: bold;
}

/*==========================
Common Cards
===========================*/
.card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .35s;
}

.card:hover {
    transform: translateY(-10px);
}

.feature-box {
    background: #fff;
    padding: 35px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: .35s;
    height: 100%;
}

.feature-box:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-10px);
}

.feature-box i {
    font-size: 50px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.feature-box h4 {
    margin-bottom: 15px;
}

.feature-box:hover h4 {
    color: white;
}

/*==========================
Animation
===========================*/
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/*==========================
Section Heading
===========================*/
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background: var(--secondary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    border-radius: 20px;
}

/*=========================================================
  PART 3B - Counter | Principal | Programs | News | Gallery
=========================================================*/

/*==========================
Counter Section
===========================*/
.counter-section {
    background: linear-gradient(135deg, #0A2A66, #153d8a);
    color: #fff;
}

.counter-box {
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 40px 20px;
    border-radius: 20px;
    transition: .4s;
    height: 100%;
    
}

.counter-box:hover {
    transform: translateY(-12px);
    background: #fff;
    color: #222;
}

.counter-box i {
    font-size: 50px;
    color: #D4AF37;
    margin-bottom: 20px;
}

.counter-box h2 {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
}

.counter-box:hover h2 {
    color: #0A2A66;
}

.counter-box h5 {
    margin-top: 15px;
    font-weight: 500;
}

/*==========================
Principal Section
===========================*/
.principal {
    background: #fff;
}

.principal img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}

.principal h6 {
    color: #D4AF37;
    letter-spacing: 3px;
    font-weight: 600;
}

.principal h2 {
    font-size: 42px;
    margin: 20px 0;
}

.principal p {
    font-size: 17px;
    line-height: 1.9;
    color: #666;
}

.principal .btn {
    margin-top: 20px;
}

/*==========================
Programs
===========================*/
.programs {
    background: #f8f9fc;
}

.program-card {
    background: #fff;
    border-radius: 18px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: .35s;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-10px);
    background: #0A2A66;
}

.program-card i {
    font-size: 55px;
    color: #D4AF37;
    margin-bottom: 25px;
}

.program-card h4 {
    margin-bottom: 15px;
    transition: .3s;
}

.program-card p {
    color: #666;
    transition: .3s;
}

.program-card:hover h4,
.program-card:hover p {
    color: #fff;
}

/*==========================
Latest News
===========================*/
.news {
    background: #fff;
}

.news .card {
    overflow: hidden;
    border: none;
    border-radius: 18px;
    transition: .4s;
}

.news .card img {
    transition: .5s;
}

.news .card:hover img {
    transform: scale(1.08);
}

.news .card-body {
    padding: 30px;
}

.news h5 {
    font-weight: 700;
    margin-bottom: 15px;
}

.news p {
    color: #666;
}

.news .btn {
    border-radius: 40px;
}

/*==========================
Gallery
===========================*/
.gallery {
    background: #f5f7fb;
}

.gallery img {
    width: 100%;
    border-radius: 15px;
    transition: .45s;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
}

.gallery img:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
}

/*==========================
Image Overlay Effect
===========================*/
.gallery .image-box {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.gallery .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 42, 102, .75);
    opacity: 0;
    transition: .4s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery .overlay i {
    color: #fff;
    font-size: 35px;
}

.gallery .image-box:hover .overlay {
    opacity: 1;
}

/*==========================
Common Hover Animation
===========================*/
.hover-up {
    transition: .35s;
}

.hover-up:hover {
    transform: translateY(-8px);
}

/*==========================
Section Spacing
===========================*/
.news,
.programs,
.principal,
.gallery,
.counter-section {
    padding: 90px 0;
}

/*==========================
Fade Animation Classes
===========================*/
.fade-up,
.fade-in,
.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-up.show,
.fade-in.show,
.slide-up.show,
.fade-up.revealed,
.fade-in.revealed,
.slide-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    transform: translateY(60px);
}

.slide-up.show {
    transform: translateY(0);
}

/*==========================
Glass Effect
===========================*/
.glass {
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 20px;
}

/*=========================================================
  PART 3C - Testimonials | CTA | Footer | Responsive
=========================================================*/

/*==========================
Testimonials
===========================*/
.testimonial {
    background: #ffffff;
}

.testimonial-card {
    background: #fff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: .35s;
    position: relative;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 70px;
    color: #D4AF37;
    opacity: .25;
}

.testimonial-card p {
    margin-top: 30px;
    line-height: 1.8;
    color: #666;
}

.testimonial-card h5 {
    margin-top: 25px;
    color: #0A2A66;
    font-weight: 600;
}

/*==========================
CTA
===========================*/
.cta {
    background: linear-gradient(135deg, #0A2A66, #123f95);
    color: #fff;
    text-align: center;
}

.cta h2 {
    color: #fff;
    font-size: 46px;
    font-weight: 700;
}

.cta p {
    color: #eee;
    margin: 20px auto;
    max-width: 700px;
}

.cta .btn {
    margin-top: 20px;
}

/*==========================
Footer
===========================*/
.footer {
    background: #111827;
    color: #d6d6d6;
    padding: 80px 0 30px;
}

.footer h3,
.footer h5 {
    color: #fff;
    margin-bottom: 25px;
}

.footer p {
    color: #bfbfbf;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: #cfcfcf;
    transition: .3s;
}

.footer ul li a:hover {
    color: #D4AF37;
    padding-left: 6px;
}

.footer i {
    color: #D4AF37;
    cursor: pointer;
    transition: .3s;
}

.footer i:hover {
    transform: translateY(-5px);
}

.footer hr {
    border-color: rgba(255, 255, 255, .1);
    margin: 35px 0;
}

.footer .copyright {
    text-align: center;
    color: #999;
    font-size: 14px;
}

/*==========================
Back To Top
===========================*/
.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #D4AF37;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
    transition: .3s;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.back-top:hover {
    transform: translateY(-5px);
}

/*==========================
Progress Bar
===========================*/
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #D4AF37, #ffd54a);
    transition: width 0.1s ease;
}

/*==========================
Loader / Preloader
===========================*/
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A2A66;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: all 0.6s ease;
}

.loader-hide {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid #D4AF37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*==========================
Lightbox
===========================*/
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: .3s;
}

.lightbox-close:hover {
    color: #D4AF37;
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    transition: .3s;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(212, 175, 55, 0.3);
    color: #D4AF37;
}

/*==========================
Theme Switcher
===========================*/
.theme-switcher {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 999;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 15px;
    width: 50px;
    transition: all 0.3s ease;
}

.theme-switcher-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0A2A66;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: .3s;
}

.theme-switcher-toggle:hover {
    transform: rotate(90deg);
}

.theme-options {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.theme-options.show {
    display: flex;
}

.theme-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: .3s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.theme-option:hover {
    transform: scale(1.1);
    border-color: #D4AF37;
}

.theme-option.active {
    border-color: #D4AF37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Theme Colors */
.theme-default { background: #0A2A66; }
.theme-ocean { background: #006994; }
.theme-forest { background: #2d6a4f; }
.theme-sunset { background: #e76f51; }
.theme-purple { background: #6c2bd9; }
.theme-rose { background: #be185d; }
.theme-emerald { background: #047857; }
.theme-midnight { background: #1e293b; }
.theme-cherry { background: #b91c1c; }
.theme-gold { background: #b8860b; }

/*==========================
Dark Mode
===========================*/
body.dark-mode {
    background: #1a1a2e;
    color: #e0e0e0;
}

body.dark-mode .navbar {
    background: #0f0f1a !important;
}

body.dark-mode .feature-box,
body.dark-mode .program-card,
body.dark-mode .testimonial-card,
body.dark-mode .card {
    background: #2a2a44;
    color: #e0e0e0;
}

body.dark-mode .feature-box h4,
body.dark-mode .program-card h4,
body.dark-mode .testimonial-card h5,
body.dark-mode .card h5 {
    color: #fff;
}

body.dark-mode .feature-box p,
body.dark-mode .program-card p,
body.dark-mode .testimonial-card p,
body.dark-mode .card p {
    color: #bfbfbf;
}

body.dark-mode .feature-box:hover {
    background: var(--primary);
}

body.dark-mode .principal,
body.dark-mode .news,
body.dark-mode .testimonial,
body.dark-mode .about {
    background: #1a1a2e;
}

body.dark-mode .principal h2,
body.dark-mode .news h5,
body.dark-mode .about h2 {
    color: #fff;
}

body.dark-mode .principal p,
body.dark-mode .news p,
body.dark-mode .about p {
    color: #bfbfbf;
}

body.dark-mode .programs {
    background: #22223b;
}

body.dark-mode .gallery {
    background: #1a1a2e;
}

body.dark-mode .footer {
    background: #0f0f1a;
}

body.dark-mode .theme-switcher {
    background: #2a2a44;
}

body.dark-mode .cta h2 {
    color: #fff;
}

body.dark-mode .cta p {
    color: #ddd;
}

/*==========================
Toast Notifications
===========================*/
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast-message {
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s ease;
    border-left: 4px solid #0A2A66;
}

.toast-message.show {
    transform: translateX(0);
}

.toast-message .toast-icon {
    font-size: 20px;
}

.toast-message .toast-text {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.toast-message .toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    transition: .3s;
}

.toast-message .toast-close:hover {
    color: #333;
}

.toast-message.toast-success { border-left-color: #28a745; }
.toast-message.toast-error { border-left-color: #dc3545; }
.toast-message.toast-warning { border-left-color: #ffc107; }
.toast-message.toast-info { border-left-color: #17a2b8; }

body.dark-mode .toast-message {
    background: #2a2a44;
}

body.dark-mode .toast-message .toast-text {
    color: #e0e0e0;
}

/*==========================
Scroll Bar
===========================*/
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #ececec;
}

::-webkit-scrollbar-thumb {
    background: #0A2A66;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}

/*==========================
Selection
===========================*/
::selection {
    background: #D4AF37;
    color: #000;
}

/*==========================
Responsive
===========================*/
@media (max-width: 992px) {
    .hero {
        text-align: center;
        padding: 120px 0;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .hero img {
        margin-top: 50px;
    }
    
    .navbar-brand {
        font-size: 22px;
    }
    
    .section-title h2 {
        font-size: 34px;
    }
    
    .principal h2 {
        font-size: 34px;
    }
    
    .cta h2 {
        font-size: 34px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 25px;
        padding: 12px;
    }
    
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    .hero {
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 34px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .counter-box h2 {
        font-size: 36px;
    }
    
    .about h2 {
        font-size: 30px;
    }
    
    .principal {
        text-align: center;
    }
    
    .principal img {
        margin-bottom: 30px;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-3,
    .footer .col-lg-4,
    .footer .col-lg-2 {
        margin-bottom: 35px;
    }
    
    .theme-switcher {
        right: 10px;
        bottom: 80px;
        padding: 10px;
        width: 45px;
    }
    
    .theme-option {
        width: 35px;
        height: 35px;
    }
    
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero h5 {
        font-size: 15px;
    }
    
    .btn {
        padding: 10px 22px;
        font-size: 14px;
    }
    
    .navbar-brand {
        font-size: 18px;
    }
    
    .top-bar {
        display: none;
    }
    
    .back-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        right: 10px;
        bottom: 10px;
    }
    
    .lightbox-img {
        max-width: 95%;
        max-height: 80%;
    }
}

/*==========================
Utility Classes
===========================*/
.shadow-lg-custom {
    box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}

.rounded-xl {
    border-radius: 25px;
}

.text-primary-custom {
    color: #0A2A66;
}

.bg-primary-custom {
    background: #0A2A66;
}

.bg-gold {
    background: #D4AF37;
}

.text-gold {
    color: #D4AF37;
}

.transition {
    transition: .35s ease;
}

/* Responsive Table Container */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}