:root {
    --body-font-family: "Roboto";
    --header-font-family: "Yantramanav";

    --primary-color: #116e63;
    --primary-contrast-color: #ffffff;
    --primary-hover-color: #297d73;
    --primary-soft-color: #ecf3f3;

    --secondary-color: #012758;
    --secondary-contrast-color: #ffffff;
    --secondary-hover-color: #1a3d69;
    --secondary-soft-color: #e1e5eb;

    --bg-color: #f2f3f5;
    --bg-alt-color: #ebecee;
    --surface-color: #f2f3f5;
    --surface-muted-color: #e8e9eb;
    --surface-contrast-color: #000000;

    --text-color: #19232b;
    --text-muted-color: #6c7277;
    --text-soft-color: #9ea3a6;

    --accent-color: #fda31b;
    --accent-contrast-color: #ffffff;
    --accent-hover-color: #e49318;

    --border-color: #d5d6d8;
    --header-footer-foreground: #ffffff;
    --header-footer-muted: #ffffff;

    --menu-badge-bg-color: #012758;
    --menu-badge-text-color: #ffffff;
    --menu-button-bg-color: #012758;
    --menu-button-text-color: #ffffff;
    --menu-button-border-color: #012758;

    --footer-input-bg-color: #f2f3f5;
    --footer-input-text-color: #19232b;
    --footer-input-border-color: #d0d1d3;

    --cta-bg-color: #116e63;
    --cta-text-color: #ffffff;
    --cta-hover-bg-color: #0c5950;
    --cta-hover-text-color: #ffffff;
    --cta-font-size: 16px;
    --border-radius: 6px;

    --boxed-layout-bg-color: #ffffff;
    --contrast-layout-bg-color: #000000;
    --layout-pattern-img: url('');
}


:root {
  --body-font: var(--body-font-family);
  --heading-font: var(--header-font-family);

  --theme-color: var(--primary-color);
  --theme-color2: var(--accent-color);
  --theme-color-light: color-mix(in srgb, var(--primary-color) 9%, transparent);
  --theme-bg-light: var(--bg-color);
  --body-text-color: var(--text-muted-color);
  --color-white: #ffffff;
  --color-dark: var(--text-color);
  --hero-overlay-color: #000000;
  --slider-arrow-bg: rgba(255, 255, 255, 0.2);

  /* Theme-owned scale: shadows, transitions and borders are design decisions
     this theme makes once, not platform tokens — see theme.spec.md §5. */
  --box-shadow: 0 0 40px 5px rgb(0 0 0 / 5%);
  --box-shadow2: 0 0 15px rgba(0, 0, 0, 0.17);
  --transition: all .5s ease-in-out;
  --transition2: all .3s ease-in-out;

  /* Borders stay a tint of the tenant's own text colour rather than a flat
     grey, so they shift with every preset (spec §4). */
  --border-info-color: color-mix(in srgb, var(--text-color) 8%, transparent);
  --border-info-color2: color-mix(in srgb, var(--text-color) 5%, transparent);
  --border-white-color: rgba(255, 255, 255, 0.08);
  --border-white-color2: rgba(255, 255, 255, 0.05);

  --footer-bg: var(--secondary-color);
  --footer-bg2: var(--primary-color);
  --footer-text-color: var(--secondary-contrast-color);

  /* The signature cut-corner shape (spec §2): one flat corner, shared by
     buttons, cards, photo frames and badges at two sizes. */
  --radius-cut: 50px 50px 50px 0;
  --radius-cut-sm: 40px 40px 40px 0;
}
/* ---------- BASE TYPE SCALE (spec §3) ---------- */
body {
  font-family: var(--body-font), sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--body-text-color);
  line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  margin: 0;
  font-weight: 600;
  font-family: var(--heading-font), sans-serif;
  line-height: 1.2;
}

h1 { font-size: 40px; }
h2 { font-size: 35px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-dark);
  transition: var(--transition2);
  text-decoration: none;
}
a:hover, a:focus { color: var(--theme-color); }

/* ---------- SITE HEADING (eyebrow + title pair, spec §3/§5) ----------
   One shared component for every section intro: site-title-tagline (the
   uppercase gold eyebrow) above site-title (the big heading with one
   accent-coloured word). Composed via the x-site-heading component. */
.site-heading { margin-bottom: 1.5rem; }
.site-heading p { margin-top: 15px; color: var(--body-text-color); }

.site-title-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--theme-color2);
  position: relative;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--theme-color2);
}
.site-title-tagline i { line-height: 0; font-size: 20px; }

.site-title {
  font-weight: 800;
  text-transform: capitalize;
  font-size: 55px;
  line-height: 1.2;
  color: var(--color-dark);
  margin-top: 10px;
  margin-bottom: 0;
}
.site-title span { color: var(--theme-color2); }

/* Sub-section heading (e.g. a teaser band's own title): the 800-weight cut
   tuned for 55px reads dense and cramped shrunk straight down, so this isn't
   just a smaller font-size — weight and line-height ease off too. */
.site-title--sm {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.2px;
  margin-top: 6px;
}

@media (max-width: 991px) {
  .site-title { font-size: 40px; }
}
@media (max-width: 575px) {
  .site-title { font-size: 32px; }
  .site-title-tagline { font-size: 15px; letter-spacing: 2px; }
}

/* ---------- HERO HEADING (bigger version of the same pair) ---------- */
.hero-sub-title {
  display: inline-block;
  color: var(--theme-color2);
  font-size: 25px;
  letter-spacing: 6px;
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 3px solid var(--theme-color2);
  padding-bottom: 6px;
}

.hero-title {
  color: var(--color-white);
  font-size: 72px;
  font-weight: 800;
  line-height: 1.1;
  margin: 20px 0;
  text-transform: capitalize;
}
.hero-title span { color: var(--theme-color2); }

.hero-text {
  color: var(--color-white);
  line-height: 30px;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 20px;
}

@media (max-width: 991px) {
  .hero-title { font-size: 48px; }
}
@media (max-width: 575px) {
  .hero-title { font-size: 34px; }
  .hero-sub-title { font-size: 18px; letter-spacing: 3px; }
}
:root {
  --resolved-action-bg: var(--cta-bg-color);
  --resolved-action-color: var(--cta-text-color);
  --resolved-action-border: none;
  --resolved-action-radius: var(--radius-cut);
  --resolved-action-shadow: var(--box-shadow);
  --resolved-action-bg-image: none;
  --resolved-action-decoration: none;
  --resolved-action-hover-bg: var(--cta-hover-bg-color);
  --resolved-action-hover-color: var(--cta-hover-text-color);
  --resolved-action-hover-border: none;
  --resolved-action-hover-shadow: var(--box-shadow);
  --resolved-action-hover-bg-image: none;
}

/* ---------- THEME BUTTON (spec §2/§4) ----------
   Layout, the pseudo-element's mechanics and the hover trigger are shared by
   every .theme-btn, filled or outline. Only colour/fill/shape -- what the
   circle reveals, the border radius -- come from the resolved cta_type
   variables below, scoped to the filled button; .theme-btn--outline keeps
   its own fixed values (see header comment above). */
.theme-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 28px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  z-index: 1;
}

.theme-btn:not(.theme-btn--outline) {
  color: var(--resolved-action-color);
  background: var(--resolved-action-bg);
  background-image: var(--resolved-action-bg-image);
  border: var(--resolved-action-border);
  border-radius: var(--resolved-action-radius);
  box-shadow: var(--resolved-action-shadow);
  text-decoration: var(--resolved-action-decoration);
}

.theme-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.theme-btn:not(.theme-btn--outline)::before {
  background: var(--resolved-action-hover-bg);
  background-image: var(--resolved-action-hover-bg-image);
}

.theme-btn:hover::before,
.theme-btn:focus-visible::before {
  transform: translate(-50%, -50%) scale(1);
}

.theme-btn:not(.theme-btn--outline):hover,
.theme-btn:not(.theme-btn--outline):focus-visible {
  color: var(--resolved-action-hover-color);
  border: var(--resolved-action-hover-border);
  box-shadow: var(--resolved-action-hover-shadow);
}

/* Outline variant — ui/button's "outline" $variant (secondary actions). Fixed
   look, not driven by cta_type (see header comment). */
.theme-btn--outline {
  background: transparent;
  color: var(--theme-color);
  border: 2px solid var(--theme-color);
  border-radius: var(--radius-cut);
  box-shadow: none;
}
.theme-btn--outline::before { background: var(--theme-color); }
.theme-btn--outline:hover,
.theme-btn--outline:focus-visible,
.theme-btn--outline.active { color: var(--color-white); }
.theme-btn--outline.active { background: var(--theme-color); }

/* On a dark section (--ch-section-bg is the theme colour itself), the outline
   button's theme-colour text/border sits on a same-colour background and
   disappears — swap to the section's contrast colour there instead. */
