/* ================= SH Academy — professional school theme =================
   Inspired by classic Indian school websites (sonyacademy.org style):
   top info bar → header with contact cards → solid nav → hero slider →
   feature cards → introduction + CEO message → facilities → stats →
   testimonials → footer.
   Palette: deep navy (trust) + gold (prestige) + green (success)          */

/* Colors taken from the Scholars Hub Academy logo:
   navy (book/wordmark) + orange (phoenix/HUB) + gold ("THINK BEYOND BOOKS") */
:root {
  --sh-navy: #1b2d5c;
  --sh-navy-2: #24407e;
  --sh-navy-dark: #101d3d;
  --sh-gold: #f47b20;        /* logo orange — primary accent */
  --sh-gold-dark: #d96a10;
  --sh-royal: #bf9b30;       /* logo gold — underlines & fine accents */
  --sh-green: #1c7a42;
  --sh-orange: #f97316;
  --sh-red: #dc2626;
  --sh-grey: #f4f6fa;
  --sh-text: #24303f;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--sh-text);
  background: #fff;
}

h1, h2, h3, h4, h5 { font-weight: 700; color: var(--sh-navy); }

/* ---------- Section headings with gold underline ---------- */
.section-title { text-align: center; margin-bottom: 8px; }
.section-title + .title-bar { width: 84px; height: 4px; background: var(--sh-royal); margin: 0 auto 34px; border-radius: 2px; }

/* ---------- Top info bar ---------- */
.topbar {
  background: var(--sh-navy-dark); color: #cfd9ea; font-size: .82rem;
  padding: 6px 0;
}
.topbar a { color: var(--sh-gold); text-decoration: none; }
.topbar .sep { margin: 0 10px; opacity: .4; }

