/* Institute Website Builder — public site styles
   Nunito + Plus Jakarta Sans for UI, Playfair Display for display headings.
   Soft rounded cards, layered shadows, subtle motion.
   --theme/--theme-dark/--theme-light/--theme-rgb are injected per-institute
   in inc/header.php (Website Settings > brand color). */
:root {
  --theme: #FF6B35;        /* overridden inline per institute */
  --theme-dark: #e55a24;   /* overridden inline per institute */
  --theme-light: #fff3ef;  /* overridden inline per institute */
  --theme-rgb: 255,107,53; /* overridden inline per institute */
  --secondary: #392C7D;
  --accent: #00C9A7;
  --text-dark: #171a2e;
  --text-mid: #4b5563;
  --text-light: #9ca3af;
  --border: #e9ecef;
  --bg-soft: #F8F9FC;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 34px rgba(23,26,46,0.09);
  --shadow-sm: 0 2px 10px rgba(23,26,46,0.06);
  --shadow-lg: 0 30px 70px rgba(23,26,46,0.16);
  --font-display: 'Playfair Display', 'Nunito', serif;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  line-height: 1.65;
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Nunito', sans-serif; font-weight: 800; line-height: 1.2; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Headline Ticker (top-of-site scrolling news bar) ---------- */
.site-news-ticker {
  position: relative;
  z-index: 1;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.site-news-ticker-inner {
  /* Full-bleed: the strip spans the whole bar with no side gutters, so the
     badge starts at the very left edge and the headlines run to the right edge. */
  max-width: none; margin: 0; padding: 10px 0;
  display: flex; align-items: center; gap: 18px;
}
.site-news-ticker-badge {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  /* Sits flush against the left edge of the full-bleed bar, so only the inner
     side is rounded. */
  padding: 6px 14px; border-radius: 0 999px 999px 0; background: rgba(255,255,255,.16);
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  white-space: nowrap; line-height: 1;
}
.site-news-ticker-badge i { font-size: .7rem; line-height: 1; }
.site-news-ticker-viewport { flex: 1; min-width: 0; overflow: hidden; }
.site-news-ticker-track {
  display: inline-flex; align-items: center; white-space: nowrap; will-change: transform;
}
.site-news-ticker-track.animate { animation-name: siteNewsTickerScroll; animation-timing-function: linear; animation-iteration-count: infinite; }
.site-news-ticker:hover .site-news-ticker-track.animate { animation-play-state: paused; }
.site-news-ticker-item {
  display: inline-flex; align-items: center; gap: 10px; padding-right: 56px;
  color: inherit; text-decoration: none; font-size: .87rem; font-weight: 600;
  line-height: 1; white-space: nowrap;
}
.site-news-ticker-item:last-child { padding-right: 0; }
.site-news-ticker-item i { font-size: .4rem; opacity: .8; flex-shrink: 0; }
a.site-news-ticker-item:hover { text-decoration: underline; opacity: .88; }
@keyframes siteNewsTickerScroll {
  from { transform: translateX(var(--ticker-start, 100%)); }
  to   { transform: translateX(var(--ticker-end, -100%)); }
}
@media (max-width: 640px) {
  .site-news-ticker-inner { padding: 8px 0; gap: 12px; }
  .site-news-ticker-badge span { display: none; }
  .site-news-ticker-item { font-size: .82rem; padding-right: 40px; }
}

.site-topbar {
  background: var(--theme);
}
.site-topbar-inner {
  max-width: 1600px; margin: 0 auto; padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.site-topbar-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-topbar-left a, .site-topbar-address { color: rgba(255,255,255,.92); display: inline-flex; align-items: center; gap: 7px; transition: color .15s; font-size: .84rem; }
.site-topbar-left a:hover { color: #fff; }
.site-topbar-left i { font-size: .78rem; }
.site-topbar-follow { color: #fff; font-weight: 800; font-size: .86rem; margin-right: 2px; }
.site-topbar-social { display: flex; align-items: center; gap: 10px; }
.site-topbar-social a {
  width: 30px; height: 30px; border-radius: 50%; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .82rem; transition: transform .15s, box-shadow .15s;
}
.site-topbar-social a:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
/* Each network keeps its own recognisable brand colour on the white circle,
   regardless of the institute's theme colour. */
.site-topbar-social-facebook  i { color: #1877F2; }
.site-topbar-social-instagram i { color: #E4405F; }
.site-topbar-social-youtube   i { color: #FF0000; }
.site-topbar-social-twitter   i { color: #14171A; }
.site-topbar-social-linkedin  i { color: #0A66C2; }

.site-topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-topbar-phone { font-weight: 700; }
.site-topbar-divider { width: 1px; height: 20px; background: rgba(255,255,255,.35); flex-shrink: 0; }
.site-topbar-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 999px;
  font-weight: 800; font-size: .78rem; letter-spacing: .03em; text-transform: uppercase;
  color: #fff; background: var(--btn-color, var(--theme-dark));
  white-space: nowrap; transition: transform .15s, box-shadow .15s;
}
.site-topbar-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.25); color: #fff; }
.site-topbar-btn--glow { box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 0 18px 3px var(--btn-color, var(--theme-dark)); }
.site-topbar-btn--glow:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.7), 0 0 22px 5px var(--btn-color, var(--theme-dark)); }
@media (max-width: 820px) { .site-topbar-address { display: none; } }
@media (max-width: 600px) { .site-topbar { display: none; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s var(--ease), background .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 28px rgba(23,26,46,.1); background: rgba(255,255,255,.98); }
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px; max-width: 1600px; margin: 0 auto; gap: 20px;
}
.site-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; font-family: 'Nunito', sans-serif; color: var(--text-dark); }
.site-brand img { height: 44px; width: auto; border-radius: var(--radius-sm); }
/* Multiple logos: laid out in a row; each can carry its own size (--logo-h) set from Website > Settings. */
.site-brand .site-logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }
.site-brand .site-logos img { max-width: 100%; object-fit: contain; }
.site-brand .site-logos img.has-size { height: var(--logo-h); }
@media (max-width: 820px) {
  .site-brand .site-logos { gap: 8px; }
  .site-brand .site-logos img.has-size { height: var(--logo-h-m); }
}
.site-brand-mark {
  width: 44px; height: 44px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: linear-gradient(135deg, var(--theme), var(--theme-dark)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(var(--theme-rgb), .35);
}
.site-brand .tagline { display: block; font-weight: 500; font-size: .74rem; color: var(--text-light); font-family: 'Plus Jakarta Sans', sans-serif; }
.site-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  padding: 9px 11px; border-radius: var(--radius-sm); font-size: .87rem; font-weight: 600; color: var(--text-mid);
  transition: background .15s, color .15s; white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active { background: var(--theme-light); color: var(--theme); }
.site-nav a.site-nav-cta {
  background: var(--theme); color: #fff; margin-left: 4px; padding: 9px 16px; border-radius: 30px;
  box-shadow: 0 6px 18px rgba(var(--theme-rgb), .32);
}
.site-nav a.site-nav-cta:hover { background: var(--theme-dark); color: #fff; transform: translateY(-1px); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; color: var(--text-dark);
  width: 40px; height: 40px; font-size: 1.15rem; border-radius: var(--radius-sm);
  align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .15s, color .15s;
}
.nav-toggle:hover { background: var(--theme-light); color: var(--theme); }
.site-nav-close { display: none; }
.site-nav-backdrop { display: none; }

/* ---------- Nav dropdown (submenus) ---------- */
.site-nav-dropdown { position: relative; display: flex; align-items: center; border-radius: var(--radius-sm); }
.site-nav-dropdown-label {
  padding: 9px 4px 9px 11px; border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-size: .87rem; font-weight: 600; color: var(--text-mid);
  transition: background .15s, color .15s; white-space: nowrap;
}
.site-nav-caret {
  background: none; border: none; cursor: pointer; padding: 9px 8px 9px 2px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-mid); font-size: .66rem; transition: background .15s, color .15s, transform .15s;
}
.site-nav-dropdown-label:hover, .site-nav-dropdown-label.active,
.site-nav-caret:hover { background: var(--theme-light); color: var(--theme); }
.site-nav-dropdown.open .site-nav-caret i, .site-nav-dropdown:hover .site-nav-caret i { transform: rotate(180deg); }
.site-nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 0; padding: 14px 6px 6px; min-width: 210px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; gap: 2px; z-index: 200;
}
.site-nav-dropdown-menu a {
  padding: 9px 14px; border-radius: 6px; font-size: .87rem; font-weight: 600; color: var(--text-mid); white-space: nowrap;
  transition: background .15s, color .15s;
}
.site-nav-dropdown-menu a:hover, .site-nav-dropdown-menu a.active { background: var(--theme-light); color: var(--theme); }
.site-nav-dropdown:hover > .site-nav-dropdown-menu, .site-nav-dropdown.open > .site-nav-dropdown-menu { display: flex; }

/* Nested submenu (submenu-under-submenu, added via Menu Builder) — flies
   out to the side of its parent's dropdown, any number of levels deep. */
.site-nav-subdropdown { position: relative; }
.site-nav-subdropdown-row { display: flex; align-items: center; border-radius: 6px; }
.site-nav-subdropdown-row a { flex: 1; }
.site-nav-subcaret {
  background: none; border: none; cursor: pointer; padding: 9px 10px; color: var(--text-light);
  font-size: .68rem; transition: background .15s, color .15s;
}
.site-nav-subdropdown-row:hover .site-nav-subcaret,
.site-nav-subdropdown-row:hover a { background: var(--theme-light); color: var(--theme); }
.site-nav-dropdown-menu-nested {
  position: absolute; top: -6px; left: 100%; margin-left: 0; padding: 6px 6px 6px 14px; min-width: 200px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; gap: 2px; z-index: 210;
}
.site-nav-subdropdown:hover > .site-nav-dropdown-menu-nested,
.site-nav-subdropdown.open > .site-nav-dropdown-menu-nested { display: flex; }

@media (max-width: 820px) {
  /* backdrop-filter on .site-header (frosted-glass sticky effect) makes it
     the containing block for any position:fixed descendant — including the
     slide-in mobile nav drawer below. That made the drawer's `top: 0` land
     at the top of the header bar instead of the top of the screen, showing
     as a blank gap above the panel. Disabling the filter only at this
     breakpoint (where the drawer is actually used) fixes it; the glass
     effect is desktop-only anyway since the header isn't usually scrolled
     under on phones the same way. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    /* The desktop rule sets justify-content:flex-end (right-align the links in a row).
       In this vertical drawer that pushed every menu item to the bottom, leaving a big
       blank gap under the close button — start the list from the top instead. */
    justify-content: flex-start; flex-wrap: nowrap;
    position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh;
    width: min(320px, 86vw); background: #fff; z-index: 300;
    padding: 74px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; box-shadow: -14px 0 40px rgba(0,0,0,.18);
    transform: translateX(100%); transition: transform .35s var(--ease);
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
    border-radius: 50%; background: var(--theme-light); color: var(--theme);
    border: none; font-size: 1rem; cursor: pointer;
  }
  .site-nav-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(15,17,32,.5);
    z-index: 290; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .site-nav-backdrop.open { opacity: 1; visibility: visible; }
  .site-nav a.site-nav-cta { margin-left: 0; text-align: center; }
  .site-header-inner { flex-wrap: wrap; padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .site-nav-dropdown { flex-wrap: wrap; }
  .site-nav-dropdown-menu {
    position: static; box-shadow: none; border: none; margin-top: 0; margin-left: 14px;
    width: 100%; padding: 2px 0 2px 6px; border-left: 2px solid var(--theme-light);
  }
  .site-nav-dropdown:hover > .site-nav-dropdown-menu { display: none; }
  .site-nav-dropdown.open > .site-nav-dropdown-menu { display: flex; }
  /* Nested submenus become static, further-indented accordions on mobile,
     matching how the first-level submenu already behaves at this width. */
  .site-nav-dropdown-menu-nested {
    position: static; box-shadow: none; border: none; margin-top: 4px; margin-left: 14px;
    width: 100%; padding: 2px 0 2px 6px; border-left: 2px solid var(--theme-light); display: none;
  }
  .site-nav-subdropdown:hover > .site-nav-dropdown-menu-nested { display: none; }
  .site-nav-subdropdown.open > .site-nav-dropdown-menu-nested { display: flex; }
  .site-nav-subcaret i { transition: transform .15s; }
  .site-nav-subdropdown.open > .site-nav-subdropdown-row .site-nav-subcaret i { transform: rotate(90deg); }
}
/* Lock background scroll while the mobile off-canvas menu is open */
body.site-nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--theme), var(--theme-dark));
  color: #fff; padding: 92px 24px; overflow: hidden;
  isolation: isolate;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.5px, transparent 1.5px);
  background-size: 26px 26px; opacity: .5;
}
.hero-shape { position: absolute; border-radius: 50%; z-index: -1; filter: blur(2px); }
.hero-shape-1 { width: 340px; height: 340px; background: rgba(255,255,255,.08); top: -120px; right: -80px; }
.hero-shape-2 { width: 220px; height: 220px; background: rgba(0,0,0,.08); bottom: -90px; left: 6%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: .8rem; font-weight: 700;
  padding: 8px 16px; border-radius: 30px; margin-bottom: 18px; backdrop-filter: blur(4px);
}
.hero-badge i { color: #ffe1a8; }
.hero-inner { position: relative; max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 5.5vw, 2.7rem); margin: 0 0 16px; line-height: 1.2; letter-spacing: -.5px; }
.hero p { font-size: 1.08rem; opacity: .94; margin: 0 0 30px; max-width: 480px; font-weight: 500; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 340px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
}
.hero-img img { width: 100%; height: 100%; display: block; object-fit: contain; }
.hero-img video { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Optional per-slide heading colour override (set via inline --hero-heading-color
   on .hero-inner). Falls back to the normal inherited white when not set. */
.hero-inner h1, .hero-inner p { color: var(--hero-heading-color, inherit); }

/* ---------- Hero Banner pattern variants ---------- */
/* Reversed: image on the left, text on the right */
.hero-slide--image_left .hero-inner { grid-template-columns: 0.9fr 1.1fr; }
.hero-slide--image_left .hero-inner > div:not(.hero-img) { order: 2; }
.hero-slide--image_left .hero-inner > .hero-img { order: 1; }

/* Centered Spotlight: big centered heading, no side image */
.hero-slide--centered .hero-inner { grid-template-columns: 1fr; max-width: 780px; text-align: center; }
.hero-slide--centered .hero-badge { margin: 0 auto 18px; }
.hero-slide--centered h1 { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: -1px; }
.hero-slide--centered p { margin: 0 auto 30px; max-width: 620px; }
.hero-slide--centered .hero-cta-row { justify-content: center; }

/* Full Image Overlay: image fills the banner, text sits on top with a gradient */
.hero-slide--overlay .hero-inner {
  grid-template-columns: 1fr;
  min-height: 420px;
  align-items: flex-end;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-slide--overlay .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 0; background: none; display: block; z-index: 0;
}
.hero-slide--overlay .hero-img img,
.hero-slide--overlay .hero-img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide--overlay .hero-inner::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.42) 45%, rgba(0,0,0,.08) 80%);
}
.hero-slide--overlay .hero-inner > div:not(.hero-img) {
  position: relative; z-index: 2; max-width: 620px;
  padding: 40px clamp(20px, 4vw, 56px) 48px;
}
.hero-slide--overlay h1 { margin-top: 0; }
.hero-slide--overlay h1, .hero-slide--overlay p { text-shadow: 0 2px 14px rgba(0,0,0,.45); }