.ch-section--dark .theme-btn--outline,
.home-section-bg-dark .theme-btn--outline {
  color: var(--ch-section-text);
  border-color: var(--ch-section-text);
}
.ch-section--dark .theme-btn--outline::before,
.home-section-bg-dark .theme-btn--outline::before { background: var(--ch-section-text); }
.ch-section--dark .theme-btn--outline:hover,
.ch-section--dark .theme-btn--outline:focus-visible,
.ch-section--dark .theme-btn--outline.active,
.home-section-bg-dark .theme-btn--outline:hover,
.home-section-bg-dark .theme-btn--outline:focus-visible,
.home-section-bg-dark .theme-btn--outline.active { color: var(--theme-color); }
.ch-section--dark .theme-btn--outline.active,
.home-section-bg-dark .theme-btn--outline.active { background: var(--ch-section-text); }

/* Same problem for the filled button: its default fill is the theme colour
   too, so on a dark section (background also the theme colour) it disappears
   the same way — invert it to the section's contrast colour instead. */
.ch-section--dark .theme-btn:not(.theme-btn--outline),
.home-section-bg-dark .theme-btn:not(.theme-btn--outline) {
  background: var(--ch-section-text);
  background-image: none;
  color: var(--theme-color);
  border: none;
  box-shadow: none;
}
.ch-section--dark .theme-btn:not(.theme-btn--outline)::before,
.home-section-bg-dark .theme-btn:not(.theme-btn--outline)::before {
  background: var(--theme-color);
  background-image: none;
}
.ch-section--dark .theme-btn:not(.theme-btn--outline):hover,
.ch-section--dark .theme-btn:not(.theme-btn--outline):focus-visible,
.home-section-bg-dark .theme-btn:not(.theme-btn--outline):hover,
.home-section-bg-dark .theme-btn:not(.theme-btn--outline):focus-visible {
  color: var(--ch-section-text);
  border: none;
}

/* ---------- NAV BUTTONS (header CTA group) ---------- */
.btn-outline-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border-info-color);
  border-radius: var(--radius-cut-sm);
  color: var(--color-dark);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition2);
}
.btn-outline-nav:hover { background: var(--theme-color); color: var(--color-white); border-color: var(--theme-color); }

/* Mobile click-to-call — sits next to the navbar toggler, the only phone
   entry point once the desktop-only topbar (d-xl-block) is off screen. */
.ch-mobile-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--theme-color);
  color: var(--color-white);
  font-size: 16px;
  flex-shrink: 0;
}
.ch-mobile-call:hover,
.ch-mobile-call:focus-visible { background: var(--theme-color2); color: var(--color-white); }

.btn-primary-nav {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--resolved-action-bg);
  background-image: var(--resolved-action-bg-image);
  color: var(--resolved-action-color);
  border: var(--resolved-action-border);
  border-radius: var(--resolved-action-radius);
  box-shadow: var(--resolved-action-shadow);
  text-decoration: var(--resolved-action-decoration);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  transition: var(--transition2);
}
.btn-primary-nav:hover {
  background: var(--resolved-action-hover-bg);
  background-image: var(--resolved-action-hover-bg-image);
  color: var(--resolved-action-hover-color);
  border: var(--resolved-action-hover-border);
  box-shadow: var(--resolved-action-hover-shadow);
}

@media (prefers-reduced-motion: reduce) {
  .theme-btn::before { transition: none; }
}
/* ---------- HOME SPLIT ROW (admin-configured side-by-side sections) ---------- */
.ch-home-split-row { flex-wrap: wrap; }
.ch-home-split-row > div { min-width: 0; }
@media (max-width: 767.98px) {
  .ch-home-split-row > div { width: 100% !important; }
}

/* ---------- HERO (always rendered, spec §7) ---------- */
.hero-section {
  position: relative;
  /* z-index: 0 (not just position: relative) makes this element its own
     stacking context — without it, .hero-video's z-index: -1 escapes to the
     page's root stacking context and paints behind this section's own
     background-color instead of just behind its text. */
  z-index: 0;
  background-color: var(--theme-color);
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.hero-section.hero-h-small { min-height: 60vh; }
.hero-section.hero-h-medium { min-height: 80vh; }
.hero-section.hero-h-full { min-height: 100vh; }
.hero-section .container { display: flex; }
.hero-section .container.hero-v-top { align-items: flex-start; padding-top: 100px; }
.hero-section .container.hero-v-center { align-items: center; }
.hero-section .container.hero-v-bottom { align-items: flex-end; padding-bottom: 60px; }
.hero-content { max-width: 720px; }
.hero-section .container.hero-text-center { justify-content: center; text-align: center; }
.hero-section .container.hero-text-center .hero-content { margin: 0 auto; }
.hero-section .container.hero-text-left { justify-content: flex-start; text-align: left; }
.hero-section .container.hero-text-right { justify-content: flex-end; text-align: right; }
.hero-btn { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }

.hero-section--light-bg .hero-title,
.hero-section--light-bg .hero-text { color: var(--color-dark); }

.hero-section--video { overflow: hidden; }
/* top/right/bottom/left: 0 (not width/height: 100%) stretches the video to
   its positioned ancestor's actual rendered box — a percentage height can't
   resolve here since .hero-section's height comes from min-height, not an
   explicit height. */
.hero-video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; object-fit: cover; z-index: -1; }

/* .hero-section is display: flex (align-items: center), so its carousel
   child is a flex item — flex items size to their content by default, not
   the container's full width, and align-items: center only centers that
   content-sized box rather than filling the section, leaving a gap top and
   bottom whenever the content height doesn't land exactly on the section's
   rendered height. align-self: stretch forces it to always match. */
.hero-section .carousel.slide { width: 100%; align-self: stretch; }
.hero-section .carousel-inner,
.hero-section .carousel-item,
.hero-slide { height: 100%; }
.hero-slide {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
}
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
  width: 55px;
  height: 55px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--slider-arrow-bg);
  opacity: 1;
}
.hero-section .carousel-control-prev { left: 30px; }
.hero-section .carousel-control-next { right: 30px; }
.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover { background: var(--color-white); color: var(--theme-color); }
.hero-section .carousel-indicators [data-bs-target] { background-color: var(--color-white); }
.hero-section .carousel-indicators .active { background-color: var(--theme-color2); }

@media (max-width: 767.98px) {
  .hero-section.hero-h-medium, .hero-section.hero-h-full, .hero-slide { min-height: 70vh; }
  .hero-btn a { width: 100%; justify-content: center; text-align: center; }
  /* Swap to the admin's own mobile crop (--hero-bg-mobile) when one was
     supplied — centring the desktop banner on a narrow screen often crops
     the actual subject out; falls back to --hero-bg when none was set. */
  .hero-section, .hero-slide { background-image: var(--hero-bg-mobile, var(--hero-bg)); }
}

/* ---------- INNER-PAGE BANNER (site-breadcrumb, spec §8) ---------- */
.site-breadcrumb {
  background-color: var(--theme-color);
  background-size: cover;
  background-position: center;
  padding: 90px 0;
}
.breadcrumb-title { color: var(--color-white); margin-bottom: 14px; }
.breadcrumb-menu { display: flex; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumb-menu li { color: rgba(255, 255, 255, 0.75); }
.breadcrumb-menu li:not(:last-child)::after { content: "/"; margin-left: 8px; color: rgba(255, 255, 255, 0.5); }
.breadcrumb-menu a { color: var(--color-white); }
.breadcrumb-menu a:hover { color: var(--theme-color2); }
.breadcrumb-menu li.active { color: var(--theme-color2); }

@media (max-width: 575.98px) {
  .site-breadcrumb { padding: 56px 0; }
}

/* ---------- ABOUT MEDIA (photo + floating badge, spec §7) ---------- */
.ch-about-media { position: relative; border-radius: var(--radius-cut); overflow: hidden; }
.ch-about-media img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-cut); }
.ch-about-media-empty { border-radius: var(--radius-cut); height: 420px; font-size: 3rem; }
.ch-about-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  color: var(--color-dark);
  padding: 14px 20px;
  border-radius: var(--radius-cut-sm);
  box-shadow: var(--box-shadow);
  font-weight: 700;
  max-width: 85%;
}
.ch-about-badge i { color: var(--theme-color2); font-size: 1.4rem; }
@media (max-width: 991px) {
  .ch-about-media img,
  .ch-about-media-empty { height: 320px; }
}
@media (max-width: 575.98px) {
  .ch-about-media img,
  .ch-about-media-empty { height: 240px; }
  .ch-about-badge { bottom: 12px; left: 12px; padding: 10px 14px; gap: 8px; font-size: 14px; }
  .ch-about-badge i { font-size: 1.1rem; }
}

