/* =========================================================
   CMS SCHOOL NIGDI — SELF-CONTAINED STYLESHEET
   ========================================================= */

: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;
}

.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; }

.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 — FULLSCREEN BACKGROUND IMAGE SLIDER
   Same content as before (badge, title, desc, hero-cards,
   hero-btn-row) — now laid over a full-bleed 100vh
   background carousel with a left-to-right dark overlay,
   Ken Burns zoom, glass arrows, progress dots and a
   play/pause control. hero-cards became floating glass
   cards pinned to the bottom of the section.
   ========================================================= */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    background: #111;
}

.hero-inner {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
}

/* ---- Background slides ---- */
.hero-image-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slider-accent { display: none; } /* decorative blobs not needed on full-bleed bg */

.hero-image-frame,
.hero-image-frame-back,
.hero-image-frame-inner {
    position: absolute;
    inset: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.hero-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    overflow: hidden;
    background: #111;
    transition: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transform: scale(1.12);
    transition: opacity 1.1s ease, transform 6.5s ease-out, visibility 1.1s;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center top;
    margin: 0;
}

.hero-slide:nth-child(5) img {
    object-position: center 25%;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transform: scale(1);
}

.hero-slide.is-entering-next,
.hero-slide.is-entering-prev {
    opacity: 0;
    visibility: visible;
    z-index: 3;
    transform: scale(1.12);
}

.hero-slide.is-active.is-entering-next,
.hero-slide.is-active.is-entering-prev {
    opacity: 1;
    transform: scale(1);
}

.hero-slide.is-leaving-next,
.hero-slide.is-leaving-prev {
    opacity: 0;
    visibility: visible;
    z-index: 1;
}

/* very light left -> transparent tint, just enough for text legibility without hiding the image */
.hero-slide-shimmer {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.16) 35%, transparent 60%),
        linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.28) 100%);
}

/* ---- Left column content now sits on top of the background ---- */
.hero-left { flex: 1 1 100%; min-width: 0; padding: 0 60px; position: relative; z-index: 10; }
.hero-caption-inner { max-width: 560px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(6px);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(32px, 4.4vw, 58px);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 18px;
    color: #ffffff;
}
.hero-title span {
    display: block;
    color: #ffd7dd;
}

.hero-desc {
    color: rgba(255,255,255,0.88);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 26px;
    max-width: 480px;
}

/* hero-cards -> floating glass cards, pinned to the bottom of the hero */
.hero-cards {
    position: absolute;
    left: 60px;
    right: 60px;
    bottom: 30px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 0;
}
.hero-card {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 200px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 14px 18px;
    color: #fff;
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.hero-card:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.32);
    background: rgba(255,255,255,0.18);
}
.hero-card-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}
.hero-card-title { font-weight: 600; font-size: 14px; }

.hero-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 140px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    background: var(--maroon);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.4px;
    font-size: 14px;
    padding: 15px 24px;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}
.hero-btn .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    margin-left: 14px;
    font-size: 16px;
    transition: transform 0.3s;
}
.hero-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 36px rgba(0,0,0,0.42); }
.hero-btn:hover .arrow { transform: translateX(4px); }

.hero-btn-outline {
    display: inline-flex;
    align-items: center;
    border: 2px solid rgba(255,255,255,0.7);
    color: #fff;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    font-weight: 700;
    letter-spacing: 0.4px;
    font-size: 14px;
    padding: 13px 22px;
    border-radius: 8px;
    transition: all 0.3s;
}
.hero-btn-outline .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.18);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    margin-left: 12px;
    font-size: 14px;
    transition: transform 0.3s, background 0.3s, color 0.3s;
}
.hero-btn-outline:hover { background: #fff; color: var(--maroon-dark); }
.hero-btn-outline:hover .arrow { background: rgba(158,13,41,0.15); color: var(--maroon-dark); transform: translateX(4px); }

/* ---- Right column no longer used (full-bleed background) ---- */
.hero-right { display: none; }

/* ---- Arrows ---- */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 12;
    width: clamp(46px, 4.2vw, 56px);
    height: clamp(46px, 4.2vw, 56px);
    padding: 0;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    box-shadow: 0 10px 26px rgba(0,0,0,0.3);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
}

.hero-arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: clamp(15px, 1.5vw, 18px);
    transition: transform 0.3s ease;
}

.hero-arrow:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 14px 30px rgba(0,0,0,0.38);
}

.hero-arrow--prev:hover .hero-arrow-icon { transform: translateX(-2px); }
.hero-arrow--next:hover .hero-arrow-icon { transform: translateX(2px); }
.hero-arrow:active { transform: translateY(-50%) scale(1.02); }

.hero-arrow--prev { left: clamp(16px, 3vw, 40px); }
.hero-arrow--next { right: clamp(16px, 3vw, 40px); }

/* ---- Dots / progress ---- */
.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 200px;
    transform: translateX(-50%);
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s ease, transform 0.35s ease;
}

.hero-dot:hover {
    background: rgba(255,255,255,0.65);
    transform: scale(1.15);
}

.hero-dot.is-active {
    width: 26px;
    background: linear-gradient(90deg, var(--maroon-soft), #fff);
}

@media (max-width: 991px) {
    .hero { min-height: 600px; }
    .hero-left { padding: 0 24px; }
    .hero-caption-inner { max-width: 100%; }
    .hero-cards { left: 24px; right: 24px; bottom: 24px; }
    .hero-btn-row { margin-bottom: 180px; }
    .hero-dots { bottom: 230px; }
}

@media (max-width: 767px) {
    .hero { min-height: 640px; }
    .hero-title { font-size: 28px; }
    .hero-desc { font-size: 14px; }
    .hero-cards { flex-direction: column; }
    .hero-btn-row { margin-bottom: 260px; }
    .hero-dots { bottom: 300px; }
    .hero-arrow--prev { left: -6px; }
    .hero-arrow--next { right: -6px; }
    .hero-dots { padding: 6px 12px; gap: 6px; }
    .hero-dot.is-active { width: 22px; }
}

.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; }
}

.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; }

.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-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; }
