/*================================================================
  Hippocampus — "Fresh" theme
  A self-contained design system (own tokens, own components).
  Built for /new-theme/index.html only — does not depend on the
  legacy main.css. Same brand colors + fonts as the rest of the
  site, entirely new layout language.
================================================================*/

:root {
  --purple: #674ea7;
  --purple-deep: #150E57;
  --purple-ink: #150E57;
  --gold: #fcd84e;
  --coral: #f04e43;
  --ink: #211a30;
  --muted: #6c6480;
  --mist: #f6f4fb;
  --white: #ffffff;

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-pill: 100px;

  --shadow-sm: 0 6px 20px rgba(37, 26, 71, 0.08);
  --shadow-md: 0 16px 40px rgba(37, 26, 71, 0.12);
  --shadow-lg: 0 28px 60px rgba(37, 26, 71, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gradient-brand: linear-gradient(120deg, var(--purple), #8a6fd1 55%, var(--gold));
}

* { box-sizing: border-box; }

body.ht-body {
  font-family: 'Rubik', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

.ht-body h1, .ht-body h2, .ht-body h3, .ht-body h4, .ht-body h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--purple-deep);
  margin: 0;
}

.ht-body a { text-decoration: none; color: inherit; }
.ht-body img { max-width: 100%; display: block; }
.ht-body ul { margin: 0; padding: 0; list-style: none; }

.ht-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.ht-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}
.ht-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--coral);
  display: inline-block;
}

.ht-section { padding: 110px 0; }
.ht-section-tight { padding: 70px 0; }
.ht-section-tint { background: var(--mist); }
.ht-section-dark {
  background: radial-gradient(120% 140% at 10% 0%, #3a2a6b 0%, var(--purple-ink) 60%);
  color: #ece8f7;
}
.ht-section-dark h2, .ht-section-dark h3, .ht-section-dark h4 { color: #fff; }

.ht-head { max-width: 640px; margin-bottom: 56px; }
.ht-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.ht-head p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }
.ht-section-dark .ht-head p { color: #c7bfe0; }

/* ---------------- Buttons ---------------- */
.ht-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.ht-btn:hover { transform: translateY(-3px); color: inherit; }
.ht-btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-md); }
.ht-btn-primary:hover { box-shadow: var(--shadow-lg); color: #fff; }
.ht-btn-gold { background: var(--gold); color: var(--purple-ink); box-shadow: var(--shadow-sm); }
.ht-btn-gold:hover { box-shadow: var(--shadow-md); color: var(--purple-ink); }
.ht-btn-ghost { background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.5); color: #fff; }
.ht-btn-ghost:hover { background: #fff; color: var(--purple-deep); }
.ht-btn-outline { background: transparent; border: 1.5px solid var(--purple); color: var(--purple); }
.ht-btn-outline:hover { background: var(--purple); color: #fff; }
.ht-btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---------------- Floating glass nav ---------------- */
.ht-nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-md);
  transition: all 0.4s var(--ease);
}
.ht-nav-wrap:has(.ht-nav.is-scrolled) {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(37, 26, 71, 0.06);
  box-shadow: var(--shadow-lg);
}
.ht-nav {
  width: 100%;
  max-width: 1240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  border-radius: 0;
}
.ht-brand { display: flex; align-items: center; gap: 10px; font-family: 'Poppins', sans-serif; font-weight: 700; color: #fff; flex-shrink: 0; }
.ht-nav.is-scrolled .ht-brand { color: var(--purple-deep); }
.ht-brand img { height: 40px; width: auto; border-radius: 10px; flex-shrink: 0; }

.ht-links { display: flex; align-items: center; gap: 6px; }
.ht-links a {
  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.ht-nav.is-scrolled .ht-links a { color: var(--purple-deep); }
.ht-links a:hover { background: rgba(255,255,255,0.18); }
.ht-nav.is-scrolled .ht-links a:hover { background: var(--mist); }

/* Dropdown (e.g. "School Management Solution") */
.ht-links .ht-dropdown { position: relative; }
.ht-links .ht-dropdown > a { display: flex; align-items: center; gap: 6px; }
.ht-links .ht-dropdown > a i { font-size: 0.7rem; transition: transform 0.3s var(--ease); }
.ht-links .ht-dropdown:hover > a i { transform: rotate(180deg); }
.ht-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 20;
}
.ht-links .ht-dropdown:hover .ht-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}
.ht-dropdown-menu a {
  display: block;
  color: var(--purple-deep) !important;
  background: none !important;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-transform: none;
  white-space: normal;
}
.ht-dropdown-menu a:hover { background: var(--mist) !important; }
.ht-dropdown-menu a small { display: block; color: var(--muted); font-weight: 400; font-size: 0.78rem; margin-top: 2px; }

/* Mobile drawer submenu */
.ht-mobile-drawer .ht-drawer-submenu { padding-left: 14px; border-left: 2px solid var(--mist); margin: 2px 0 8px 16px; display: none; flex-direction: column; }
.ht-mobile-drawer .ht-drawer-submenu.open { display: flex; }
.ht-mobile-drawer .ht-drawer-submenu a { display: block; font-size: 0.92rem; font-weight: 500; }
.ht-mobile-drawer .ht-drawer-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; }
.ht-mobile-drawer .ht-drawer-toggle i { transition: transform 0.3s var(--ease); }
.ht-mobile-drawer .ht-drawer-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