/* ---------- KEY HIGHLIGHTS SPLIT (home key_highlights — text + card grid
   on the left, admin-uploaded photo with an offset accent frame on the
   right). Shapes/offsets match the reference template's .choose-img /
   .choose-item exactly (specs/themes/theme9/references/template/assets/css/
   style.css §26); only the fixed photo height is this theme's own addition,
   so the frame has something to track without the real image loaded yet. */
.ch-highlight-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border-radius: 50px 50px 50px 0;
  box-shadow: var(--box-shadow);
  padding: 15px 15px 15px 0;
  overflow: hidden;
  transition: var(--transition2);
}
.ch-highlight-card:hover { transform: translateY(-4px); box-shadow: var(--box-shadow2); }
.ch-highlight-card__icon {
  flex: none;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-color2);
  border-radius: 50px 50px 50px 0;
  margin-left: -12px;
  font-size: 2rem;
  color: var(--theme-color);
}
/* The reference forces icon artwork white via filter, but its accent colour
   is a fixed dark orange; here the accent is the tenant's own colour token
   and can be light, so a forced-white icon can vanish against it. Render the
   uploaded icon in its own colours instead — safe for any accent choice. */
.ch-highlight-card__icon img { width: 45px; height: 45px; object-fit: contain; }
.ch-highlight-card__title { font-size: 19px; margin-bottom: 6px; color: var(--color-dark); }
.ch-highlight-card__excerpt { color: var(--body-text-color); margin-bottom: 0; font-size: 14px; }

.ch-highlights-media-wrap { position: relative; margin-left: 50px; }
.ch-highlights-media-wrap::before {
  content: "";
  position: absolute;
  left: -15px;
  bottom: -15px;
  width: 100%;
  height: 100%;
  border: 5px solid var(--theme-color2);
  border-radius: 30% 0 30% 30%;
  z-index: 0;
}
.ch-highlights-media {
  position: relative;
  z-index: 1;
  border-radius: 30% 0 30% 30%;
  overflow: hidden;
}
.ch-highlights-media img,
.ch-highlights-media-empty {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: inherit;
}
.ch-highlights-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-color-light);
  color: var(--theme-color);
  font-size: 3rem;
}
@media (max-width: 991px) {
  .ch-highlights-media-wrap { margin-top: 50px; margin-left: 10px; }
  .ch-highlights-media img,
  .ch-highlights-media-empty { height: 340px; }
}
@media (max-width: 575.98px) {
  .ch-highlights-media img,
  .ch-highlights-media-empty { height: 240px; }
  .ch-highlights-media-wrap::before { left: -8px; bottom: -8px; }
}

/* Caps the home section's About text at 5 lines regardless of how long the
   underlying content is — the full text still lives on the About Us page. */
.ch-about-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
}

/* ---------- SECTION SHELL (home-page alternating backgrounds) ----------
   Mirrors theme3's rs-home-section-shell pattern: the admin picks light/
   alt/dark per home section; dark uses the tenant's own primary colour
   with a contrast-safe text colour computed for every preset. */
.ch-section {
  --ch-section-bg: var(--bg-color);
  --ch-section-text: var(--color-dark);
  --ch-section-muted: var(--body-text-color);
  background: var(--ch-section-bg);
  color: var(--ch-section-text);
  padding: 100px 0;
}
.ch-section.ch-section--light,
.ch-section.home-section-bg-light { --ch-section-bg: var(--color-white); }
.ch-section.ch-section--alt,
.ch-section.home-section-bg-alt { --ch-section-bg: var(--theme-color-light); }
.ch-section.ch-section--boxed { --ch-section-bg: var(--boxed-layout-bg-color, #ffffff); }
.ch-section.ch-section--dark,
.ch-section.home-section-bg-dark {
  --ch-section-bg: var(--theme-color);
  --ch-section-text: var(--primary-contrast-color);
  --ch-section-muted: color-mix(in srgb, var(--primary-contrast-color) 72%, transparent);
}
.ch-section--dark .site-title, .home-section-bg-dark .site-title,
.ch-section--dark .site-title span, .home-section-bg-dark .site-title span { color: var(--ch-section-text); }
.ch-section--dark .site-title-tagline, .home-section-bg-dark .site-title-tagline { color: var(--ch-section-text); border-bottom-color: color-mix(in srgb, var(--ch-section-text) 50%, transparent); }
.ch-section--dark p, .home-section-bg-dark p { color: var(--ch-section-muted); }
/* The dark-on-dark text rules above are meant for prose sitting directly on
   the section's own dark fill. Every white-surfaced component (cards,
   department/event cards, testimonials) keeps a solid white background no
   matter the section mode, so anything inside — not just <p> tags, e.g. the
   unstyled <span> meta in a course card's footer — must win back its normal
   readable colour at the container level. Left to inherit, it picks up the
   dark section's near-white text colour and disappears on the white card
   (spec §9). */
.ch-section--dark :is(.ch-card, .ch-dept-card, .ch-event-card, .ch-testimonial, .ch-highlight-card),
.home-section-bg-dark :is(.ch-card, .ch-dept-card, .ch-event-card, .ch-testimonial, .ch-highlight-card),
.ch-section--dark :is(.ch-card, .ch-dept-card, .ch-event-card, .ch-testimonial, .ch-highlight-card) p,
.home-section-bg-dark :is(.ch-card, .ch-dept-card, .ch-event-card, .ch-testimonial, .ch-highlight-card) p { color: var(--body-text-color); }

@media (max-width: 575px) {
  .ch-section { padding: 60px 0; }
}

/* ---------- CARD (course / event / faculty — one shared shape, spec §9) ----------
   White card, cut corner, soft shadow; the photo gets a dark overlay plus
   a circular zoom-in view icon on hover (the reference's signature
   invert-on-hover idea, spec §2). A badge sits half off the top corner. */
.ch-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-cut);
  box-shadow: var(--box-shadow);
  padding: 20px;
  margin-bottom: 25px;
  transition: var(--transition2);
}
.ch-card:hover { transform: translateY(-4px); }

.ch-card__badge {
  position: absolute;
  top: 15px;
  right: -15px;
  z-index: 2;
  background: var(--theme-color2);
  color: var(--color-white);
  border-radius: var(--radius-cut-sm);
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--box-shadow2);
}

/* Inline status pill (open/expired) — unlike .ch-card__badge above, this
   isn't pinned to a card corner, so it gets its own true-pill shape instead
   of reusing the badge's cut corner + position:absolute via inline-style
   overrides. */
.ch-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.ch-status-pill--open { background: color-mix(in srgb, var(--theme-color) 15%, transparent); color: var(--theme-color); }
.ch-status-pill--expired { background: color-mix(in srgb, var(--body-text-color) 12%, transparent); color: var(--body-text-color); }
.ch-status-pill--brand { background: var(--theme-color); color: var(--color-white); }

/* Severity/priority badges (grievance status, SLA, escalation tiers) keep
   Bootstrap's semantic bg-success/warning/danger/info/secondary fills — the
   one place a non-brand colour is correct, since "resolved is green,
   rejected is red" is a convention users already read, not a style choice —
   combined with .ch-status-pill above for this theme's pill shape/type
   instead of Bootstrap's default small rounded-rect badge. */

.ch-card__media { position: relative; border-radius: var(--radius-cut-sm); overflow: hidden; }
.ch-card__media img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-cut-sm); transition: var(--transition); }

.ch-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-dark);
  opacity: 0;
  visibility: hidden;
  border-radius: var(--radius-cut-sm);
  transition: var(--transition);
}
.ch-card:hover .ch-card__media::before { opacity: 0.5; visibility: visible; }

.ch-card__view {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-color2);
  color: var(--color-white);
  transform: scale(3);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1;
}
.ch-card:hover .ch-card__view { transform: scale(1); opacity: 1; visibility: visible; }
.ch-card__view:hover { background: var(--color-white); color: var(--theme-color2); }

.ch-card__body { padding-top: 16px; }
.ch-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body-text-color);
}
.ch-card__meta i { color: var(--theme-color2); margin-right: 4px; }
/* Key-facts sidebar rows (label left, value right — event/faculty/news/blog/
   article/placement-drive/course/career detail pages all share this). A
   divider between consecutive rows instead of a flat stack, and a bolder,
   darker value column so the answer reads clearly against the label. */
