/* =========================================================
   NEET ACADEMY — Design System
   Brand: Deep navy/royal blue + Medical red + White + Light blue-grey
   ========================================================= */

:root {
  --navy: #14294f;
  --navy-dark: #0b1a34;
  --navy-light: #1f3d73;
  --blue: #2a5298;
  --blue-light: #4f7cc4;
  --red: #d62828;
  --red-dark: #a51c1c;
  --red-light: #ff5b5b;
  --white: #ffffff;
  --bg-light: #f4f7fb;
  --bg-soft: #eef2f9;
  --bg-navy-soft: #eef1f8;
  --text-dark: #16213a;
  --text-body: #444d61;
  --text-muted: #6b7386;
  --border-color: #e3e8f2;

  --shadow-sm: 0 2px 10px rgba(20, 41, 79, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 41, 79, 0.10);
  --shadow-lg: 0 25px 55px rgba(20, 41, 79, 0.16);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 50px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-height: 84px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 12px);
  /* overflow-x lives on <html>, not <body> — setting it on body forces
     body's overflow-y to compute as non-visible too (per the CSS overflow
     spec), which makes position:sticky descendants (the navbar) stick
     relative to the wrong scroll container instead of the viewport. */
  overflow-x: hidden;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text-body);
  background-color: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img { max-width: 100%; display: block; }

::selection { background: var(--red); color: var(--white); }

.container {
  width: 100%;
}

@media (min-width: 1400px) {
  .container { max-width: 1240px; }
}

section { position: relative; }

.text-accent-red { color: var(--red); }
.text-accent-navy { color: var(--navy); }
.bg-light-section { background: var(--bg-light); }
.bg-soft-section { background: var(--bg-soft); }

/* =========================================================
   BUTTONS
   ========================================================= */

.btn-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  border: none;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(20, 41, 79, 0.25);
  transition: var(--transition);
}
.btn-navy:hover {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(20, 41, 79, 0.32);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-red-pill {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 8px 20px rgba(214, 40, 40, 0.28);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-red-pill:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(214, 40, 40, 0.36);
}

.btn-sm-pill {
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.4rem;
  white-space: nowrap;
}

.btn-block-mobile { width: 100%; justify-content: center; }

/* =========================================================
   TOP BAR
   ========================================================= */

.top-bar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  padding: 0.6rem 0;
  position: relative;
  overflow: hidden;
}
/* Never sticky — removed from flow the instant scrolling starts so it
   can't linger partially visible above the sticky navbar. See main.js. */
.nav-scrolled .top-bar { display: none; }
.top-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 50%, rgb(12 28 56) 0%, transparent 55%);
    pointer-events: none;
}
.top-bar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}
.top-bar-item { display: flex; align-items: center; gap: 0.6rem; }
.top-bar-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.top-bar-highlight span:last-child { font-weight: 700; letter-spacing: 0.3px; }
.top-bar-highlight .top-bar-icon {
  background: var(--red);
  color: var(--white);
  animation: topbar-pulse 2.5s ease-in-out infinite;
}
.top-bar-phone {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: var(--transition);
}
.top-bar-phone:hover { color: var(--red-light); }

@keyframes topbar-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(214, 40, 40, 0); }
}

@media (max-width: 767.98px) {
  .top-bar-inner { justify-content: center; text-align: center; }
  .top-bar-item { font-size: 0.78rem; }
}

/* =========================================================
   NAVBAR
   ========================================================= */

.site-navbar {
  position: sticky;
  top: 0;
  background: var(--white);
  padding: 0.7rem 0;
  box-shadow: 0 2px 12px rgba(20, 41, 79, 0.06);
  min-height: var(--navbar-height);
  z-index: 1050;
}

.site-navbar.scrolled {
  box-shadow: 0 8px 28px rgba(20, 41, 79, 0.14);
  padding: 0.45rem 0;
}

/* Specificity must match/beat Bootstrap's ".navbar > .container" (which
   sets flex-wrap: inherit, pulling in .navbar's default "wrap" below the
   lg breakpoint) — otherwise the toggler wraps onto its own line on mobile. */
.site-navbar .navbar-container { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; }

.brand-logo {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 12px;
}
.site-navbar.scrolled .brand-logo { height: 44px; width: 44px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: 0.3px;
}
.brand-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

@media (max-width: 380px) {
  .brand-logo { height: 40px; width: 40px; }
  .brand-name { font-size: 1.05rem; }
  .navbar-brand { gap: 0.5rem !important; }
}

.main-nav { gap: 0.2rem; }
.main-nav .nav-link {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.6rem 1rem !important;
  position: relative;
  border-radius: 8px;
}
.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.main-nav .nav-link:hover { color: var(--blue); }
.main-nav .nav-link:hover::after { transform: scaleX(1); }
.main-nav .nav-link.active { color: var(--navy); }
.main-nav .nav-link.active::after { transform: scaleX(1); background: var(--red); left: 1rem; right: 1rem; }

.nav-cta-group { margin-left: 1rem; }

/* ---- Login button (shown before login) ---- */
.nav-login-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.4rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--navy) 0%, #1e63c6 100%);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(30, 99, 198, 0.3);
  transition: var(--transition);
}

.nav-login-btn i { font-size: 1.05rem; }

/* arrow slides in on hover */
.nav-login-arrow {
  max-width: 0;
  opacity: 0;
  margin-left: -0.5rem;
  transition: var(--transition);
}

/* light sweep across the button on hover */
.nav-login-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.nav-login-btn:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(30, 99, 198, 0.4);
}

.nav-login-btn:hover::after { left: 130%; }

.nav-login-btn:hover .nav-login-arrow {
  max-width: 1.2rem;
  opacity: 1;
  margin-left: 0;
}

.nav-login-btn:focus-visible {
  outline: 3px solid rgba(30, 99, 198, 0.35);
  outline-offset: 2px;
}

/* ---- Account menu (shown after login) ---- */
.nav-icon-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-navy-soft);
  color: var(--navy);
  font-size: 1.1rem;
  transition: var(--transition);
}
.nav-icon-btn:hover { background: var(--navy); color: var(--white); }
.nav-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  border: 2px solid var(--navy-dark);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 18px rgba(20, 41, 79, 0.22);
  white-space: nowrap;
}
.nav-account-btn i { font-size: 1.1rem; }
.nav-account-btn:hover, .nav-account-btn[aria-expanded="true"] { color: var(--white); box-shadow: 0 10px 22px rgba(20, 41, 79, 0.32); }
.nav-account-menu {
  min-width: 250px;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-top: 0.6rem !important;
}
.nav-account-head { padding: 0.5rem 0.8rem 0.7rem; border-bottom: 1px solid var(--border-color); margin-bottom: 0.35rem; }
.nav-account-head strong { display: block; color: var(--text-dark); font-size: 0.92rem; }
.nav-account-head span { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.nav-account-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.nav-account-menu .dropdown-item i { color: var(--blue); font-size: 1.05rem; width: 1.2rem; text-align: center; }
.nav-account-menu .dropdown-item:hover, .nav-account-menu .dropdown-item:focus { background: var(--bg-navy-soft); color: var(--navy); }
.nav-account-menu .nav-account-logout, .nav-account-menu .nav-account-logout i { color: var(--red); }
.nav-account-menu .nav-account-logout:hover { background: rgba(214, 40, 40, 0.08); color: var(--red); }

@media (max-width: 1199.98px) {
  :root { --navbar-height: 76px; }
  /* The container is nowrap (see above), so drop the menu out of the flex
     row and show it as a full-width panel under the navbar instead. */
  .site-navbar .navbar-collapse {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 12px;
    right: 12px;
    background: var(--white);
    padding: 1rem 1.2rem 1.2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    max-height: calc(100vh - var(--navbar-height) - 2rem);
    overflow-y: auto;
  }
  .main-nav .nav-link { display: block; }
  .main-nav .nav-link::after { bottom: 0.35rem; right: auto; width: 32px; }
  .main-nav .nav-link.active { background: var(--bg-light); }
  .main-nav .nav-link.active::after { right: auto; width: 32px; left: 0.9rem; }
  .navbar-toggler { border: 1px solid var(--border-color); padding: 0.4rem 0.55rem; }
  .navbar-toggler:focus { box-shadow: none; }
  .main-nav { gap: 0.15rem; }
  .main-nav .nav-link { padding: 0.7rem 0.9rem !important; }
  .nav-cta-group { margin-left: 0; margin-top: 1rem; flex-direction: column; align-items: stretch !important; }
  .nav-cta-group:has(.nav-account) { flex-direction: row; align-items: center !important; }
  .nav-account { flex: 1; }
  .nav-account-btn { width: 100%; justify-content: center; }
  .nav-account-menu { width: 100%; position: static !important; transform: none !important; box-shadow: none; }
  .nav-cta-group .btn-outline-navy,
  .nav-cta-group .btn-red-pill { justify-content: center; width: 100%; }
  .brand-tagline { display: none; }
}

/* =========================================================
   SECTION HEADERS (shared)
   ========================================================= */

.section-pad { padding: 5.5rem 0; }
@media (max-width: 767.98px) { .section-pad { padding: 3.5rem 0; } }

.section-header { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-navy-soft);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.1rem;
}
.section-badge.badge-red { background: rgba(214, 40, 40, 0.08); color: var(--red); }
.section-title { font-size: 2.3rem; margin-bottom: 0.9rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 0; }
@media (max-width: 767.98px) { .section-title { font-size: 1.7rem; } }

/* =========================================================
   HERO — full-width brand banner with functional hotspots
   ========================================================= */

.hero-banner-section {
  background: var(--bg-light);
  padding: 0;
}

.hero-banner-frame {
  position: relative;
  width: 100%;
  line-height: 0;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Banner slider (images from the get_banners API) ---- */
.hero-carousel { line-height: 0; }
.hero-carousel .carousel-item { transition: transform 0.8s ease-in-out; }

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 8%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next { opacity: 1; }

.hero-carousel-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 1.3rem;
  box-shadow: 0 8px 20px rgba(20, 41, 79, 0.25);
}

.hero-carousel .carousel-indicators { margin-bottom: 0.8rem; gap: 6px; }

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 1;
  margin: 0;
  transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators .active {
  width: 28px;
  border-radius: 10px;
  background-color: var(--red);
}

@media (max-width: 767.98px) {
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next { opacity: 1; width: 12%; }
  .hero-carousel-arrow { width: 34px; height: 34px; font-size: 1rem; }
  .hero-carousel .carousel-indicators { margin-bottom: 0.3rem; }
  .hero-carousel .carousel-indicators [data-bs-target] { width: 8px; height: 8px; }
  .hero-carousel .carousel-indicators .active { width: 20px; }
}

.hero-hotspot {
  position: absolute;
  border-radius: var(--radius-pill);
  outline-offset: 3px;
}
.hero-hotspot:focus-visible { outline: 3px solid var(--red-light); }

.hero-hotspot-courses { left: 4%; top: 71%; width: 17%; height: 10%; }
.hero-hotspot-counsellor { left: 21.5%; top: 71%; width: 18%; height: 10%; }

/* =========================================================
   LOGO MARQUEE (Top ranking colleges / partners)
   ========================================================= */

.marquee-wrap {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-track.reverse { animation-direction: reverse; }

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.college-card {
  flex: 0 0 auto;
  width: 220px;
  /* background: var(--white); */
  /* border: 1px solid var(--border-color); */
  border-radius: var(--radius-md);
  padding: 1.5rem 1.2rem;
  text-align: center;
  /* box-shadow: var(--shadow-sm); */
  transition: var(--transition);
  position: relative;
}
/* .college-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; } */

.college-logo-badge {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-navy-soft);
  border: 1px solid var(--border-color);
}
.college-card h4 { font-size: 0.98rem; margin-bottom: 0.3rem; }
.college-card .college-location { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 0.3rem; }
.college-rank-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(214,40,40,0.08);
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

/* ---- Home: "Top Ranking Medical Colleges" section (logo colours) ---- */
#top-colleges {
  --logo-blue: #1e63c6;
  --logo-blue-light: #3b8ced;
  --logo-navy: #17346a;
  --logo-red: #e3342f;
  position: relative;
  overflow: hidden;
  background: var(--bg-light);  /* plain, same as before */
}

#top-colleges > * { position: relative; }

#top-colleges .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--logo-navy);
  border: 1px solid rgba(30, 99, 198, 0.15);
  box-shadow: 0 6px 16px rgba(30, 99, 198, 0.08);
}

#top-colleges .section-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--logo-red);
  box-shadow: 0 0 0 4px rgba(227, 52, 47, 0.18);
}

#top-colleges .section-title { color: var(--logo-navy); }

.title-gradient {
  background: linear-gradient(90deg, var(--logo-blue, #1e63c6) 0%, var(--logo-red, #e3342f) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#top-colleges .marquee-wrap { padding: 0.8rem 0 1.6rem; }

/* Plain items (no box) — the row keeps scrolling even on hover */
#top-colleges .college-card {
  width: 230px;
  padding: 1.2rem 1rem;
}

/* keep the original round "cover" logos (rectangular images fill the circle) */
#top-colleges .college-logo-badge {
  transition: var(--transition);
}

#top-colleges .college-card:hover .college-logo-badge { transform: scale(1.08); }

#top-colleges .college-card h4 {
  color: var(--logo-navy);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

#top-colleges .college-card .college-location i { color: var(--logo-red); }

@media (max-width: 575.98px) {
  #top-colleges .college-card { width: 190px; padding: 1rem 0.8rem; }
}

/* =========================================================
   COURSES
   ========================================================= */

.course-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  height: 100%;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.course-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.course-card:hover::before { transform: scaleX(1); }

.course-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background: var(--bg-navy-soft);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 1.4rem;
  transition: var(--transition);
}
.course-card:hover .course-icon { background: var(--navy); color: var(--white); }
.course-icon .course-thumb { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.course-icon:has(.course-thumb) { overflow: hidden; padding: 0; }

/* Price line on API plan cards */
.course-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.2rem 0 1rem;
}
.course-price strong { font-family: "Poppins", sans-serif; font-size: 1.35rem; color: var(--navy); }
.course-price s { color: var(--text-muted); font-size: 0.9rem; }
.course-price span { color: var(--text-muted); font-size: 0.82rem; font-weight: 600; }

/* ---- Home: API plan cards ---- */
.plan-card {
  --pc-blue: #1e63c6;
  --pc-navy: #17346a;
  --pc-red: #e3342f;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(23, 52, 106, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* blue → red strip that grows on hover */
.plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  z-index: 3;
  background: linear-gradient(90deg, var(--pc-blue), var(--pc-red));
  transition: width 0.45s ease;
}

.plan-card:hover {
  transform: translateY(-8px);
  border-color: rgba(30, 99, 198, 0.25);
  box-shadow: 0 22px 44px rgba(23, 52, 106, 0.16);
}

.plan-card:hover::before { width: 100%; }

/* Image header */
.plan-card-media {
  position: relative;
  display: block;
  height: 170px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--pc-navy) 0%, var(--pc-blue) 60%, #3b8ced 100%);
}

.plan-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.plan-card:hover .plan-card-media img { transform: scale(1.07); }

/* soft navy shade so the badges stay readable on any image */
.plan-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 52, 106, 0.1) 30%, rgba(23, 52, 106, 0.65) 100%);
}

.plan-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  color: rgba(255, 255, 255, 0.9);
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 16px 16px;
}

.plan-card-type,
.plan-card-days {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.75rem;
}

.plan-card-type {
  top: 14px;
  left: 14px;
  background: var(--white);
  color: var(--pc-navy);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.plan-card-type i { color: var(--pc-red); }

.plan-card-days {
  bottom: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}

/* Body */
.plan-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.3rem 1.4rem 1.4rem;
}

.plan-card-meta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--pc-red);
  margin-bottom: 0.35rem;
  min-height: 1rem;
}

.plan-card-body h3 {
  font-size: 1.3rem;
  color: var(--pc-navy);
  margin-bottom: 0.9rem;
}

.plan-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.plan-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.3rem 0;
  font-size: 0.92rem;
  color: var(--text-body);
}

.plan-card-list i {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--pc-navy), var(--pc-blue));
  margin-top: 1px;
}

.plan-card-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.plan-card-counts span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pc-blue);
  background: rgba(30, 99, 198, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

/* Footer: price + buttons */
.plan-card-footer { margin-top: auto; }

.plan-card-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(30, 99, 198, 0.07), rgba(227, 52, 47, 0.06));
  border: 1px dashed rgba(30, 99, 198, 0.25);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1rem;
}

