/* ============================================================
   ROOT VARIABLES
============================================================ */
:root {
    --primary:       #0056b3;
    --primary-dark:  #003d80;
    --primary-light: #e8f0fe;
    --secondary:     #28a745;
    --secondary-drk: #1e7e34;
    --accent:        #17a2b8;
    --white:         #ffffff;
    --light-bg:      #f4f7fb;
    --dark:          #1a1a2e;
    --muted:         #6c757d;
    --border:        #dee2e6;
    --grad-blue:     linear-gradient(135deg, #0056b3 0%, #17a2b8 100%);
    --grad-green:    linear-gradient(135deg, #28a745 0%, #17a2b8 100%);
    --grad-dark:     linear-gradient(135deg, #003d80 0%, #0056b3 100%);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    max-width: 100vw;
    padding-bottom: 60px;
}

section, footer { overflow-x: hidden; }

@media (min-width: 992px) { body { padding-bottom: 0; } }

h1, h2, h3, h4 { font-family: 'Merriweather', serif; }

.section-pad { padding: 90px 0; }

/* Section Title */
.sec-title { text-align: center; margin-bottom: 55px; }
.sec-title h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 18px;
    margin-bottom: 12px;
}
.sec-title h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 70px; height: 4px;
    background: var(--grad-blue);
    border-radius: 4px;
}
.sec-title p { color: var(--muted); max-width: 600px; margin: 8px auto 0; font-size: 1rem; }

/* Buttons */
.btn-grad {
    background: var(--grad-blue);
    color: #fff; border: none;
    padding: 13px 32px;
    border-radius: 50px;
    font-weight: 700; font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all .3s ease;
    cursor: pointer;
}
.btn-grad:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,86,179,.35);
}
.btn-grad-green {
    background: var(--grad-green);
    color: #fff; border: none;
    padding: 13px 32px; border-radius: 50px;
    font-weight: 700; font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all .3s ease;
    cursor: pointer;
}
.btn-grad-green:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(40,167,69,.35);
}

/* ============================================================
   ADMISSIONS TICKER BAR
============================================================ */
.admission-bar {
    background: linear-gradient(90deg,#c0392b,#e74c3c,#c0392b);
    background-size: 300% 100%;
    animation: tickerBg 4s linear infinite;
    color: #fff;
    text-align: center;
    padding: 9px 0;
    font-size: .88rem;
    font-weight: 600;
    position: relative;
    z-index: 1060;
    letter-spacing: .3px;
}
@keyframes tickerBg {
    0%   { background-position: 0 50%; }
    100% { background-position: 300% 50%; }
}
.admission-bar .pill {
    display: inline-block;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 20px;
    padding: 2px 12px;
    margin: 0 6px;
    font-size: .78rem;
}
@media (max-width: 767.98px) {
    .admission-bar { display: none; }
}

/* ============================================================
   NAVBAR
============================================================ */
#mainNav {
    background: rgba(255,255,255,.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 18px rgba(0,0,0,.09);
    padding: 10px 0;
    transition: box-shadow .3s;
}
#mainNav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.14); }

.navbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
    width: 48px; height: 48px;
    background: var(--grad-blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.25rem;
    flex-shrink: 0;
}
.nav-logo-text { font-family: 'Merriweather', serif; font-size: 1.15rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.nav-logo-sub  { font-family: 'Poppins', sans-serif; font-size: .68rem; font-weight: 500; color: var(--secondary); display: block; }

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500; font-size: .9rem;
    padding: 8px 14px !important;
    position: relative;
    transition: color .25s;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute; bottom: 2px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--primary);
    transition: width .3s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary) !important; }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 75%; }

.btn-nav-call {
    background: var(--grad-blue);
    color: #fff !important;
    border-radius: 50px;
    padding: 9px 22px !important;
    font-weight: 700 !important;
    transition: all .3s !important;
}
.btn-nav-call::after { display: none !important; }
.btn-nav-call:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,86,179,.35); }

/* ============================================================
   HERO CAROUSEL
============================================================ */
#heroCarousel .carousel-item { height: 100vh; min-height: 620px; }

.slide-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.slide-bg-1 { background-image: url('../images/gallery/WhatsApp%20Image%202026-04-14%20at%203.41.08%20PM.jpeg'); }
.slide-bg-2 { background-image: url('../images/gallery/WhatsApp%20Image%202026-04-14%20at%203.41.11%20PM%20(2).jpeg'); }
.slide-bg-3 { background-image: url('../images/gallery/WhatsApp%20Image%202026-04-14%20at%203.41.07%20PM%20(1).jpeg'); }

.slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,56,160,.88) 0%, rgba(0,61,128,.78) 50%, rgba(23,162,184,.65) 100%);
}
.slide-overlay-green {
    background: linear-gradient(135deg, rgba(20,90,40,.87) 0%, rgba(0,86,179,.78) 100%);
}
.slide-overlay-teal {
    background: linear-gradient(135deg, rgba(23,100,130,.87) 0%, rgba(0,56,120,.83) 100%);
}

.slide-inner {
    position: relative; z-index: 2;
    height: 100vh; min-height: 620px;
    display: flex; align-items: center;
    justify-content: center;
    text-align: center;
}

.slide-inner .col-lg-8 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slide-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.4);
    color: #fff; padding: 7px 20px;
    border-radius: 30px; font-size: .82rem; font-weight: 500;
    margin-bottom: 22px;
    backdrop-filter: blur(4px);
}

.slide-inner h1 {
    font-size: 3rem; font-weight: 900;
    color: #fff; line-height: 1.22;
    margin-bottom: 20px;
    text-shadow: 0 3px 14px rgba(0,0,0,.3);
}
.slide-inner .lead {
    font-size: 1.15rem; color: rgba(255,255,255,.92);
    margin-bottom: 35px; line-height: 1.7; max-width: 580px;
}

.hero-btns { justify-content: center; }

.hero-btns .btn-hero-white {
    background: #fff; color: var(--primary);
    border: 2px solid #fff; padding: 13px 34px;
    border-radius: 50px; font-weight: 700; font-size: .95rem;
    transition: all .3s; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
}
.hero-btns .btn-hero-white:hover {
    background: var(--primary); color: #fff;
    transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.hero-btns .btn-hero-outline {
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,.75); padding: 13px 34px;
    border-radius: 50px; font-weight: 700; font-size: .95rem;
    transition: all .3s; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer;
}
.hero-btns .btn-hero-outline:hover {
    background: rgba(255,255,255,.15);
    border-color: #fff; transform: translateY(-3px);
}