.ch-card__meta.justify-content-between { padding: 10px 0; margin-bottom: 0; }
.ch-card__meta.justify-content-between + .ch-card__meta.justify-content-between {
  border-top: 1px solid var(--border-info-color);
}
.ch-card__meta.justify-content-between strong,
.ch-card__meta.justify-content-between a { color: var(--color-dark); font-weight: 700; text-align: right; }
.ch-card__meta--divided {
  justify-content: flex-start;
  flex-wrap: wrap;
  row-gap: 8px;
  gap: 8px 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-info-color);
}
.ch-card__meta--divided span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--theme-color-light);
  color: var(--theme-color);
  border-radius: var(--radius-cut-sm);
  padding: 5px 12px;
  font-size: 13px;
}
.ch-card__meta--divided span i { color: var(--theme-color); margin-right: 0; }
.ch-card__meta--divided span { display: inline-flex; align-items: center; gap: 4px; }
.ch-card__title { font-size: 20px; margin-bottom: 8px; }
.ch-card__title a { color: inherit; }
.ch-card__title a:hover { color: var(--theme-color); }
.ch-card__excerpt { color: var(--body-text-color); margin-bottom: 0; }
.ch-card__excerpt--clamp-3,
.ch-card__excerpt--clamp-4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-height: 1.8;
  overflow: hidden;
}
.ch-card__excerpt--clamp-3 {
  -webkit-line-clamp: 3;
  /* reserves the same line height even for a short description, so cards
     in the same row stay level instead of some looking "full" and others
     shrinking to whatever little text they have. */
  min-height: calc(1.8em * 3);
}
.ch-card__excerpt--clamp-4 {
  -webkit-line-clamp: 4;
  min-height: calc(1.8em * 4);
}

/* Facility profile (infrastructure detail sidebar): icon + label on the
   left, value on the right. Multi-line values (e.g. Location) use
   align-items: flex-start so the label stays pinned to the first line
   instead of floating in the vertical center of a tall block. */
.ch-facility-profile { display: flex; flex-direction: column; }
.ch-facility-profile__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-info-color);
}
.ch-facility-profile__row:first-child { padding-top: 0; }
.ch-facility-profile__row:last-child { border-bottom: 0; padding-bottom: 0; }
.ch-facility-profile__row dt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--body-text-color);
  flex-shrink: 0;
}
.ch-facility-profile__row dt i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--theme-color-light);
  color: var(--theme-color);
  font-size: 14px;
  flex-shrink: 0;
}
.ch-facility-profile__row dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  text-align: right;
}
.ch-facility-profile__sub { list-style: none; margin: 0; padding: 0; text-align: right; }
.ch-facility-profile__sub li { font-weight: 600; color: var(--color-dark); }
.ch-facility-profile__sub li + li { margin-top: 5px; }
.ch-facility-profile__sub li span {
  display: inline-block;
  min-width: 60px;
  margin-right: 6px;
  font-weight: 500;
  color: var(--body-text-color);
}
@media (max-width: 420px) {
  .ch-facility-profile__row { flex-direction: column; gap: 8px; }
  .ch-facility-profile__row dd,
  .ch-facility-profile__sub,
  .ch-facility-profile__sub li span { text-align: left; }
}

/* Admission cell contact (name / phone / email) as an icon list instead of
   one unstyled comma-separated line. */
.ch-contact-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ch-contact-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--body-text-color); }
.ch-contact-list li i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--theme-color-light);
  color: var(--theme-color);
  font-size: 14px;
  flex-shrink: 0;
}
.ch-contact-list li a { color: inherit; }
.ch-contact-list li a:hover { color: var(--theme-color); }

/* Course card bottom row: divider + meta (left) + price pill (right), from
   the reference's .course-bottom / .course-price. */
.ch-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid var(--border-info-color);
}
.ch-card__bottom-left { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; font-weight: 500; }
.ch-card__bottom-left i { color: var(--theme-color2); margin-right: 6px; }
.ch-card__price {
  display: inline-block;
  background: var(--theme-color2);
  color: var(--color-white);
  padding: 2px 14px;
  border-radius: var(--radius-cut-sm);
  font-weight: 600;
  white-space: nowrap;
  /* stays pinned right in .ch-card__bottom whether or not there's left-side
     content next to it (space-between alone can't do that with one child). */
  margin-left: auto;
}

/* ---------- DEPARTMENT CAROUSEL CARD (home departments, reference index.html) ---------- */
.ch-dept-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-cut);
  padding: 30px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
}
.ch-dept-card::before {
  content: "";
  position: absolute;
  right: -10px;
  top: -10px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 10px solid var(--theme-color2);
  opacity: .2;
  transition: var(--transition2);
}
.ch-dept-card:hover::before { opacity: 1; }
.ch-dept-card__icon { font-size: 2.6rem; color: var(--theme-color2); margin-bottom: 20px; position: relative; }
.ch-dept-card__title { margin-bottom: 10px; }
.ch-dept-card__title a { color: inherit; }
.ch-dept-card__title a:hover { color: var(--theme-color2); }
.ch-dept-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-dark);
}
.ch-dept-card__more i { transition: var(--transition2); }
.ch-dept-card__more:hover { color: var(--theme-color2); }
.ch-dept-card__more:hover i { transform: translateX(4px); }

.ch-dept-carousel { position: relative; }
.ch-dept-carousel .carousel-control-prev,
.ch-dept-carousel .carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--theme-color2);
  color: var(--color-white);
  opacity: 0;
  transition: var(--transition2);
}
.ch-dept-carousel:hover .carousel-control-prev,
.ch-dept-carousel:hover .carousel-control-next { opacity: 1; }
.ch-dept-carousel .carousel-control-prev:hover,
.ch-dept-carousel .carousel-control-next:hover { background: var(--theme-color); }
.ch-dept-carousel .carousel-control-prev { left: -24px; }
.ch-dept-carousel .carousel-control-next { right: -24px; }
.ch-dept-carousel .carousel-indicators { position: static; margin-top: 30px; }
.ch-dept-carousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50px;
  background: var(--theme-color2);
  opacity: .4;
  border: 0;
  transition: var(--transition2);
}
.ch-dept-carousel .carousel-indicators .active { width: 20px; opacity: 1; }
@media (max-width: 991.98px) {
  .ch-dept-carousel .carousel-control-prev,
  .ch-dept-carousel .carousel-control-next { display: none; }
}

/* ---------- EVENT CARD (home events, reference index-2.html) ---------- */
.ch-event-card {
  background: var(--color-white);
  border-radius: var(--radius-cut);
  padding: 20px;
  box-shadow: var(--box-shadow);
  height: 100%;
}
.ch-event-card__location { margin-bottom: 12px; font-size: 14px; color: var(--body-text-color); }
.ch-event-card__location i { color: var(--theme-color2); }
.ch-event-card__media { position: relative; overflow: hidden; border-radius: var(--radius-cut-sm); }
.ch-event-card__media img { border-radius: var(--radius-cut-sm); transition: var(--transition); width: 100%; }
.ch-event-card:hover .ch-event-card__media img { transform: scale(1.1); }
.ch-event-card__meta { display: flex; flex-wrap: wrap; gap: 15px; margin: 14px 0; font-size: 14px; font-weight: 500; }
.ch-event-card__meta i { color: var(--theme-color2); margin-right: 5px; }
.ch-event-card__title { margin-bottom: 10px; }
.ch-event-card__title a { color: inherit; }
.ch-event-card__title a:hover { color: var(--theme-color2); }
.ch-event-card__btn { margin-top: 20px; }

/* Image fallback (lesson: every optional image needs one, spec hard rule). */
.ch-card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  background: var(--theme-color-light);
  color: var(--theme-color);
  font-size: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  .ch-card, .ch-card__media img, .ch-card__media::before, .ch-card__view { transition: none; }
}

/* ---------- COUNTER / STAT BOX (facts_figures) ---------- */
.ch-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 20px;
  /* position + z-index scope the icon's negative-z-index outline ring (below)
     to just this counter's own stacking context — without it, the ring
     escapes all the way up to the section and paints behind the whole row
     instead of behind its own icon, making it effectively invisible. */
  position: relative;
  z-index: 1;
}
.ch-counter__icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--theme-color2);
  color: var(--color-white);
}
.ch-counter__number { font-family: var(--heading-font), sans-serif; font-size: 42px; font-weight: 800; color: var(--color-dark); }
.ch-counter__label { font-size: 16px; font-weight: 600; margin-top: 4px; }

/* facts_figures keeps the organic "leaf" icon badge from the reference as
   its signature look, but — like every other home section — the admin's
   light/soft/dark background pick must actually change how it renders; it
   no longer pins the band to a fixed dark fill regardless of that choice. */
.ch-counter-band .ch-counter__icon {
  background: var(--theme-color2);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  position: relative;
}
.ch-counter-band .ch-counter__icon::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--ch-section-text);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: -1;
  transition: var(--transition);
}
.ch-counter-band .ch-counter:hover .ch-counter__icon::before { left: 0; top: 0; }

.ch-section--dark .ch-counter__number, .home-section-bg-dark .ch-counter__number,
.ch-section--dark .ch-counter__label, .home-section-bg-dark .ch-counter__label { color: var(--ch-section-text); }