.plan-card-price small {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-card-price > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.plan-card-price strong {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  color: var(--pc-navy);
  line-height: 1;
}

.plan-card-price s {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.plan-card-off {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  background: var(--pc-red);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

.plan-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.plan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
}

.plan-btn-outline {
  background: var(--white);
  color: var(--pc-blue);
  border: 1.5px solid var(--pc-blue);
}

.plan-btn-outline:hover {
  background: var(--pc-blue);
  color: var(--white);
}

.plan-btn-red {
  border: none;
  color: var(--white);
  background: linear-gradient(135deg, var(--pc-red) 0%, #c4231f 100%);
  box-shadow: 0 8px 18px rgba(227, 52, 47, 0.28);
}

.plan-btn-red:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(227, 52, 47, 0.38);
}

.plan-btn-red i { transition: transform 0.25s ease; }
.plan-btn-red:hover i { transform: translateX(3px); }

@media (max-width: 575.98px) {
  .plan-card-media { height: 150px; }
  .plan-card-body { padding: 1.1rem 1.1rem 1.2rem; }
}

/* ---- Courses page (active_courses API) ---- */
.course-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}

.course-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1.5px solid var(--border-color);
  color: var(--navy);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.course-filter-btn span {
  background: var(--bg-navy-soft);
  border-radius: var(--radius-pill);
  padding: 0.05rem 0.5rem;
  font-size: 0.75rem;
}

.course-filter-btn:hover { border-color: #1e63c6; color: #1e63c6; }

.course-filter-btn.active {
  background: linear-gradient(135deg, var(--navy) 0%, #1e63c6 100%);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 8px 18px rgba(30, 99, 198, 0.25);
}

.course-filter-btn.active span { background: rgba(255, 255, 255, 0.2); }

.course-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.course-plans { margin-bottom: 1.2rem; }

.course-plans-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.course-plans-label i { color: #e3342f; }

.course-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: var(--bg-light);
  border: 1px solid transparent;
  margin-bottom: 0.45rem;
  transition: var(--transition);
}

.course-plan-row:hover {
  background: var(--white);
  border-color: rgba(30, 99, 198, 0.3);
}

.course-plan-row strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
}

.course-plan-row small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.course-plan-price {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: #1e63c6;
  white-space: nowrap;
}

.courses-empty {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-sm);
}

.courses-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #1e63c6;
  background: rgba(30, 99, 198, 0.1);
}

.courses-empty p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ---- Plan detail: Course Syllabus button + pop-up ---- */
.syl-cta {
  background: linear-gradient(135deg, rgba(30, 99, 198, 0.08), rgba(227, 52, 47, 0.06));
  border: 1px dashed rgba(30, 99, 198, 0.3);
}

.syl-cta .cd-feature-head { align-items: center; }
.syl-cta p { margin: 0; }

.syl-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  white-space: nowrap;
  background: linear-gradient(135deg, var(--navy) 0%, #1e63c6 100%);
  box-shadow: 0 8px 18px rgba(30, 99, 198, 0.28);
  transition: var(--transition);
}

.syl-open-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(30, 99, 198, 0.36); }

.syl-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.8rem;
  background: none;
  border: 1.5px solid rgba(30, 99, 198, 0.35);
  border-radius: var(--radius-pill);
  padding: 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e63c6;
  transition: var(--transition);
}

.syl-link-btn:hover { background: rgba(30, 99, 198, 0.08); }

/* Pop-up */
.syl-modal .modal-content { border: none; border-radius: 22px; overflow: hidden; }

.syl-modal-head {
  position: relative;
  padding: 22px 26px;
  color: var(--white);
  background:
    radial-gradient(circle at 92% 120%, rgba(227, 52, 47, 0.5) 0, transparent 40%),
    linear-gradient(115deg, #17346a 0%, #1e63c6 60%, #3b8ced 100%);
}

.syl-modal-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e63c6, #e3342f);
}

.syl-modal-head .btn-close { position: absolute; top: 20px; right: 22px; }

.syl-modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.syl-modal-head h2 { color: var(--white); font-size: 1.4rem; margin: 0.3rem 0 0.2rem; }
.syl-modal-head p { color: rgba(255, 255, 255, 0.8); margin: 0; font-size: 0.88rem; }

.syl-modal .modal-body { background: var(--bg-light); padding: 22px 24px; }

.syl-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 2.5rem 0;
  color: var(--text-muted);
  font-weight: 600;
}

.syl-loading .spinner-border { color: #1e63c6; }

.syl-state { text-align: center; padding: 2rem 1rem; }
.syl-state h4 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.syl-state p { color: var(--text-muted); margin: 0; }

.syl-state-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: #1e63c6;
  background: rgba(30, 99, 198, 0.1);
}

/* Totals */
.syl-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.syl-stats > div {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.8rem;
  text-align: center;
  border-top: 3px solid #1e63c6;
}

.syl-stats > div:nth-child(2) { border-top-color: #e3342f; }
.syl-stats > div:nth-child(3) { border-top-color: #17346a; }

.syl-stats strong { display: block; font-family: "Poppins", sans-serif; font-size: 1.5rem; color: #17346a; line-height: 1.1; }
.syl-stats span { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Subjects accordion */
.syl-accordion .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 16px !important;
  overflow: hidden;
  margin-bottom: 0.8rem;
  background: var(--white);
}

.syl-accordion .accordion-button {
  gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  box-shadow: none;
}

.syl-accordion .accordion-button:not(.collapsed) {
  background: rgba(30, 99, 198, 0.06);
  color: inherit;
}

.syl-accordion .accordion-button:focus { box-shadow: none; }

.syl-subject-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, #17346a, #1e63c6);
}

.syl-subject-text strong { display: block; color: #17346a; font-size: 1rem; }
.syl-subject-text small { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }

.syl-accordion .accordion-body { padding: 1rem 1.1rem 1.1rem; }
.syl-subject-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.9rem; }

/* Chapters + topics */
.syl-chapter {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.7rem;
}

.syl-chapter:last-child { margin-bottom: 0; }

.syl-chapter-head { display: flex; align-items: flex-start; gap: 0.75rem; }
.syl-chapter-head > div { flex: 1; min-width: 0; }
.syl-chapter-head strong { display: block; color: var(--text-dark); font-size: 0.95rem; }
.syl-chapter-head small { color: var(--text-muted); font-size: 0.82rem; }

.syl-chapter-num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e3342f;
  background: rgba(227, 52, 47, 0.1);
}

.syl-chapter-count {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1e63c6;
  background: rgba(30, 99, 198, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.syl-topics {
  list-style: none;
  padding: 0.7rem 0 0 2.4rem;
  margin: 0;
}

.syl-topics li {
  display: flex;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.9rem;
}

.syl-topics i { color: #1a9a6c; margin-top: 2px; }
.syl-topics span { color: var(--text-dark); font-weight: 600; }
.syl-topics small { display: block; color: var(--text-muted); font-size: 0.8rem; }

@media (max-width: 575.98px) {
  .syl-cta .cd-feature-head { flex-direction: column; align-items: flex-start; }
  .syl-topics { padding-left: 0.4rem; }
}

/* ---- Plan detail page (API subscription plans) ---- */
.plan-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
.plan-stat {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem 0.8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.plan-stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e63c6, #e3342f);
}
.plan-stat i { color: #1e63c6; font-size: 1.3rem; }
.plan-stat strong { display: block; font-family: "Poppins", sans-serif; font-size: 1.4rem; color: var(--navy); line-height: 1.2; margin-top: 0.2rem; }
.plan-stat span { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.plan-two-col { columns: 2; column-gap: 1.5rem; }
.plan-thumb { width: 100%; height: 180px; object-fit: cover; display: block; }
.plan-chip-light { background: var(--bg-navy-soft); color: var(--navy); }
@media (max-width: 575.98px) {
  .plan-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-two-col { columns: 1; }
}

.course-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.course-card .course-meta { font-size: 0.85rem; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 0.7rem; }
.course-card ul { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.course-card ul li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.92rem; color: var(--text-body); margin-bottom: 0.55rem; }
.course-card ul li i { color: var(--blue); margin-top: 0.2rem; }

.course-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.3rem;
  flex-wrap: wrap;
}

.course-join-btn {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(20, 41, 79, 0.22);
  transition: var(--transition);
}
.course-join-btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20, 41, 79, 0.3); }

.course-view-link {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(20, 41, 79, 0.22);
  transition: var(--transition);
}
.course-view-link:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20, 41, 79, 0.3); }

/* =========================================================
   COURSE FEES / PRICING TABLE
   ========================================================= */

.pricing-table-wrap {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.pricing-table { width: 100%; border-collapse: collapse; }

.pricing-table thead th {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  padding: 1.1rem 1.6rem;
}
.pricing-table thead th:last-child { text-align: right; }

.pricing-table tbody tr { border-bottom: 1px solid var(--border-color); transition: var(--transition); }
.pricing-table tbody tr:last-child { border-bottom: none; }
.pricing-table tbody tr:hover { background: var(--bg-light); }

.pricing-table tbody td {
  padding: 1.1rem 1.6rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.96rem;
}
.pricing-table tbody td i { color: var(--blue); margin-right: 0.6rem; font-size: 1.05rem; }
.pricing-table tbody td:last-child { text-align: right; white-space: nowrap; }

.price-amount { color: var(--red); font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.05rem; }
.price-unit { color: var(--text-muted); font-weight: 500; font-size: 0.82rem; margin-left: 0.2rem; }

@media (max-width: 575.98px) {
  .pricing-table thead th,
  .pricing-table tbody td { padding: 0.85rem 1rem; font-size: 0.88rem; }
}

/* =========================================================
   PARTNERS / CBT PARTNERS
   ========================================================= */

.partner-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.6rem 1rem;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.partner-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.partner-logo-badge {
  width: 56px; height: 56px;
  margin: 0 auto 0.9rem;
  border-radius: 14px;
  background: var(--bg-navy-soft);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
}
.partner-card h5 { font-size: 0.92rem; margin: 0; }

/* Our Partners (home): navy card, logo on a white square, name below */
.pt-grid { max-width: 1120px; margin-left: auto; margin-right: auto; }
.pt-card {
  height: 100%;
  padding: 1.1rem 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, #2a3f96 0%, #23358a 100%);
  box-shadow: 0 10px 26px rgba(35, 53, 138, 0.22);
  text-align: center;
  transition: var(--transition);
}
.pt-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(35, 53, 138, 0.32); }
.pt-logo {
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0.6rem;
  border-radius: 6px;
  background: var(--white);
  overflow: hidden;
}
.pt-logo img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.pt-card:hover .pt-logo img { transform: scale(1.05); }
.pt-card h5 { margin: 1rem 0 0; font-size: 1.05rem; color: var(--white); }
@media (max-width: 575.98px) {
  .pt-card { padding: 0.7rem 0.7rem 0.85rem; }
  .pt-card h5 { font-size: 0.88rem; margin-top: 0.7rem; }
}

.cbt-section { background: var(--navy); position: relative; overflow: hidden; }
.cbt-section::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 60%);
}
.cbt-section .section-badge { background: rgba(255,255,255,0.1); color: var(--white); }
.cbt-section .section-title { color: var(--white); }
.cbt-section .section-subtitle { color: rgba(255,255,255,0.7); }
.cbt-section .cbt-lead { color: rgba(255,255,255,0.75); max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }

.cbt-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  height: 100%;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}
.cbt-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-6px); }
.cbt-card .partner-logo-badge { background: rgba(255,255,255,0.12); color: var(--white); }
.cbt-card h5 { color: var(--white); font-size: 1rem; margin-bottom: 0.4rem; }
.cbt-card p { color: rgba(255,255,255,0.65); font-size: 0.88rem; margin-bottom: 0; }

/* =========================================================
   ABOUT / TRUST SPLIT + STATS
   ========================================================= */

.about-split-img { position: relative; }
.about-split-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.about-experience-badge {
  position: absolute;
  bottom: -24px; right: -24px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.about-experience-badge .num { font-family: "Poppins", sans-serif; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.about-experience-badge .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; }
@media (max-width: 767.98px) {
  .about-experience-badge { right: 12px; bottom: -18px; padding: 0.9rem 1.2rem; }
  .about-split-img img { height: 320px; }
}

.benefit-list { list-style: none; padding: 0; margin: 1.8rem 0 2.5rem; }
.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}
.benefit-list li .check-circle {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(42,82,152,0.1);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.stats-row { border-top: 1px solid var(--border-color); padding-top: 2rem; }
.stat-item { text-align: left; }
.stat-number {
  font-family: "Poppins", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}
.stat-number .stat-suffix { color: var(--red); font-size: 1.6rem; }
.stat-label { font-size: 0.88rem; color: var(--text-muted); font-weight: 600; }

@media (max-width: 767.98px) {
  .stat-item { text-align: center; }
  .stat-number { justify-content: center; }
}

/* Standalone stats block (used across pages) */
.stats-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
}
.stats-band .stat-number { color: var(--white); }
.stats-band .stat-number .stat-suffix { color: var(--red-light); }
.stats-band .stat-label { color: rgba(255,255,255,0.7); }
.stats-band .stat-item { text-align: center; }
.stats-band .stat-number { justify-content: center; }

/* =========================================================
   FACULTY CARDS
   ========================================================= */

.faculty-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.faculty-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.faculty-photo-wrap {
  position: relative;
  height: 240px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.faculty-avatar-initials {
  width: 108px; height: 108px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 3px solid rgba(255,255,255,0.5);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}
.faculty-subject-tag {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--white);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}
.faculty-social {
  position: absolute;
  bottom: -40px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition);
  opacity: 0;
}
.faculty-card:hover .faculty-social { bottom: 14px; opacity: 1; }
.faculty-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.faculty-social a:hover { background: var(--red); color: var(--white); }

.faculty-info { padding: 1.5rem; text-align: center; }
.faculty-info h4 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.faculty-info .faculty-role { color: var(--blue); font-weight: 600; font-size: 0.88rem; margin-bottom: 0.4rem; }
.faculty-info .faculty-exp { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }
.faculty-info .faculty-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.1rem; }