@media (max-width: 820px) {
  /* Safety net: keep every text element inside the hero centered on mobile
     for all Hero Slider Themes, even ones not explicitly listed below. */
  .hero, .hero-inner, .hero-inner * { text-align: center; }
  .hero { padding: 40px 18px 34px; border-top-left-radius: 24px; border-top-right-radius: 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  /* Grid items default to a content-based min-width, which stops long
     Heading/Sub-heading/Button text from shrinking to fit a single mobile
     column and pushes the hero wider than the screen. Letting the text
     column shrink to 0 (and wrap instead) keeps the whole hero within
     the viewport. */
  .hero-inner > div:not(.hero-img) { min-width: 0; max-width: 100%; }
  .hero-badge { margin: 0 auto 14px; }
  .hero h1 { font-size: clamp(1.5rem, 6.5vw, 1.8rem); margin: 0 0 10px; overflow-wrap: break-word; word-break: break-word; }
  .hero p { margin: 0 auto 20px; font-size: clamp(.92rem, 3.6vw, 1.02rem); max-width: 100%; overflow-wrap: break-word; word-break: break-word; }
  .hero-cta-row { justify-content: center; width: 100%; }
  /* Button Text is a flex item too, so give it the same permission to
     shrink/wrap rather than overflow the screen on narrow phones. */
  .hero-cta-row .btn { max-width: 100%; white-space: normal; overflow-wrap: break-word; word-break: break-word; text-align: center; }
  .hero-img { height: auto; aspect-ratio: 16 / 10; max-height: 260px; }
  .hero-slide--image_left .hero-inner > div:not(.hero-img),
  .hero-slide--image_left .hero-inner > .hero-img { order: initial; }
  .hero-slide--centered h1 { font-size: clamp(1.8rem, 7.5vw, 2.6rem); }
  .hero-slide--overlay .hero-inner { min-height: clamp(260px, 68vw, 380px); align-items: flex-end; }
  .hero-slide--overlay .hero-inner > div:not(.hero-img) { max-width: 100%; padding: 24px 18px 28px; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 32px 16px 28px; }
  .hero h1 { font-size: clamp(1.35rem, 7vw, 1.6rem); }
  .hero p { font-size: clamp(.85rem, 4vw, .95rem); }
  .hero-badge { font-size: clamp(.66rem, 3.2vw, .74rem); padding: 7px 14px; }
  .hero-slide--centered h1 { font-size: clamp(1.6rem, 8.5vw, 2.1rem); }
  .hero-img { aspect-ratio: 4 / 3; max-height: 220px; }
  .hero-slide--overlay .hero-inner { min-height: clamp(220px, 78vw, 320px); }
  .hero-slide--overlay .hero-inner > div:not(.hero-img) { padding: 20px 16px 24px; }
}

/* ---------- Hero banner slider (multiple admin-added slides) ---------- */
.hero-slider { position: relative; max-width: 1160px; margin: 0 auto; padding-bottom: 8px; }
.hero-slider-viewport { overflow: hidden; touch-action: pan-y; }
.hero-slider-track { display: flex; transition: transform .5s ease; }
.hero-slider-track.dragging { transition: none; }
.hero-slide { min-width: 100%; flex-shrink: 0; }
.hero-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; backdrop-filter: blur(4px);
  transition: background .2s;
}
.hero-slider-arrow:hover { background: rgba(255,255,255,.32); }
.hero-slider-arrow.prev { left: -6px; }
.hero-slider-arrow.next { right: -6px; }
.hero-slider-dots {
  position: relative; display: flex; justify-content: center; gap: 14px; margin-top: 22px;
}
.hero-slider-dot {
  width: 9px; height: 9px; border-radius: 5px; background: rgba(255,255,255,.4);
  cursor: pointer; transition: background .2s, width .2s;
  /* Enlarge the invisible tap target well beyond the visible dot for easy thumb taps,
     without changing how the dot looks. */
  position: relative;
}
.hero-slider-dot::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 30px; height: 30px; transform: translate(-50%, -50%);
}
.hero-slider-dot.active { background: #fff; width: 24px; }
@media (max-width: 820px) {
  .hero-slider-arrow {
    width: 34px; height: 34px; top: auto; bottom: -46px; transform: none;
  }
  .hero-slider-arrow.prev { left: calc(50% - 46px); }
  .hero-slider-arrow.next { left: calc(50% + 12px); right: auto; }
  .hero-slider-dots { margin-top: 4px; }
  .hero-slider { padding-bottom: 54px; }
}

/* ---------- Hero Slider — "Showcase" theme ----------
   A second, complete Hero Slider theme an institute can pick on
   institute/website/home.php (alongside the default "Classic Banner" theme
   above): a promo-style split layout — badge, bold heading, button on one
   side, a framed image on the other, edge arrows, and a progress-dot
   indicator. Reuses the same .hero-slider/.hero-slider-track JS/markup, so
   only the slide-inner markup and these styles differ from Classic. */
.hero--showcase {
  --hero-showcase-accent: #e21858;
  background: linear-gradient(120deg, #241242 0%, var(--theme-dark) 38%, var(--theme) 66%, #c81c6e 100%);
  padding: 64px 24px 34px;
}
.hero-showcase-inner {
  position: relative; max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  min-height: 320px;
}
.hero-showcase-badge {
  display: inline-block; background: var(--hero-showcase-accent); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 30px; margin-bottom: 20px;
}
.hero-showcase-text h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.16; letter-spacing: -.5px;
  margin: 0 0 16px; color: var(--hero-heading-color, #fff);
}
.hero-showcase-text p {
  font-size: 1.02rem; opacity: .88; margin: 0 0 30px; max-width: 440px; font-weight: 500;
  color: var(--hero-heading-color, #fff);
}
.hero-showcase-cta {
  display: inline-flex; align-items: center; gap: 10px; background: var(--hero-showcase-accent);
  color: #fff; font-weight: 700; padding: 15px 28px; border-radius: 30px; text-decoration: none;
  transition: transform .18s, box-shadow .18s; box-shadow: 0 10px 24px -8px rgba(226,24,88,.6);
}
.hero-showcase-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(226,24,88,.7); color: #fff; }
.hero-showcase-media { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-showcase-media-frame {
  position: relative; width: 100%; max-width: 380px; aspect-ratio: 4 / 5;
  border-radius: 200px 200px 28px 28px; overflow: hidden;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
}
.hero-showcase-media-frame img,
.hero-showcase-media-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-slider--showcase .hero-slider-arrow { width: 42px; height: 42px; background: transparent; border: 1.5px solid rgba(255,255,255,.5); }
.hero-slider--showcase .hero-slider-arrow:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.8); }
.hero-slider--showcase .hero-slider-arrow.prev { left: 2px; }
.hero-slider--showcase .hero-slider-arrow.next { right: 2px; }
.hero-slider--showcase .hero-slider-dots { justify-content: flex-start; margin-left: 4px; margin-top: 26px; }

/* Thin auto-playing progress bar under the Showcase slider — restarted by
   the shared slider script (site/pages/home.php) whenever the slide changes. */
.hero-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.18); overflow: hidden; display: none; }
.hero-slider--showcase .hero-progress { display: block; }
.hero-progress-fill { display: block; height: 100%; width: 0%; background: var(--hero-showcase-accent, #e21858); }
.hero-progress-fill.animate { animation: heroProgressGrow 6s linear forwards; }
@keyframes heroProgressGrow { from { width: 0%; } to { width: 100%; } }

@media (max-width: 820px) {
  /* Safety net: keep every text element inside the Showcase hero centered
     on mobile, even ones not explicitly listed below. */
  .hero--showcase, .hero-showcase-inner, .hero-showcase-inner * { text-align: center; }
  .hero--showcase { padding: 40px 18px 34px; border-top-left-radius: 24px; border-top-right-radius: 24px; }
  .hero-showcase-inner { grid-template-columns: 1fr; gap: 24px; }
  /* Same grid-shrink fix as the Classic Banner theme above, so a long
     Heading/Sub-heading/Button Text wraps instead of overflowing. */
  .hero-showcase-text { min-width: 0; max-width: 100%; }
  .hero-showcase-badge { margin-left: auto; margin-right: auto; }
  .hero-showcase-text h1 { overflow-wrap: break-word; word-break: break-word; }
  .hero-showcase-text p { margin: 0 auto 26px; max-width: 100%; overflow-wrap: break-word; word-break: break-word; }
  .hero-showcase-cta { max-width: 100%; white-space: normal; overflow-wrap: break-word; word-break: break-word; text-align: center; justify-content: center; }
  .hero-showcase-media-frame { max-width: 260px; aspect-ratio: 4 / 4.4; margin: 0 auto; }
  .hero-slider--showcase .hero-slider-dots { justify-content: center; margin-left: 0; }
}

@media (max-width: 480px) {
  .hero--showcase { padding: 32px 16px 28px; }
  .hero-showcase-text h1 { font-size: clamp(1.5rem, 8vw, 2rem); }
  .hero-showcase-text p { font-size: clamp(.85rem, 4vw, .95rem); margin-bottom: 22px; }
  .hero-showcase-badge { font-size: clamp(.64rem, 3vw, .7rem); padding: 6px 13px; }
  .hero-showcase-cta { padding: 13px 22px; font-size: clamp(.8rem, 3.6vw, .88rem); }
  .hero-showcase-media-frame { max-width: 220px; }
}

/* ---------- Hero Slider — "Fullscreen Video" theme ----------
   A third complete Hero Slider theme (institute/website/home.php): the
   slide's Background Video (or image, if a slide has no video) fills the
   entire hero edge-to-edge, with a heading/text/button centered on top —
   modeled on https://tgpcet.edu.in/. Reuses the same .hero-slider/
   .hero-slider-track JS/markup as the other two themes; only the slide-inner
   markup and these styles differ. */
.hero--video {
  /* dvh accounts for mobile browsers' collapsing address/toolbar (iOS
     Safari, Chrome Android) so the hero doesn't jump or clip content as
     the bar shows/hides; the vh line is the fallback for browsers that
     don't support dvh (the min() with an unknown unit is simply ignored,
     leaving the vh rule in place). */
  height: min(92vh, 820px);
  height: min(92dvh, 820px);
  min-height: 480px;
  padding: 0; overflow: hidden;
}
.hero-slider--video,
.hero-slider--video .hero-slider-viewport,
.hero-slider--video .hero-slider-track,
.hero-slider--video .hero-slide { max-width: none; height: 100%; }
.hero-slider--video { padding-bottom: 0; }
.hero-slide--video-full { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-video-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(135deg, var(--theme), var(--theme-dark)); }
.hero-video-bg img,
.hero-video-bg video { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.hero-video-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,20,.5) 0%, rgba(10,10,20,.25) 45%, rgba(10,10,20,.72) 100%);
}
.hero-video-content {
  position: relative; z-index: 2; width: 100%; max-width: 760px; margin: 0 auto;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  text-align: center; color: #fff; box-sizing: border-box;
  /* This box is a flex child of .hero-slide--video-full (display:flex).
     Flex items default to a content-based min-width, so without this the
     box refuses to shrink below its unwrapped text width and gets hard-
     clipped by the slide's overflow:hidden on narrow phones — badge,
     heading, sub-heading and button all cut off mid-word at the same
     edge. min-width:0 lets it shrink to the phone's width so the text
     wraps instead. */
  min-width: 0;
}
.hero-video-content .hero-badge { margin: 0 auto 18px; }
/* Fluid heading size: scales continuously with viewport width instead of
   jumping between fixed sizes at each breakpoint, so it stays readable and
   never overflows on any phone width, not just the ones with a media query. */