/* ---------- CTA BAND ---------- */
.ch-cta {
  background: var(--footer-bg);
  color: var(--footer-text-color);
  border-radius: var(--radius-cut);
  padding: 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ch-cta h2, .ch-cta p { color: var(--footer-text-color); }
@media (max-width: 767px) {
  .ch-cta { padding: 36px; text-align: center; justify-content: center; }
}

/* ---------- PAGE INTRO BAND (tagline + title + description beside CTAs,
   a compact tinted strip instead of a full-height centered site-heading
   block — for pages whose inner-page-banner already carries the title) ---------- */
.ch-page-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--theme-color-light);
  border-radius: var(--radius-cut);
  padding: 32px;
}
@media (max-width: 767.98px) {
  .ch-page-intro { padding: 20px; text-align: left; }
}

/* ---------- CTA + MEDIA (home cta: copy beside an image or video) ---------- */
.ch-cta-media__text { color: var(--body-text-color); margin-bottom: 24px; }

.ch-cta-media {
  position: relative;
  height: 420px;
  border-radius: var(--radius-cut);
  overflow: hidden;
  background: var(--theme-color-light);
}
.ch-cta-media__image,
.ch-cta-media__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ch-cta-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--theme-color);
  font-size: 3rem;
}
@media (max-width: 991px) {
  .ch-cta-media { height: 320px; }
}

/* Play button: translucent accent halo behind a solid accent circle,
   always visible (not a hover reveal like .ch-card__view — this is the
   section's primary action, not a secondary hover affordance). */
.ch-cta-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--theme-color2) 25%, transparent);
  cursor: pointer;
  z-index: 1;
  transition: var(--transition2);
}
.ch-cta-play::before {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: var(--theme-color2);
  z-index: -1;
  transition: var(--transition2);
}
.ch-cta-play i {
  position: relative;
  color: var(--color-white);
  font-size: 24px;
  margin-left: 3px;
}
.ch-cta-play:hover {
  background: color-mix(in srgb, var(--theme-color2) 35%, transparent);
}
.ch-cta-play:hover::before { background: var(--color-white); }
.ch-cta-play:hover i { color: var(--theme-color2); }
.ch-cta-play.is-playing i { margin-left: 0; }

@media (prefers-reduced-motion: reduce) {
  .ch-cta-play, .ch-cta-play::before { transition: none; }
}

/* ---------- TESTIMONIAL CARD ---------- */
.ch-testimonial {
  background: var(--color-white);
  border-radius: var(--radius-cut);
  box-shadow: var(--box-shadow);
  padding: 30px;
  height: 100%;
}
.ch-testimonial__stars { color: var(--theme-color2); margin-bottom: 12px; }
.ch-testimonial__quote { color: var(--body-text-color); margin-bottom: 20px; }
.ch-testimonial__person { display: flex; align-items: center; gap: 12px; }
.ch-testimonial__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.ch-testimonial__avatar--initials {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--theme-color-light); color: var(--theme-color); font-weight: 700;
}
.ch-testimonial__name { font-weight: 700; margin-bottom: 0; }
.ch-testimonial__role { font-size: 14px; color: var(--body-text-color); }

/* ---------- PARTNER / LOGO STRIP (reference: Owl Carousel auto-scroll;
   here a pure-CSS marquee — the track is the item list rendered twice back
   to back, translated by exactly -50% so the loop is seamless). ---------- */
/* 50px top/bottom (reference: .partner-area.pt-50.pb-50), shallower than
   the default 100px section padding — this strip is a thin band, not a
   full section. */
#home-partners.ch-section { padding: 50px 0; }
.ch-partner-marquee { overflow: hidden; }
.ch-partner-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ch-partner-scroll 30s linear infinite;
}
.ch-partner-marquee:hover .ch-partner-track { animation-play-state: paused; }
@keyframes ch-partner-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ch-partner-track { gap: 70px; }
@media (max-width: 575.98px) {
  .ch-partner-track { gap: 24px; }
}
.ch-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 180px;
  height: 120px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-cut-sm);
  /* Every other card in the theme gets definition from box-shadow (spec §9);
     this one didn't, so on home-section-bg-light — a plain white section —
     the white tile had no visible edge at all and the logos/names looked
     like they were floating with nothing behind them. */
  box-shadow: var(--box-shadow);
}
.ch-partner img { max-height: 48px; width: auto; max-width: 100%; }
/* No-logo fallback (company initials/name): the card is always white, so the
   label needs its own colour rather than inheriting the section's — which
   is near-white text on a dark-mode section and disappears on this card. */
.ch-partner span { color: var(--color-dark); text-align: center; }

/* ---------- ACCORDION (FAQ — Bootstrap, themed; reference index-3.html §faq-area) ---------- */
.accordion-item { border: 0; border-radius: 30px 30px 30px 0 !important; overflow: hidden; margin-bottom: 30px; box-shadow: var(--box-shadow); }
.accordion-button {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
  font-size: 20px;
  color: var(--color-dark);
  background: var(--color-white);
  box-shadow: none !important;
}
/* Reference colours the open item's own underline and icon with the theme
   colour (not a neutral border) — and keeps the caret the same neutral dark
   as the collapsed state instead of Bootstrap's default blue-tinted active
   icon, which would otherwise clash with the theme's palette. */
.accordion-button:not(.collapsed) {
  color: var(--theme-color);
  background: var(--color-white);
  border-bottom: 1px solid var(--theme-color);
  --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon);
}
/* :focus-visible (keyboard nav only), not :focus (also fires on mouse
   click) — a clicked item otherwise keeps a glowing ring around its full
   rounded shape, which blurs into a dark/coloured section background and
   reads as if that item's corners were a different radius. */
.accordion-button:focus-visible { box-shadow: 0 0 0 3px var(--theme-color-light) !important; }
.accordion-button::after { filter: none; }
@media (max-width: 991.98px) {
  .accordion-button { font-size: 16px; }
}
.ch-accordion__icon {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--theme-color);
  color: var(--color-white);
  font-size: 1.1rem;
}
/* Plugin-owned wrapper (e.g. faq plugin groups by category) — styled here
   since it's markup only a plugin emits, never a theme view itself. */
.ui-group { margin-bottom: 30px; }
.ui-group__title { font-size: 20px; margin-bottom: 16px; }

/* ---------- PERSON CARD (faculty preview) ---------- */
.ch-card--person .ch-card__media { aspect-ratio: 1; }
.ch-card--person .ch-card__media img { height: 100%; }
.ch-card--person .ch-card__body { text-align: center; }

/* ---------- GALLERY ---------- */
/* No forced aspect-ratio — each tile keeps its image's own natural height,
   so a 3-column stack of real photos naturally staggers like the reference
   (mismatched heights down each column), not a uniform grid of squares. */
.ch-gallery-tile { position: relative; display: block; border-radius: var(--radius-cut-sm); overflow: hidden; margin-bottom: 20px; }
.ch-gallery-tile img { width: 100%; display: block; }
.ch-gallery-tile__zoom {
  position: absolute;
  inset: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-color2);
  border-radius: var(--radius-cut-sm);
  color: var(--color-white);
  font-size: 1.8rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition2);
}
.ch-gallery-tile__zoom i { transform: scale(0); transition: var(--transition2); }
.ch-gallery-tile:hover .ch-gallery-tile__zoom { opacity: .9; visibility: visible; }
.ch-gallery-tile:hover .ch-gallery-tile__zoom i { transform: scale(1); }

.ch-gallery-modal { background: transparent; border: none; position: relative; }
.ch-gallery-modal .btn-close { position: absolute; top: -40px; right: 0; filter: invert(1); }
.ch-gallery-modal__body { max-height: 85vh; overflow-y: auto; }
.ch-gallery-modal__img { width: 100%; border-radius: var(--radius-cut-sm); }
.ch-gallery-modal__caption { color: var(--color-white); text-align: center; margin-top: 12px; }
.ch-gallery-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--theme-color2);
  color: var(--color-white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition2);
  z-index: 1;
}
.ch-gallery-modal__nav:hover { background: var(--theme-color); }
.ch-gallery-modal__nav--prev { left: -20px; }
.ch-gallery-modal__nav--next { right: -20px; }

/* ---------- SPLASH POPUP (admin-configured campaign popup) ---------- */
.ch-splash { border: 0; border-radius: var(--radius-cut); overflow: hidden; }
.ch-splash__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: var(--color-white);
  font-size: 14px;
  cursor: pointer;
}
.ch-splash__close:hover { background: var(--theme-color2); }
/* No fixed max-height/inner scroll here (unlike the gallery lightbox this
   borrows its shape from) — a form's content should reflow and let the
   modal/page scroll normally, not get sliced into a cramped inner scrollbox. */