/* Faculty filter tabs */
.faculty-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 3rem;
}
.faculty-filter-tabs .filter-btn {
  border: 1.5px solid var(--border-color);
  background: var(--white);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.faculty-filter-tabs .filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.faculty-filter-tabs .filter-btn.active {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-color: transparent;
  color: var(--white);
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testimonial-card .quote-icon { color: var(--bg-navy-soft); font-size: 2.2rem; position: absolute; top: 1.2rem; right: 1.4rem; }
.testimonial-text { font-size: 0.96rem; color: var(--text-body); margin-bottom: 1.5rem; font-style: italic; }
.testimonial-footer { display: flex; align-items: center; gap: 0.9rem; }
.testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.testimonial-score {
  display: inline-block;
  background: rgba(214,40,40,0.08);
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-top: 0.2rem;
}

/* =========================================================
   CTA SECTION
   ========================================================= */

.cta-section {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 55%, var(--red-dark) 130%);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}
.cta-section::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.12) 0%, transparent 45%);
}
.cta-content { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); font-size: 2.1rem; margin-bottom: 0.8rem; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-btn-group { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta-btn-group .btn-navy { background: var(--white); color: var(--navy); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.cta-btn-group .btn-navy:hover { color: var(--navy); }
.cta-btn-group .btn-outline-light-cta {
  border: 1.5px solid rgba(255,255,255,0.7);
  color: var(--white);
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cta-btn-group .btn-outline-light-cta:hover { background: rgba(255,255,255,0.15); color: var(--white); }

@media (max-width: 767.98px) {
  .cta-section { padding: 2.5rem 1.5rem; }
  .cta-btn-group .btn-navy,
  .cta-btn-group .btn-outline-light-cta { width: 100%; justify-content: center; }
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 4.5rem 0 0; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem; }
.footer-brand img { height: 48px; width: 48px; border-radius: 10px; }
.footer-brand-name { font-family: "Poppins", sans-serif; font-weight: 800; color: var(--white); font-size: 1.2rem; }
.footer-desc { font-size: 0.92rem; line-height: 1.75; margin-bottom: 1.4rem; max-width: 320px; }
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--red); transform: translateY(-3px); }

.footer-heading { color: var(--white); font-size: 1.05rem; margin-bottom: 1.5rem; font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.85rem; }
.footer-links a { color: rgba(255,255,255,0.72); font-size: 0.93rem; display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-links a i { color: var(--red-light); font-size: 0.7rem; }

.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li { display: flex; gap: 0.8rem; margin-bottom: 1.1rem; font-size: 0.92rem; align-items: flex-start; }
.footer-contact-list li i { color: var(--red-light); margin-top: 0.2rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom .footer-credit { color: rgb(255, 255, 255); }
.footer-legal-links a { color: rgba(255,255,255,0.55); }
.footer-legal-links a:hover { color: var(--white); }
.footer-legal-links .sep { margin: 0 0.5rem; color: rgba(255,255,255,0.25); }

@media (max-width: 575.98px) {
  .footer-bottom { justify-content: center; text-align: center; }
}

/* =========================================================
   INNER PAGE HERO / BREADCRUMB
   ========================================================= */

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.faculty-banner { position: relative; overflow: hidden; background: var(--navy-dark); }
.faculty-banner .carousel-item { line-height: 0; }
.faculty-banner-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.faculty-banner .carousel-control-prev,
.faculty-banner .carousel-control-next,
.faculty-banner .carousel-indicators { z-index: 3; }
.faculty-banner .carousel-indicators { margin-bottom: 1.2rem; }
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(214,40,40,0.18) 0%, transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(79,124,196,0.2) 0%, transparent 45%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: 2.6rem; margin-bottom: 0.9rem; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 620px; margin: 0 auto 1.2rem; }
.breadcrumb-nav { display: flex; justify-content: center; gap: 0.5rem; font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.breadcrumb-nav a { color: rgba(255,255,255,0.85); font-weight: 600; }
.breadcrumb-nav a:hover { color: var(--white); }
.breadcrumb-nav .sep { color: rgba(255,255,255,0.4); }
.breadcrumb-nav .current { color: var(--red-light); font-weight: 600; }

@media (max-width: 767.98px) {
  .page-hero { padding: 4.5rem 0 3rem; }
  .page-hero h1 { font-size: 1.9rem; }
}

/* =========================================================
   ABOUT PAGE — split content + timeline
   ========================================================= */

.about-text-block h2 { font-size: 1.9rem; margin-bottom: 1rem; }
.about-text-block p { margin-bottom: 1rem; }

.value-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.4rem 1.8rem;
  height: 100%;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.value-card:nth-child(even)::before { background: linear-gradient(90deg, var(--red), var(--red-dark)); }
.value-card:hover::before { transform: scaleX(1); }
.value-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }

.value-card .value-icon {
  width: 84px; height: 84px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.1rem;
  margin: 0 auto 1.6rem;
  box-shadow: 0 14px 28px rgba(20, 41, 79, 0.25);
  transition: var(--transition);
}
.value-card:nth-child(even) .value-icon {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  box-shadow: 0 14px 28px rgba(214, 40, 40, 0.25);
}
.value-card:hover .value-icon { transform: scale(1.08); }

.value-card h4 { font-size: 1.25rem; margin-bottom: 0.8rem; }
.value-card p { font-size: 0.93rem; color: var(--text-muted); margin: 0; line-height: 1.75; }

/* Methodology timeline */
.timeline-wrap { position: relative; padding: 2rem 0; }
.timeline-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  position: relative;
}
.timeline-step {
  flex: 1 1 150px;
  max-width: 190px;
  text-align: center;
  position: relative;
  padding: 0 0.8rem;
}
.timeline-step .step-circle {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border-color);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  z-index: 2;
}
.timeline-step:hover .step-circle {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  border-color: transparent;
  transform: scale(1.08);
}
.timeline-step .step-number {
  position: absolute;
  top: -6px; right: 20px;
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.timeline-step h5 { font-size: 0.92rem; margin-bottom: 0.3rem; }
.timeline-step p { font-size: 0.78rem; color: var(--text-muted); margin: 0; }
.timeline-arrow { display: flex; align-items: center; color: var(--border-color); font-size: 1.4rem; padding-top: 1.2rem; }

@media (max-width: 991.98px) {
  .timeline-arrow { display: none; }
  .timeline-step { flex: 1 1 40%; max-width: 47%; margin-bottom: 2rem; }
}

/* Achievements */
.achievement-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.achievement-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.achievement-card i { font-size: 2.2rem; color: var(--red); margin-bottom: 1rem; }

/* =========================================================
   RANKING PAGE — filters + college listing
   ========================================================= */

.ranking-filter-bar {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.6rem;
  margin-top: -3.5rem;
  position: relative;
  z-index: 5;
}
.ranking-filter-bar .form-control,
.ranking-filter-bar .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
}
.ranking-filter-bar .form-control:focus,
.ranking-filter-bar .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.12);
}
.ranking-search-icon-wrap { position: relative; }
.ranking-search-icon-wrap i {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted);
}
.ranking-search-icon-wrap input { padding-left: 2.5rem; }

.results-meta { display: flex; align-items: center; justify-content: space-between; margin: 2.5rem 0 1.6rem; flex-wrap: wrap; gap: 0.8rem; }
.results-meta .results-count { font-weight: 600; color: var(--text-dark); }
.results-meta .results-count span { color: var(--red); }

.ranking-college-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.ranking-college-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ranking-college-card .rc-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.ranking-college-card .college-logo-badge { margin: 0; flex-shrink: 0; width: 58px; height: 58px; }
.ranking-college-card h4 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.ranking-college-card .rc-location { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem; }
.ranking-college-card .rc-meta-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.ranking-college-card .rc-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--bg-navy-soft);
  color: var(--navy);
}
.ranking-college-card .rc-tag.tag-red { background: rgba(214,40,40,0.08); color: var(--red); }
.ranking-college-card .rc-est { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.3rem; }
.ranking-college-card .rc-est strong { color: var(--text-dark); }
.ranking-college-card .btn-outline-navy { margin-top: auto; justify-content: center; width: 100%; }
.ranking-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}

.no-results-block { text-align: center; padding: 3.5rem 1rem; display: none; }
.no-results-block.show { display: block; }
.no-results-block i { font-size: 2.6rem; color: var(--border-color); margin-bottom: 1rem; }

/* =========================================================
   FACULTY PAGE HERO SPACING FIX
   ========================================================= */
.faculty-grid-section { padding-top: 5.5rem; }

/* =========================================================
   ENQUIRE NOW — lead form
   ========================================================= */

.enquire-form-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
}
@media (max-width: 575.98px) { .enquire-form-card { padding: 1.6rem; } }

.form-card-icon-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border-color);
}
.form-card-icon-header .fch-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 10px 20px rgba(20, 41, 79, 0.22);
}
.form-card-icon-header h3 { font-size: 1.2rem; margin-bottom: 0.15rem; }
.form-card-icon-header p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.enquire-form-card .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.enquire-form-card .form-control,
.enquire-form-card .form-select {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}
.enquire-form-card .form-control:focus,
.enquire-form-card .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.12);
}
.enquire-form-card .form-check-input:checked {
  background-color: var(--blue);
  border-color: var(--blue);
}
.enquire-form-card .form-check-label { font-weight: 600; font-size: 0.92rem; color: var(--text-dark); }

.enquire-submit-btn { width: 100%; justify-content: center; }



.enquire-success-msg {
  display: none;
  align-items: center;
  gap: 0.7rem;
  background: rgba(42, 130, 82, 0.08);
  border: 1px solid rgba(42, 130, 82, 0.25);
  color: #1f7a44;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.enquire-success-msg.show { display: flex; }
.enquire-success-msg i { font-size: 1.3rem; }


/* Thank-you modal (Bootstrap modal-content override) */
.thankyou-modal-content {
  border: none;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}
.thankyou-modal-close { position: absolute; top: 1.2rem; right: 1.2rem; }
.thankyou-icon {
  width: 76px; height: 76px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a8252 0%, #1f7a44 100%);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 14px 28px rgba(42, 130, 82, 0.3);
}
.thankyou-modal-content h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.thankyou-modal-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.8rem; }
.thankyou-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

@media (max-width: 575.98px) {
  .thankyou-modal-content { padding: 2.2rem 1.4rem 1.6rem; }
  .thankyou-actions .btn-navy,
  .thankyou-actions .btn-outline-navy { width: 100%; justify-content: center; }
}

/* =========================================================
   JOIN NOW MODAL (2-step enrollment flow)
   ========================================================= */

.joinnow-modal-content {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.joinnow-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 1.8rem 0;
}
.joinnow-modal-header h3 { font-size: 1.3rem; margin: 0; line-height: 1.35; }
.joinnow-course-meta { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-top: 0.2rem; }

.joinnow-modal-content .modal-body { padding: 1.4rem 1.8rem 1.8rem; }

.joinnow-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin-bottom: 1.6rem;
}
.jn-fee-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 700; }
.jn-fee-value { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--navy); font-size: 1rem; }
.joinnow-coupon { display: flex; gap: 0.5rem; }
.joinnow-coupon .form-control { max-width: 170px; font-size: 0.85rem; }
.joinnow-coupon .btn-outline-navy { padding: 0.6rem 1rem; font-size: 0.82rem; }

.joinnow-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}
.jn-step { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.jn-step-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}
.jn-step-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.jn-step.active .jn-step-circle,
.jn-step.completed .jn-step-circle {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-color: transparent;
  color: var(--white);
}
.jn-step.active .jn-step-label,
.jn-step.completed .jn-step-label { color: var(--navy); }
.jn-step-line { width: 60px; height: 2px; background: var(--border-color); transition: var(--transition); }
.jn-step-line.completed { background: var(--blue); }

.jn-required { color: var(--red); }

.jn-phone-input { display: flex; align-items: center; border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; }
.jn-phone-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.12); }
.jn-phone-prefix { padding: 0.75rem 0.9rem; background: var(--bg-light); color: var(--text-muted); font-weight: 600; font-size: 0.92rem; border-right: 1.5px solid var(--border-color); }
.jn-phone-input .form-control { border: none; box-shadow: none !important; }

.joinnow-actions { display: flex; gap: 0.8rem; margin-top: 0.5rem; }
.joinnow-actions .jn-next-btn,
.joinnow-actions .jn-submit-btn { flex: 1; justify-content: center; }
.joinnow-actions .jn-back-btn { flex: 0 0 auto; }

.joinnow-success { display: none; text-align: center; padding: 1rem 0 0.5rem; }
.joinnow-success.show { display: block; }
.joinnow-success h3 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.joinnow-success p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.5rem; }

@media (max-width: 575.98px) {
  .joinnow-modal-header { padding: 1.3rem 1.3rem 0; }
  .joinnow-modal-content .modal-body { padding: 1.2rem 1.3rem 1.5rem; }
  .joinnow-price-box { flex-direction: column; align-items: flex-start; }
  .joinnow-coupon { width: 100%; }
  .joinnow-coupon .form-control { max-width: none; flex: 1; }
}


/* =========================================================
   LEGAL PAGES (Privacy Policy, etc.)
   ========================================================= */

.legal-page-content { max-width: 840px; margin: 0 auto; }

.legal-updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-navy-soft);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 2rem;
}

.legal-page-content .legal-intro { font-size: 1.02rem; margin-bottom: 1rem; }

.legal-org-block {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.8rem;
  margin: 1.5rem 0 2.2rem;
  border-left: 4px solid var(--blue);
}
.legal-org-block p { margin-bottom: 0.4rem; }
.legal-org-block p:last-child { margin-bottom: 0; }
.legal-org-block a { font-weight: 700; }

.legal-page-content h2 {
  font-size: 1.4rem;
  margin-top: 2.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--border-color);
}
.legal-page-content h2:first-of-type { margin-top: 0; }

.legal-page-content h3 {
  font-size: 1.08rem;
  color: var(--blue);
  margin-top: 1.6rem;
  margin-bottom: 0.7rem;
}

.legal-page-content p { color: var(--text-body); margin-bottom: 1rem; }

.legal-page-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem;
}
.legal-page-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-body);
}
.legal-page-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.legal-page-content a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-page-content a:hover { color: var(--red); }

@media (max-width: 767.98px) {
  .legal-page-content h2 { font-size: 1.2rem; }
  .legal-org-block { padding: 1.2rem 1.4rem; }
}

/* =========================================================
   STUDENT LOGIN — full-bleed background + auth card
   ========================================================= */

.auth-section {
  position: relative;
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.2rem;
  background-image: linear-gradient(135deg, rgba(11,26,52,0.82) 0%, rgba(20,41,79,0.55) 55%, rgba(11,26,52,0.75) 100%), url('../img/login.jpg');
  background-size: cover;
  background-position: center;
}

.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.auth-card-wide { max-width: 460px; }

/* ---- Dashboard (after login) ---- */
.dash-card { max-width: 480px; }
.auth-card-header .dash-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.9rem;
}
.dash-avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}
.auth-card-header .dash-role { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; font-size: 0.78rem; }
.dash-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1.2rem;
  margin: 0 0 1.6rem;
  font-size: 0.92rem;
}
.dash-details dt { font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.dash-details dt i { color: var(--blue); margin-right: 0.3rem; }
.dash-details dd { margin: 0; color: var(--text-dark); font-weight: 600; overflow-wrap: anywhere; }

/* ---- Register page (Student / Teacher) ---- */
.reg-card { max-width: 780px; }
.reg-brand {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: 0.3px;
}
.reg-tagline {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0.2rem 0 1rem;
}

.reg-role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.reg-role-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
  color: var(--text-body);
  font-size: 0.92rem;
  text-align: left;
  line-height: 1.25;
  transition: var(--transition);
}
.reg-role-tab i { font-size: 1.5rem; color: var(--blue); transition: var(--transition); }
.reg-role-tab strong { display: block; font-size: 1rem; color: var(--navy); }
.reg-role-tab:hover { border-color: var(--blue); }
.reg-role-tab.active {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 22px rgba(20, 41, 79, 0.22);
}
.reg-role-tab.active i,
.reg-role-tab.active strong { color: var(--white); }

.reg-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 1.8rem 0 0.9rem;
}
.reg-form .reg-section-title:first-of-type { margin-top: 0; }
.reg-form .form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.35rem; }
.reg-form .form-control,
.reg-form .form-select {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
}
.reg-form .form-select { padding-right: 2.2rem; }
.reg-form .form-select:invalid { color: var(--text-muted); }
.reg-form .form-control:focus,
.reg-form .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.12);
}
.reg-form .jn-phone-input .form-control { border: none; }
.reg-password { position: relative; }
.reg-password .form-control { padding-right: 2.6rem; }
.reg-submit-btn { margin-top: 1.8rem; }

@media (max-width: 575.98px) {
  .reg-role-tabs { gap: 0.6rem; }
  .reg-role-tab { flex-direction: column; text-align: center; gap: 0.35rem; padding: 0.8rem 0.5rem; font-size: 0.82rem; }
}
.auth-options-row .form-check-label a { color: var(--blue); font-weight: 600; }

.auth-card-header {
  background: linear-gradient(180deg, var(--bg-navy-soft) 0%, var(--white) 100%);
  text-align: center;
  padding: 2.2rem 2rem 1.4rem;
}
.auth-card-header img { height: 56px; width: 56px; border-radius: 12px; margin: 0 auto 0.9rem; }
.auth-card-header h2 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.auth-card-header p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

.auth-card-body { padding: 1.6rem 2rem 2.2rem; }

.auth-info-msg {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: rgba(42, 82, 152, 0.08);
  border: 1px solid rgba(42, 82, 152, 0.25);
  color: var(--navy);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.3rem;
}
.auth-info-msg.show { display: flex; }

.auth-input-group { position: relative; margin-bottom: 1.1rem; }
.auth-input-group .auth-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.auth-input-group input.form-control {
  padding-left: 2.6rem;
  padding-right: 2.6rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.auth-input-group select.form-select {
  padding: 0.75rem 2.6rem 0.75rem 2.6rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
}
.auth-input-group select.form-select:invalid { color: var(--text-muted); }
.auth-input-group select.form-select:focus,
.auth-input-group input.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.12);
}
.auth-toggle-password {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0;
  line-height: 1;
}
.auth-toggle-password:hover { color: var(--navy); }

.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  font-size: 0.85rem;
}
.auth-options-row .form-check-label { color: var(--text-body); font-size: 0.85rem; }
.auth-options-row a { color: var(--blue); font-weight: 600; }
.auth-options-row a:hover { color: var(--red); }

.auth-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1.5rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.4rem 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-color); }

.auth-google-btn {
  width: 100%;
  justify-content: center;
  background: var(--white);
  border: 1.5px solid var(--border-color);
  color: var(--text-dark);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}
.auth-google-btn:hover { border-color: var(--blue); background: var(--bg-light); }
.auth-google-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.auth-footer-note { text-align: center; font-size: 0.88rem; color: var(--text-muted); margin-top: 1.5rem; }
.auth-footer-note a { color: var(--red); font-weight: 700; }

@media (max-width: 575.98px) {
  .auth-card-header { padding: 1.8rem 1.4rem 1.2rem; }
  .auth-card-body { padding: 1.3rem 1.4rem 1.8rem; }
}

/* =========================================================
   CBT PAGE — test cards + analysis
   ========================================================= */

.cbt-test-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  flex-wrap: wrap;
}
.cbt-test-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.cbt-test-icon {
  width: 58px; height: 58px;
  border-radius: var(--radius-sm);
  background: var(--bg-navy-soft);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cbt-test-info { flex: 1; min-width: 180px; }
.cbt-test-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--red);
  background: rgba(214, 40, 40, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}
.cbt-test-info h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.cbt-test-meta { display: flex; flex-wrap: wrap; gap: 0.9rem; font-size: 0.8rem; color: var(--text-muted); }
.cbt-test-meta i { color: var(--blue); margin-right: 0.3rem; }

.cbt-start-btn { flex-shrink: 0; white-space: nowrap; padding: 0.7rem 1.4rem; font-size: 0.88rem; }