.ht-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
}
.ht-nav.is-scrolled .ht-nav-toggle { background: var(--mist); color: var(--purple-deep); }

.ht-mobile-drawer {
  position: fixed;
  inset: 96px 16px auto 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.ht-mobile-drawer.open { display: flex; }
.ht-mobile-drawer a {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--purple-deep);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}
.ht-mobile-drawer a:hover { background: var(--mist); }

@media (max-width: 991px) {
  .ht-links { display: none; }
  .ht-nav-toggle { display: flex; }
}

/* ---------------- Hero ---------------- */
.ht-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 100px;
}
.ht-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.ht-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(103,78,167,0.28), rgba(103,78,167,0.55));
  z-index: 1;
}
.ht-hero-inner { position: relative; z-index: 2; width: 100%; }
.ht-hero-card {
  max-width: 780px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 56px);
  box-shadow: var(--shadow-lg);
}
.ht-hero-card .ht-eyebrow { color: var(--gold); }
.ht-hero-card .ht-eyebrow::before { background: var(--gold); }
.ht-hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}
.ht-hero h1 span {
  background: linear-gradient(90deg, var(--coral), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ht-hero p { color: #e7e2f5; font-size: 1.15rem; max-width: 560px; margin-bottom: 32px; }
.ht-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.ht-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  opacity: 0.7;
  font-size: 1.4rem;
  animation: ht-bounce 2.2s infinite;
}
@keyframes ht-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -8px); }
  60% { transform: translate(-50%, -4px); }
}

/* ---------------- KBC framework ---------------- */
.ht-kbc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.ht-kbc-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ht-kbc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.ht-kbc-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.ht-kbc-card h4 { font-size: 1.15rem; margin-bottom: 8px; }
.ht-kbc-card p { color: var(--muted); font-size: 0.95rem; }

.ht-formula {
  margin-top: 44px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--purple-deep);
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--mist);
}
.ht-formula strong { color: var(--coral); }