.hero-stats {
    display: flex; gap: 30px;
    margin-top: 45px; flex-wrap: wrap;
    justify-content: center;
}
.stat-box { color: #fff; text-align: center; }
.stat-box .snum { font-size: 2rem; font-weight: 900; display: block; line-height: 1; }
.stat-box .slbl { font-size: .75rem; opacity: .85; margin-top: 3px; }

.carousel-indicators [data-bs-target] {
    width: 11px; height: 11px;
    border-radius: 50%; opacity: .6;
    border: 2px solid #fff;
}
.carousel-indicators .active { opacity: 1; background: #fff; }

@media (max-width: 767px) {
    .slide-inner h1 { font-size: 1.9rem; }
    .slide-inner .lead { font-size: 1rem; }
    .hero-stats { gap: 14px; flex-wrap: wrap; max-width: 100%; }
    .stat-box .snum { font-size: 1.5rem; }
    .prog-grid { padding: 22px 16px; }
    .about-float-badge { right: 10px; bottom: -10px; padding: 14px 18px; }
    .about-float-badge .bnum { font-size: 1.6rem; }
    .section-pad { padding: 55px 0; }
    .sec-title h2 { font-size: 1.75rem; }
    .core-box { padding: 26px 18px; }
}

/* ============================================================
   ABOUT SECTION
============================================================ */
#about { background: var(--light-bg); }

.about-img-wrap { position: relative; overflow: visible; }
.about-img-wrap img {
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0,86,179,.14);
    width: 100%;
}
.about-img-placeholder {
    border-radius: 18px;
    height: 420px;
    background: var(--grad-blue);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; color: #fff;
}
.about-float-badge {
    position: absolute; bottom: -24px; right: 10px;
    background: var(--grad-blue);
    color: #fff; padding: 22px 26px;
    border-radius: 16px; text-align: center;
    box-shadow: 0 12px 35px rgba(0,86,179,.32);
}
.about-float-badge .bnum { font-size: 2.2rem; font-weight: 900; display: block; }
.about-float-badge small { font-size: .8rem; opacity: .9; }

.vm-card {
    background: #fff; border-radius: 14px; padding: 24px 26px;
    margin-bottom: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    border-left: 4px solid var(--primary);
    transition: transform .3s, box-shadow .3s;
}
.vm-card:hover { transform: translateX(6px); box-shadow: 0 10px 30px rgba(0,86,179,.12); }
.vm-card.green { border-left-color: var(--secondary); }
.vm-card h5 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.vm-card.green h5 { color: var(--secondary); }
.vm-card p { font-size: .88rem; color: #555; line-height: 1.8; margin: 0; }

.tag-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--primary-light); color: var(--primary);
    border-radius: 30px; padding: 8px 18px;
    font-size: .82rem; font-weight: 600;
}
.tag-pill.green { background: #d4edda; color: var(--secondary); }
.tag-pill.gold  { background: #fff3cd; color: #856404; }

/* ============================================================
   COURSES SECTION
============================================================ */
#courses { background: #fff; }

.course-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 22px rgba(0,0,0,.07);
    border: 1px solid var(--border);
    transition: transform .3s, box-shadow .3s;
    height: 100%;
    background: #fff;
}
.course-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 18px 45px rgba(0,86,179,.15);
}
.course-icon-wrap {
    height: 145px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3.8rem;
}
.course-card .card-body { padding: 22px; }
.course-card .card-title { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.course-card .card-text  { font-size: .85rem; color: var(--muted); line-height: 1.65; }
.dur-badge {
    display: inline-block;
    background: var(--primary-light); color: var(--primary);
    font-size: .72rem; font-weight: 600;
    padding: 3px 12px; border-radius: 20px;
    margin-bottom: 10px;
}

/* Programs grid */
.prog-grid {
    background: var(--primary-light);
    border-radius: 18px; padding: 38px;
    overflow: hidden;
    margin-top: 50px;
}
.prog-grid h4 { color: var(--primary); font-size: 1.25rem; margin-bottom: 30px; text-align: center; }
.prog-col h6 { color: var(--primary); font-weight: 700; margin-bottom: 14px; font-size: .95rem; }

.prog-item {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 11px; font-size: .87rem;
}
.prog-dot {
    width: 26px; height: 26px; flex-shrink: 0;
    background: var(--grad-blue); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .7rem;
}

/* ============================================================
   WHY CHOOSE US
============================================================ */
#why { background: var(--light-bg); }

.feat-card {
    background: #fff; border-radius: 16px; padding: 30px 22px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
    border-bottom: 3px solid transparent;
    transition: all .3s; height: 100%;
}
.feat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,86,179,.12);
    border-bottom-color: var(--primary);
}
.feat-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem; margin: 0 auto 20px;
    transition: all .3s;
}
.feat-card:hover .feat-icon { background: var(--grad-blue); color: #fff; transform: scale(1.1) rotate(-5deg); }
.feat-card h5 { font-size: .98rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.feat-card p  { font-size: .84rem; color: var(--muted); line-height: 1.65; margin: 0; }

/* Core Values */
.core-box {
    background: var(--grad-blue);
    border-radius: 22px; padding: 45px;
    margin-top: 55px; color: #fff;
}
.core-box h3 { color: #fff; margin-bottom: 10px; font-size: 1.5rem; }
.core-box p.sub { color: rgba(255,255,255,.82); font-size: .92rem; margin-bottom: 30px; }
.val-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.val-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: rgba(255,255,255,.2); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.val-item h6 { color: #fff; font-weight: 700; margin-bottom: 3px; }
.val-item p  { color: rgba(255,255,255,.82); font-size: .84rem; margin: 0; }

@media (max-width: 767px) { .core-box { padding: 28px 20px; } }

/* ============================================================
   GALLERY SECTION
============================================================ */
#gallery { background: #fff; }

.gal-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
    height: 210px;
}
.gal-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.gal-item:hover img { transform: scale(1.1); }
.gal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,86,179,.68);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
    color: #fff; font-size: 1.8rem;
}
.gal-item:hover .gal-overlay { opacity: 1; }

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.92); z-index: 9998;
    align-items: center; justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-inner img { max-width: 90vw; max-height: 88vh; border-radius: 10px; object-fit: contain; }
.lb-close {
    position: absolute; top: -40px; right: 0;
    color: #fff; font-size: 1.8rem; cursor: pointer;
    background: none; border: none; line-height: 1;
}
.lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.15); border: none;
    color: #fff; font-size: 1.5rem;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .2s;
}
.lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-prev { left: -55px; }
.lb-next { right: -55px; }

@media (max-width: 767px) {
    .lb-prev { left: 5px; }
    .lb-next { right: 5px; }
    .lb-close { top: -36px; }
}

/* ============================================================
   CONTACT SECTION
============================================================ */
#contact { background: var(--light-bg); }