.ch-splash__body { display: flex; flex-wrap: wrap; }
.ch-splash__body--split .ch-splash__media,
.ch-splash__body--split .ch-splash__content { flex: 0 0 50%; max-width: 50%; }
.ch-splash__body--image .ch-splash__media { flex: 0 0 100%; max-width: 100%; }
.ch-splash__media { position: relative; min-height: 220px; }
.ch-splash__media img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }
.ch-splash__content { padding: 28px 32px; flex: 1 1 auto; }
.ch-splash__content .ch-form .mb-3 { margin-bottom: .75rem !important; }
.ch-splash__body--image .ch-splash__content { text-align: center; padding-top: 20px; }
.ch-splash__brand { display: block; margin-top: 16px; color: var(--body-text-color); font-weight: 600; }
@media (max-width: 575.98px) {
  .ch-splash__body--split .ch-splash__media,
  .ch-splash__body--split .ch-splash__content { flex: 0 0 100%; max-width: 100%; }
  .ch-splash__content { padding: 24px; }
}
@media (max-width: 575.98px) {
  .ch-gallery-modal__nav--prev { left: 0; }
  .ch-gallery-modal__nav--next { right: 0; }
}

/* ---------- NOTICE LIST ---------- */
.ch-notices { list-style: none; margin: 0; padding: 0; max-width: 820px; margin-inline: auto; }
.ch-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border-info-color);
}
.ch-notice--pinned { background: var(--theme-color-light); border-radius: var(--radius-cut-sm); }
.ch-notice__date {
  flex: 0 0 auto;
  width: 56px;
  text-align: center;
  line-height: 1.1;
  color: var(--theme-color);
  font-size: 13px;
}
.ch-notice__date strong { display: block; font-size: 20px; }
.ch-notice__main { flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ch-notice__badge { background: var(--theme-color2); color: var(--color-white); font-size: 11px; padding: 2px 8px; border-radius: var(--radius-cut-sm); }
.ch-notice i { color: var(--theme-color); }
/* In dark mode the section's own fill IS --theme-color, so the date and the
   trailing link icon — both pinned to --theme-color — would paint the same
   colour as the background behind them and disappear. */
.ch-section--dark .ch-notice, .home-section-bg-dark .ch-notice { border-bottom-color: color-mix(in srgb, var(--ch-section-text) 20%, transparent); }
.ch-section--dark .ch-notice__date, .home-section-bg-dark .ch-notice__date,
.ch-section--dark .ch-notice i, .home-section-bg-dark .ch-notice i { color: var(--ch-section-text); }
/* The notice title sits bare on the section (no white card underneath), but
   when it's a link the global `a { color: var(--color-dark) }` rule (set
   directly on the element, so inheriting the section's own text colour
   can't win it back) keeps it near-black — low-contrast on a dark band. */
.ch-section--dark .ch-notice__main a, .home-section-bg-dark .ch-notice__main a { color: var(--ch-section-text); }
.ch-section--dark .ch-notice__main a:hover, .home-section-bg-dark .ch-notice__main a:hover { color: var(--ch-section-muted); }

/* ---------- FORM ---------- */
.ch-form label { font-weight: 600; margin-bottom: 6px; display: inline-block; }
.ch-form .required { color: var(--theme-color2); }
.ch-form .form-control,
.ch-form .form-select {
  border: 1px solid var(--border-info-color);
  border-radius: var(--radius-cut-sm);
  padding: 12px 16px;
}
.ch-form .form-control:focus,
.ch-form .form-select:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 3px var(--theme-color-light);
}
.ch-section--dark .ch-form label, .home-section-bg-dark .ch-form label { color: var(--ch-section-text); }
.ch-section--dark .ch-form .form-control, .home-section-bg-dark .ch-form .form-control,
.ch-section--dark .ch-form .form-select, .home-section-bg-dark .ch-form .form-select { background: var(--color-white); }

/* ---------- SECTION GROUP TITLE (faculty/course type groups) ---------- */
.ch-group-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--theme-color2);
}

/* ---------- FEE TABLE ---------- */
.ch-fee-table thead th { background: var(--theme-color-light); color: var(--color-dark); font-weight: 700; }
.ch-fee-table td, .ch-fee-table th { padding: 14px 16px; }
.ch-fee-table__total { font-weight: 700; background: var(--theme-color-light); }
.ch-fee-table__caption {
  caption-side: top;
  text-align: left;
  padding: 16px 16px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
}
/* FeeStructurePageBuilder stacks one .ch-fee-section per academic year; the
   first one keeps the normal section padding (spacing from the banner), but
   consecutive ones only need a small gap between tables, not a full
   section's worth of empty space on both sides. */
.ch-fee-section + .ch-fee-section { padding-top: 24px; }

/* ---------- PAGINATION ---------- */
.ch-pagination { display: flex; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ch-pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-cut-sm);
  color: var(--color-dark);
  border: 1px solid var(--border-info-color);
  text-decoration: none;
}
.ch-pagination .page-item.active .page-link { background: var(--theme-color); color: var(--color-white); border-color: var(--theme-color); }
.ch-pagination .page-item:not(.active):not(.disabled) .page-link:hover { background: var(--theme-color-light); border-color: var(--theme-color); }
.ch-pagination .page-item.disabled .page-link { opacity: 0.4; }

/* ---------- LEADER PROFILE ---------- */
@media (min-width: 992px) {
  .ch-leader--reverse .row { flex-direction: row-reverse; }
}
.ch-leader__media { aspect-ratio: 3 / 4; }
.ch-leader__media img, .ch-leader__media .ch-card__media--empty { height: 100%; }

/* ---------- ADMISSION MODULE ---------- */
.ch-admission__breadcrumb ol { display: flex; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; font-size: 14px; color: var(--body-text-color); }
.ch-admission__breadcrumb a { color: var(--theme-color); }
.ch-admission__breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; }

.ch-admission__intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--theme-color-light);
  border-radius: var(--radius-cut);
  padding: 32px;
  margin-bottom: 32px;
}
.ch-admission__stat { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; }
.ch-admission__stat i { color: var(--theme-color2); }
.ch-admission__stat strong { color: var(--theme-color); font-size: 1.2rem; }

.ch-admission__nav { display: flex; flex-direction: column; gap: 4px; background: var(--color-white); border-radius: var(--radius-cut-sm); box-shadow: var(--box-shadow); padding: 12px; }
.ch-admission__nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; color: var(--color-dark); font-weight: 600; }
.ch-admission__nav a i { color: var(--theme-color2); }
.ch-admission__nav a:hover, .ch-admission__nav a.active { background: var(--theme-color-light); color: var(--theme-color); }

@media (max-width: 767.98px) {
  .ch-admission__intro { padding: 20px; }
}

/* ---------- EMPTY STATE ---------- */
.ch-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--body-text-color);
}
.ch-empty i { font-size: 2.5rem; color: var(--theme-color); margin-bottom: 12px; display: inline-block; }
.ch-empty h4 { margin-bottom: 8px; }

/* ---------- NOTICE TICKER ---------- */
.ch-ticker {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--footer-bg);
  color: var(--footer-text-color);
  padding: 10px 24px;
  overflow: hidden;
}
.ch-ticker__label { display: flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; color: var(--theme-color2); }
.ch-ticker__wrap { flex: 1; overflow: hidden; }
.ch-ticker__track { display: flex; align-items: center; gap: 10px; white-space: nowrap; animation: ch-ticker-scroll 24s linear infinite; }
.ch-ticker__item { color: var(--footer-text-color); }
.ch-ticker__item:hover { color: var(--theme-color2); }
.ch-ticker__sep { opacity: 0.5; }
.ch-ticker__close { background: none; border: none; color: var(--footer-text-color); cursor: pointer; flex: 0 0 auto; }
@keyframes ch-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ch-ticker__track { animation: none; overflow-x: auto; }
}
@media (max-width: 575.98px) {
  .ch-ticker { padding: 8px 16px; gap: 10px; }
  .ch-ticker__label span { display: none; }
}

/* ---------- TOP BAR (reference: header-top — angled two-tone strip,
   social links left, address/email/phone right; hidden below xl) ---------- */
.ch-topbar {
  position: relative;
  background: var(--theme-color);
  padding: 9px 0 10px;
  z-index: 1;
  overflow: hidden;
}
.ch-topbar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: -1px;
  width: 30%;
  background: var(--theme-color2);
  z-index: -1;
}
/* The accent block exists to frame the social icons on the left — with no
   social links there's nothing on the left for it to frame, so it reads as
   a stray colour block instead. */
.ch-topbar:not(:has(.ch-topbar__social))::before { display: none; }
.ch-topbar__wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* When the social block doesn't render at all (no links configured), the
   contact block is the wrap's only child — space-between would then pin it
   left instead of its usual right side. */
.ch-topbar__wrap > .ch-topbar__contact:only-child { margin-left: auto; }
.ch-topbar__social { display: flex; align-items: center; gap: 6px; }
.ch-topbar__social span { color: var(--color-white); font-weight: 500; font-size: 14px; }
.ch-topbar__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  margin-left: 5px;
  border-radius: 50px;
  background: var(--theme-color);
  color: var(--color-white);
  font-size: 16px;
  transition: var(--transition2);
}
.ch-topbar__social a:hover { color: var(--theme-color2); }
.ch-topbar__contact ul { display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.ch-topbar__contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 18px;
  border-right: 1px solid var(--border-white-color);
  color: var(--color-white);
  font-size: 14px;
}
.ch-topbar__contact li:last-child { border-right: none; padding-right: 0; }
.ch-topbar__contact li a { color: var(--color-white); display: inline-flex; align-items: center; gap: 8px; }
.ch-topbar__contact li i { color: var(--theme-color2); }