.cbt-analysis-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.cbt-analysis-title { font-size: 1.1rem; margin-bottom: 1.5rem; }

.cbt-bar-row { margin-bottom: 1.3rem; }
.cbt-bar-row:last-of-type { margin-bottom: 0; }
.cbt-bar-label { font-size: 0.88rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
.cbt-bar-track {
  background: var(--bg-light);
  border-radius: var(--radius-pill);
  height: 28px;
  overflow: hidden;
}
.cbt-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.7rem;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

.cbt-analysis-list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.cbt-analysis-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.92rem; color: var(--text-body); margin-bottom: 0.9rem; }
.cbt-analysis-list li i { color: var(--blue); margin-top: 0.2rem; }

@media (max-width: 575.98px) {
  .cbt-test-card { flex-direction: column; align-items: flex-start; }
  .cbt-start-btn { width: 100%; justify-content: center; }
}

/* =========================================================
   LIVE LECTURE PAGE — Teachmint panel
   ========================================================= */

.teachmint-panel {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.teachmint-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  flex-shrink: 0;
}
.teachmint-info { flex: 1; }
.teachmint-info p { color: rgba(255, 255, 255, 0.78); font-size: 0.98rem; max-width: 640px; margin-bottom: 1.6rem; }
.teachmint-info p strong { color: var(--white); }

@media (max-width: 767.98px) {
  .teachmint-panel { flex-direction: column; text-align: center; gap: 1.2rem; }
  .teachmint-info .section-title { text-align: center !important; }
}

/* =========================================================
   ANALYSIS PAGE — extra graph styles
   ========================================================= */

.cbt-analysis-title i { color: var(--blue); font-size: 0.95rem; margin-right: 0.4rem; }
.cbt-analysis-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.3rem; }

.cbt-bar-fill.jn-fill-muted { background: linear-gradient(90deg, #9aa5b8 0%, #c2c9d6 100%); }

.improvement-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(42, 130, 82, 0.1);
  color: #1f7a44;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  margin: 0.6rem 0 0;
}

.rank-graph-bar {
  position: relative;
  height: 140px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 0.7rem;
}
.rank-graph-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--blue) 0%, var(--navy) 100%);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.5rem;
}
.rank-graph-value {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
}
.rank-graph-label { text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }

/* =========================================================
   COURSE DETAIL PAGE
   ========================================================= */

.course-detail-meta {
  display: inline-block;
  color: var(--red-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.cd-feature {
  display: flex;
  gap: 1.3rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 1.6rem 1.5rem;
  margin-bottom: 0.9rem;
}
.cd-feature:last-child { margin-bottom: 0; }
.cd-feature-icon {
  flex: 0 0 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.cd-feature-icon.icon-red { color: var(--red); }
.cd-feature-icon.icon-green { color: #1a9a6c; }
.cd-feature-body { flex: 1; min-width: 0; }
.cd-feature-body h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.cd-feature-body p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.cd-feature-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.cd-check-list, .cd-dot-list { list-style: none; padding: 0; margin: 0; }
.cd-check-list li {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.92rem;
  color: var(--text-body);
  padding: 0.25rem 0;
}
.cd-check-list i { color: var(--blue); }
.cd-dot-list li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.cd-dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}

.cd-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  transition: var(--transition);
}
.cd-chip-btn:hover { border-color: var(--navy); color: var(--navy); }

.cd-batch-card {
  background: var(--white);
  border: 4px solid var(--bg-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: sticky;
  top: calc(var(--navbar-height) + 1rem);
}
.cd-batch-top { padding: 1.6rem 1.5rem 1.4rem; border-bottom: 1px solid var(--border-color); }
.cd-batch-top h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.cd-batch-note { font-size: 0.85rem; font-style: italic; color: var(--text-muted); margin-bottom: 1rem; }
.cd-batch-chip {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
}
.cd-batch-bottom { padding: 1.4rem 1.5rem 1.5rem; }
.cd-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}
.cd-price { font-family: "Poppins", sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--text-dark); }
.cd-price-old { font-size: 0.9rem; color: var(--text-muted); text-decoration: line-through; margin-left: 0.5rem; }
.cd-discount {
  background: linear-gradient(135deg, #f6d57a 0%, #e0b34a 100%);
  color: var(--navy-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.cd-fee-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.cd-fee-tbc { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); }
.cd-join-btn { width: 100%; justify-content: center; padding: 0.85rem 1.5rem; font-size: 1rem; white-space: normal; }
.cd-enquire-link {
  display: block;
  text-align: center;
  margin-top: 0.9rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}
.cd-enquire-link:hover { color: var(--red); }

@media (max-width: 991.98px) {
  .cd-batch-card { position: static; }
}
@media (max-width: 575.98px) {
  .cd-feature { flex-direction: column; gap: 0.9rem; padding: 1.3rem 1.1rem; }
  .cd-batch-top, .cd-batch-bottom { padding-left: 1.1rem; padding-right: 1.1rem; }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

/* Fade-up is progressive enhancement: content is visible by default so it
   never depends on JS running. The .js-ready class is added by main.js as
   soon as it executes, which is the only time we arm the hidden state. */
.js-ready .fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-ready .fade-up.in-view { opacity: 1; transform: translateY(0); }

.fade-up-delay-1.in-view { transition-delay: 0.1s; }
.fade-up-delay-2.in-view { transition-delay: 0.2s; }
.fade-up-delay-3.in-view { transition-delay: 0.3s; }
.fade-up-delay-4.in-view { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up, html { transition: none !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none !important; }
}

/* =========================================================
   TOAST MESSAGES (Django messages, shown top-right on every page)
   ========================================================= */

.toast-stack {
  position: fixed;
  top: calc(var(--navbar-height) + 14px);
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(380px, calc(100vw - 32px));
}

.app-toast {
  --toast-color: #1a9a6c;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 14px;
  border-left: 5px solid var(--toast-color);
  padding: 14px 14px 14px 16px;
  box-shadow: 0 14px 34px rgba(20, 41, 79, 0.16);
  overflow: hidden;
  animation: toast-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.app-toast-success { --toast-color: #1a9a6c; }
.app-toast-warning { --toast-color: #e08a1e; }
.app-toast-error   { --toast-color: #e3342f; }

.app-toast-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--toast-color) 15%, transparent);
  border-radius: 50%;
  background: var(--toast-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.app-toast-text {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.4;
}

.app-toast-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--toast-color);
  margin-bottom: 1px;
}

.app-toast-close {
  flex: 0 0 auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0 2px;
}

.app-toast-close:hover { color: var(--text-dark); }

/* shrinking bar that shows when the toast will close */
.app-toast-timer {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--toast-color);
  opacity: 0.35;
  transform-origin: left;
  animation: toast-timer 5s linear forwards;
}

.app-toast:hover .app-toast-timer { animation-play-state: paused; }

.app-toast.is-hiding { animation: toast-out 0.3s ease forwards; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(110%); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateX(110%); }
}

@keyframes toast-timer {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

@media (max-width: 575.98px) {
  .toast-stack { right: 16px; top: calc(var(--navbar-height) + 10px); }
}

/* Profile photo inside the navbar account button */
.nav-account-photo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  margin-left: -0.35rem;
}

/* =========================================================
   NOTES PAGE (subjects → chapters → topics + PDF / image notes)
   ========================================================= */

.notes-page {
  --n-blue: #1e63c6;
  --n-navy: #17346a;
  --n-red: #e3342f;
  background: var(--bg-light);
  padding: 2.5rem 0 4.5rem;
}

/* Course tabs */
.notes-courses {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  margin-bottom: 2rem;
}

.notes-course-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 240px;
  background: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.notes-course-tab img,
.notes-course-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 46px;
}

.notes-course-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-navy-soft);
  color: var(--n-blue);
  font-size: 1.3rem;
}

.notes-course-tab strong { display: block; font-size: 0.95rem; color: var(--n-navy); }
.notes-course-tab small { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.notes-course-tab:hover { border-color: var(--n-blue); color: var(--text-dark); }

.notes-course-tab.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--n-navy) 0%, var(--n-blue) 100%);
  box-shadow: 0 10px 24px rgba(30, 99, 198, 0.3);
}

.notes-course-tab.active strong,
.notes-course-tab.active small { color: var(--white); }

/* Teacher handwritten notes upload */
.notes-upload-panel {
  margin: 0 0 2rem;
  padding: 1.35rem;
  border: 1px solid #d7e2f2;
  border-radius: 16px;
  background: linear-gradient(115deg, #f1f7ff 0%, #fff 60%, #fff6f3 100%);
  box-shadow: 0 10px 28px rgba(23, 52, 106, 0.07);
}
.notes-teacher-course-picker { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1rem; }
.notes-teacher-course-picker label { color: #273958; font-size: 0.84rem; font-weight: 700; }
.notes-teacher-course-picker select { width: min(420px, 100%); min-height: 42px; padding: 0.55rem 0.7rem; border: 1px solid #d7e0ed; border-radius: 8px; background: #fff; color: #26364f; font: inherit; font-size: 0.84rem; }
.notes-upload-heading { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.2rem; }
.notes-upload-icon {
  flex: 0 0 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: #fff; background: linear-gradient(135deg, #1e63c6, #17346a);
  font-size: 1.35rem;
}
.notes-upload-kicker { color: #1e63c6; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.notes-upload-heading h2 { margin: 0.1rem 0 0.2rem; color: #17346a; font-size: 1.15rem; }
.notes-upload-heading p { margin: 0; color: var(--text-muted); font-size: 0.84rem; }
.notes-upload-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
.notes-upload-grid label { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.notes-upload-grid label > span { color: #273958; font-size: 0.78rem; font-weight: 700; }
.notes-upload-grid label > span b { color: #d62828; }
.notes-upload-grid input,
.notes-upload-grid select,
.notes-upload-grid textarea {
  width: 100%; min-height: 42px; padding: 0.55rem 0.7rem;
  border: 1px solid #d7e0ed; border-radius: 8px;
  background: #fff; color: #26364f; font: inherit; font-size: 0.84rem;
}
.notes-upload-grid textarea { resize: vertical; }
.notes-upload-grid input:focus,
.notes-upload-grid select:focus,
.notes-upload-grid textarea:focus { outline: 2px solid rgba(30, 99, 198, 0.18); border-color: #1e63c6; }
.notes-upload-grid input[type="file"] { padding: 0.4rem; font-size: 0.76rem; }
.notes-upload-wide { grid-column: span 2; }
.notes-upload-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; }
.notes-upload-footer small { color: var(--text-muted); font-size: 0.78rem; }
.notes-upload-footer small i { margin-right: 0.25rem; color: #1e63c6; }
.notes-upload-footer button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 42px; padding: 0.65rem 1rem; border: 0; border-radius: 8px;
  color: #fff; background: #d62828; font-size: 0.86rem; font-weight: 700;
  box-shadow: 0 7px 16px rgba(214, 40, 40, 0.2); transition: transform 0.2s, background 0.2s;
}
.notes-upload-footer button:hover { background: #b91f1f; transform: translateY(-1px); }

.teacher-notes-list { display: grid; gap: 1rem; }
.teacher-note-item { padding: 1rem; border: 1px solid #d7e2f2; border-radius: 10px; background: #fff; }
.teacher-note-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.teacher-note-summary h3 { margin: 0 0 0.25rem; color: #17346a; font-size: 1rem; }
.teacher-note-summary p,
.teacher-note-item > p { margin: 0 0 0.55rem; color: var(--text-muted); font-size: 0.82rem; }
.teacher-note-status { flex: 0 0 auto; padding: 0.3rem 0.6rem; border-radius: 20px; background: #fff1d6; color: #875c0b; font-size: 0.72rem; font-weight: 700; }
.teacher-note-status-published { background: #e8f6ed; color: #267445; }
.teacher-note-status-unpublished { background: #fff1d6; color: #875c0b; }
.teacher-note-edit-form { display: grid; gap: 0.8rem; padding-top: 0.8rem; border-top: 1px solid #edf1f7; }
.teacher-note-edit-form > label,
.teacher-note-edit-bottom > label { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.teacher-note-edit-form label > span { color: #273958; font-size: 0.76rem; font-weight: 700; }
.teacher-note-edit-form input[type="text"],
.teacher-note-edit-form textarea,
.teacher-note-edit-form input[type="file"] { width: 100%; min-height: 40px; padding: 0.5rem 0.65rem; border: 1px solid #d7e0ed; border-radius: 7px; background: #fff; color: #26364f; font: inherit; font-size: 0.82rem; }
.teacher-note-edit-form textarea { resize: vertical; }
.teacher-note-files { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.teacher-note-files a { color: #1e63c6; font-size: 0.78rem; text-decoration: none; }
.teacher-note-edit-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 0.8rem; }
.teacher-note-edit-bottom input[type="file"] { font-size: 0.74rem; }
.teacher-note-edit-bottom button { min-height: 40px; padding: 0.55rem 0.9rem; border: 0; border-radius: 7px; color: #fff; background: #1e63c6; font-size: 0.82rem; font-weight: 700; }
.teacher-note-edit-bottom button:disabled { opacity: 0.55; cursor: not-allowed; }
@media (max-width: 700px) { .teacher-note-summary { flex-direction: column; gap: 0.5rem; } .teacher-note-edit-bottom { grid-template-columns: 1fr; } .teacher-note-edit-bottom button { width: 100%; } }
@media (max-width: 600px) { .notes-teacher-course-picker { align-items: stretch; flex-direction: column; gap: 0.4rem; } .notes-teacher-course-picker select { width: 100%; } }

/* Sidebar */
.notes-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 16px);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.notes-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.notes-stats > div {
  text-align: center;
  background: var(--bg-light);
  border-radius: 12px;
  padding: 0.6rem 0.3rem;
  border-top: 3px solid var(--n-blue);
}

.notes-stats > div:nth-child(2) { border-top-color: var(--n-red); }
.notes-stats > div:nth-child(3) { border-top-color: var(--n-navy); }
.notes-stats strong { display: block; font-family: "Poppins", sans-serif; font-size: 1.3rem; color: var(--n-navy); line-height: 1.1; }
.notes-stats span { font-size: 0.68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }

.notes-search { position: relative; margin-bottom: 1rem; }
.notes-search i { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

.notes-search .form-control {
  padding: 0.6rem 0.9rem 0.6rem 2.4rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
}

.notes-search .form-control:focus { border-color: var(--n-blue); box-shadow: 0 0 0 0.2rem rgba(30, 99, 198, 0.12); }

.notes-menu { max-height: 55vh; overflow-y: auto; }
.notes-menu-subject { margin-bottom: 0.5rem; }

.notes-menu-subject-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  font-weight: 700;
  color: var(--n-navy);
}

.notes-menu-subject-link:hover { background: var(--bg-light); color: var(--n-navy); }

.notes-subject-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--n-navy), var(--n-blue));
}

.notes-count {
  margin-left: auto;
  font-size: 0.72rem;
  background: rgba(30, 99, 198, 0.1);
  color: var(--n-blue);
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.5rem;
}

.notes-menu-chapter {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.6rem 0.35rem 1.6rem;
  font-size: 0.88rem;
  color: var(--text-body);
  border-radius: 8px;
}

.notes-menu-chapter:hover { background: var(--bg-light); color: var(--n-blue); }
.notes-menu-chapter i { color: var(--n-red); font-size: 1.2rem; }

/* Subject block */
.notes-subject { margin-bottom: 2rem; scroll-margin-top: calc(var(--navbar-height) + 16px); }

.notes-subject-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(115deg, var(--n-navy) 0%, var(--n-blue) 70%, #3b8ced 100%);
  color: var(--white);
  border-radius: 20px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.notes-subject-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--n-blue), var(--n-red));
}

.notes-subject-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--n-red);
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.notes-subject-head > div { flex: 1; min-width: 0; }
.notes-subject-head h2 { color: var(--white); font-size: 1.35rem; margin: 0; }
.notes-subject-head p { color: rgba(255, 255, 255, 0.8); margin: 0.1rem 0 0; font-size: 0.88rem; }

.notes-subject-meta {
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.8rem;
  white-space: nowrap;
}

/* Chapter card */
.notes-chapter {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--navbar-height) + 16px);
}

.notes-chapter-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding-bottom: 0.8rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px dashed var(--border-color);
}

.notes-chapter-head > div { flex: 1; min-width: 0; }
.notes-chapter-head h3 { font-size: 1.1rem; color: var(--n-navy); margin: 0; }
.notes-chapter-head p { color: var(--text-muted); font-size: 0.86rem; margin: 0.15rem 0 0; }

.notes-chapter-num {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--n-red);
  background: rgba(227, 52, 47, 0.08);
  border-radius: 10px;
  padding: 0.3rem 0.55rem;
}

.notes-chapter-meta {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--n-blue);
  background: rgba(30, 99, 198, 0.08);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  white-space: nowrap;
}

/* Topic */
.notes-topic {
  border-left: 3px solid var(--n-blue);
  background: var(--bg-light);
  border-radius: 0 14px 14px 0;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.notes-topic:last-child { margin-bottom: 0; }
.notes-topic-head { display: flex; gap: 0.6rem; margin-bottom: 0.7rem; }
.notes-topic-head i { color: var(--n-red); margin-top: 2px; }
.notes-topic-head h4 { font-size: 0.98rem; margin: 0; color: var(--text-dark); }
.notes-topic-head p { font-size: 0.84rem; color: var(--text-muted); margin: 0.1rem 0 0; }

/* Notes files (PDF / image) */
.notes-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.7rem;
}

.note-file {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition);
}

.note-file:hover { border-color: rgba(30, 99, 198, 0.35); box-shadow: 0 8px 18px rgba(23, 52, 106, 0.08); }

.note-pdf { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.7rem; }

.note-file-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--n-red);
  background: rgba(227, 52, 47, 0.1);
}

.note-file-info { flex: 1; min-width: 0; }
.note-file-info strong { display: block; font-size: 0.88rem; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-file-info small { font-size: 0.75rem; color: var(--text-muted); }
.note-file-actions { display: flex; gap: 0.3rem; }

.note-file-actions a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--n-blue);
  background: rgba(30, 99, 198, 0.08);
}

.note-file-actions a:hover { background: var(--n-blue); color: var(--white); }

.note-image { display: block; overflow: hidden; color: var(--text-dark); }
.note-image img { width: 100%; height: 120px; object-fit: cover; display: block; }

.note-image span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.note-image span i { color: var(--n-blue); }

.notes-empty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  background: var(--white);
  border: 1px dashed var(--border-color);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
}

.notes-empty i { color: var(--n-blue); font-size: 1.1rem; }

/* Empty / error states */
.notes-state {
  max-width: 520px;
  margin: 1rem auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 2.5rem 2rem;
}

.notes-state-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #1e63c6;
  background: rgba(30, 99, 198, 0.1);
}

.notes-state p { color: var(--text-muted); margin: 0; }

@media (max-width: 991.98px) {
  .notes-sidebar { position: static; }
  .notes-menu { max-height: none; }
  .notes-upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .notes-course-tab { min-width: 210px; }
  .notes-subject-head { flex-wrap: wrap; }
  .notes-chapter { padding: 0.95rem; }
  .notes-upload-panel { padding: 1rem; }
  .notes-upload-heading { align-items: flex-start; }
  .notes-upload-grid { grid-template-columns: 1fr; }
  .notes-upload-wide { grid-column: auto; }
  .notes-upload-footer { align-items: stretch; flex-direction: column; }
  .notes-upload-footer button { width: 100%; }
}

/* ---- Notes page: note cards (course_notes_pdf API) ---- */
.notes-stats { grid-template-columns: repeat(2, 1fr); }
.notes-stats > div:nth-child(4) { border-top-color: #1a9a6c; }

.notes-files { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.9rem; }

.note-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.note-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 99, 198, 0.3);
  box-shadow: 0 14px 28px rgba(23, 52, 106, 0.12);
}