.hero-video-content h1 {
  font-size: clamp(1.25rem, .6rem + 5vw, 2.8rem);
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
  overflow-wrap: break-word; word-break: break-word;
  line-height: 1.2;
}
.hero-video-content p { margin: 0 auto 30px; max-width: 560px; }
.hero-video-content .hero-cta-row { justify-content: center; }

.hero-slider--video .hero-slider-arrow { width: 42px; height: 42px; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.5); }
.hero-slider--video .hero-slider-arrow:hover { background: rgba(255,255,255,.28); border-color: rgba(255,255,255,.8); }
.hero-slider--video .hero-slider-arrow.prev { left: 18px; }
.hero-slider--video .hero-slider-arrow.next { right: 18px; }
.hero-slider--video .hero-slider-dots {
  position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%); z-index: 3; margin-top: 0;
}
.hero-slider--video .hero-progress { display: block; }

/* Small laptops / tablets landscape */
@media (max-width: 1024px) {
  .hero--video { height: min(85vh, 720px); height: min(85dvh, 720px); }
}

/* Tablets portrait / large phones */
@media (max-width: 820px) {
  /* Safety net: keep every text element inside the Fullscreen Video hero
     centered on mobile, even ones not explicitly listed below. */
  .hero--video, .hero-video-content, .hero-video-content * { text-align: center; }
  .hero--video { height: min(78vh, 620px); height: min(78dvh, 620px); min-height: 420px; }
  .hero-video-content { padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .hero-video-content p { max-width: 100%; overflow-wrap: break-word; word-break: break-word; }
  .hero-video-content .hero-cta-row .btn { max-width: 100%; white-space: normal; overflow-wrap: break-word; word-break: break-word; }
  .hero-slider--video .hero-slider-arrow { width: 34px; height: 34px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .hero-slider--video .hero-slider-arrow.prev { left: 10px; }
  .hero-slider--video .hero-slider-arrow.next { right: 10px; }
}

/* Small phones */
@media (max-width: 480px) {
  .hero--video { height: min(72vh, 540px); height: min(72dvh, 540px); min-height: 380px; }
  .hero-video-content { padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .hero-video-content .hero-badge { margin-bottom: 12px; font-size: clamp(.7rem, 3.2vw, .78rem); padding: 6px 12px; }
  .hero-video-content p { font-size: clamp(.85rem, 4vw, .95rem); margin-bottom: 22px; }
  .hero-slider--video .hero-slider-arrow { width: 30px; height: 30px; }
  .hero-slider--video .hero-slider-arrow.prev { left: 6px; }
  .hero-slider--video .hero-slider-arrow.next { right: 6px; }
  .hero-slider--video .hero-slider-dots { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

/* Short viewports — phones in landscape, small laptops with little
   vertical space — so the heading/button row never gets clipped. */
@media (max-height: 500px) and (orientation: landscape) {
  .hero--video { height: 100vh; height: 100dvh; min-height: 260px; }
  .hero-video-content { padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .hero-video-content .hero-badge { margin-bottom: 8px; }
  .hero-video-content h1 { font-size: 1.35rem; margin-bottom: 8px; }
  .hero-video-content p { font-size: .9rem; margin-bottom: 14px; }
  .hero-slider--video .hero-slider-dots { bottom: 8px; }
}

/* ---------- Director's Message ---------- */
/* Optional per-institute background/text colour override (set via inline
   --director-bg-color / --director-text-color on the section, from
   institute/website/director.php). Falls back to the normal theme colours
   when the admin hasn't customized them. */
.director-v2-section { background-color: var(--director-bg-color, var(--bg-soft)); overflow: hidden; }
.director-v2-section .director-eyebrow { color: var(--director-text-color, var(--theme)); }
.director-v2-grid {
  display: grid; grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 64px; align-items: center;
}
.director-v2-media { position: relative; width: 100%; max-width: 360px; margin: 0 auto; }
.director-v2-blob {
  position: absolute; inset: -6% -10% -6% 6%; z-index: 0;
  background: linear-gradient(135deg, var(--theme), var(--secondary));
  border-radius: 46% 54% 58% 42% / 42% 46% 54% 58%;
  opacity: .16;
}
.director-v2-photo {
  position: relative; z-index: 1;
  border-radius: 30px 30px 30px 0; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; width: 92%; background: var(--bg-soft);
  border: 6px solid #fff;
}
.director-v2-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.director-photo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 3rem;
}
.director-v2-exp-badge {
  position: absolute; bottom: 10px; right: -6px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--text-dark); border-radius: 999px;
  padding: 10px 20px 10px 10px; box-shadow: var(--shadow-lg);
}
.director-v2-exp-badge::before {
  content: ''; width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--theme);
}
.director-v2-exp-badge .num {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 40px; text-align: center; font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; color: #fff;
}
.director-v2-exp-badge .label { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; line-height: 1.2; margin-left: 44px; color: var(--text-mid); }
.director-v2-content { position: relative; display: flex; flex-direction: column; align-items: flex-start; z-index: 1; }
.director-v2-content .section-eyebrow { margin-bottom: 14px; }
.director-v2-quote-bg {
  position: absolute; top: -34px; right: 0; font-size: 6rem; color: var(--theme);
  opacity: .1; z-index: 0; pointer-events: none;
}
.director-v2-message {
  position: relative; color: var(--director-text-color, var(--text-dark)); font-family: var(--font-display);
  font-weight: 600; font-size: 1.2rem; line-height: 1.6; margin: 0 0 26px; max-width: 58ch;
}
.director-v2-signoff { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 26px; padding-top: 14px; border-top: 2px solid rgba(var(--theme-rgb), .25); width: 100%; max-width: 58ch; }
.director-v2-name { font-family: var(--font-display); font-size: clamp(1.15rem, 3vw, 1.5rem); color: var(--director-text-color, var(--text-dark)); margin: 0 0 4px; line-height: 1.25; }
.director-v2-title { color: var(--director-text-color, var(--theme)); font-weight: 700; font-size: .88rem; }
@media (max-width: 900px) {
  .director-v2-grid { grid-template-columns: minmax(220px, 300px) 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .director-v2-grid { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .director-v2-content { align-items: center; }
  .director-v2-signoff { align-items: center; }
  .director-v2-media { max-width: 280px; }
  .director-v2-message { max-width: none; }
  .director-v2-content .section-eyebrow { justify-content: center !important; }
  .director-v2-quote-bg { right: 50%; transform: translateX(50%); }
}

/* ---------- About Us (homepage section) ---------- */
.about-v2-grid {
  display: grid; grid-template-columns: minmax(300px, 440px) 1fr;
  gap: 60px; align-items: center;
}
.about-v2-media { position: relative; width: 100%; max-width: 440px; margin: 0 auto; padding-bottom: 40px; }
.about-v2-media-cols { display: flex; gap: 18px; align-items: flex-start; }
.about-v2-photo-main {
  flex: 1 1 56%; border-radius: 36px 36px 0 36px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 5.4; background: var(--bg-soft);
}
.about-v2-photo-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-v2-media-right { flex: 1 1 44%; display: flex; flex-direction: column; gap: 16px; padding-top: 6%; }
.about-v2-photo-circle {
  align-self: flex-end; width: 88%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
  border: 5px dashed var(--theme); box-shadow: var(--shadow); background: #fff; padding: 4px;
}
.about-v2-photo-circle img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.about-v2-photo-second {
  border-radius: 0 30px 30px 30px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.2; background: var(--bg-soft);
}
.about-v2-photo-second img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-v2-badge {
  position: absolute; left: 0; bottom: 0; z-index: 2; max-width: 66%;
  display: flex; align-items: center; gap: 12px;
  background: var(--theme); color: #fff; border-radius: 20px;
  padding: 14px 20px; box-shadow: 0 14px 28px rgba(var(--theme-rgb), .32);
}
.about-v2-badge-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--theme);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.about-v2-badge-text { font-weight: 800; font-size: .92rem; line-height: 1.3; }
.about-v2-content { display: flex; flex-direction: column; align-items: flex-start; }
.about-v2-content .section-eyebrow { margin-bottom: 12px; }
.about-v2-heading { font-family: var(--font-display); font-size: clamp(1.5rem, 3.8vw, 2.4rem); color: var(--text-dark); margin: 0 0 16px; line-height: 1.25; }
.about-v2-highlight-word, .about-v2-heading .about-v2-highlight { color: var(--theme); }
.about-v2-lead { color: var(--text-mid); font-size: 1rem; line-height: 1.75; margin: 0 0 28px; max-width: 62ch; }
.about-v2-lower { display: grid; grid-template-columns: 1fr 240px; gap: 24px; width: 100%; margin-bottom: 30px; align-items: start; }
.about-v2-highlights { display: flex; flex-direction: column; gap: 22px; }
.about-v2-highlight { display: flex; gap: 16px; align-items: flex-start; text-align: left; }
.about-v2-highlight-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--theme); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: 0 8px 18px rgba(var(--theme-rgb), .28);
}
.about-v2-highlight-text h3 { font-size: 1.02rem; font-weight: 800; color: var(--text-dark); margin: 6px 0 6px; }
.about-v2-highlight-text p { font-size: .9rem; color: var(--text-mid); line-height: 1.6; margin: 0; }
.about-v2-quote {
  position: relative; background: var(--bg-soft); border-radius: var(--radius); padding: 24px 22px;
  color: var(--text-mid); font-size: .92rem; line-height: 1.7; overflow: hidden;
}
.about-v2-quote p { margin: 0; position: relative; z-index: 1; }
.about-v2-quote-mark {
  position: absolute; right: 16px; bottom: 4px; font-family: var(--font-display); font-weight: 800;
  font-size: 3.2rem; color: var(--accent); opacity: .35; line-height: 1; z-index: 0;
}
.about-v2-cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.about-v2-call { display: flex; align-items: center; gap: 12px; }
.about-v2-call-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--secondary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.about-v2-call-text { display: flex; flex-direction: column; line-height: 1.35; }
.about-v2-call-label { font-size: .82rem; font-weight: 700; color: var(--theme); }
.about-v2-call-number { font-size: 1rem; font-weight: 800; color: var(--text-dark); }
@media (max-width: 980px) {
  .about-v2-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-v2-lower { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .about-v2-content { align-items: center; text-align: center; }
  .about-v2-content .section-eyebrow { justify-content: center !important; }
  .about-v2-highlight { text-align: left; }
  .about-v2-cta-row { justify-content: center; }
  .about-v2-media { max-width: 320px; }
}

/* ---------- Testimonials (homepage auto-scroll slider) ---------- */
.testimonial-slider { max-width: 760px; margin: 0 auto; position: relative; }
.testimonial-slider-viewport { overflow: hidden; border-radius: var(--radius); }
.testimonial-slider-track { display: flex; transition: transform .5s var(--ease); }
.testimonial-slide { flex: 0 0 100%; min-width: 0; padding: 4px; }
.testimonial-slide-card {
  position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px 44px; text-align: center; overflow: hidden;
}
.testimonial-slide-quote-bg {
  position: absolute; top: 16px; right: 24px; font-size: 3.4rem; color: var(--theme);
  opacity: .1; z-index: 0; pointer-events: none;
}
.testimonial-stars { position: relative; z-index: 1; color: #f5a623; font-size: .9rem; margin-bottom: 16px; }
.testimonial-slide-message {
  position: relative; z-index: 1; font-style: italic; color: var(--text-mid);
  font-size: 1.05rem; line-height: 1.75; margin: 0 0 22px;
}
.testimonial-slide-person { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 14px; }
.testimonial-slider-dots { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 26px; }
.testimonial-slider-dot {
  width: 9px; height: 9px; border-radius: 999px; background: var(--border);
  cursor: pointer; transition: all .2s var(--ease);
}
.testimonial-slider-dot.active { background: var(--theme); width: 26px; }
@media (max-width: 600px) {
  .testimonial-slide-card { padding: 30px 22px; }
  .testimonial-slide-person { flex-direction: column; gap: 8px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-radius: 30px;
  font-weight: 700; font-size: .89rem; font-family: inherit; border: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, opacity .2s;
  position: relative;
}
.btn-theme { background: #fff; color: var(--theme); box-shadow: 0 10px 26px rgba(0,0,0,.16); }
.btn-theme:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.2); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-outline-white:hover { background: rgba(255,255,255,.14); border-color: #fff; transform: translateY(-2px); }
.btn-solid { background: var(--theme); color: #fff; box-shadow: 0 10px 24px rgba(var(--theme-rgb), .3); }
.btn-solid:hover { background: var(--theme-dark); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(var(--theme-rgb), .4); }

/* ---------- Sections ---------- */
/* Optional per-section background/text colour override — set via inline
   --section-bg-color / --section-text-color on the section's <section>
   element, from institute/website/<section>.php's "Section Appearance"
   card (Achievements, News, Courses, Facilities, Certifications, Services,
   Testimonials, Contact, Clients). Falls back to the normal theme colours
   when the admin hasn't customized a given section. */
.section { padding: 76px 24px; background-color: var(--section-bg-color, transparent); }
.section-soft { background: var(--section-bg-color, var(--bg-soft)); }
.section-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--section-text-color, var(--theme)); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 10px;
}
.section-title { font-family: var(--font-display); font-size: clamp(1.4rem, 4.5vw, 2rem); margin: 0 0 14px; text-align: center; color: var(--section-text-color, var(--text-dark)); position: relative; }
.section-title::after {
  content: ''; display: block; width: 56px; height: 4px; margin: 16px auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--theme), var(--theme-dark));
}
.section-sub { text-align: center; color: var(--section-text-color, var(--text-light)); max-width: 560px; margin: 0 auto 44px; font-size: .97rem; }

/* Title accent word — wrap any word/phrase in <em>…</em> inside a main
   page/section heading (.section-title, .about-main-title,
   .cp-title-banner-heading) to render it in the institute's theme color,
   same weight as the rest of the heading, not italic. This mirrors the
   About section's [[..]] highlight convention (.about-v2-highlight) so the
   "one accent word per title" look is consistent everywhere on the site.
   Sections with their own bespoke accent color (e.g. shop deals, flash
   sale) keep their own more-specific override below this. */
.section-title em, .about-main-title em, .cp-title-banner-heading em {
  color: var(--theme); font-style: normal;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* About page — two-column layout (image + copy on the left, quick-facts
   sidebar of Achievements / Programmes / Location on the right) */
.about-columns { display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px; align-items: start; margin-top: 30px; }
.about-main-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; box-shadow: var(--shadow-sm); }
.about-main-image img { width: 100%; height: 320px; object-fit: cover; }
.about-main-title { font-size: 1.3rem; margin: 0 0 14px; }
.about-sidebar { display: flex; flex-direction: column; gap: 22px; }
.sidebar-widget {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px;
}
.sidebar-widget h4 {
  margin: 0 0 16px; font-size: 1rem; font-weight: 800; color: var(--text-dark);
  padding-bottom: 12px; border-bottom: 2px solid var(--theme); display: inline-block;
}
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-tags a {
  display: inline-block; background: #fff; border: 1px solid var(--border); color: var(--text-mid);
  font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 30px;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.sidebar-tags a:hover { background: var(--theme); border-color: var(--theme); color: #fff; }
@media (max-width: 860px) {
  .about-columns { grid-template-columns: 1fr; }
  .about-main-image img { height: 240px; }
}

/* Feature / highlight cards */
.info-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 24px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  position: relative; overflow: hidden;
}
.info-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--theme), var(--theme-dark)); transition: transform .3s var(--ease);
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.info-card:hover::before { transform: scaleX(1); }
.info-card .icon {
  width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, var(--theme-light), #fff);
  color: var(--theme); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 18px;
  box-shadow: 0 8px 20px rgba(var(--theme-rgb), .18);
}
.info-card h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 700; }
.info-card p { margin: 0; color: var(--text-light); font-size: .9rem; }

/* Stats */
.stats-row { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; text-align: center; }
.stats-row > div { display: flex; flex-direction: column; align-items: center; }
.stats-row i { font-size: 1.3rem; color: var(--theme); margin-bottom: 10px; }
.stats-row .num { font-size: 2.3rem; font-weight: 800; color: var(--text-dark); font-family: 'Nunito', sans-serif; }
.stats-row .label { color: var(--text-light); font-size: .85rem; font-weight: 600; margin-top: 2px; }
.stats-band .container {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 30px;
  border: 1px solid var(--border);
}

/* Course / faculty cards */
.entity-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.entity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.entity-card .thumb { height: 172px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.entity-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.entity-card:hover .thumb img { transform: scale(1.08); }
.entity-card .thumb .placeholder { font-size: 2.2rem; color: var(--theme); font-weight: 800; }
.entity-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.entity-card h3 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 700; }
.entity-card .meta { color: var(--text-light); font-size: .82rem; margin-bottom: 10px; }
.entity-card p { color: var(--text-mid); font-size: .88rem; margin: 0 0 16px; flex: 1; }
.entity-card .tag {
  display: inline-block; background: var(--theme-light); color: var(--theme);
  font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-right: 6px;
}

.achievement-card .tag { margin-bottom: 10px; }
.achievement-card .achievement-student {
  font-size: .82rem; color: var(--text-light); margin-bottom: 8px; font-weight: 600;
}
.achievement-card .achievement-student i { color: var(--theme); margin-right: 4px; }
/* Fixed, consistent image box across every card — image is never cropped,
   it scales down to fit within the box and stays centered. */
.achievement-card .thumb {
  height: 190px; background: var(--bg-soft); padding: 10px;
}
.achievement-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.achievement-card:hover .thumb img { transform: none; }

.section-more-cta { text-align: center; margin-top: 36px; }

/* ---------- Homepage "Our Programs" cards ---------- */
/* Distinct from .entity-card (used on the full Courses listing page).
   Layout mirrors a "program/course" card style: a code badge chip
   overlapping the thumbnail, left-aligned title + one-line tagline, and a
   split meta bar (duration / fee, each with an icon) pinned to the card's
   bottom edge. The whole card is one clickable link. */
.program-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; text-align: left;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.program-card .thumb {
  width: 100%; height: 188px; background: var(--bg-soft); display: flex; align-items: center;
  justify-content: center; overflow: hidden; position: relative;
}
.program-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.program-card:hover .thumb img { transform: scale(1.1); }
.program-card .thumb .placeholder { font-size: 2.2rem; color: var(--theme); font-weight: 800; }
.program-card .program-badge {
  position: absolute; top: 14px; left: 14px; background: var(--theme); color: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; box-shadow: 0 6px 16px rgba(var(--theme-rgb), .35);
}
.program-card .body { padding: 22px 24px 0; flex: 1; display: flex; flex-direction: column; }
.program-card h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; line-height: 1.35; color: var(--text-dark); transition: color .2s var(--ease); }
.program-card:hover h3 { color: var(--theme); }
.program-card p { color: var(--text-mid); font-size: .88rem; line-height: 1.6; margin: 0 0 18px; flex: 1; }
.program-card .program-meta { display: flex; align-items: stretch; border-top: 1px solid var(--border); margin-top: auto; }
.program-card .program-meta span {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 14px 8px; font-size: .8rem; font-weight: 700; color: var(--text-dark); text-align: center;
}
.program-card .program-meta span:not(:last-child) { border-right: 1px solid var(--border); }
.program-card .program-meta i { color: var(--theme); font-size: .88rem; }

