/* =========================================================
   CMS SCHOOL NIGDI — SELF-CONTAINED STYLESHEET
   Replaces the old style.css entirely. No dependency on any
   other local CSS file — only Bootstrap (grid + modal) and
   Font Awesome are pulled from CDN in the HTML <head>.
   ========================================================= */

:root {
    --maroon: #9E0D29;
    --maroon-dark: #790B1A;
    --maroon-darker: #630818;
    --maroon-soft: #C2274A;
    --text-dark: #2b2b2b;
    --text-muted: #6b6b6b;
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    color: var(--text-dark);
    margin: 0;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; }

.mb-30 { margin-bottom: 30px; }
.section-padding-100-70 { padding: 100px 0 70px; }
.section-padding-0-0 { padding: 0; }

.section-heading h2,
.section-heading h3 {
    font-weight: 800;
    color: var(--maroon);
    margin-bottom: 10px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header { background: var(--maroon); }

.topbar {
    background: var(--maroon-dark);
    padding: 10px 0;
}
.topbar-inner { display: flex; align-items: center; }
.brand { display: flex; align-items: center; gap: 16px; color: #fff; }
.brand-logo { height: 80px; width: auto; }
.brand-text {
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.mainnav { background: #ffffff; }
.mainnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    position: relative;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a {
    display: block;
    padding: 22px 14px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.site-nav > ul > li > a:hover { color: var(--maroon); }

.site-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-top: 3px solid var(--maroon);
    z-index: 50;
    padding: 6px 0;
}
.site-nav li.has-dropdown:hover > .dropdown { display: block; }
.site-nav .dropdown li { position: relative; }
.site-nav .dropdown li a {
    display: block;
    padding: 10px 18px;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    white-space: nowrap;
}
.site-nav .dropdown li a:hover { background: #f8f1f2; color: var(--maroon); }
.site-nav .dropdown .dropdown {
    top: 0;
    left: 100%;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--maroon);
    font-weight: 700;
    white-space: nowrap;
}
.nav-phone-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--maroon);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 3px;
    background: var(--maroon);
    border-radius: 2px;
}

/* Admission notice strip below the nav */
.notice-bar { background: var(--maroon-darker); }
.notice-bar-inner {
    display: flex;
    flex-wrap: wrap;
}
.notice-btn {
    flex: 1 1 auto;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 16px;
}
.notice-btn--a { background: linear-gradient(90deg, #6a1750, #9E0D29); }
.notice-btn--b { background: var(--maroon-dark); }
.notice-btn:hover { color: #fff; opacity: 0.9; }

@media (max-width: 991px) {
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        width: 100%;
        order: 3;
    }
    .site-nav.is-open { display: block; }
    .mainnav-inner { flex-wrap: wrap; }
    .site-nav > ul { flex-direction: column; width: 100%; }
    .site-nav .dropdown {
        display: none;
        position: static;
        box-shadow: none;
        border-top: none;
        padding-left: 14px;
    }
    .site-nav li.has-dropdown.is-open > .dropdown { display: block; }
    .notice-bar-inner { flex-direction: column; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.hero-slides {
    position: relative;
    width: 100%;
    height: 0;
    /* 600 / 1920 = 31.25% keeps the true photo ratio so images
       never look stretched, on any screen size */
    padding-top: 31.25%;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.05) 70%),
        linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 60%);
}

.hero-caption {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
}
.hero-caption-inner { max-width: 620px; color: #fff; }
.hero-caption-inner h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    margin-bottom: 18px;
}
.hero-caption-inner p {
    font-size: 17px;
    color: #f1f1f1;
    margin-bottom: 26px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: var(--maroon);
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 14px 22px;
    border-radius: 4px;
    transition: all 0.3s;
}
.hero-btn .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--maroon);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 3px;
    margin-left: 14px;
    font-size: 18px;
}
.hero-btn:hover {
    color: var(--maroon);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Feature cards: stacked on the right of the hero on desktop,
   stacked below the hero on mobile */
.hero-cards {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}
@media (min-width: 992px) {
    .hero-cards {
        position: absolute;
        top: 40px;
        right: 30px;
        width: 380px;
        padding: 0;
    }
}
.hero-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(158,13,41,0.92);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 20px;
    color: #fff;
    transition: background 0.3s;
}
.hero-card:hover { background: var(--maroon-darker); color: #fff; }
.hero-card-icon {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.hero-card-title { font-weight: 700; font-size: 16px; }

@media (max-width: 767px) {
    .hero-slides { padding-top: 0; height: 320px; }
    .hero-caption-inner h1 { font-size: 24px; }
    .hero-caption-inner p { font-size: 14px; }
}

/* =========================================================
   ABOUT / POPULAR COURSE SECTION
   ========================================================= */
.single-top-popular-course {
    align-items: stretch;
}
.popular-course-content {
    flex: 1 1 50%;
    padding-right: 30px;
}
.popular-course-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}
.popular-course-thumb {
    flex: 1 1 45%;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}
@media (max-width: 991px) {
    .popular-course-content { padding-right: 0; margin-bottom: 24px; }
}

/* =========================================================
   TOPPERS / ACHIEVERS
   ========================================================= */
.single-teachers-area { padding: 0 10px; }
.teachers-thumbnail img {
    border-radius: 6px;
    object-fit: cover;
}
.teachers-info h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 12px 0 4px;
}
.teachers-info span {
    font-size: 13px;
    color: var(--maroon);
    font-weight: 600;
}

/* =========================================================
   CTA STRIP
   ========================================================= */
.call-to-action-area.cta-strip {
    background: var(--maroon);
    padding: 40px 0;
}
.cta-content h3 {
    color: #fff;
    font-weight: 700;
    margin: 0;
    font-size: 22px;
}
.btn.academy-btn {
    display: inline-block;
    background: #fff;
    color: var(--maroon);
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 4px;
    margin-top: 10px;
}
.btn.academy-btn:hover { background: #f1f1f1; color: var(--maroon-dark); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer-area { background: var(--maroon-darker); }
.bottom-footer-area { padding: 18px 0; }
.bottom-footer-area p {
    color: #f1d9dd;
    font-size: 13px;
    margin: 0;
    text-align: center;
}
.bottom-footer-area a { color: #fff; font-weight: 600; }