.note-card-cover {
  position: relative;
  display: block;
  height: 130px;
  overflow: hidden;
  background: linear-gradient(120deg, #17346a 0%, #1e63c6 70%, #3b8ced 100%);
}

.note-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.note-card:hover .note-card-cover img { transform: scale(1.06); }

.note-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.note-pdf .note-card-placeholder { background: linear-gradient(135deg, #e3342f, #c4231f); }

.note-card-type {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: #1e63c6;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.note-pdf .note-card-type { color: #e3342f; }
.note-image .note-card-type { color: #1a9a6c; }

.note-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.8rem 0.9rem 0.9rem;
}

.note-card-body h5 {
  font-size: 0.95rem;
  color: #17346a;
  margin-bottom: 0.2rem;
}

.note-card-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.note-card-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: auto;
}

.note-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 36px;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e63c6;
  background: rgba(30, 99, 198, 0.08);
  transition: var(--transition);
}

.note-btn:hover { background: #1e63c6; color: var(--white); }

.note-btn-primary {
  flex: 1;
  color: var(--white);
  background: linear-gradient(135deg, #17346a 0%, #1e63c6 100%);
}

.note-btn-primary:hover { color: var(--white); box-shadow: 0 6px 14px rgba(30, 99, 198, 0.3); }

/* Chapter / subject level notes */
.notes-level-notes { margin-bottom: 1rem; }

.notes-level-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}

.notes-level-label i { color: #e3342f; }

/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-page {
  --c-blue: #1e63c6;
  --c-navy: #17346a;
  --c-red: #e3342f;
  background: var(--bg-light);
  padding: 3rem 0 4.5rem;
}

/* Info cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem 1.3rem;
  color: var(--text-dark);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(23, 52, 106, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--c-blue), var(--c-red));
  transition: width 0.4s ease;
}

a.contact-card:hover {
  color: var(--text-dark);
  transform: translateY(-6px);
  border-color: rgba(30, 99, 198, 0.25);
  box-shadow: 0 18px 36px rgba(23, 52, 106, 0.12);
}

.contact-card:hover::before { width: 100%; }

.contact-card-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--c-blue), #3b8ced);
  box-shadow: 0 8px 18px rgba(30, 99, 198, 0.28);
  margin-bottom: 1rem;
}

.contact-card-icon.icon-red { background: linear-gradient(135deg, var(--c-red), #c4231f); box-shadow: 0 8px 18px rgba(227, 52, 47, 0.28); }
.contact-card-icon.icon-navy { background: linear-gradient(135deg, var(--c-navy), var(--c-blue)); }
.contact-card-icon.icon-green { background: linear-gradient(135deg, #1a9a6c, #26b884); box-shadow: 0 8px 18px rgba(26, 154, 108, 0.28); }

.contact-card h3 { font-size: 1.1rem; color: var(--c-navy); margin-bottom: 0.4rem; }
.contact-card p { font-size: 0.92rem; color: var(--text-body); margin-bottom: 0.9rem; overflow-wrap: anywhere; }

.contact-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-blue);
}

.contact-card-link i { transition: transform 0.25s ease; }
.contact-card:hover .contact-card-link i { transform: translateX(4px); }

.contact-card-note {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-red);
}

/* Form */
.contact-form-card {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 10px 28px rgba(23, 52, 106, 0.07);
}

.contact-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-blue);
}

.contact-tag span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-red);
  box-shadow: 0 0 0 4px rgba(227, 52, 47, 0.18);
}

.contact-form-card h2 { font-size: 1.6rem; color: var(--c-navy); margin: 0.5rem 0 0.3rem; }
.contact-form-sub { color: var(--text-muted); margin-bottom: 1.5rem; }

.contact-form .form-label { font-size: 0.85rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.35rem; }
.contact-form .req { color: var(--c-red); }

.contact-form .form-control,
.contact-form .form-select {
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-size: 0.93rem;
  background-color: var(--bg-light);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background-color: var(--white);
  border-color: var(--c-blue);
  box-shadow: 0 0 0 4px rgba(30, 99, 198, 0.12);
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.4rem;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--c-red) 0%, #c4231f 100%);
  box-shadow: 0 10px 22px rgba(227, 52, 47, 0.3);
  transition: var(--transition);
}

.contact-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(227, 52, 47, 0.38); }

.contact-form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.7rem 0 0;
}

/* Map */
.contact-map {
  position: relative;
  height: 100%;
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 28px rgba(23, 52, 106, 0.07);
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-map-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.contact-map-card .contact-card-icon { margin: 0; width: 44px; height: 44px; flex-basis: 44px; font-size: 1.1rem; }
.contact-map-card strong { display: block; color: var(--c-navy); }
.contact-map-card small { color: var(--text-muted); }

/* CTA */
.contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding: 1.8rem 2rem;
  border-radius: 22px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 120%, rgba(227, 52, 47, 0.5) 0, transparent 40%),
    linear-gradient(115deg, var(--c-navy) 0%, var(--c-blue) 60%, #3b8ced 100%);
}

.contact-cta h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 0.2rem; }
.contact-cta p { color: rgba(255, 255, 255, 0.8); margin: 0; }
.contact-cta-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.contact-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  color: var(--c-navy);
  background: var(--white);
  transition: var(--transition);
}

.contact-cta-btn:hover { color: var(--c-red); transform: translateY(-2px); }

.contact-cta-btn.outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.contact-cta-btn.outline:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

@media (max-width: 1199.98px) {
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .contact-page { padding: 2rem 0 3rem; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-form-card { padding: 1.4rem; }
  .contact-map { min-height: 320px; }
  .contact-cta { padding: 1.4rem; }
}

.footer-heading-link { color: inherit; }
.footer-heading-link:hover { color: var(--red-light); }

/* ---- Plan detail: batches (course_batch_details API) ---- */
.batch-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.batch-choice {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 1.5px solid var(--border-color);
  background: var(--white);
  border-radius: 12px;
  padding: 0.5rem 0.9rem;
  line-height: 1.2;
  transition: var(--transition);
}

.batch-choice strong { font-size: 0.9rem; color: var(--navy); }
.batch-choice small { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }
.batch-choice:hover { border-color: #1e63c6; }

.batch-choice.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--navy) 0%, #1e63c6 100%);
  box-shadow: 0 8px 18px rgba(30, 99, 198, 0.28);
}

.batch-choice.active strong,
.batch-choice.active small { color: var(--white); }

.batch-dates {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  margin: 0 0 0.3rem;
}

.batch-dates i { color: #e3342f; }

/* Available batches card (left column) */
.batch-section .cd-feature-body h3 { margin-bottom: 0.9rem; }

.batch-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
  position: relative;
  overflow: hidden;
}

.batch-card:last-child { margin-bottom: 0; }

.batch-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #1e63c6, #e3342f);
}

.batch-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.batch-card-head strong { display: block; font-size: 1.02rem; color: var(--navy); }
.batch-card-head small { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }

.batch-type {
  font-size: 0.72rem;
  font-weight: 700;
  color: #e3342f;
  background: rgba(227, 52, 47, 0.1);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.batch-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.batch-facts > div {
  display: flex;
  flex-direction: column;
  background: var(--bg-light);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
}

.batch-facts i { color: #1e63c6; font-size: 1rem; }
.batch-facts span { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 0.15rem; }
.batch-facts strong { font-size: 0.86rem; color: var(--text-dark); }

.batch-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0.8rem 0 0;
}

@media (max-width: 575.98px) {
  .batch-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* =========================================================
   PLAN DETAIL — details section only (header above untouched)
   ========================================================= */

.plan-body {
  --pb-blue: #1e63c6;
  --pb-navy: #17346a;
  --pb-red: #e3342f;
  background:
    radial-gradient(circle at 0% 0%, rgba(30, 99, 198, 0.06) 0, transparent 35%),
    var(--bg-light);
}

/* ---------- Stat boxes ---------- */
.plan-body .plan-stats { gap: 1rem; margin-bottom: 1.3rem; }

.plan-body .plan-stat {
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.2rem 0.8rem 1rem;
  box-shadow: 0 8px 22px rgba(23, 52, 106, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-body .plan-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(23, 52, 106, 0.12);
}

.plan-body .plan-stat::before { height: 4px; }

.plan-body .plan-stat i {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--pb-navy), var(--pb-blue));
  box-shadow: 0 6px 14px rgba(30, 99, 198, 0.28);
}

.plan-body .plan-stat:nth-child(2) i { background: linear-gradient(135deg, var(--pb-red), #c4231f); box-shadow: 0 6px 14px rgba(227, 52, 47, 0.28); }
.plan-body .plan-stat:nth-child(3) i { background: linear-gradient(135deg, #1a9a6c, #26b884); box-shadow: 0 6px 14px rgba(26, 154, 108, 0.28); }
.plan-body .plan-stat:nth-child(4) i { background: linear-gradient(135deg, #e08a1e, #f0a440); box-shadow: 0 6px 14px rgba(224, 138, 30, 0.28); }

.plan-body .plan-stat strong { font-size: 1.7rem; color: var(--pb-navy); }

/* ---------- Left cards ---------- */
.plan-body .cd-feature {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 24px rgba(23, 52, 106, 0.06);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.plan-body .cd-feature:hover {
  border-color: rgba(30, 99, 198, 0.22);
  box-shadow: 0 14px 32px rgba(23, 52, 106, 0.1);
}

.plan-body .cd-feature-icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pb-navy), var(--pb-blue));
  box-shadow: 0 8px 18px rgba(30, 99, 198, 0.28);
}

.plan-body .cd-feature-icon.icon-red { background: linear-gradient(135deg, var(--pb-red), #c4231f); box-shadow: 0 8px 18px rgba(227, 52, 47, 0.28); }
.plan-body .cd-feature-icon.icon-green { background: linear-gradient(135deg, #1a9a6c, #26b884); box-shadow: 0 8px 18px rgba(26, 154, 108, 0.28); }

.plan-body .cd-feature-body h3 {
  position: relative;
  color: var(--pb-navy);
  font-size: 1.2rem;
  padding-bottom: 0.55rem;
  margin-bottom: 0.9rem;
}

.plan-body .cd-feature-body h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pb-blue), var(--pb-red));
}

.plan-body .cd-check-list li {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  margin-bottom: 0.4rem;
}

.plan-body .cd-check-list i { color: var(--pb-blue); }

.plan-body .cd-dot-list li {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 0.45rem 0.8rem 0.45rem 1.6rem;
  margin-bottom: 0.4rem;
  break-inside: avoid;
}

.plan-body .cd-dot-list li::before { left: 0.7rem; top: 0.95rem; background: var(--pb-red); }

/* Syllabus call-out */
.plan-body .syl-cta {
  background:
    radial-gradient(circle at 100% 0%, rgba(227, 52, 47, 0.08) 0, transparent 40%),
    linear-gradient(135deg, #f3f7ff 0%, #ffffff 100%);
  border: 1.5px dashed rgba(30, 99, 198, 0.35);
}

.plan-body .syl-cta .cd-feature-body h3 { margin-bottom: 0.5rem; }

/* Batch card */
.plan-body .batch-card { background: var(--bg-light); border-color: transparent; }
.plan-body .batch-facts > div { background: var(--white); }
.plan-body .batch-facts i { color: var(--pb-red); }

/* ---------- Price card ---------- */
.plan-body .cd-batch-card {
  position: sticky;
  top: calc(var(--navbar-height) + 16px);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(23, 52, 106, 0.12);
  overflow: hidden;
}

/* course image as a framed banner instead of a squeezed screenshot */
.plan-body .plan-thumb {
  height: 150px;
  object-fit: cover;
  object-position: top;
  border-bottom: 5px solid transparent;
  border-image: linear-gradient(90deg, var(--pb-blue), var(--pb-red)) 1;
}

.plan-body .cd-batch-top h3 { color: var(--pb-navy); }

.plan-body .cd-batch-chip,
.plan-body .plan-chip-light {
  background: rgba(30, 99, 198, 0.08);
  color: var(--pb-blue);
  font-weight: 700;
}

.plan-body .batch-choice.active {
  background: linear-gradient(135deg, var(--pb-navy) 0%, var(--pb-blue) 100%);
}

.plan-body .batch-dates {
  display: inline-flex;
  background: rgba(227, 52, 47, 0.07);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.8rem;
}

.plan-body .cd-price-row {
  background: linear-gradient(135deg, rgba(30, 99, 198, 0.07), rgba(227, 52, 47, 0.06));
  border: 1px dashed rgba(30, 99, 198, 0.3);
  border-radius: 16px;
  padding: 0.9rem 1rem;
}

.plan-body .cd-price { font-size: 2rem; color: var(--pb-navy); }

.plan-body .cd-join-btn {
  background: linear-gradient(135deg, var(--pb-red) 0%, #c4231f 100%);
  box-shadow: 0 12px 26px rgba(227, 52, 47, 0.35);
}

.plan-body .syl-link-btn:hover { border-color: var(--pb-blue); }

@media (max-width: 991.98px) {
  .plan-body .cd-batch-card { position: static; }
}

@media (max-width: 575.98px) {
  .plan-body .cd-feature { padding: 1.1rem; }
  .plan-body .plan-stat strong { font-size: 1.4rem; }
}

/* ---- Plan detail: assigned faculty inside each batch card ---- */
.batch-faculty {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border-color);
}

.batch-faculty-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.7rem;
}

.batch-faculty-label i { color: #e3342f; font-size: 0.95rem; }

.batch-faculty-label span {
  background: rgba(30, 99, 198, 0.1);
  color: #1e63c6;
  border-radius: var(--radius-pill);
  padding: 0.05rem 0.5rem;
  letter-spacing: 0;
}

.batch-faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}

.faculty-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.65rem 0.8rem;
  transition: var(--transition);
}

.faculty-mini:hover {
  border-color: rgba(30, 99, 198, 0.3);
  box-shadow: 0 8px 18px rgba(23, 52, 106, 0.08);
  transform: translateY(-2px);
}

/* photo with a blue → red ring, like the profile pages */
.faculty-mini-photo {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 200deg, #1e63c6, #3b8ced, #e3342f, #1e63c6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

.faculty-mini-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--white);
}

.faculty-mini-info { min-width: 0; }

.faculty-mini-info strong {
  display: block;
  font-size: 0.93rem;
  color: #17346a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.faculty-mini-subject {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #e3342f;
  background: rgba(227, 52, 47, 0.08);
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.55rem;
  margin: 0.15rem 0;
}

.faculty-mini-info small {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* =========================================================
   CBT PAGE — CBT / Test Series switch + cards (test_series_by_type)
   ========================================================= */

.ts-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto 2.4rem;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(23, 52, 106, 0.08);
}

.ts-switch-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: none;
  background: transparent;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  text-align: left;
  color: var(--text-dark);
  transition: var(--transition);
}

.ts-switch-btn:hover { background: var(--bg-light); }

.ts-switch-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #1e63c6;
  background: rgba(30, 99, 198, 0.1);
  transition: var(--transition);
}

.ts-switch-text { flex: 1; min-width: 0; }
.ts-switch-text strong { display: block; font-size: 1.02rem; color: #17346a; }
.ts-switch-text small { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }

.ts-switch-count {
  min-width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  font-weight: 800;
  font-size: 0.85rem;
  color: #1e63c6;
  background: rgba(30, 99, 198, 0.1);
}

/* active button */
.ts-switch-btn.active {
  background: linear-gradient(135deg, #17346a 0%, #1e63c6 100%);
  box-shadow: 0 10px 22px rgba(30, 99, 198, 0.32);
}

#tab-practice.active {
  background: linear-gradient(135deg, #c4231f 0%, #e3342f 100%);
  box-shadow: 0 10px 22px rgba(227, 52, 47, 0.32);
}

.ts-switch-btn.active .ts-switch-icon { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.ts-switch-btn.active strong { color: var(--white); }
.ts-switch-btn.active small { color: rgba(255, 255, 255, 0.8); }
.ts-switch-btn.active .ts-switch-count { background: var(--white); color: #17346a; }

/* ---------- Test series card ---------- */
.ts-card {
  --ts-color: #1e63c6;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.3rem 1.4rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(23, 52, 106, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ts-card.ts-practice { --ts-color: #e3342f; }

.ts-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--ts-color), #17346a);
}

.ts-card:hover {
  transform: translateY(-5px);
  border-color: rgba(30, 99, 198, 0.25);
  box-shadow: 0 18px 36px rgba(23, 52, 106, 0.12);
}

.ts-card-icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  background: linear-gradient(135deg, #17346a, var(--ts-color));
  box-shadow: 0 10px 20px rgba(23, 52, 106, 0.22);
}

.ts-card-body { flex: 1; min-width: 0; }

.ts-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.4rem; }

.ts-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ts-color);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem;
}

.ts-code {
  font-size: 0.72rem;
  font-weight: 700;
  color: #17346a;
  background: var(--bg-navy-soft);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem;
}

.ts-card h4 { font-size: 1.15rem; color: #17346a; margin-bottom: 0.25rem; }
.ts-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.5rem; }

.ts-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.8rem; color: var(--text-body); font-weight: 600; }
.ts-meta i { color: var(--ts-color); margin-right: 0.15rem; }

.ts-card-action { flex: 0 0 auto; }

.ts-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  background: linear-gradient(135deg, #17346a 0%, var(--ts-color) 100%);
  box-shadow: 0 8px 18px rgba(23, 52, 106, 0.22);
  transition: var(--transition);
}

.ts-btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(23, 52, 106, 0.3); }
.ts-btn i { transition: transform 0.25s ease; }
.ts-btn:hover i { transform: translateX(3px); }