.contact-card {
    background: #fff; border-radius: 20px; padding: 38px;
    box-shadow: 0 8px 40px rgba(0,0,0,.08);
}
.ci-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 26px; }
.ci-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    background: var(--grad-blue); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem;
}
.ci-icon.green { background: var(--grad-green); }
.ci-icon.pink  { background: linear-gradient(135deg,#f093fb,#f5576c); }
.ci-item h6 { font-weight: 700; color: var(--dark); margin-bottom: 4px; font-size: .95rem; }
.ci-item p, .ci-item a { font-size: .88rem; color: var(--muted); margin: 0; text-decoration: none; }
.ci-item a:hover { color: var(--primary); }

.form-control, .form-select {
    border-radius: 10px; border: 1.5px solid var(--border);
    padding: 12px 16px; font-size: .9rem;
    transition: border-color .3s, box-shadow .3s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,86,179,.12);
}

.map-wrap { border-radius: 16px; overflow: hidden; box-shadow: 0 6px 22px rgba(0,0,0,.1);  }

@media (max-width: 767px) { .contact-card { padding: 24px; } }

/* ============================================================
   FOOTER
============================================================ */
footer { background: #0a1628; color: rgba(255,255,255,.78); }

.foot-bottom {
    background: rgba(0,0,0,.3);
    padding: 14px 0; text-align: center;
    font-size: .82rem; color: rgba(255,255,255,.45);
}

/* ============================================================
   FLOATING ELEMENTS
============================================================ */

/* Enquire Now – vertical right-side tab */
.enq-tab {
    position: fixed; right: 0; top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}
.enq-tab button {
    background: var(--grad-blue);
    color: #fff; border: none;
    padding: 14px 10px;
    border-radius: 12px 0 0 12px;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-weight: 700; font-size: .82rem;
    letter-spacing: 1.2px;
    cursor: pointer;
    box-shadow: -4px 0 16px rgba(0,86,179,.3);
    transition: padding .3s, background .3s;
    display: flex; align-items: center; gap: 8px;
}
.enq-tab button:hover {
    background: var(--grad-dark);
    padding-bottom: 18px;
    color: #fff;
}

/* Back to top */
.back-top {
    position: fixed; bottom: 82px; right: 22px;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--grad-blue); color: #fff;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; z-index: 999;
    opacity: 0; transition: opacity .3s, transform .3s;
    box-shadow: 0 5px 16px rgba(0,86,179,.3);
}
.back-top.show { opacity: 1; }
.back-top:hover { color: #fff; transform: translateY(-4px); }
@media (min-width: 992px) { .back-top { bottom: 28px; } }

/* Sticky mobile CTA */
.sticky-cta {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 -3px 18px rgba(0,0,0,.1);
    display: flex; gap: 10px; padding: 10px 14px;
    justify-content: center; z-index: 998;
}
.sticky-cta .btn { flex: 1; max-width: 200px; border-radius: 50px; font-weight: 700; font-size: .88rem; padding: 10px; }
@media (min-width: 992px) { .sticky-cta { display: none; } }

/* ============================================================
   POPUP MODAL
============================================================ */
.popup-wrap {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 9999;
    align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.popup-wrap.open { display: flex; }

.popup-box {
    background: #fff; border-radius: 22px;
    max-width: 510px; width: 94%;
    box-shadow: 0 24px 70px rgba(0,0,0,.32);
    animation: popIn .4s cubic-bezier(.175,.885,.32,1.275);
    max-height: 92vh; overflow-y: auto;
}
@keyframes popIn {
    from { opacity:0; transform: scale(.75) translateY(-40px); }
    to   { opacity:1; transform: scale(1) translateY(0); }
}
.popup-head {
    background: var(--grad-blue);
    padding: 28px 32px 22px;
    position: relative; border-radius: 22px 22px 0 0;
}
.popup-head h4 { color: #fff; font-size: 1.25rem; margin: 0; }
.popup-head p  { color: rgba(255,255,255,.85); font-size: .88rem; margin: 6px 0 0; }
.popup-close {
    position: absolute; top: 14px; right: 14px;
    background: rgba(255,255,255,.2); border: none; color: #fff;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1rem; transition: background .2s;
}
.popup-close:hover { background: rgba(255,255,255,.35); }
.popup-body { padding: 26px 32px 30px; }
.popup-body .form-control, .popup-body .form-select { margin-bottom: 13px; }
.popup-offer {
    background: #fff3cd; border: 1px solid #ffc107;
    border-radius: 10px; padding: 11px 14px;
    font-size: .83rem; display: flex; align-items: center; gap: 8px;
    margin-bottom: 18px;
}
@media (max-width: 480px) { .popup-body { padding: 20px; } }

/* ============================================================
   SUCCESS TOAST
============================================================ */
.toast-msg {
    position: fixed; top: 20px; right: 20px; z-index: 99999;
    background: var(--grad-green); color: #fff;
    padding: 15px 22px; border-radius: 12px;
    font-weight: 600; font-size: .92rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    display: flex; align-items: center; gap: 10px;
    animation: slideDown .4s ease;
    max-width: 320px;
}
@keyframes slideDown {
    from { opacity:0; transform: translateY(-20px); }
    to   { opacity:1; transform: translateY(0); }
}