/* ---------- HEADER / NAVBAR ---------- */
.site-header {
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow2);
}
.site-header .navbar { padding: 10px 0; transition: var(--transition2); }
.site-header.scrolled .navbar { padding: 10px 0; }

.main-nav { gap: 6px; }
.main-nav .nav-link {
  color: var(--color-dark);
  font-weight: 600;
  padding: 10px 14px !important;
  position: relative;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active,
.main-nav .nav-item.dropdown:hover > .nav-link,
.main-nav .nav-item.is-open > .nav-link { color: var(--theme-color); }

/* Level-0 dropdown panel: orange top accent, "//" reveal on hover — the
   reference template's own signature dropdown treatment. The panel/text
   colours themselves follow the admin's Dropdown / Mega Menu Background
   setting (light/dark/brand/contrast) via the shared --submenu-* tokens,
   set per .navigation-submenu-bg-* class on the header (see navigation-tokens). */
.main-nav .dropdown-menu {
  border: none;
  border-top: 3px solid var(--theme-color2);
  border-radius: 0 0 var(--radius-cut-sm) var(--radius-cut-sm);
  box-shadow: var(--box-shadow);
  background: var(--submenu-panel-bg);
  padding: 8px 0;
  min-width: 230px;
}
.main-nav .dropdown-menu .dropdown-item,
.main-nav .dropdown-menu .nav-link.dropdown-toggle {
  color: var(--submenu-text-color);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 0;
  position: relative;
  transition: var(--transition2);
}
.main-nav .dropdown-menu > li:not(:last-child) { border-bottom: 1px solid var(--submenu-border-color); }
.main-nav .dropdown-menu .dropdown-item::before {
  content: "//";
  color: var(--submenu-hover-text-color);
  opacity: 0;
  margin-right: 0;
  transition: var(--transition2);
}
.main-nav .dropdown-menu .dropdown-item:hover,
.main-nav .dropdown-menu .dropdown-item:focus,
.main-nav .dropdown-menu .dropdown-item.active,
.main-nav .dropdown-menu .nav-link.dropdown-toggle:hover {
  background: var(--submenu-hover-bg);
  color: var(--submenu-hover-text-color);
}
.main-nav .dropdown-menu .dropdown-item:hover::before { opacity: 1; margin-right: 6px; }

/* Nested submenu (reference: "Multi level dropdown menu") — flies out to
   the right of its parent panel on hover/open, one level only visually
   distinguished by position; deeper levels repeat the same rule. */
.main-nav .dropdown-submenu { position: relative; }
.main-nav .dropdown-submenu > .nav-link.dropdown-toggle::after { transform: rotate(-90deg); }
.main-nav .dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
  border-top: 3px solid var(--theme-color2);
}

/* ---------- MEGA MENU (platform partial: themes.shared.mega-menu,
   neutral sx- markup) — panel colours follow the same --submenu-* tokens
   as the dropdown above, so the mega panel matches the admin's chosen
   Dropdown / Mega Menu Background scheme. ---------- */
.ch-mega-item { position: static; }
.ch-mega-panel {
  left: 12px;
  right: 12px;
  width: auto;
  margin-top: 0;
  border: none;
  border-top: 3px solid var(--theme-color2);
  border-radius: 0 0 var(--radius-cut-sm) var(--radius-cut-sm);
  background: var(--submenu-panel-bg);
  box-shadow: var(--box-shadow);
  padding: 28px 0;
}
.sx-mega { display: grid; gap: 28px; grid-template-columns: repeat(var(--ch-mega-cols, 3), minmax(0, 1fr)); padding: 0 20px; }
.sx-mega--cols-1 { --ch-mega-cols: 1; }
.sx-mega--cols-2 { --ch-mega-cols: 2; }
.sx-mega--cols-3 { --ch-mega-cols: 3; }
.sx-mega--cols-4 { --ch-mega-cols: 4; }
.sx-mega__heading { color: var(--submenu-heading-color); font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.sx-mega__text { color: var(--submenu-muted-color); font-size: 14px; }
.sx-mega__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sx-mega__link {
  display: block;
  padding: 7px 0;
  color: var(--submenu-text-color);
  font-weight: 500;
  transition: var(--transition2);
}
.sx-mega__link:hover { color: var(--submenu-hover-text-color); padding-left: 6px; }
.sx-mega__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sx-mega__contact-item, .sx-mega__contact-item a { color: var(--submenu-text-color); font-size: 14px; }
.sx-mega__social-link { color: var(--submenu-text-color); margin-right: 12px; font-size: 14px; }
.sx-mega__social-link:hover { color: var(--submenu-hover-text-color); }
.sx-mega__button {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 20px;
  border: 1px solid var(--submenu-heading-color);
  border-radius: var(--radius-cut-sm);
  color: var(--submenu-heading-color);
  font-weight: 600;
  font-size: 13px;
}
.sx-mega__button:hover { background: var(--submenu-hover-bg); color: var(--submenu-hover-text-color); }

/* ---------- NAV BADGE + BUTTON ITEM ---------- */
.ch-nav-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--menu-badge-bg-color);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}
.ch-nav-btn {
  display: inline-flex;
  align-items: center;
  margin: 6px 14px;
  padding: 10px 20px;
  border-radius: var(--radius-cut-sm);
  background: var(--menu-button-bg-color);
  color: var(--menu-button-text-color);
  font-weight: 600;
}
.ch-nav-btn:hover { opacity: .9; color: var(--menu-button-text-color); }

@media (min-width: 1200px) {
  .main-nav .dropdown:hover > .dropdown-menu,
  .main-nav .dropdown.is-open > .dropdown-menu,
  .main-nav .dropdown-submenu:hover > .dropdown-menu,
  .main-nav .dropdown-submenu.is-open > .dropdown-menu,
  .ch-mega-item:hover > .ch-mega-panel,
  .ch-mega-item.is-open > .ch-mega-panel { display: block; margin-top: 0; }

  .ch-nav-btn { margin: 0 0 0 8px; }
}

@media (max-width: 1199.98px) {
  .sx-mega { grid-template-columns: 1fr; gap: 16px; }
  .main-nav .dropdown-submenu > .dropdown-menu { padding-left: 14px; }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text-color);
  padding: 70px 0 24px;
}
.site-footer a { color: var(--footer-text-color); }
.site-footer a:hover { color: var(--theme-color2); }
.footer-widget-title { color: var(--footer-text-color); font-size: 19px; margin-bottom: 16px; }
.footer-widget-list li { margin-bottom: 10px; }
.footer-divider { border-color: var(--border-white-color); margin: 40px 0 24px; }
.footer-bottom { text-align: center; padding-top: 10px; font-size: 14px; }
.footer-bottom p { margin: 0; color: var(--footer-text-color); }

/* The platform's shared footer widgets (about/quick-links/newsletter/contact/
   resources/social-media/links/content — whichever an admin wires into a
   column) all render a bare, unclassed <h4> heading. h1-h6 default to
   --color-dark site-wide (typography.blade.php), which is unreadable on the
   footer's own dark fill, so every widget heading needs the same colour/size
   as .footer-widget-title regardless of which widget a column actually uses. */
.site-footer h4 { color: var(--footer-text-color); font-size: 19px; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer address { margin: 0; }
.site-footer p { color: var(--footer-text-color); }

/* Platform newsletter widget (themes/widgets/newsletter.blade.php) ships
   unstyled — a bare <input type="email"> + <button>, left to the browser's
   own look until a theme styles it. */
.site-footer .mu-subscribe-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.site-footer .mu-subscribe-form input[type="email"] {
  flex: 1 1 160px;
  min-width: 0;
  background: var(--color-white);
  color: var(--color-dark);
  border: none;
  border-radius: var(--radius-cut-sm);
  padding: 12px 16px;
}
.site-footer .mu-subscribe-btn {
  background: var(--resolved-action-bg);
  background-image: var(--resolved-action-bg-image);
  color: var(--resolved-action-color);
  border: var(--resolved-action-border);
  border-radius: var(--resolved-action-radius);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: var(--transition2);
}
.site-footer .mu-subscribe-btn:hover {
  background: var(--resolved-action-hover-bg);
  background-image: var(--resolved-action-hover-bg-image);
  color: var(--resolved-action-hover-color);
}

/* Footer "social" widget (custom/widgets/social.blade.php). */
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--theme-color);
  color: var(--color-white);
  font-size: 15px;
  transition: var(--transition2);
}
.footer-social a:hover { background: var(--theme-color2); color: var(--color-white); }