/* ---------------- Video poster (click to play) ---------------- */
.ht-video-poster { position: relative; }
.ht-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--purple);
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.ht-video-poster:hover .ht-play-btn { transform: translate(-50%, -50%) scale(1.1); background: #fff; }

/* ---------------- Marquee (quotes + logos) ---------------- */
.ht-marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ht-marquee-track { display: flex; gap: 22px; width: max-content; animation: ht-scroll 38s linear infinite; }
.ht-marquee:hover .ht-marquee-track { animation-play-state: paused; }
@keyframes ht-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ht-quote-card {
  flex: 0 0 340px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
}
.ht-quote-card img { width: 40px; height: 40px; flex-shrink: 0; }
.ht-quote-card p { font-size: 0.95rem; color: var(--ink); margin: 0; }
.ht-quote-card .ht-highlight { display: block; margin-top: 8px; font-weight: 700; color: var(--coral); }

.ht-logo-strip { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 150px; height: 80px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.ht-logo-strip img { max-height: 42px; width: auto; filter: grayscale(60%); opacity: 0.85; }

/* ---------------- Stats ---------------- */
.ht-stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.ht-stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ht-stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ht-stat-card img { height: 44px; width: auto; margin: 0 auto 14px; }
.ht-stat-num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 2rem; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ht-stat-card p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ---------------- Schools swiper ---------------- */
.ht-school-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ht-school-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ht-school-card .img-wrap { height: 170px; overflow: hidden; }
.ht-school-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ht-school-card .body { padding: 20px; }
.ht-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 10px; }
.ht-badge.cbse { background: rgba(103,78,167,0.12); color: var(--purple); }
.ht-badge.state { background: rgba(240,78,67,0.12); color: var(--coral); }
.ht-school-card h5 { font-size: 1rem; margin-bottom: 6px; }
.ht-school-card p { color: var(--muted); font-size: 0.85rem; }

/* ---------------- Blog grid ---------------- */
.ht-blog-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ht-blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ht-blog-card .thumb { height: 170px; overflow: hidden; }
.ht-blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.ht-blog-card:hover .thumb img { transform: scale(1.08); }
.ht-blog-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ht-blog-date { font-size: 0.78rem; color: var(--coral); font-weight: 600; }
.ht-blog-card h5 { font-size: 1.02rem; line-height: 1.4; flex: 1; }
.ht-blog-card .ht-btn { align-self: flex-start; }

/* ---------------- Flip cards (KBC dimensions) ---------------- */
.ht-flip { perspective: 1200px; height: 300px; }
.ht-flip-inner { position: relative; width: 100%; height: 100%; transition: transform 0.7s var(--ease); transform-style: preserve-3d; border-radius: var(--radius-md); }
.ht-flip:hover .ht-flip-inner { transform: rotateY(180deg); }
.ht-flip-front, .ht-flip-back {
  position: absolute; inset: 0;
  border-radius: var(--radius-md);
  backface-visibility: hidden;
  overflow: hidden;
}
.ht-flip-front img { width: 100%; height: 100%; object-fit: cover; }
.ht-flip-back {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
}
.ht-flip-back h5 { color: var(--gold); margin-bottom: 10px; }
.ht-flip-back p, .ht-flip-back li { color: #ece8f7; font-size: 0.9rem; }
.ht-flip-back ul { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; }

/* ---------------- Gallery ---------------- */
.ht-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ht-gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; }
.ht-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.ht-gallery-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(37,26,71,0) 40%, rgba(20,14,38,0.85));
  display: flex; align-items: flex-end; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.ht-gallery-item:hover img { transform: scale(1.08); }
.ht-gallery-item:hover .overlay { opacity: 1; }

/* ---------------- Impact ---------------- */
.ht-impact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.ht-impact-card li { font-size: 1.1rem; font-weight: 500; margin-bottom: 16px; color: #fff; display: flex; align-items: center; gap: 12px; }
.ht-impact-card li i { color: var(--gold); }

/* ---------------- Testimonials ---------------- */
.ht-testimonial-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  height: 100%;
}
.ht-stars { color: var(--gold); letter-spacing: 2px; margin: 8px 0 14px; }
.ht-testimonial-card .reviewer { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.ht-testimonial-card .reviewer img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* ---------------- CTA banner ---------------- */
.ht-cta-banner {
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
}
.ht-cta-banner h3 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 24px; }