.faculty-card { text-align: center; padding: 30px 20px; }
.faculty-photo {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--theme-light); box-shadow: 0 8px 20px rgba(var(--theme-rgb), .15);
}
.faculty-photo img { width: 100%; height: 100%; object-fit: cover; }
.faculty-photo .placeholder { font-size: 1.5rem; font-weight: 800; color: var(--theme); }

/* ---------- Forms ---------- */
.site-form { max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.site-form .form-row { margin-bottom: 16px; }
.site-form label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.site-form input, .site-form textarea, .site-form select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .92rem; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.site-form input:focus, .site-form textarea:focus, .site-form select:focus {
  outline: none; border-color: var(--theme); box-shadow: 0 0 0 3px var(--theme-light);
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-two { grid-template-columns: 1fr; } }
.form-alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .9rem; font-weight: 500; }
.form-alert.success { background: #ecfdf5; color: #067647; border: 1px solid #a7f3d0; }
.form-alert.error { background: #fef2f2; color: #b42318; border: 1px solid #fecaca; }

/* Contact form -- evenly padded card, uniform field height & spacing */
.contact-form { max-width: none; width: 100%; margin: 0; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.contact-form .form-row { margin: 0; min-width: 0; }
.contact-form .form-two { gap: 18px; }
.contact-form label { margin-bottom: 7px; line-height: 1.3; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; min-height: 46px; padding: 12px 14px; line-height: 1.4;
  background: #fff; border: 1px solid #d9dee5; border-radius: var(--radius-sm);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9aa3af; }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .contact-form-btn { width: 100%; justify-content: center; margin-top: 4px; }
@media (max-width: 600px) {
  .contact-form { padding: 22px 18px; gap: 16px; }
  .contact-form .form-two { grid-template-columns: 1fr; gap: 16px; }
}

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-info-item .icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--theme-light);
  color: var(--theme); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.map-embed iframe { width: 100%; height: 260px; border: 0; border-radius: var(--radius); margin-top: 20px; }

/* Admissions steps */
.steps-list { max-width: 700px; margin: 0 auto; }
.step-item { display: flex; gap: 16px; margin-bottom: 22px; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--theme), var(--theme-dark)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
  font-family: 'Nunito', sans-serif; box-shadow: 0 6px 14px rgba(var(--theme-rgb), .3);
}

/* ---------- CTA Band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--text-dark), #262a4a);
  margin: 0 24px 64px; border-radius: var(--radius);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(var(--theme-rgb),.25), transparent 45%),
                     radial-gradient(circle at 80% 80%, rgba(var(--theme-rgb),.2), transparent 45%);
}
.cta-band .section-title, .cta-band .section-sub { color: #fff; position: relative; }
.cta-band .section-sub { color: #c4c8d6; }
.cta-band .btn-theme { position: relative; }
.cta-band-inner { text-align: center; }
.cta-band-inner .btn { justify-content: center; }
@media (max-width: 700px) { .cta-band { margin: 0 12px 44px; } }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--text-dark), #12142a); color: #c4c8d6; padding: 60px 24px 24px; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-inner a { justify-content: center; }
  .footer-social { justify-content: center; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { height: 38px; width: auto; border-radius: 8px; }
.footer-inner h4 { color: #fff; font-size: 1rem; margin: 0 0 16px; }
.footer-brand h4 { margin: 0; }
.footer-inner a { color: #c4c8d6; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .88rem; transition: color .15s, transform .15s; }
.footer-inner a:hover { color: #fff; transform: translateX(3px); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; margin: 0;
}
.footer-social a:hover { background: var(--theme); transform: translateY(-3px); }
.footer-bottom {
  max-width: 1160px; margin: 34px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem; color: #8b90a5; text-align: center;
}

/* ---------- Bottom navigation bar (mobile only) ---------- */
.bottom-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(23,26,46,.1);
}
.bottom-nav-inner {
  display: flex; align-items: flex-end;
  max-width: 560px; margin: 0 auto;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
}
.bottom-nav-item {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 4px; padding: 4px 2px; color: var(--text-light); text-decoration: none;
  font-size: .68rem; font-weight: 600; line-height: 1.15; text-align: center;
  -webkit-tap-highlight-color: transparent; transition: color .15s;
}
button.bottom-nav-item { background: none; border: none; font-family: inherit; cursor: pointer; }
.bottom-nav-icon {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; font-size: 1.15rem; line-height: 1;
}
.bottom-nav-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottom-nav-item.active, .bottom-nav-item:hover { color: var(--theme); }
.bottom-nav-item.bottom-nav-cta { color: var(--theme); }
.bottom-nav-item.bottom-nav-cta .bottom-nav-icon {
  width: 50px; height: 50px; margin-top: -26px; border-radius: 50%; background: var(--theme); color: #fff;
  font-size: 1.3rem; box-shadow: 0 8px 20px rgba(var(--theme-rgb),.4); border: 4px solid #fff;
}
.bottom-nav-item.bottom-nav-cta.active .bottom-nav-icon,
.bottom-nav-item.bottom-nav-cta:hover .bottom-nav-icon { background: var(--theme-dark); }
.bottom-nav-item.bottom-nav-cta.active, .bottom-nav-item.bottom-nav-cta:hover { color: var(--theme-dark); }

@media (max-width: 768px) {
  .bottom-nav { display: block; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 24px; left: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--text-dark); color: #fff; border: none; cursor: pointer; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s; z-index: 190;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--theme); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-48px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-left.in-view { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(48px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-right.in-view { opacity: 1; transform: translateX(0); }
.reveal-zoom { opacity: 0; transform: scale(.9); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-zoom.in-view { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-zoom { opacity: 1; transform: none; transition: none; }
}

/* WhatsApp float button */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: var(--shadow); z-index: 200; transition: transform .2s;
  border: none; cursor: pointer; padding: 0;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* WhatsApp popup widget */
.wa-widget { position: fixed; bottom: 24px; right: 24px; z-index: 200; }
.wa-widget .whatsapp-float { position: static; }
.wa-widget .wa-icon-close { display: none; }
.wa-widget .whatsapp-float.is-open .wa-icon-chat { display: none; }
.wa-widget .whatsapp-float.is-open .wa-icon-close { display: block; }

.wa-popup {
  position: absolute; bottom: 74px; right: 0; width: 340px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.18);
  overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.97);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.wa-popup.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.wa-popup-header {
  background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; padding: 18px 20px;
}
.wa-popup-title { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.05rem; }
.wa-popup-subtitle { font-size: .82rem; opacity: .9; margin-top: 4px; }

.wa-popup-agents { max-height: 320px; overflow-y: auto; padding: 8px; }
.wa-agent {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 12px;
  transition: background .15s;
}
.wa-agent:hover { background: var(--bg-soft); }
.wa-agent-avatar { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.wa-agent-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.wa-agent-initials {
  width: 44px; height: 44px; border-radius: 50%; background: var(--theme-light); color: var(--theme-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem;
}
.wa-agent-dot {
  position: absolute; bottom: 0; right: 0; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff;
}
.wa-agent-dot.is-online { background: #25D366; }
.wa-agent-dot.is-offline { background: #c7ccd6; }
.wa-agent-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-agent-name { font-weight: 700; font-size: .9rem; color: var(--text-dark); }
.wa-agent-role { font-size: .76rem; color: var(--text-light); }
.wa-agent-status { font-size: .74rem; margin-top: 2px; font-weight: 600; }
.wa-agent-status.is-online { color: #16a34a; }
.wa-agent-status.is-offline { color: var(--text-light); }
.wa-agent-cta { color: #25D366; font-size: 1.2rem; flex-shrink: 0; }

.wa-popup-footer {
  padding: 10px 18px; text-align: center; font-size: .72rem; color: var(--text-light);
  border-top: 1px solid var(--border);
}

/* Chatbot widget */
.cb-widget { position: fixed; bottom: 24px; right: 24px; z-index: 200; }
.cb-widget .whatsapp-float { position: static; }
.cb-toggle-btn { background: linear-gradient(135deg, var(--theme, #4f46e5), var(--theme-dark, #3730a3)); }
.cb-widget .wa-icon-close { display: none; }
.cb-widget .whatsapp-float.is-open .wa-icon-chat { display: none; }
.cb-widget .whatsapp-float.is-open .wa-icon-close { display: block; }

.cb-popup-header { background: linear-gradient(135deg, var(--theme, #4f46e5), var(--theme-dark, #3730a3)); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cb-bot-row { display: flex; align-items: center; gap: 12px; }
.cb-bot-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0;
}

/* Language switcher — English/Hindi/Marathi only, backed entirely by the
   admin-provided translations stored on each question (answer_hi /
   answer_mr). No external translation service is used — see
   site/chatbot-open.php for the fuller explanation; this mirrors that
   same switcher for the popup widget. */
.cb-translate { flex-shrink: 0; position: relative; }
.cb-lang-select { appearance: none; -webkit-appearance: none; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); border-radius: 8px; color: #fff; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: .74rem; padding: 7px 22px 7px 9px; cursor: pointer; }
.cb-lang-select:focus { outline: 2px solid rgba(255,255,255,.6); outline-offset: 1px; }
.cb-lang-select option { color: #1f2430; }
.cb-translate::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .68rem; color: #fff; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; }

.cb-body { max-height: 360px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }

.cb-bubble { border-radius: 14px; padding: 10px 14px; font-size: .85rem; line-height: 1.45; max-width: 88%; }
.cb-bubble-bot { background: var(--bg-soft); color: var(--text-dark); align-self: flex-start; border-bottom-left-radius: 4px; }
.cb-bubble-user { background: var(--theme, #4f46e5); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

.cb-list { display: flex; flex-direction: column; gap: 6px; }
.cb-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cb-option {
  display: flex; align-items: center; gap: 10px; text-align: left; width: 100%;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px;
  font-size: .85rem; font-weight: 600; color: var(--text-dark); cursor: pointer; transition: border-color .15s, background .15s;
}
.cb-option:hover { border-color: var(--theme, #4f46e5); background: var(--bg-soft); }
.cb-option i:first-child { color: var(--theme, #4f46e5); width: 16px; text-align: center; }
.cb-option-arrow { margin-left: auto; font-size: .7rem; color: var(--text-light); }
.cb-option-muted { color: var(--text-mid); font-weight: 600; justify-content: center; }
.cb-option-grid {
  flex-direction: column; text-align: center; gap: 6px; padding: 16px 8px;
}
.cb-option-grid i:first-child { font-size: 1.3rem; width: auto; }

.cb-back {
  align-self: flex-start; background: none; border: none; color: var(--theme, #4f46e5); font-weight: 700;
  font-size: .78rem; cursor: pointer; padding: 2px 0; display: flex; align-items: center; gap: 6px;
}
.cb-back:hover { text-decoration: underline; }

.cb-attachment {
  display: flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--theme-light, #f0ecff);
  color: var(--theme, #4f46e5); border-radius: 10px; padding: 8px 12px; font-size: .8rem; font-weight: 700;
  text-decoration: none; transition: opacity .15s;
}
.cb-attachment:hover { opacity: .8; }

.cb-feedback { display: flex; align-items: center; gap: 8px; align-self: flex-start; font-size: .75rem; color: var(--text-light); }
.cb-feedback-btn {
  background: #fff; border: 1px solid var(--border); border-radius: 8px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-mid);
  transition: all .15s; padding: 0;
}
.cb-feedback-btn:hover { border-color: var(--theme, #4f46e5); color: var(--theme, #4f46e5); }
.cb-feedback-btn.voted-up { background: #e8f9ee; border-color: #2fae60; color: #2fae60; }
.cb-feedback-btn.voted-down { background: #fdeceb; border-color: #e5484d; color: #e5484d; }
.cb-convo-feedback {
  display: none; align-items: center; gap: 10px; padding: 8px 18px; border-top: 1px solid var(--border);
  font-size: .78rem; color: var(--text-mid);
}
.cb-convo-feedback.show { display: flex; }
.cb-convo-feedback.answered { color: var(--text-light); font-style: italic; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--text-light); }

/* ---------- Home page Banner (2-column: text left, image right) ---------- */
.banner-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.banner-content { display: flex; flex-direction: column; align-items: flex-start; }
.banner-title {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--text-dark); margin: 0 0 16px; line-height: 1.25;
}
.banner-details { color: var(--text-mid); font-size: 1.02rem; line-height: 1.7; margin: 0 0 24px; max-width: 60ch; }
.banner-media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  width: 100%; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.banner-media img { width: 100%; height: auto; max-height: 560px; object-fit: contain; display: block; }
.banner-media-placeholder {
  width: 100%; min-height: 300px; display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 3rem;
}

@media (max-width: 900px) {
  .banner-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .banner-content { align-items: center; }
  .banner-details { max-width: none; }
  .banner-media { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .banner-media img { max-height: 320px; }
}

/* ---------- Extra small-screen polish (phones down to ~320px) ---------- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 16px; }
  .hero { padding: 32px 14px 28px; }
  .site-header-inner { padding: 12px 16px; }
  .stats-row { gap: 28px; }
  .stats-row .num { font-size: 1.8rem; }
  .site-form { padding: 22px 18px; }
  .footer-inner { gap: 30px; }
}

/* Keep floating widgets (chat, back-to-top, install prompt) clear of the
   bottom nav bar on mobile — placed last so it wins the cascade. */
@media (max-width: 768px) {
  .whatsapp-float, .wa-widget, .cb-widget { bottom: 82px; }
  .back-to-top { bottom: 82px; }
  .pwa-install-popup.open { bottom: 82px; }
}

/* Overlay mode — on the home page the bar is rendered inside <section class="hero">
   (see site/pages/home.php) and sits ON the bottom edge of the Hero Slider
   instead of below it. The hero gets .hero--has-ticker so it can reserve room
   underneath the slider and its dots. */
.site-news-ticker--hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  box-shadow: 0 -6px 18px rgba(0,0,0,.18);
  /* Let the hero's rounded corners show through at the very bottom of the page
     flow while keeping the bar flush with the slider above it. */
  backdrop-filter: saturate(1.1);
}
.hero--has-ticker { padding-bottom: 76px; }
.hero--has-ticker.hero--showcase { padding-bottom: 76px; }
/* Fullscreen-video hero keeps its full-bleed height: the bar floats over the
   video, and only the dots/content are lifted clear of it. */
.hero--has-ticker.hero--video { padding-bottom: 0; }
.hero--has-ticker .hero-slider--video .hero-slider-dots { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
.hero--has-ticker .hero-slider--video .hero-video-content { padding-bottom: 96px; }
@media (max-width: 820px) {
  .hero--has-ticker,
  .hero--has-ticker.hero--showcase { padding-bottom: 66px; }
  .hero--has-ticker .hero-slider--video .hero-slider-dots { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 480px) {
  .hero--has-ticker,
  .hero--has-ticker.hero--showcase { padding-bottom: 60px; }
}

/* "Show all logos on the left side of the Site Title" (Website > Settings > Branding). */
.site-brand.logos-inline { flex-direction: row; align-items: center; text-align: left; }
.site-brand.logos-inline .site-logos { flex-wrap: nowrap; flex-shrink: 0; justify-content: flex-start; }