/* Empty / error state */
.ts-empty {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px dashed rgba(30, 99, 198, 0.3);
  border-radius: 22px;
  padding: 2.4rem 1.8rem;
}

.ts-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: #1e63c6;
  background: rgba(30, 99, 198, 0.1);
}

.ts-empty h4 { font-size: 1.15rem; color: #17346a; margin-bottom: 0.3rem; }
.ts-empty p { color: var(--text-muted); margin: 0; }

@media (max-width: 767.98px) {
  .ts-card { flex-wrap: wrap; }
  .ts-card-action { width: 100%; }
  .ts-btn { width: 100%; justify-content: center; }
}

@media (max-width: 575.98px) {
  .ts-switch { grid-template-columns: 1fr; }
}

/* ---- CBT page: tests pop-up (tests_by_test_series) ---- */
.st-modal .modal-content { border: none; border-radius: 22px; overflow: hidden; }

.st-modal-head {
  position: relative;
  padding: 22px 26px;
  color: var(--white);
  background:
    radial-gradient(circle at 92% 120%, rgba(227, 52, 47, 0.5) 0, transparent 40%),
    linear-gradient(115deg, #17346a 0%, #1e63c6 60%, #3b8ced 100%);
}

.st-modal-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e63c6, #e3342f);
}

.st-modal-head .btn-close { position: absolute; top: 20px; right: 22px; }

.st-modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.st-modal-head h2 { color: var(--white); font-size: 1.4rem; margin: 0.3rem 0 0.2rem; }
.st-modal-head p { color: rgba(255, 255, 255, 0.8); margin: 0; font-size: 0.88rem; }
.st-modal .modal-body { background: var(--bg-light); padding: 22px 24px; }

.st-summary {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.st-summary > div {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-top: 3px solid #1e63c6;
  border-radius: 14px;
  padding: 0.75rem;
  text-align: center;
}

.st-summary > div:nth-child(2) { border-top-color: #e3342f; }
.st-summary > div:nth-child(3) { border-top-color: #17346a; }
.st-summary strong { display: block; font-family: "Poppins", sans-serif; font-size: 1.15rem; color: #17346a; line-height: 1.2; }
.st-summary span { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.st-list { display: flex; flex-direction: column; gap: 0.7rem; }

.st-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  transition: var(--transition);
}

.st-item:hover {
  border-color: rgba(30, 99, 198, 0.3);
  box-shadow: 0 10px 22px rgba(23, 52, 106, 0.08);
}

.st-num {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, #17346a, #1e63c6);
}

.st-info { flex: 1; min-width: 0; }
.st-info strong { display: block; color: #17346a; font-size: 1rem; }

.st-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.3rem 0; }

.st-code,
.st-class {
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.55rem;
}

.st-code { color: #1e63c6; background: rgba(30, 99, 198, 0.1); }
.st-class { color: #e3342f; background: rgba(227, 52, 47, 0.08); }

.st-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.82rem; font-weight: 600; color: var(--text-body); }
.st-meta i { color: #1e63c6; margin-right: 0.15rem; }

.st-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.1rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  background: linear-gradient(135deg, #e3342f 0%, #c4231f 100%);
  box-shadow: 0 8px 18px rgba(227, 52, 47, 0.28);
  transition: var(--transition);
}

.st-btn:hover { color: var(--white); transform: translateY(-2px); }
.st-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.st-btn-outline {
  background: var(--white);
  color: #1e63c6;
  border: 1.5px solid #1e63c6;
  box-shadow: none;
}

.st-btn-outline:hover { background: #1e63c6; color: var(--white); }

.st-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
}

@media (max-width: 575.98px) {
  .st-summary { grid-template-columns: 1fr 1fr; }
  .st-summary-wide { grid-column: 1 / -1; order: -1; }
  .st-item { flex-wrap: wrap; }
  .st-action { width: 100%; }
  .st-btn { width: 100%; justify-content: center; }
}

/* ---- CBT page: compact test series card (logo colours) ---- */
.tsc {
  --tsc-color: #1e63c6;
  --tsc-soft: rgba(30, 99, 198, 0.1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 1.3rem 1.3rem 1.2rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(23, 52, 106, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tsc.tsc-practice { --tsc-color: #e3342f; --tsc-soft: rgba(227, 52, 47, 0.1); }

/* thin colour strip on top */
.tsc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tsc-color), #17346a);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tsc:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 99, 198, 0.25);
  box-shadow: 0 20px 40px rgba(23, 52, 106, 0.13);
}

.tsc:hover::before { opacity: 1; }

/* Top */
.tsc-top { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 1.1rem; }

.tsc-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  color: var(--white);
  background: linear-gradient(135deg, #17346a 0%, var(--tsc-color) 100%);
  box-shadow: 0 10px 20px rgba(23, 52, 106, 0.22);
}

.tsc-head { flex: 1; min-width: 0; }
.tsc-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.35rem; }

.tsc-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--tsc-color);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem;
}

.tsc-code {
  font-size: 0.7rem;
  font-weight: 700;
  color: #17346a;
  background: var(--bg-navy-soft);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem;
}

.tsc-head h4 {
  font-size: 1.15rem;
  color: #17346a;
  margin: 0 0 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tsc-head p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tsc-level {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  color: #e3342f;
  background: rgba(227, 52, 47, 0.1);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
}

/* Stats row */
.tsc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
  margin-bottom: 0.9rem;
}

.tsc-stats > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.6rem;
}

.tsc-stats > div:first-child { padding-left: 0; }
.tsc-stats > div + div { border-left: 1px solid var(--border-color); }
.tsc-stats i { font-size: 1.25rem; color: var(--tsc-color); }
.tsc-stats strong { display: block; font-family: "Poppins", sans-serif; font-size: 1.15rem; color: #17346a; line-height: 1.1; }
.tsc-stats small { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); }

.tsc-desc {
  display: flex;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--text-body);
  background: var(--bg-light);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.9rem;
}

.tsc-desc i { color: var(--tsc-color); }

/* Footer */
.tsc-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.tsc-year { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; font-weight: 600; color: var(--text-body); }
.tsc-year i { color: var(--tsc-color); font-size: 1rem; }

.tsc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  background: linear-gradient(135deg, #17346a 0%, var(--tsc-color) 100%);
  box-shadow: 0 10px 22px rgba(23, 52, 106, 0.25);
  transition: var(--transition);
}

.tsc-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(23, 52, 106, 0.32); }
.tsc-btn i { transition: transform 0.25s ease; }
.tsc-btn:hover i { transform: translateX(4px); }

@media (max-width: 575.98px) {
  .tsc-stats > div { padding: 0 0.4rem; gap: 0.35rem; }
  .tsc-stats i { font-size: 1.05rem; }
}

/* =========================================================
   CBT "Start Test" pop-up — redesign (logo colours)
   ========================================================= */

.stx-modal .modal-dialog { max-width: 1000px; }
.stx-modal .modal-content { border: none; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px rgba(10, 25, 55, 0.35); }
.stx-modal .modal-body { background: #ffffff; padding: 1.5rem 1.6rem 1.7rem; }

/* ---------- Header ---------- */
.stx-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 190px;
  padding: 1.8rem 2rem;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18) 0, transparent 35%),
    radial-gradient(circle at 98% 110%, rgba(227, 52, 47, 0.35) 0, transparent 35%),
    linear-gradient(115deg, #17346a 0%, #1e63c6 55%, #3b8ced 100%);
}

.stx-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e63c6, #e3342f);
}

.stx-head .btn-close { position: absolute; top: 22px; right: 24px; z-index: 3; }

.stx-dots {
  position: absolute;
  width: 70px;
  height: 56px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
}

.stx-dots-1 { left: 26px; bottom: 18px; }
.stx-dots-2 { left: 50%; top: 40px; }

.stx-head-main { position: relative; z-index: 2; display: flex; align-items: center; gap: 1.1rem; }

.stx-head-icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.stx-head-meta { font-size: 0.85rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 255, 255, 0.9); }
.stx-head h2 { color: var(--white); font-size: 2.1rem; margin: 0.15rem 0 0.2rem; }
.stx-head p { color: rgba(255, 255, 255, 0.85); margin: 0; }

/* ---------- Illustration ---------- */
.stx-art { position: relative; z-index: 1; width: 340px; height: 160px; margin-right: 1.5rem; flex: 0 0 auto; }