/* ---------------- 4D method step cards ---------------- */
.ht-step-card {
  border-radius: var(--radius-md);
  padding: 30px 24px;
  color: #fff;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ht-step-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.ht-step-card.v-purple { background: linear-gradient(150deg, var(--purple), #4d3985); }
.ht-step-card.v-coral { background: linear-gradient(150deg, var(--coral), #c73830); }
.ht-step-card.v-gold { background: linear-gradient(150deg, #e0b52e, #b8891a); }
.ht-step-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.ht-step-card .sub { font-weight: 600; font-size: 0.9rem; opacity: 0.9; margin-bottom: 16px; display: block; }
.ht-step-card p { font-size: 0.86rem; color: rgba(255,255,255,0.88); margin-bottom: 10px; }

/* ---------------- Service card (solution / outcome) ---------------- */
.ht-service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ht-service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ht-service-card h5 { font-size: 1.05rem; margin-bottom: 14px; }
.ht-service-card .block { text-align: left; margin-bottom: 14px; }
.ht-service-card .block strong { color: var(--purple); display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.ht-service-card .block p { color: var(--muted); font-size: 0.88rem; margin: 0; }
.ht-service-card hr { border-top: 2px solid var(--mist); margin: 16px 0; }
.ht-service-card .outcome { display: flex; align-items: flex-start; gap: 8px; text-align: left; }
.ht-service-card .outcome i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.ht-service-card .outcome strong { color: var(--purple); }
.ht-service-card .outcome span { color: var(--muted); font-size: 0.88rem; }

/* ---------------- Polaroid masonry gallery ---------------- */
.ht-polaroid-grid { column-count: 1; column-gap: 20px; }
@media (min-width: 576px) { .ht-polaroid-grid { column-count: 2; } }
@media (min-width: 992px) { .ht-polaroid-grid { column-count: 3; } }
.ht-polaroid-item {
  break-inside: avoid;
  margin-bottom: 20px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.ht-polaroid-item.hidden { display: none; }
.ht-polaroid {
  background: #fff;
  padding: 10px 10px 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ht-polaroid:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-md); }
.ht-polaroid img { width: 100%; height: auto; border-radius: 6px; display: block; }
.ht-polaroid .caption {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple-deep);
  text-align: center;
  padding: 12px 6px;
}

/* ---------------- Blog skeleton loader ---------------- */
.ht-skeleton-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; }
.ht-skeleton-card .thumb { height: 170px; background: linear-gradient(90deg, var(--mist) 25%, #ece8f7 37%, var(--mist) 63%); background-size: 400% 100%; animation: htShimmer 1.4s ease infinite; }
.ht-skeleton-card .lines { padding: 22px; }
.ht-skeleton-card .line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--mist) 25%, #ece8f7 37%, var(--mist) 63%); background-size: 400% 100%; animation: htShimmer 1.4s ease infinite; margin-bottom: 10px; }
.ht-skeleton-card .line.short { width: 60%; }
@keyframes htShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.ht-blog-error { text-align: center; color: var(--muted); padding: 40px 0; grid-column: 1/-1; }

/* ---------------- Benefit icon row ---------------- */
.ht-benefit-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ht-benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ht-benefit-card img { height: 56px; width: auto; margin: 0 auto 12px; }
.ht-benefit-card span { font-weight: 600; font-size: 0.85rem; color: var(--purple-deep); }

/* ---------------- Procedure steps ---------------- */
.ht-procedure { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.ht-procedure-step { flex: 1 1 200px; max-width: 240px; text-align: center; }
.ht-procedure-step img { height: 76px; width: auto; margin: 0 auto 16px; }
.ht-procedure-step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff; font-weight: 700; font-size: 0.85rem;
  margin-bottom: 10px;
}
.ht-procedure-step p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------------- FAQ accordion ---------------- */
.ht-accordion-item { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-bottom: 14px; overflow: hidden; }
.ht-accordion-btn {
  width: 100%; text-align: left; background: none; border: none;
  padding: 20px 24px; font-weight: 600; color: var(--purple-deep);
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.ht-accordion-btn i { transition: transform 0.3s var(--ease); color: var(--coral); flex-shrink: 0; margin-left: 12px; }
.ht-accordion-btn[aria-expanded="true"] i { transform: rotate(180deg); }
.ht-accordion-body { padding: 0 24px 20px; color: var(--muted); font-size: 0.92rem; }

/* ---------------- Survey modal (multi-step) ---------------- */
.ht-survey-modal .modal-content { border-radius: var(--radius-lg); border: none; overflow: hidden; }
.ht-survey-modal .modal-body { padding: 40px; }
.ht-survey-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ht-survey-head h5 { font-size: 1.15rem; margin: 0; }
.ht-survey-head small { color: var(--muted); font-size: 0.82rem; }
.ht-survey-bar { height: 6px; background: var(--mist); border-radius: var(--radius-pill); overflow: hidden; margin-bottom: 26px; }
.ht-survey-bar-fill { height: 100%; background: var(--gradient-brand); border-radius: var(--radius-pill); transition: width 0.35s var(--ease); }
.ht-survey-question { font-size: 1.1rem; font-weight: 500; color: var(--purple-deep); margin-bottom: 22px; }
.ht-survey-options { display: flex; flex-wrap: wrap; gap: 12px; }
.ht-survey-option {
  border: 1.5px solid var(--gray-200, #e6e1f2);
  background: #fff;
  color: var(--purple-deep);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.ht-survey-option:hover { border-color: var(--purple); }
.ht-survey-option.selected { background: var(--gradient-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.ht-survey-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.ht-survey-step { display: none; }
.ht-survey-step.active { display: block; animation: htSurveyFade 0.35s var(--ease); }
@keyframes htSurveyFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------- Lead form (dark) ---------------- */
.ht-lead-form { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg); padding: 34px; }
.ht-lead-form .form-label { color: #ece8f7; font-weight: 500; font-size: 0.85rem; }
.ht-lead-form .form-control, .ht-lead-form .form-select { border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #fff; padding: 11px 16px; }
.ht-lead-form .form-control::placeholder { color: rgba(255,255,255,0.6); }
.ht-lead-form .form-control:focus, .ht-lead-form .form-select:focus { background: rgba(255,255,255,0.14); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(252,216,78,0.15); color: #fff; }
.ht-lead-form .form-select option { color: #222; }

/* ---------------- Numbered mission list ---------------- */
.ht-num-list { counter-reset: ht-num; margin: 22px 0; }
.ht-num-list li {
  counter-increment: ht-num;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--purple-deep);
}
.ht-num-list li::before {
  content: counter(ht-num);
  flex: 0 0 30px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------- Checklist grid ---------------- */
.ht-check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.ht-check-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--mist);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-deep);
}
.ht-check-item i { color: #2ecc71; font-size: 1.1rem; flex-shrink: 0; }

/* ---------------- Problem / solution interactive ---------------- */
.ht-problem-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--gray-200, #e6e1f2);
  border-radius: var(--radius-pill);
  padding: 16px 22px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--purple-deep);
  transition: all 0.3s var(--ease);
}
.ht-problem-btn i { color: var(--coral); flex-shrink: 0; }
.ht-problem-btn:hover, .ht-problem-btn.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.ht-problem-btn.active i, .ht-problem-btn:hover i { color: #fff; }
.ht-problem-panel {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 30px;
  height: 100%;
  min-height: 320px;
}
.ht-problem-panel .label { font-weight: 700; color: var(--coral); display: block; margin-top: 16px; margin-bottom: 4px; }
.ht-problem-panel .label:first-child { margin-top: 0; }
.ht-problem-panel p { color: var(--muted); margin: 0; }

/* ---------------- Directory filter bar ---------------- */
.ht-filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-bottom: 14px; }
.ht-filter-tabs { display: flex; gap: 6px; background: var(--mist); padding: 6px; border-radius: var(--radius-pill); }
.ht-filter-tabs button {
  border: none; background: transparent; color: var(--purple-deep);
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.85rem;
  padding: 10px 20px; border-radius: var(--radius-pill);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.ht-filter-tabs button.active { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-sm); }
.ht-filter-select {
  font-family: 'Rubik', sans-serif;
  border: 1px solid var(--gray-200, #e6e1f2);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--purple-deep);
  background: #fff;
}

/* Vertical sidebar variant (for long lists) */
.ht-filter-sidebar {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  max-height: 640px;
  overflow-y: auto;
}
.ht-filter-sidebar h6 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 14px;
}
.ht-filter-sidebar .ht-filter-tabs-v { display: flex; flex-direction: column; gap: 4px; background: none; padding: 0; border-radius: 0; }
.ht-filter-sidebar .ht-filter-tabs-v button {
  text-align: left;
  border: none; background: transparent; color: var(--purple-deep);
  font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 0.88rem;
  padding: 10px 14px; border-radius: var(--radius-sm);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.ht-filter-sidebar .ht-filter-tabs-v button:hover { background: var(--mist); }
.ht-filter-sidebar .ht-filter-tabs-v button.active { background: var(--gradient-brand); color: #fff; }
@media (max-width: 991px) {
  .ht-filter-sidebar { max-height: none; }
}
.ht-result-count { text-align: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 30px; }

/* ---------------- Directory school card (full detail) ---------------- */
.ht-school-dir-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ht-school-dir-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ht-school-dir-card .img-wrap { position: relative; height: 190px; overflow: hidden; }
.ht-school-dir-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ht-school-dir-card .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ht-school-dir-card h5 { font-size: 0.98rem; text-transform: uppercase; letter-spacing: 0.01em; }
.ht-school-dir-card .meta { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.ht-school-dir-card .meta strong { color: var(--purple-deep); }
.ht-school-dir-card .meta a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(103,78,167,0.3); }
.ht-school-dir-card .meta a:hover { color: var(--purple); }
.ht-school-dir-card .foot { padding: 0 22px 22px; margin-top: auto; }
.ht-school-dir-card .foot .ht-btn { width: 100%; justify-content: center; }

/* ---------------- Belief / tenet icon cards ---------------- */
.ht-icon-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ht-icon-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ht-icon-circle {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.ht-icon-card h5 { font-size: 1.05rem; margin-bottom: 8px; }
.ht-icon-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------------- KBC dimension columns (About page) ---------------- */
.ht-dim-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  text-align: center;
}
.ht-dim-card .ht-kbc-circle { margin: 0 auto 16px; }
.ht-dim-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.ht-dim-card > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.ht-chip-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ht-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mist);
  color: var(--purple-deep);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
}
.ht-chip i { color: var(--coral); }

/* ---------------- Timeline ---------------- */
.ht-timeline { position: relative; padding: 20px 0; }
.ht-timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 3px;
  background: linear-gradient(180deg, var(--purple), var(--coral), var(--gold));
  transform: translateX(-50%);
  border-radius: 2px;
}
.ht-tl-item { position: relative; display: flex; align-items: center; gap: 40px; margin-bottom: 60px; }
.ht-tl-item:last-child { margin-bottom: 0; }
.ht-tl-item.right { flex-direction: row-reverse; }
.ht-tl-card {
  width: calc(50% - 52px);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}
.ht-tl-photo {
  width: calc(50% - 52px);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  transform: scale(0.87);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ht-tl-photo img { width: 100%; height: 100%; object-fit: cover; }
.ht-tl-photo.contain { background: #fff; }
.ht-tl-photo.contain img { object-fit: contain; padding: 16px; }
.ht-tl-photo:hover { transform: scale(0.87) translateY(-4px); box-shadow: var(--shadow-lg); }
.ht-tl-card h5 { font-size: 1.05rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.ht-tl-card h5 i { color: var(--coral); }
.ht-tl-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.ht-tl-year {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
@media (max-width: 767px) {
  .ht-timeline::before { left: 22px; }
  .ht-tl-item, .ht-tl-item.right { flex-direction: column; align-items: stretch; gap: 16px; padding-left: 56px; }
  .ht-tl-card, .ht-tl-photo { width: 100%; }
  .ht-tl-photo { aspect-ratio: 16/9; }
  .ht-tl-year { left: 22px; width: 44px; height: 44px; font-size: 0.65rem; }
}

/* ---------------- Team ---------------- */
.ht-team-card { text-align: center; }
.ht-team-photo { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; }
.ht-team-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.ht-team-photo a {
  position: absolute; bottom: 4px; right: 4px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.ht-team-photo a:hover { background: #0a66c2; transform: scale(1.1); }
.ht-team-card h5 { font-size: 1rem; margin-bottom: 2px; }
.ht-team-card p { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ---------------- Investors ---------------- */
.ht-investor-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  display: flex; align-items: center; justify-content: center;
  height: 110px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ht-investor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ht-investor-card img { max-height: 48px; width: auto; filter: grayscale(40%); }

/* ---------------- Footer ---------------- */
.ht-footer { background: var(--purple-ink); color: #cfc7e8; padding: 80px 0 28px; }
.ht-footer h6 { color: #fff; font-family: 'Poppins', sans-serif; font-weight: 600; margin-bottom: 18px; }
.ht-footer a { color: #cfc7e8; transition: color 0.25s var(--ease), opacity 0.25s var(--ease); }
.ht-footer a:hover { color: var(--gold); }
.ht-footer .ht-foot-links li { margin-bottom: 10px; }
.ht-footer .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.ht-footer .brand img { height: 44px; }
.ht-social { display: flex; gap: 10px; margin-top: 16px; }
.ht-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.ht-social a:hover { background: var(--gold); color: var(--purple-ink); transform: translateY(-3px); }
.ht-foot-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 50px; padding-top: 22px; text-align: center; font-size: 0.85rem; color: #a89cd1; }

/* ---------------- Admission modal ---------------- */
.ht-modal .modal-content { border-radius: var(--radius-lg); border: none; overflow: hidden; }
.ht-modal .modal-header { background: var(--gradient-brand); color: #fff; border: none; padding: 26px 30px; }
.ht-modal .modal-body { padding: 32px; }
.ht-modal .form-label { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 0.86rem; color: var(--muted); }
.ht-modal .form-control, .ht-modal .form-select { border-radius: var(--radius-sm); border: 1px solid #e6e1f2; padding: 11px 16px; }
.ht-modal .form-control:focus, .ht-modal .form-select:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(103,78,167,0.12); }

/* ---------------- Utilities ---------------- */
.ht-swiper-nav {
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.ht-swiper-nav:hover { background: var(--purple); color: #fff; transform: scale(1.08); }
.ht-swiper-controls { position: relative; display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 30px; min-height: 30px; }
.ht-swiper-controls .swiper-pagination { position: static; }
.ht-back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 998;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.35s var(--ease);
}
.ht-back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {
  .ht-kbc-grid { grid-template-columns: 1fr; }
  .ht-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ht-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .ht-section { padding: 80px 0; }
}
@media (max-width: 576px) {
  .ht-stats-grid { grid-template-columns: 1fr 1fr; }
  .ht-gallery-grid { grid-template-columns: 1fr; }
}

/* ---------------- Page-opening + scroll-reveal animations ---------------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes htNavDrop {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .ht-nav-wrap { animation: htNavDrop 0.7s var(--ease) both; }

  @keyframes htFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .ht-hero .ht-eyebrow,
  .ht-hero h1,
  .ht-hero p,
  .ht-hero .ht-btn {
    animation: htFadeUp 0.9s var(--ease) both;
  }
  .ht-hero .ht-eyebrow { animation-delay: 0.1s; }
  .ht-hero h1 { animation-delay: 0.2s; }
  .ht-hero p { animation-delay: 0.34s; }
  .ht-hero .ht-btn:nth-of-type(1) { animation-delay: 0.46s; }
  .ht-hero .ht-btn:nth-of-type(2) { animation-delay: 0.54s; }

  /* Scroll-triggered reveal — toggled by assets/js/reveal.js via IntersectionObserver */
  .ht-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  }
  .ht-reveal.is-visible { opacity: 1; transform: translateY(0); }

  .ht-reveal-icon {
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
    transition: opacity 0.5s var(--ease), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .ht-reveal-icon.is-visible { opacity: 1; transform: scale(1) rotate(0deg); }
}