/* ---------- FEEDBACK QUESTION TYPES ---------- */
.ch-feedback-yesno,
.ch-feedback-likert__options { display: flex; flex-wrap: wrap; gap: 14px; }
.ch-feedback-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-cut-sm);
  cursor: pointer;
  transition: var(--transition2);
}
.ch-feedback-choice:hover { border-color: var(--theme-color); }
.ch-feedback-choice input[type="radio"] { accent-color: var(--theme-color); margin: 0; }
.ch-feedback-choice input[type="radio"]:checked ~ span { color: var(--theme-color); font-weight: 600; }

.ch-feedback-rating { display: flex; flex-direction: column; gap: 10px; }
.ch-feedback-rating__stars { display: flex; gap: 6px; position: relative; z-index: 2; }
.ch-feedback-rating__input { position: absolute; opacity: 0; pointer-events: none; }
.ch-feedback-rating__star {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  color: var(--border-color);
  transition: var(--transition2);
}
.ch-feedback-rating__star.is-selected,
.ch-feedback-rating__star:hover { color: var(--theme-color2); }
.ch-feedback-rating__labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--body-text-color);
}

/* ---------- GRIEVANCE STATUS TIMELINE ---------- */
.ch-grievance-timeline { position: relative; padding-left: 36px; }
.ch-grievance-timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}
.ch-grievance-timeline__item { position: relative; margin-bottom: 20px; display: flex; align-items: flex-start; gap: 14px; }
.ch-grievance-timeline__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--body-text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: -36px;
  position: relative;
  z-index: 1;
  font-size: 13px;
}
.ch-grievance-timeline__item.is-done .ch-grievance-timeline__dot { background: var(--theme-color); color: #fff; }

/* ---------- DEPARTMENT DETAIL STATS (sidebar: value wrapped in a circle) ---------- */
.ch-dept-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-info-color);
}
.ch-dept-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.ch-dept-stat__circle {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--theme-color-light);
  color: var(--theme-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.ch-dept-stat__label { font-weight: 500; color: var(--color-dark); }

/* ---------- DEPARTMENT DETAIL "OTHER DEPARTMENTS" LIST (arrow marks the link) ---------- */
.ch-dept-list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--color-dark);
  transition: var(--transition2);
}
.ch-dept-list-link i { color: var(--theme-color2); transition: var(--transition2); }
.ch-dept-list-link:hover { color: var(--theme-color); }
.ch-dept-list-link:hover i { transform: translateX(4px); }

/* ---------- TOPPERS RANK (circle, replaces the pill badge) ---------- */
.ch-topper-rank {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--theme-color2);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: var(--box-shadow2);
}

/* ---------- COURSE LISTING SIDEBAR (course-2.html layout: grid + sidebar) ---------- */
.ch-course-sidebar { position: sticky; top: 100px; }
.ch-sidebar-widget {
  background: var(--color-white);
  border-radius: var(--radius-cut-sm);
  box-shadow: var(--box-shadow);
  padding: 24px;
  margin-bottom: 24px;
}
.ch-sidebar-widget__title { font-size: 18px; margin-bottom: 16px; }

.ch-sidebar-search { position: relative; }
.ch-sidebar-search input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  border: 1px solid var(--border-info-color);
  border-radius: var(--radius-cut-sm);
  background: var(--theme-bg-light);
}
.ch-sidebar-search input:focus { outline: none; border-color: var(--theme-color); }
.ch-sidebar-search i {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--body-text-color);
}

.ch-sidebar-list { display: flex; flex-direction: column; gap: 4px; }
.ch-sidebar-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-cut-sm);
  background: transparent;
  color: var(--color-dark);
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition2);
}
.ch-sidebar-list__item span { color: var(--body-text-color); font-weight: 400; font-size: 13px; }
.ch-sidebar-list__item:hover { background: var(--theme-color-light); color: var(--theme-color); }
.ch-sidebar-list__item.active { background: var(--theme-color); color: var(--color-white); }
.ch-sidebar-list__item.active span { color: var(--color-white); opacity: 0.8; }

@media (max-width: 991.98px) {
  .ch-course-sidebar { position: static; margin-top: 30px; }
}
.ch-grievance-timeline__item.is-current .ch-grievance-timeline__dot { background: var(--theme-color2); color: #fff; }
/* ---------- SCROLL-TO-TOP BUTTON ---------- */
#scrollUp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1500;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--theme-color);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--box-shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition2);
}
#scrollUp.show { opacity: 1; visibility: visible; transform: translateY(0); }
#scrollUp:hover { background: var(--theme-color2); color: var(--color-dark); }

@media (max-width: 575.98px) {
  #scrollUp { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* WhatsApp float (themes/shared/whatsapp-button, base.css): stacked above #scrollUp */
:root { --sx-wa-right: 21px; --sx-wa-bottom: 82px; }
@media (max-width: 575.98px) {
  :root { --sx-wa-right: 11px; --sx-wa-bottom: 70px; }
}

/* ---------- ENTRANCE ANIMATION ----------
   Vanilla [data-animate] + IntersectionObserver (assets/js/theme.js),
   staggered via data-animate-delay — the native equivalent of the
   reference's WOW.js treatment (spec §2: assets.js_libraries revision). */
[data-animate] { opacity: 0; will-change: transform, opacity; transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }
[data-animate].in-view { opacity: 1; }
[data-animate="fade-left"] { transform: translateX(-24px); }
[data-animate="fade-left"].in-view { transform: translateX(0); }
[data-animate="fade-right"] { transform: translateX(24px); }
[data-animate="fade-right"].in-view { transform: translateX(0); }
[data-animate="fade-up"] { transform: translateY(24px); }
[data-animate="fade-up"].in-view { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .theme-btn::before { transition: none; }
  .ch-counter-band .ch-counter__icon::before { transition: none; }
  .ch-partner-track { animation: none; overflow-x: auto; }
  html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1199.98px) {
  .main-nav { margin: 1rem 0; }
  .nav-cta { flex-wrap: wrap; margin-top: 1rem; gap: 10px; }
}

@media (max-width: 575.98px) {
  .ch-cta h2 { font-size: 26px; }
}

/* Shared navigation submenu token rules */
.navigation-submenu-bg-light {
    --submenu-panel-bg: var(--surface-color);
    --submenu-section-bg: var(--bg-color);
    --submenu-border-color: var(--border-color);
    --submenu-heading-color: var(--heading-color, var(--text-color));
    --submenu-text-color: var(--text-color);
    --submenu-muted-color: var(--text-muted-color);
    --submenu-hover-bg: var(--primary-soft-color);
    --submenu-hover-text-color: var(--primary-color);
}

.navigation-submenu-bg-dark {
    --submenu-panel-bg: var(--text-color);
    --submenu-section-bg: var(--text-color);
    --submenu-border-color: color-mix(in srgb, var(--bg-color), transparent 82%);
    --submenu-heading-color: var(--bg-color);
    --submenu-text-color: var(--bg-color);
    --submenu-muted-color: color-mix(in srgb, var(--bg-color), var(--text-color) 18%);
    --submenu-hover-bg: var(--primary-color);
    --submenu-hover-text-color: var(--primary-contrast-color);
}

.navigation-submenu-bg-brand {
    --submenu-panel-bg: var(--primary-color);
    --submenu-section-bg: var(--primary-color);
    --submenu-border-color: color-mix(in srgb, var(--primary-contrast-color), transparent 82%);
    --submenu-heading-color: var(--primary-contrast-color);
    --submenu-text-color: var(--primary-contrast-color);
    --submenu-muted-color: color-mix(in srgb, var(--primary-contrast-color), var(--primary-color) 20%);
    --submenu-hover-bg: color-mix(in srgb, var(--primary-contrast-color), transparent 88%);
    --submenu-hover-text-color: var(--primary-contrast-color);
}

.navigation-submenu-bg-contrast {
    --submenu-panel-bg: var(--secondary-color);
    --submenu-section-bg: var(--secondary-color);
    --submenu-border-color: color-mix(in srgb, var(--secondary-contrast-color), transparent 82%);
    --submenu-heading-color: var(--secondary-contrast-color);
    --submenu-text-color: var(--secondary-contrast-color);
    --submenu-muted-color: color-mix(in srgb, var(--secondary-contrast-color), var(--secondary-color) 20%);
    --submenu-hover-bg: color-mix(in srgb, var(--secondary-contrast-color), transparent 88%);
    --submenu-hover-text-color: var(--secondary-contrast-color);
}
/* ═══ UI kit (themes/theme9/ui/*) — plugin & platform pages in the theme9 look.
   ui/page and ui/section wrap their content in .ch-ui-page / .ch-ui-section
   alongside .ch-section, which already supplies the shell's background,
   text color and padding — no extra rules needed here. ═══ */