.stx-monitor {
  position: absolute;
  left: 80px;
  top: 6px;
  width: 190px;
  height: 130px;
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(160deg, #2b74e0, #17346a);
  box-shadow: 0 16px 30px rgba(10, 25, 55, 0.35);
  transform: rotate(-3deg);
}

.stx-screen { height: 100%; border-radius: 8px; background: var(--white); padding: 10px 12px; color: #17346a; }
.stx-screen strong { display: block; text-align: center; font-size: 0.72rem; font-weight: 800; margin-bottom: 6px; color: #1e63c6; }
.stx-q { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.stx-q span { width: 16px; height: 16px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 800; color: var(--white); background: #1e63c6; }
.stx-q span.tick { background: #1e63c6; }
.stx-q > i { flex: 1; height: 5px; border-radius: 3px; background: #dbe5f5; }
.stx-q b { width: 15px; height: 15px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.5rem; color: #8aa2c8; background: #eef3fb; }
.stx-line { display: block; height: 5px; border-radius: 3px; background: #dbe5f5; width: 70%; margin: 4px auto 0; }
.stx-stand { position: absolute; left: 50%; bottom: -16px; width: 50px; height: 16px; transform: translateX(-50%); background: #17346a; border-radius: 0 0 8px 8px; }

.stx-paper {
  position: absolute;
  left: 10px;
  top: 40px;
  width: 60px;
  height: 72px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #1e63c6;
  background: var(--white);
  box-shadow: 0 10px 20px rgba(10, 25, 55, 0.25);
  transform: rotate(-14deg);
}

.stx-clock {
  position: absolute;
  left: 250px;
  top: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #1e63c6;
  background: var(--white);
  border: 4px solid #8fb7f2;
  box-shadow: 0 8px 16px rgba(10, 25, 55, 0.25);
}

.stx-books { position: absolute; left: 238px; bottom: 6px; display: flex; flex-direction: column; gap: 3px; }
.stx-books span { display: block; width: 58px; height: 12px; border-radius: 3px; box-shadow: 0 4px 8px rgba(10, 25, 55, 0.2); }
.stx-books span:nth-child(1) { background: #e3342f; width: 52px; margin-left: 4px; }
.stx-books span:nth-child(2) { background: #f0a440; }
.stx-books span:nth-child(3) { background: #1a9a6c; width: 62px; }

.stx-plant { position: absolute; right: 0; bottom: 6px; width: 42px; text-align: center; }
.stx-plant i { display: block; font-size: 2rem; color: #26b884; line-height: 1; }
.stx-plant span { display: block; width: 32px; height: 26px; margin: 0 auto; border-radius: 4px 4px 10px 10px; background: var(--white); }

/* ---------- Summary cards ---------- */
.stx-summary { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 1rem; margin-bottom: 1.3rem; }

.stx-sum {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  border: 1px solid transparent;
}

.stx-sum strong { display: block; font-family: "Poppins", sans-serif; font-size: 1.35rem; color: #17346a; line-height: 1.2; }
/* only the TESTS / COURSE / YEAR label — not the icon box (also a <span>) */
.stx-sum > div > span { display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: #17346a; }
.stx-sum small { font-size: 0.82rem; color: var(--text-muted); }

.stx-sum-icon {
  line-height: 1;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stx-sum-blue { background: #eef4fd; border-color: #d6e4f8; }
.stx-sum-blue .stx-sum-icon { color: var(--white); background: linear-gradient(135deg, #3b8ced, #1e63c6); box-shadow: 0 8px 18px rgba(30, 99, 198, 0.3); }
.stx-sum-red { background: #fff1f1; border-color: #fbd6d5; }
.stx-sum-red .stx-sum-icon { color: #e3342f; background: #ffdedd; }
.stx-sum-green { background: #eefaf5; border-color: #cdeedf; }
.stx-sum-green .stx-sum-icon { color: #1a9a6c; background: #d4f3e6; }

/* ---------- Test rows ---------- */
.stx-list { display: flex; flex-direction: column; gap: 1rem; }

.stx-item {
  background: var(--white);
  border: 1px solid #e3e9f3;
  border-radius: 20px;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 8px 22px rgba(23, 52, 106, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stx-item:hover { transform: translateY(-3px); border-color: rgba(30, 99, 198, 0.25); box-shadow: 0 16px 32px rgba(23, 52, 106, 0.12); }

.stx-item-top { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1rem; }

.stx-num {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  box-shadow: 0 10px 20px rgba(23, 52, 106, 0.25);
}

.stx-num.n-blue { background: linear-gradient(135deg, #3b8ced, #1e63c6); }
.stx-num.n-navy { background: linear-gradient(135deg, #1e63c6, #17346a); }
.stx-num.n-red { background: linear-gradient(135deg, #ff5b57, #e3342f); }

.stx-info h5 { font-size: 1.25rem; color: #17346a; margin: 0 0 0.4rem; }
.stx-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.stx-code, .stx-class { font-size: 0.8rem; font-weight: 700; border-radius: var(--radius-pill); padding: 0.25rem 0.75rem; }
.stx-code { color: #1e63c6; background: #e6effc; }
.stx-class { color: #e3342f; background: #fde6e5; }

.stx-item-bottom { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.stx-stats { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; min-width: 280px; }

.stx-stat {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #f5f8fd;
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
}

.stx-stat-icon {
  line-height: 1;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.stx-stat-icon.s-blue { color: #1e63c6; background: #e1ecfb; }
.stx-stat-icon.s-gold { color: #e08a1e; background: #fdeed8; }
.stx-stat-icon.s-red { color: #e3342f; background: #fde3e2; }

.stx-stat strong { display: block; font-family: "Poppins", sans-serif; font-size: 1.1rem; color: #17346a; line-height: 1.15; }
.stx-stat small { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

.stx-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: var(--radius-pill);
  padding: 0.95rem 1.7rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  white-space: nowrap;
  background: linear-gradient(135deg, #ef4440 0%, #e3342f 50%, #c4231f 100%);
  box-shadow: 0 12px 26px rgba(227, 52, 47, 0.35);
  transition: var(--transition);
}

.stx-btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(227, 52, 47, 0.45); }
.stx-btn .bi-arrow-right { transition: transform 0.25s ease; }
.stx-btn:hover .bi-arrow-right { transform: translateX(4px); }

.stx-btn-outline { background: var(--white); color: #1e63c6; border: 1.5px solid #1e63c6; box-shadow: none; }
.stx-btn-outline:hover { background: #1e63c6; color: var(--white); box-shadow: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .stx-art { display: none; }
  .stx-summary { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .stx-head { padding: 1.4rem 1.2rem; min-height: 0; }
  .stx-head h2 { font-size: 1.5rem; }
  .stx-head-icon { flex-basis: 46px; width: 46px; height: 46px; font-size: 1.2rem; }
  .stx-modal .modal-body { padding: 1rem; }
  .stx-num { flex-basis: 50px; width: 50px; height: 50px; font-size: 1.15rem; }
  .stx-stats { grid-template-columns: 1fr; min-width: 0; width: 100%; }
  .stx-action, .stx-btn { width: 100%; justify-content: center; }
}

/* ---- "Start Test" pop-up: phone layout fixes ---- */
@media (max-width: 767.98px) {
  .stx-head { padding: 1.4rem 3.6rem 1.4rem 1.3rem; min-height: 0; }
  .stx-dots { display: none; }
  .stx-head-main { gap: 0.8rem; align-items: center; }
  .stx-head h2 { font-size: 1.45rem; line-height: 1.2; }
  .stx-head p { font-size: 0.88rem; }
  .stx-head-meta { font-size: 0.72rem; letter-spacing: 1px; }
  .stx-head .btn-close { top: 18px; right: 16px; }
}

@media (max-width: 575.98px) {
  /* full-screen pop-up on phones */
  .stx-modal .modal-content { border-radius: 0; box-shadow: none; }
  .stx-modal .modal-body { padding: 1rem 0.9rem 1.4rem; }

  .stx-head { padding: 1.1rem 3.2rem 1.2rem 1rem; }
  .stx-head-icon { flex: 0 0 42px; width: 42px; height: 42px; font-size: 1.05rem; }
  .stx-head h2 { font-size: 1.3rem; margin: 0.1rem 0; }
  .stx-head p { font-size: 0.82rem; }
  .stx-head .btn-close { top: 14px; right: 12px; }

  /* summary cards: compact rows */
  .stx-summary { gap: 0.6rem; margin-bottom: 1rem; }
  .stx-sum { padding: 0.75rem 0.85rem; gap: 0.75rem; border-radius: 14px; }
  .stx-sum-icon { flex: 0 0 44px; width: 44px; height: 44px; font-size: 1.15rem; border-radius: 12px; }
  .stx-sum strong { font-size: 1.05rem; }
  .stx-sum small { display: none; }

  /* test rows */
  .stx-item { padding: 0.95rem; border-radius: 16px; }
  .stx-item-top { gap: 0.8rem; margin-bottom: 0.8rem; }
  .stx-num { flex: 0 0 46px; width: 46px; height: 46px; font-size: 1.05rem; border-radius: 14px; }
  .stx-info h5 { font-size: 1.02rem; }
  .stx-code, .stx-class { font-size: 0.72rem; padding: 0.2rem 0.6rem; }

  /* 3 stats side by side, compact */
  .stx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; min-width: 0; width: 100%; }
  .stx-stat { flex-direction: column; align-items: flex-start; gap: 0.35rem; padding: 0.55rem 0.6rem; }
  .stx-stat-icon { flex: 0 0 30px; width: 30px; height: 30px; font-size: 0.9rem; }
  .stx-stat strong { font-size: 1rem; }
  .stx-stat small { font-size: 0.72rem; }

  .stx-action, .stx-btn { width: 100%; justify-content: center; }
  .stx-btn { padding: 0.8rem 1rem; font-size: 0.95rem; }
}

/* =========================================================
   CBT PAGE — "How Tests Help You?" steps + "Start Your Journey" banner
   ========================================================= */

.hth-section { padding: 1rem 0 4.5rem; }

/* ---------- Steps card ---------- */
.hth-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 1.8rem 1.8rem 2rem;
  margin-bottom: 1.6rem;
  border: 1px solid #dbe6f6;
  background:
    radial-gradient(circle at 100% 0%, rgba(30, 99, 198, 0.1) 0, transparent 40%),
    linear-gradient(135deg, #f1f6fe 0%, #f8fbff 100%);
}

.hth-plane { position: absolute; top: 18px; right: 190px; width: 220px; height: 70px; pointer-events: none; }

.hth-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.hth-head h2 { font-size: 1.8rem; color: #17346a; margin: 0 0 0.25rem; }
.hth-head p { color: var(--text-muted); margin: 0; }

.hth-learn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid #1e63c6;
  background: var(--white);
  color: #1e63c6;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.hth-learn:hover { background: #1e63c6; color: var(--white); }

.hth-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.hth-step {
  --step: #1e63c6;
  --step-soft: #e1ecfb;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid #e3e9f3;
  border-radius: 18px;
  padding: 1.6rem 1rem 1.1rem;
  box-shadow: 0 8px 20px rgba(23, 52, 106, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hth-step:hover { transform: translateY(-4px); border-color: var(--step-soft); box-shadow: 0 16px 30px rgba(23, 52, 106, 0.1); }

.hth-step.s-blue { --step: #1e63c6; --step-soft: #e1ecfb; }
.hth-step.s-red { --step: #e3342f; --step-soft: #fde3e2; }
.hth-step.s-green { --step: #1a9a6c; --step-soft: #d6f3e6; }
.hth-step.s-navy { --step: #17346a; --step-soft: #e3e8f3; }

.hth-step-num {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--white);
  background: var(--step);
  box-shadow: 0 0 0 4px #f4f8ff;
}

.hth-step-icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--step);
  background: var(--step-soft);
}

.hth-step h4 { font-size: 1rem; color: #17346a; margin: 0 0 0.2rem; }
.hth-step p { font-size: 0.84rem; color: var(--text-muted); margin: 0; line-height: 1.45; }

/* ---------- Start your journey banner ---------- */
.hth-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  border-radius: 24px;
  padding: 1.8rem 2.2rem;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 100%, rgba(227, 52, 47, 0.55) 0, transparent 38%),
    radial-gradient(circle at 60% 0%, rgba(59, 140, 237, 0.35) 0, transparent 40%),
    linear-gradient(115deg, #0f2550 0%, #17346a 45%, #1e4f9e 100%);
  box-shadow: 0 18px 40px rgba(15, 37, 80, 0.3);
}

.hth-cta-dots {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.3) 1.5px, transparent 1.5px);
  background-size: 13px 13px;
  pointer-events: none;
}

.hth-cta-trophy {
  position: absolute;
  right: 300px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4.5rem;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

/* target + arrow graphic */
.hth-target {
  position: relative;
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
}

.hth-target .ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hth-target .r1 { width: 100px; height: 100px; background: linear-gradient(135deg, #3b8ced, #1e63c6); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
.hth-target .r2 { width: 72px; height: 72px; background: var(--white); }
.hth-target .r3 { width: 48px; height: 48px; background: #1e63c6; }
.hth-target .bull { position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; border-radius: 50%; transform: translate(-50%, -50%); background: #e3342f; box-shadow: 0 0 0 4px var(--white); }

.hth-target .arrow {
  position: absolute;
  top: 18px;
  right: -4px;
  width: 58px;
  height: 4px;
  border-radius: 2px;
  background: #ffd36b;
  transform: rotate(-38deg);
  transform-origin: left center;
}

.hth-target .arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -6px;
  border-left: 14px solid #e3342f;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.hth-cta-text { position: relative; flex: 1; min-width: 0; }

.hth-cta-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8fb7f2;
}

.hth-cta h3 { color: var(--white); font-size: 1.7rem; margin: 0.3rem 0 0.4rem; }
.hth-cta p { color: rgba(255, 255, 255, 0.8); margin: 0; max-width: 560px; }

.hth-cta-btn {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: #17346a;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.hth-cta-btn:hover { color: #e3342f; transform: translateY(-2px); }
.hth-cta-btn i { transition: transform 0.25s ease; }
.hth-cta-btn:hover i { transform: translateX(4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .hth-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
  .hth-plane { right: 170px; }
}

@media (max-width: 767.98px) {
  .hth-plane, .hth-cta-trophy { display: none; }
  .hth-card { padding: 1.4rem 1.1rem 1.5rem; }
  .hth-head h2 { font-size: 1.45rem; }
  .hth-cta { flex-direction: column; text-align: center; padding: 1.6rem 1.3rem; gap: 1.1rem; }
  .hth-cta p { margin: 0 auto; }
  .hth-cta-btn { width: 100%; justify-content: center; }
}

@media (max-width: 575.98px) {
  .hth-steps { grid-template-columns: 1fr; row-gap: 1.4rem; }
  .hth-learn { width: 100%; justify-content: center; }
  .hth-cta h3 { font-size: 1.35rem; }
  .hth-target { flex-basis: 90px; width: 90px; height: 90px; }
  .hth-target .r1 { width: 84px; height: 84px; }
  .hth-target .r2 { width: 60px; height: 60px; }
  .hth-target .r3 { width: 40px; height: 40px; }
}

/* ============ JOIN NOW: subscription steps ============ */
.jn-fee-days { display: block; font-size: 0.75rem; color: #1e63c6; font-weight: 600; margin-top: 2px; }
.jn-login-note {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.85rem 1rem; margin-bottom: 1rem;
  border-radius: 12px; background: #eef4fd; border: 1px solid #cfe0f7; color: #17346a;
}
.jn-login-note[hidden] { display: none; }
.jn-login-note > i { font-size: 1.4rem; color: #1e63c6; line-height: 1; }
.jn-login-note strong { display: block; font-size: 0.92rem; }
.jn-login-note p { margin: 2px 0 0.5rem; font-size: 0.82rem; color: #5a6a82; }
.jn-login-note .jn-login-btn { padding: 0.4rem 1rem; font-size: 0.82rem; }
.jn-error { border-radius: 10px; font-size: 0.86rem; padding: 0.65rem 0.9rem; border: 1px solid #f5c2c0; background: #fff1f0; color: #b4231f; }
.jn-error.d-none { display: none !important; }
.jn-summary {
  width: 100%; max-width: 340px; margin: 1rem auto;
  border: 1px solid #dce5f1; border-radius: 14px; overflow: hidden; text-align: left;
}
.jn-summary[hidden] { display: none; }
.jn-summary > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 1rem; font-size: 0.88rem; border-bottom: 1px solid #edf1f7; }
.jn-summary > div span { color: #68758a; }
.jn-summary > div strong { color: #17346a; text-align: right; }
.jn-summary .jn-summary-total { background: linear-gradient(135deg, #17346a, #1e63c6); border-bottom: 0; }
.jn-summary .jn-summary-total span,
.jn-summary .jn-summary-total strong { color: #fff; }
.jn-summary .jn-summary-total strong { font-size: 1.05rem; }
.jn-pay-btn { display: inline-flex; align-items: center; gap: 0.5rem; }
.jn-pay-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.jn-pay-note { margin: 0.6rem 0 0; font-size: 0.78rem; color: #68758a; }

/* ============ JOIN NOW: polished look ============ */
#joinNowModal [hidden] { display: none !important; }
.joinnow-modal-content { border-radius: 22px; box-shadow: 0 30px 70px rgba(23, 52, 106, 0.28); }

.joinnow-modal-header {
  position: relative; overflow: hidden;
  align-items: center; gap: 0.9rem;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, #17346a 0%, #1e63c6 100%);
}
.joinnow-modal-header::after {
  content: ""; position: absolute; right: -40px; top: -60px;
  width: 170px; height: 170px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); pointer-events: none;
}
.jn-head-icon {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.joinnow-modal-header h3 { flex: 1; color: #fff; font-size: 1.25rem; }
.joinnow-modal-header .joinnow-course-meta { color: rgba(255, 255, 255, 0.78); }
.joinnow-modal-header .btn-close { position: relative; z-index: 1; opacity: 0.85; align-self: flex-start; }
.joinnow-modal-header .btn-close:hover { opacity: 1; }

.joinnow-modal-content .modal-body { padding: 1.4rem 1.6rem 1.6rem; }

.joinnow-price-box {
  flex-wrap: nowrap; gap: 0.85rem; margin-bottom: 1.3rem;
  background: #f5f8fd; border: 1px solid #dce5f1; border-radius: 16px; padding: 0.95rem 1.1rem;
}
.jn-fee-icon {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #fff0f0; color: #e3342f; font-size: 1.15rem;
}
.jn-fee-main { flex: 1; min-width: 0; }
.jn-fee-value { font-size: 1.3rem; color: #17346a; line-height: 1.2; }
.joinnow-price-box .jn-fee-days {
  margin: 0; white-space: nowrap;
  padding: 0.35rem 0.75rem; border-radius: 30px;
  background: #e6effc; color: #1e63c6; font-size: 0.75rem; font-weight: 700;
}

/* Login panel */
.jn-login-note {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0;
  padding: 1.5rem 1.3rem 1.3rem; margin: 0;
  border-radius: 16px; border: 1px dashed #c9d9f0;
  background: linear-gradient(180deg, #f3f7fe 0%, #ffffff 100%);
}
.jn-login-icon {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: #1e63c6; font-size: 1.6rem; margin-bottom: 0.8rem;
  box-shadow: 0 8px 20px rgba(30, 99, 198, 0.16);
}
.jn-login-note strong { font-size: 1.05rem; color: #17346a; }
.jn-login-note p { margin: 0.35rem 0 1.1rem; font-size: 0.87rem; color: #68758a; max-width: 300px; line-height: 1.5; }
.jn-login-note .jn-login-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; max-width: 280px; padding: 0.75rem 1.2rem; font-size: 0.95rem;
  border-radius: 40px; font-weight: 700; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #e3342f 0%, #c62521 100%);
  box-shadow: 0 10px 22px rgba(227, 52, 47, 0.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.jn-login-note .jn-login-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(227, 52, 47, 0.34); }
.jn-login-alt { margin-top: 0.8rem; font-size: 0.83rem; color: #68758a; }
.jn-login-alt a { color: #1e63c6; font-weight: 700; text-decoration: none; }
.jn-login-alt a:hover { text-decoration: underline; }

.jn-error { margin: 0 0 1rem; }

@media (max-width: 575px) {
  .joinnow-modal-header { padding: 1.2rem 1.2rem; }
  .jn-head-icon { flex-basis: 40px; width: 40px; height: 40px; font-size: 1.15rem; }
  .joinnow-modal-content .modal-body { padding: 1.2rem 1.2rem 1.4rem; }
  .joinnow-price-box { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .joinnow-price-box .jn-fee-days { margin-left: auto; }
}

/* ============ JOIN NOW: payment + enrolled ============ */
.joinnow-success { padding: 0.4rem 0 0.2rem; }
.joinnow-success h3 { color: #17346a; font-size: 1.3rem; margin-bottom: 0.4rem; }
.joinnow-success p { margin-bottom: 1rem; font-size: 0.88rem; }
.jn-stage-icon {
  width: 66px; height: 66px; margin: 0 auto 0.9rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.9rem; color: #fff;
}
.jn-stage-icon-blue { background: linear-gradient(135deg, #17346a, #1e63c6); box-shadow: 0 0 0 8px #e6effc; }
.jn-stage-icon-green { background: linear-gradient(135deg, #18a058, #22c06b); box-shadow: 0 0 0 8px #e3f7ec; }
.jn-pay-stage .jn-summary { margin: 0 auto 1.2rem; }
.jn-pay-stage .jn-pay-btn { width: 100%; max-width: 340px; justify-content: center; padding: 0.8rem 1.2rem; font-size: 1rem; }
.jn-pay-stage .jn-pay-note { margin: 0.7rem 0 0; font-size: 0.78rem; }
.jn-pay-note i { color: #1e63c6; }
.jn-done-id {
  display: inline-block; margin: -0.3rem 0 1.2rem; padding: 0.35rem 0.9rem; border-radius: 30px;
  background: #f5f8fd; border: 1px solid #dce5f1; color: #17346a; font-size: 0.8rem; font-weight: 700;
}
.jn-done-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; }
.jn-done-actions > * { display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; }

/* ============ FOOTER: image background (footer.png) ============ */
.site-footer {
  position: relative;
  background-color: #0a1c4d;
  background-image: url("../img/footer.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: right bottom;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 4.5rem;
}
.footer-brand-name > span { color: #4b8ff0; }
.footer-desc { color: rgba(255, 255, 255, 0.82); }

/* Blue underline under each heading, like the design */
.footer-heading { position: relative; padding-bottom: 0.8rem; margin-bottom: 1.4rem; font-size: 1.15rem; }
.footer-heading::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 38px; height: 3px; border-radius: 3px; background: #3d8bf2;
}
.footer-links a { color: rgba(255, 255, 255, 0.85); }
.footer-links a i { color: #ff5a55; }
.footer-contact-list li { color: rgba(255, 255, 255, 0.85); }
.footer-contact-list li i { color: #ff5a55; font-size: 1.05rem; }
.footer-contact-list a { color: rgba(255, 255, 255, 0.85); }
.footer-contact-list a:hover { color: #fff; }
.footer-social a { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.7); }
.footer-legal-links a { color: rgba(255, 255, 255, 0.8); }

/* Wide screens: links on the left, illustration visible on the right */
@media (min-width: 1200px) {
  .site-footer { min-height: 33vw; display: flex; flex-direction: column; }
  .footer-container { max-width: none; padding-left: 4.6vw; padding-right: 4.6vw; flex: 1; display: flex; flex-direction: column; }
  .footer-main { padding-right: 25vw; }
  .footer-bottom { margin-top: auto; }
}

/* Smaller screens: show the plain wave part of the image, darkened for readable text */
@media (max-width: 1199.98px) {
  .site-footer {
    background-image: linear-gradient(rgba(10, 28, 77, 0.55), rgba(10, 28, 77, 0.55)), url("../img/footer.png");
    background-position: center, left bottom;
  }
}

/* Footer: shorter on wide screens */
@media (min-width: 1200px) {
  .site-footer { min-height: 26vw; padding-top: 3.2rem; background-position: right center; }
  .footer-heading { margin-bottom: 1.1rem; }
  .footer-links li { margin-bottom: 0.7rem; }
  .footer-contact-list li { margin-bottom: 0.85rem; }
  .footer-bottom { padding: 1.1rem 0; }
}

/* Footer: content centred across the page (same width as the site) */
@media (min-width: 1200px) {
  .footer-container { max-width: 1140px; padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5); padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5); margin-left: auto; margin-right: auto; }
  .footer-main { padding-right: 0; }
  .footer-bottom { justify-content: center; text-align: center; gap: 0.4rem 2rem; }
  .site-footer .footer-main,
  .site-footer .footer-bottom { text-shadow: 0 1px 6px rgba(6, 18, 52, 0.75); }
}
@media (min-width: 1400px) {
  .footer-container { max-width: 1320px; }
}

/* ============ FACULTY: API teacher cards ============ */
.fac-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px;
  border-radius: 11px; background: rgba(30, 99, 198, 0.12); color: #1e63c6; font-size: 0.72rem; font-weight: 700;
}
.filter-btn.active .fac-count { background: rgba(255, 255, 255, 0.25); color: #fff; }
.fac-api-card { display: flex; flex-direction: column; border-radius: 18px; }
.fac-api-card .faculty-photo-wrap { height: 260px; background: linear-gradient(135deg, #17346a 0%, #1e63c6 100%); }
.fac-api-card .fac-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top; z-index: 1;
  transition: transform .5s ease;
}
.fac-api-card:hover .fac-photo { transform: scale(1.05); }
.fac-api-card .faculty-photo-wrap::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg, rgba(23, 52, 106, 0.45), rgba(23, 52, 106, 0));
}
.fac-api-card .faculty-subject-tag { z-index: 3; box-shadow: 0 6px 16px rgba(23, 52, 106, 0.18); }
.fac-api-card .faculty-info { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 1.3rem 1.2rem 1.4rem; }
.fac-api-card .faculty-info h4 { color: #17346a; }
.fac-api-card .faculty-role { color: #e3342f; margin-bottom: 0.8rem; }
.fac-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; margin-bottom: 0.8rem; }
.fac-facts span {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.7rem; border-radius: 30px;
  background: #eef4fd; color: #17346a; font-size: 0.78rem; font-weight: 600;
}
.fac-facts i { color: #1e63c6; }
.fac-location { margin-top: auto; font-size: 0.8rem; color: #68758a; }
.fac-location i { color: #e3342f; }

/* ============ FACULTY: "Learn from Expert Faculty" design ============ */
.fx-section {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 8% 30%, rgba(30, 99, 198, 0.07), transparent 32%),
    radial-gradient(circle at 92% 75%, rgba(30, 99, 198, 0.06), transparent 30%),
    linear-gradient(180deg, #f7faff 0%, #eef4fd 100%);
}
/* soft medical plus + dot decorations */
.fx-section::before {
  content: "+"; position: absolute; top: 30px; right: 7%;
  font: 800 150px/1 "Poppins", sans-serif; color: rgba(30, 99, 198, 0.08); pointer-events: none;
}
.fx-section::after {
  content: ""; position: absolute; left: 12%; top: 46%; width: 100px; height: 80px; pointer-events: none;
  background-image: radial-gradient(rgba(30, 99, 198, 0.18) 2.5px, transparent 3px);
  background-size: 20px 20px;
}
.fx-section .container { position: relative; z-index: 1; }

.fx-head { text-align: center; max-width: 720px; margin: 0 auto 1.6rem; }
.fx-eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  color: #1e63c6; font-size: 0.85rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
}
.fx-eyebrow::before, .fx-eyebrow::after { content: ""; width: 30px; height: 2px; background: #1e63c6; border-radius: 2px; }
.fx-head h2 { margin: 0.5rem 0 0.6rem; color: #17346a; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.fx-head h2 span { color: #1e63c6; }
.fx-head p { margin: 0; color: #5b6b82; font-size: 1rem; }

.fx-tabs { justify-content: center; gap: 0.8rem; margin-bottom: 2.2rem; }
.fx-tabs .filter-btn {
  padding: 0.6rem 1.6rem; border-radius: 40px; font-weight: 700; font-size: 0.98rem;
  background: #fff; border: 1.5px solid #dce5f1; color: #17346a;
  box-shadow: 0 4px 12px rgba(23, 52, 106, 0.05);
}
.fx-tabs .filter-btn.active {
  background: linear-gradient(135deg, #1e63c6, #17346a); border-color: transparent; color: #fff;
  box-shadow: 0 10px 22px rgba(30, 99, 198, 0.3);
}

/* Card */
.fx-card {
  height: 100%; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e3eaf4; border-radius: 22px; padding: 12px;
  box-shadow: 0 14px 34px rgba(23, 52, 106, 0.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.fx-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(23, 52, 106, 0.14); }

.fx-photo {
  position: relative; height: 250px; border-radius: 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 80% 25%, rgba(255, 255, 255, 0.55), transparent 40%),
    linear-gradient(135deg, #cfe2fb 0%, #e8f1fd 60%, #b9d4f7 100%);
}
.fx-red .fx-photo {
  background:
    radial-gradient(circle at 80% 25%, rgba(255, 255, 255, 0.55), transparent 40%),
    linear-gradient(135deg, #fcd9d8 0%, #fdeceb 60%, #f8c2c0 100%);
}
.fx-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2;
  object-fit: cover; object-position: center top; transition: transform .5s ease;
}
.fx-card:hover .fx-photo img { transform: scale(1.05); }
.fx-deco { position: absolute; right: 18px; top: 18px; font-size: 5rem; color: rgba(30, 99, 198, 0.16); z-index: 1; }
.fx-red .fx-deco { color: rgba(227, 52, 47, 0.16); }
.fx-initials {
  position: relative; z-index: 1;
  width: 104px; height: 104px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: #1e63c6; font: 700 2rem "Poppins", sans-serif;
  box-shadow: 0 12px 28px rgba(23, 52, 106, 0.12);
}
.fx-red .fx-initials { color: #e3342f; }

.fx-badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem; border-radius: 30px;
  background: #1e63c6; color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(30, 99, 198, 0.35);
}
.fx-badge i {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #1e63c6; font-size: 0.75rem;
}
.fx-red .fx-badge { background: #e3342f; box-shadow: 0 8px 18px rgba(227, 52, 47, 0.35); }
.fx-red .fx-badge i { color: #e3342f; }

.fx-body { flex: 1; display: flex; flex-direction: column; padding: 1.1rem 0.6rem 0.5rem; }
.fx-body h3 { margin: 0; color: #17346a; font-size: 1.3rem; font-weight: 800; }
.fx-role { margin-top: 0.15rem; color: #1e63c6; font-weight: 600; font-size: 0.98rem; }
.fx-red .fx-role { color: #e3342f; }
.fx-line { display: block; width: 26px; height: 3px; border-radius: 3px; margin: 0.6rem 0 1rem; background: #1e63c6; }
.fx-red .fx-line { background: #e3342f; }

.fx-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1rem; }
.fx-chips span {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.95rem; border-radius: 30px;
  background: #f0f5fc; color: #17346a; font-weight: 600; font-size: 0.88rem;
}
.fx-chips i { color: #1e63c6; }
.fx-red .fx-chips .fx-chip-main { color: #e3342f; }
.fx-location { margin-top: auto; display: flex; align-items: center; gap: 0.4rem; color: #5b6b82; font-size: 0.88rem; }
.fx-location i { color: #e3342f; font-size: 1rem; }

@media (max-width: 575.98px) {
  .fx-section::before, .fx-section::after { display: none; }
  .fx-photo { height: 230px; }
  .fx-tabs .filter-btn { padding: 0.5rem 1.2rem; font-size: 0.9rem; }
}

/* ============ HOME: moving faculty strip (get_teachers_details) ============ */
.fxm-wrap {
  overflow: hidden; padding: 0.6rem 0 1.4rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.fxm-track { display: flex; width: max-content; animation: fxm-scroll var(--fxm-duration, 32s) linear infinite; }
.fxm-group { display: flex; gap: 1.5rem; padding-right: 1.5rem; }
.fxm-card { width: 290px; flex: 0 0 290px; height: auto; }
.fxm-card .fx-photo { height: 230px; }
.fxm-card .fx-body h3 { font-size: 1.15rem; }
.fxm-card .fx-chips { margin-bottom: 0.2rem; }
.fxm-card:hover { transform: translateY(-4px); }
@keyframes fxm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .fxm-track { animation: none; } .fxm-wrap { overflow-x: auto; } }
@media (max-width: 575.98px) { .fxm-card { width: 250px; flex-basis: 250px; } .fxm-card .fx-photo { height: 210px; } }

/* Faculty strip: no fade at the edges, scrolls inside the container */
.fxm-wrap {
  -webkit-mask-image: none; mask-image: none;
  padding: 0.8rem 0 1.6rem;
}
.fxm-group { padding-left: 0; }

/* Home faculty heading */
.fxh-head { text-align: center; }
.fxh-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.2rem; border-radius: 30px;
  background: #dfeafb; color: #1e63c6;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
}
.fxh-title { margin: 0.9rem 0 0.6rem; color: #17346a; font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.2; }
.fxh-title span { position: relative; display: inline-block; color: #1e63c6; }
/* curved brush underline under "Expert" */
.fxh-title span::after {
  content: ""; position: absolute; left: 4%; bottom: -6px; width: 52%; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10 Q100 0 197 7' fill='none' stroke='%231e63c6' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.fxh-sub { margin: 0 auto; max-width: 680px; color: #5b6b82; font-size: 1rem; }

/* ============ ANALYSIS PAGE (real data, Chart.js graphs) ============ */
.an-page {
  /* chart series: 1 = score, 2 = accuracy (validated pair); answer states */
  --an-s1: #2a5298;
  --an-s2: #e0912f;
  --an-good: #1a8f5a;
  --an-bad: #d62828;
  --an-skip: #c3c9d4;
}
.an-filters {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.an-filter {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.35rem 0.4rem 0.35rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}
.an-filter span { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.an-filter span i { color: var(--blue); }
.an-filter select {
  min-width: 0; max-width: 340px;
  border: 0; outline: none;
  padding: 0.45rem 2rem 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--bg-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2314294f' stroke-width='2' d='M3 6l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.8rem center / 12px;
  appearance: none;
  font-weight: 600; font-size: 0.88rem; color: var(--navy);
  cursor: pointer;
  text-overflow: ellipsis;
}
.an-filter select:focus-visible { box-shadow: 0 0 0 3px rgba(79, 124, 196, 0.3); }

.an-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.an-legend { display: flex; gap: 1rem; font-size: 0.82rem; font-weight: 600; color: var(--text-body); }
.an-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.an-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.an-legend i.s1 { background: var(--an-s1); }
.an-legend i.s2 { background: var(--an-s2); }

.an-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.an-tiles-3 { grid-template-columns: repeat(3, 1fr); margin-top: 1.2rem; }
.an-tiles div { padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--bg-light); }
.an-tiles span { display: block; font-size: 0.74rem; color: var(--text-muted); }
.an-tiles strong { font-family: "Poppins", sans-serif; font-size: 1.2rem; color: var(--navy); }
.an-tiles small { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

.an-sub { font-size: 0.92rem; margin: 1.4rem 0 0.8rem; color: var(--text-dark); }
.an-muted { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
.an-error { color: var(--red-dark); background: #fdecec; padding: 0.7rem 0.9rem; border-radius: 10px; font-size: 0.88rem; margin: 0; }

/* Chart containers */
.an-chart-box { height: 100%; padding: 1.1rem 1.2rem; border: 1px solid var(--border-color); border-radius: 14px; }
.an-canvas { position: relative; height: 280px; }

/* Doughnut */
.an-donut { position: relative; height: 190px; margin: 0.4rem 0 1rem; }
.an-donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none;
}
.an-donut-center strong { font-family: "Poppins", sans-serif; font-size: 1.7rem; color: var(--navy); line-height: 1; }
.an-donut-center span { font-size: 0.75rem; color: var(--text-muted); }
.an-donut-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.an-donut-legend li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-body); }
.an-donut-legend li strong { margin-left: auto; color: var(--text-dark); }
.an-donut-legend i { width: 10px; height: 10px; border-radius: 50%; }
.an-donut-legend i.right { background: var(--an-good); }
.an-donut-legend i.wrong { background: var(--an-bad); }
.an-donut-legend i.skip  { background: var(--an-skip); }

/* Tables (the table view of each graph) */
.an-details { margin-top: 1.2rem; }
.an-details summary { cursor: pointer; font-weight: 600; font-size: 0.86rem; color: var(--blue); }
.an-details[open] summary { margin-bottom: 0.8rem; }
.an-table { width: 100%; font-size: 0.84rem; border-collapse: collapse; }
.an-table th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border-color); white-space: nowrap; }
.an-table td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--bg-soft); color: var(--text-body); white-space: nowrap; }
.an-row-subject td { background: var(--bg-light); }

/* Empty / error states */
.an-empty { text-align: center; padding: 3rem 1.5rem; max-width: 640px; margin: 0 auto; }
.an-empty p { color: var(--text-muted); }
.an-empty-icon {
  width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--blue); background: var(--bg-navy-soft);
}
.an-empty-icon.bad { color: var(--red); background: #fdecec; }

@media (max-width: 767.98px) {
  .an-tiles { grid-template-columns: repeat(2, 1fr); }
  .an-tiles.an-tiles-3 { grid-template-columns: repeat(3, 1fr); }
  .an-canvas { height: 240px; }
  .an-filter { flex: 1 1 100%; }
  .an-filter select { flex: 1; max-width: none; }
}

/* Faculty page: shown when there are no teachers to list */
.fx-empty {
  max-width: 560px;
  margin: 0.5rem auto 0;
  padding: 2.4rem 1.8rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px dashed #c9d6ee;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.fx-empty-icon {
  width: 76px; height: 76px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #1e63c6;
  background: #eaf1fc;
}
.fx-empty h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 0.5rem; }
.fx-empty p { color: var(--text-muted); margin-bottom: 1.4rem; }
.fx-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.8rem; }
.fx-empty-retry { font-weight: 600; color: #1e63c6; text-decoration: none; }
.fx-empty-retry:hover { color: var(--navy); }

/* Register page: eye button inside the password fields (toggle script in main.js) */
.reg-password { position: relative; }
.reg-password .form-control { padding-right: 2.8rem; }
.reg-password .auth-toggle-password { font-size: 1.05rem; }
.reg-password input::-ms-reveal { display: none; }  /* hide Edge's own eye so there's only one */