/* ---------- Header (logo + contact cards) ---------- */
.site-header { background: #fff; padding: 14px 0; border-bottom: 1px solid #e8ecf3; }
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo .logo-img { height: 74px; width: auto; }
.site-logo .logo-name { color: var(--sh-navy); font-weight: 800; font-size: 1.25rem; line-height: 1.1; }
.site-logo .logo-name .hub { color: var(--sh-gold); }
.site-logo .logo-sub { color: var(--sh-royal); font-size: .74rem; letter-spacing: 2.5px; font-weight: 600; text-transform: uppercase; }
.site-logo .logo-sub2 { color: #6b7688; font-size: .74rem; letter-spacing: .4px; }
.header-info { display: flex; align-items: center; gap: 10px; }
.header-info .hi-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sh-grey); color: var(--sh-navy);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.header-info .hi-label { font-size: .72rem; color: #6b7688; text-transform: uppercase; letter-spacing: .5px; }
.header-info .hi-value { font-size: .85rem; font-weight: 600; color: var(--sh-navy); }
.header-info .hi-value a { color: inherit; text-decoration: none; }

/* ---------- Main navigation ---------- */
.navbar-sh { background: var(--sh-navy); padding: 0; }
.navbar-sh .nav-link {
  color: #fff !important; font-weight: 500; font-size: .92rem;
  padding: 14px 16px !important; border-bottom: 3px solid transparent;
}
.navbar-sh .nav-link:hover, .navbar-sh .nav-link.active {
  background: var(--sh-navy-2); border-bottom-color: var(--sh-gold); color: var(--sh-gold) !important;
}
.navbar-sh .dropdown-menu { border-radius: 0 0 10px 10px; border: 0; box-shadow: 0 10px 24px rgba(7,28,61,.18); }
.navbar-sh .btn-login {
  background: var(--sh-gold); color: var(--sh-navy-dark); font-weight: 700;
  border-radius: 6px; padding: 7px 18px; border: 0;
}
.navbar-sh .btn-login:hover { background: var(--sh-gold-dark); }

/* ---------- Hero slider ---------- */
.hero-slider .carousel-item { position: relative; }
.hero-slider .slide-bg { width: 100%; height: 520px; object-fit: cover; }
@media (max-width: 767px) { .hero-slider .slide-bg { height: 420px; } }
.hero-slider .slide-caption {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(7,28,61,.72) 0%, rgba(7,28,61,.35) 55%, transparent 100%);
}
.hero-slider .slide-caption h2 {
  color: #fff; font-size: 2.4rem; font-weight: 800; max-width: 640px;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
@media (max-width: 767px) { .hero-slider .slide-caption h2 { font-size: 1.5rem; } }
.hero-slider .slide-caption p { color: #e8edf6; max-width: 560px; font-size: 1.05rem; }
.hero-slider .carousel-indicators [data-bs-target] { background-color: var(--sh-gold); }

/* Certification badge row inside the USP slide */
.cert-badge-row { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.cert-badge-card {
  background: #fff; border-radius: 12px; padding: 10px 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.30);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 4px solid var(--sh-gold);
}
.cert-badge-card img { height: 58px; width: auto; max-width: 170px; object-fit: contain; }
@media (max-width: 767px) { .cert-badge-card img { height: 40px; } .cert-badge-row { gap: 8px; } }

/* Footer badge logos */
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.footer-badges .fb-card { background: #fff; border-radius: 8px; padding: 6px 10px; }
.footer-badges img { height: 34px; width: auto; object-fit: contain; }

/* ---------- Feature cards (Academic / Achievements / Admission) ---------- */
.feature-strip { margin-top: -60px; position: relative; z-index: 5; }
@media (max-width: 991px) { .feature-strip { margin-top: 16px; } }
.feature-card {
  background: var(--sh-navy); color: #dbe4f3; border-radius: 10px;
  padding: 26px 22px; height: 100%;
  border-top: 4px solid var(--sh-gold);
  box-shadow: 0 14px 30px rgba(7,28,61,.25);
  transition: transform .2s ease;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-card h5 { color: #fff; }
.feature-card.alt { background: var(--sh-gold); color: #4a3800; border-top-color: var(--sh-navy); }
.feature-card.alt h5 { color: var(--sh-navy-dark); }
.feature-card .fc-icon { font-size: 2rem; margin-bottom: 8px; }

/* ---------- CEO / introduction ---------- */
.ceo-photo-frame {
  border: 6px solid #fff; border-radius: 14px;
  box-shadow: 0 16px 36px rgba(7,28,61,.22);
  overflow: hidden; max-width: 340px; margin: auto;
  position: relative;
}
.ceo-photo-frame img { width: 100%; display: block; }
.ceo-name-plate {
  background: var(--sh-navy); color: #fff; text-align: center; padding: 12px 8px;
}
.ceo-name-plate .cn-name { font-weight: 800; font-size: 1.05rem; letter-spacing: .5px; }
.ceo-name-plate .cn-title { color: var(--sh-royal); font-size: .8rem; text-transform: uppercase; letter-spacing: 1.2px; }
.ceo-message { background: var(--sh-grey); border-left: 4px solid var(--sh-gold); border-radius: 0 12px 12px 0; padding: 22px 26px; }

/* ---------- Facilities / why choose ---------- */
.facility-card {
  background: #fff; border: 1px solid #e8ecf3; border-radius: 12px;
  padding: 26px 20px; height: 100%; text-align: center;
  transition: box-shadow .2s ease, transform .2s ease;
}
.facility-card:hover { box-shadow: 0 12px 28px rgba(7,28,61,.12); transform: translateY(-4px); }
.facility-card .f-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(18,61,130,.08); color: var(--sh-navy);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem;
  margin-bottom: 14px;
}

/* ---------- Stats counters ---------- */
.stats-band { background: linear-gradient(120deg, var(--sh-navy-dark), var(--sh-navy-2)); color: #fff; }
.stat-box { text-align: center; padding: 34px 10px; }
.stat-box .st-num { font-size: 2.6rem; font-weight: 800; color: var(--sh-gold); }
.stat-box .st-label { font-size: .9rem; letter-spacing: 1px; text-transform: uppercase; color: #cfd9ea; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff; border-radius: 12px; border: 1px solid #e8ecf3;
  padding: 26px; height: 100%; position: relative;
}
.testimonial-card::before {
  content: "\201C"; position: absolute; top: 4px; left: 16px;
  font-size: 4rem; color: var(--sh-gold); font-family: Georgia, serif; line-height: 1;
}
.testimonial-card p { margin: 20px 0 10px; font-size: .93rem; }
.testimonial-card .t-author { font-weight: 700; color: var(--sh-navy); font-size: .88rem; }

/* ---------- Notices ticker ---------- */
.notice-strip { background: var(--sh-gold); color: var(--sh-navy-dark); font-weight: 600; padding: 8px 0; }
.notice-strip .badge-latest { background: var(--sh-navy); color: #fff; border-radius: 4px; padding: 4px 10px; margin-right: 14px; }
.ticker-viewport { overflow: hidden; white-space: nowrap; flex: 1; }
.ticker-track { display: inline-block; padding-left: 100%; animation: ticker 22s linear infinite; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; padding-left: 0; } }

/* ---------- Generic cards / buttons (shared with portal) ---------- */
.card-sh { border: 0; border-radius: 12px; box-shadow: 0 4px 16px rgba(7,28,61,.10); }
.card-sh .card-header { border-radius: 12px 12px 0 0; background: var(--sh-navy); color: #fff; font-weight: 600; }
.btn-sh-primary { background: var(--sh-navy); color: #fff; border-radius: 8px; font-weight: 600; }
.btn-sh-primary:hover { background: var(--sh-navy-2); color: var(--sh-gold); }
.btn-sh-yellow { background: var(--sh-gold); color: var(--sh-navy-dark); font-weight: 700; border-radius: 8px; }
.btn-sh-yellow:hover { background: var(--sh-gold-dark); color: var(--sh-navy-dark); }

.badge-status-completed, .badge-status-checked { background: var(--sh-green); }
.badge-status-inprogress { background: var(--sh-orange); }
.badge-status-pending { background: var(--sh-red); }

.icon-circle {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; background: rgba(18,61,130,.08);
}
.journey-step {
  background: #fff; color: var(--sh-text); border-radius: 12px;
  border: 1px solid #e8ecf3; box-shadow: 0 6px 18px rgba(7,28,61,.08);
  padding: 18px; text-align: center; height: 100%;
}
.journey-step .emoji { font-size: 2rem; }

.race-bar { height: 14px; border-radius: 7px; background: #e5e7eb; overflow: hidden; }
.race-bar > div { height: 100%; background: linear-gradient(90deg, var(--sh-green), #4ade80); }
.sh-score {
  width: 110px; height: 110px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700; color: #fff; margin: auto;
}

/* ---------- Footer ---------- */
footer.footer-sh { background: var(--sh-navy-dark); color: #b9c5d8; margin-top: 56px; }
footer.footer-sh h6, footer.footer-sh h5 { color: #fff; }
footer.footer-sh a { color: var(--sh-gold); text-decoration: none; }
.cert-badge {
  background: #fff; color: var(--sh-navy-dark); border-radius: 8px;
  padding: 4px 10px; font-size: .78rem; font-weight: 600; display: inline-block; margin: 2px;
}

/* ---------- Sticky mobile bottom bar ---------- */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
  display: flex; background: var(--sh-navy-dark);
  box-shadow: 0 -3px 10px rgba(0,0,0,.25);
}
.mobile-bar a {
  flex: 1; text-align: center; color: #fff; padding: 10px 0;
  font-weight: 600; text-decoration: none; font-size: .9rem;
}
.mobile-bar a + a { border-left: 1px solid rgba(255,255,255,.15); }
@media (min-width: 768px) { .mobile-bar { display: none; } }
@media (max-width: 767px) { body { padding-bottom: 52px; } }

/* ---------- Portal ---------- */
.portal-stat { border-radius: 12px; color: #fff; padding: 20px; }
.portal-stat h3 { font-size: 2rem; margin: 0; color: #fff; }
.bg-sh-blue { background: var(--sh-navy); }
.bg-sh-green { background: var(--sh-green); }
.bg-sh-orange { background: var(--sh-orange); }
.bg-sh-red { background: var(--sh-red); }

.cam-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.cam-online { background: var(--sh-green); }
.cam-offline { background: var(--sh-red); }
.cam-maintenance { background: var(--sh-orange); }
