/* ==========================================================================
   CollegeDream – custom theme on top of Bootstrap 5
   ========================================================================== */

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin.woff2") format("woff2");
}

:root {
  --cd-font: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --cd-blue: #2470b8;
  --cd-blue-hover: #1b5c9b;
  --cd-blue-25: #f1f6fb;
  --cd-blue-50: #e2edf8;
  --cd-navy: #002457;
  --cd-ink: #0d0f12;
  --cd-ink-weak: #48546e;
  --cd-line: #dae1ed;
  --cd-line-strong: #8495b0;
  --cd-bg-weak: #f2f5fa;
  --cd-focus: #804ee4;
  --cd-teal: #1d7c78;
  --cd-teal-50: #e8f4f3;
  --cd-teal-100: #c4e3e0;
  --cd-teal-200: #9fd0cc;
  --cd-orange: #f26522;
  --cd-ease: cubic-bezier(0, 0, .5, 1);
  --cd-shadow-hover: 0 0 12px -6px rgba(15, 17, 20, .3), 0 0 12px -8px rgba(15, 17, 20, .3);
}

body {
  font-family: var(--cd-font);
  color: var(--cd-ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Phones must never scroll sideways: anything wider than the screen is clipped. Set on body only
     (it carries over to the page scroller); setting it on html too would break the sticky header. */
  overflow-x: hidden;
}

a { color: var(--cd-blue); }
:focus-visible { outline: 2px solid var(--cd-focus); outline-offset: 2px; }

.cd-container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 992px) {
  .cd-container { padding-inline: 48px; }
}

/* Shared hover lift used by cards */
.lift { transition: transform .3s var(--cd-ease), box-shadow .3s var(--cd-ease); }
.lift:hover { transform: translateY(-2px) scale(1.01); box-shadow: var(--cd-shadow-hover); }

/* Gradient swatches for thumbnails / avatars */
.g1 { --c1: #2470b8; --c2: #6fa9e0; }
.g2 { --c1: #6f29e5; --c2: #c09cfc; }
.g3 { --c1: #197d12; --c2: #7ed874; }
.g4 { --c1: #de6000; --c2: #ffc936; }
.g5 { --c1: #002457; --c2: #136ef0; }
.g6 { --c1: #a91e89; --c2: #fb84e4; }
.g7 { --c1: #1c2026; --c2: #53617e; }
.g8 { --c1: #0b408b; --c2: #53c544; }

/* ---------- Buttons ---------- */
.btn-cd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.btn-cd .bi { font-size: 16px; }
.btn-cd-primary { background: var(--cd-blue); color: #fff; box-shadow: inset 0 0 0 1px var(--cd-blue); }
.btn-cd-primary:hover { background: var(--cd-blue-hover); color: #fff; box-shadow: inset 0 0 0 1px var(--cd-blue-hover); }
.btn-cd-outline { background: #fff; color: var(--cd-blue); box-shadow: inset 0 0 0 1px var(--cd-blue); }
.btn-cd-outline:hover { background: var(--cd-blue-25); color: var(--cd-blue-hover); box-shadow: inset 0 0 0 1px var(--cd-blue-hover); }

/* ==========================================================================
   Header
   ========================================================================== */
/* The announcement bar scrolls away; both nav rows stay pinned */
.site-header { position: sticky; top: -40px; z-index: 1030; background: #fff; }

/* Brand colours for social icons (footer) */
.s-linkedin { --brand: #0a66c2; }
.s-facebook { --brand: #1877f2; }
.s-instagram { --brand: #e4405f; --brand-fill: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4); }

/* ---------- Top bar: admission enquiry + offer countdown ---------- */
.topbar {
  --tb-bg: #1b2a5c;
  --tb-gold: #f5b335;
  --tb-gold-soft: #ffd27a;
  height: 40px;
  background: var(--tb-bg);
  color: #fff;
  font-size: 14px;
}
.topbar > .cd-container { height: 40px; }

.enquiry-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 14px;
  line-height: 40px;
  white-space: nowrap;
}
.enquiry-btn > .bi-telephone-fill { font-size: 15px; }
.enquiry-label { font-weight: 600; margin-right: 6px; }
.enquiry-number { font-weight: 600; letter-spacing: .02em; }
.enquiry-btn .caret { font-size: 11px; transition: transform .2s; }
.enquiry-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.enquiry-btn:hover .enquiry-number { color: var(--tb-gold-soft); }

/* Menu opens beside the number (Bootstrap .dropend) */
.enquiry .dropdown-menu {
  width: 280px;
  padding: 6px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 17, 20, .2);
  font-size: 14px;
}
.enquiry .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 6px; color: var(--cd-ink); }
.enquiry .dropdown-item .bi { font-size: 16px; color: var(--cd-blue); }
.enquiry .dropdown-item .bi-whatsapp { color: #25d366; }
.enquiry .dropdown-item:hover,
.enquiry .dropdown-item[aria-expanded="true"] { background: var(--cd-blue-25); color: var(--cd-blue-hover); }
@media (max-width: 575.98px) {
  /* On phones show the menu as a full-width panel under the bar */
  .enquiry .dropdown-menu.show { position: fixed !important; inset: 44px 8px auto 8px !important; width: auto; transform: none !important; }
}

/* Request-a-call-back form inside the menu */
.callback-form { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; padding: 12px 12px 6px; border-top: 1px solid var(--cd-line); }
.callback-form[hidden] { display: none; }
.cb-label { margin: 0; font-size: 12px; font-weight: 600; color: var(--cd-ink-weak); }
.cb-phone { display: flex; overflow: hidden; border: 1px solid var(--cd-line); border-radius: 8px; }
.cb-phone span { display: grid; place-items: center; padding: 0 10px; background: var(--cd-bg-weak); border-right: 1px solid var(--cd-line); font-size: 14px; font-weight: 600; color: var(--cd-ink-weak); }
.cb-phone input,
.callback-form textarea {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  font-size: 14px;
  color: var(--cd-ink);
  outline: 0;
}
.callback-form textarea { border: 1px solid var(--cd-line); border-radius: 8px; resize: vertical; }
.cb-phone:focus-within,
.callback-form textarea:focus { border-color: var(--cd-blue); box-shadow: 0 0 0 3px rgba(36, 112, 184, .15); }
.callback-form .btn-cd { margin-top: 6px; }
.cb-status { min-height: 18px; margin: 2px 0 0; font-size: 12px; line-height: 18px; }
.cb-status.ok { color: #197d12; }
.cb-status.err { color: #c51e37; }

/* Indian flag drawn in CSS (emoji flags don't render on Windows) */
.flag-in {
  position: relative;
  flex: none;
  width: 18px;
  height: 12px;
  border-radius: 1px;
  background: linear-gradient(#ff9933 0 33.3%, #fff 33.3% 66.6%, #138808 66.6%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
}
.flag-in::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border: 1px solid #000080;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.offer { display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; }
.offer-icon { display: inline-block; margin-right: 8px; font-size: 16px; color: var(--tb-gold); transform: rotate(-12deg); }
.offer-text { font-weight: 600; color: var(--tb-gold); }
.offer-text em { font-style: normal; font-weight: 400; color: var(--tb-gold-soft); }

.offer-sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .45); }
.offer-countdown { color: #fff; }
.offer-countdown b { font-size: 16px; font-weight: 700; }
.offer-countdown small { margin-right: 4px; font-size: 13px; }
.offer-cta {
  margin-left: 4px;
  color: var(--tb-gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.offer-cta:hover { color: var(--tb-gold-soft); }

/* Social links at the right end of the bar: white icons, brand colour on hover */
.topbar-social { display: flex; gap: 4px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .3); }
.topbar-social a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-fill, var(--brand)); color: #fff; font-size: 14px; transition: transform .2s, filter .2s; }
.topbar-social a:hover { color: #fff; filter: brightness(1.12); transform: translateY(-1px); }

@media (max-width: 991.98px) {
  .offer-text,
  .offer-sep { display: none; }
}
@media (max-width: 575.98px) {
  .enquiry-label,
  .offer-countdown,
  .topbar-social { display: none !important; }
  /* The number gives way (ellipsis) so APPLY NOW never pushes the page wider than the screen,
     e.g. on phones with a larger system font size */
  .enquiry { min-width: 0; }
  .enquiry-btn { max-width: 100%; }
  .enquiry-number { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .offer { flex: none; }
}
@media (max-width: 399.98px) {
  .enquiry-btn .flag-in,
  .enquiry-btn .caret { display: none; }
}

/* Secondary navigation row */
.sub-nav { background: #fff; border-bottom: 1px solid var(--cd-line); }
.sub-links { display: flex; margin: 0 0 0 -10px; padding: 0; list-style: none; }
.sub-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 10px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--cd-ink-weak);
  text-decoration: none;
  white-space: nowrap;
}
.sub-links a .bi { font-size: 16px; color: var(--cd-blue); }
.sub-links a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--cd-blue);
  transform: scaleX(0);
  transition: transform .2s;
}
.sub-links a:hover { color: var(--cd-blue); }
.sub-links a:hover::after { transform: scaleX(1); }
.sub-cta { display: flex; flex: none; gap: 8px; margin-left: auto; padding-left: 12px; }
.sub-cta .btn-cd { padding: 6px 14px; }
@media (min-width: 992px) {
  .sub-links { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .sub-links::-webkit-scrollbar { display: none; }
}
@media (min-width: 992px) and (max-width: 1299.98px) {
  .sub-links a .bi { display: none; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .sub-links a { padding-inline: 8px; }
  .sub-links a::after { left: 8px; right: 8px; }
  .sub-cta .bi { display: none; }
}
@media (max-width: 991.98px) {
  .sub-nav .cd-container { padding-block: 0 16px; }
  .sub-links { flex-direction: column; margin: 0; }
  .sub-links a { width: 100%; padding: 10px 8px; }
  .sub-links a::after { display: none; }
  .sub-cta { margin: 8px 0 0; }
  .sub-cta .btn-cd { flex: 1; justify-content: center; padding-block: 10px; }
  /* Log In + Join for Free (or Dashboard + Log Out), side by side like in the navbar */
  .sub-auth { display: flex; gap: 8px; margin-top: 8px; }
  .sub-auth > *,
  .sub-auth form .btn-cd { flex: 1; }
  .sub-auth form { display: flex; }
  .sub-auth .login-link,
  .sub-auth .btn-cd { justify-content: center; padding-block: 10px; text-align: center; }
}

.main-nav {
  position: relative;
  min-height: 64px;
  padding: 0;
  border-bottom: 1px solid var(--cd-line);
}

/* Logo images: badge (assets/images/logo-badge.png, 152 x 140) + name in the header,
   wordmark (assets/images/logo.png, 450 x 144, transparent) in the footer */
.cd-logo { display: inline-block; margin-right: 8px; padding: 0; line-height: 0; }
.cd-logo img { display: block; width: auto; height: 48px; }
.main-nav .cd-logo { display: flex; align-items: center; gap: 8px; margin-right: 16px; }
.main-nav .cd-logo img { height: 58px; }
.logo-text { display: flex; flex-direction: column; gap: 3px; font-size: 17px; font-weight: 800; line-height: 1; color: #2c4fa3; text-transform: uppercase; letter-spacing: .02em; }
.logo-text small { font-size: 9px; font-weight: 600; letter-spacing: .3em; color: #d99a1e; }
@media (max-width: 575.98px) {
  .main-nav .cd-logo img { height: 48px; }
  .logo-text { display: none; }
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  line-height: 20px;
  color: var(--cd-ink-weak);
  text-decoration: none;
}
.btn-explore .bi-chevron-down { font-size: 14px; transition: transform .2s; }
.btn-explore:hover,
.mega.open .btn-explore { background: var(--cd-blue-25); color: var(--cd-blue-hover); }
.mega.open .btn-explore .bi-chevron-down { transform: rotate(180deg); }
/* Explore / Degrees icons: mobile menu only, so they line up with the links below */
.nav-ico { font-size: 16px; color: var(--cd-blue); }

.cd-search { position: relative; width: 100%; max-width: 480px; }
.cd-search input {
  width: 100%;
  height: 44px;
  padding: 0 52px 0 16px;
  border: 1px solid var(--cd-line);
  border-radius: 24px;
  font-size: 16px;
  color: var(--cd-ink);
  outline: 0;
}
.cd-search input::placeholder { color: var(--cd-ink-weak); }
.cd-search input:focus { border-color: var(--cd-line-strong); box-shadow: 0 0 0 1px var(--cd-focus); }
.cd-search button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--cd-blue);
  color: #fff;
}
.cd-search button:hover { background: var(--cd-blue-hover); }

/* Header search suggestions: colleges and courses while typing (main.js) */
.search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--cd-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 36, 87, .14);
}
.ss-group { margin: 8px 10px 4px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--cd-ink-weak); }
.ss-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--cd-ink); text-decoration: none; }
.ss-item:hover,
.ss-item:focus { background: var(--cd-blue-25); color: var(--cd-ink); outline: 0; }
.ss-item:focus-visible { box-shadow: inset 0 0 0 2px var(--cd-focus); }
.ss-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--cd-blue-50); color: var(--cd-blue); }
.ss-text { display: grid; min-width: 0; }
.ss-title { overflow: hidden; font-size: 14.5px; line-height: 20px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ss-meta { overflow: hidden; font-size: 12.5px; line-height: 17px; color: var(--cd-ink-weak); white-space: nowrap; text-overflow: ellipsis; }
.ss-empty { margin: 0; padding: 10px; font-size: 14px; line-height: 20px; color: var(--cd-ink-weak); }
.ss-all { display: block; margin-top: 4px; padding: 10px; border-top: 1px solid var(--cd-line); font-size: 14px; font-weight: 600; text-decoration: none; }
.ss-all:hover,
.ss-all:focus { text-decoration: underline; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 22px;
  color: var(--cd-ink-weak);
}
.icon-btn:hover { background: var(--cd-blue-25); }

.login-link { padding: 12px; font-size: 14px; font-weight: 600; color: var(--cd-blue); text-decoration: none; white-space: nowrap; }
.login-link:hover { text-decoration: underline; color: var(--cd-blue-hover); }

@media (max-width: 991.98px) {
  .main-nav .navbar-collapse { max-height: calc(100vh - 64px); overflow-y: auto; padding-bottom: 8px; }
  /* Mobile menu: Explore and Degrees look like the Course / College ... links */
  .btn-explore,
  .nav-link-cd { width: 100%; gap: 6px; padding: 10px 8px; font-weight: 600; }
  .btn-explore .bi-chevron-down { margin-left: auto; }
}
@media (max-width: 435px) {
  .join-mobile { display: none !important; }
}

/* ---------- Explore mega menu ---------- */
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  background: #fff;
  border-top: 1px solid var(--cd-line);
  box-shadow: 0 12px 24px -8px rgba(15, 17, 20, .15);
}
.mega.open .mega-menu { display: block; }
.mega-inner { max-width: 1168px; margin: 0 auto; padding: 32px 24px 24px; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mega-menu h3 { margin: 0 0 12px; font-size: 16px; line-height: 20px; font-weight: 600; }
.mega-menu ul { list-style: none; margin: 0 0 12px; padding: 0; }
.mega-menu li a { display: block; font-size: 14px; line-height: 24px; color: var(--cd-ink); text-decoration: none; }
.mega-menu li a:hover { color: var(--cd-blue); text-decoration: underline; }
.mega-menu .view-all { display: inline-block; margin-bottom: 24px; font-size: 14px; color: var(--cd-ink); }
.mega-foot { margin-top: 8px; padding-top: 24px; border-top: 1px solid #c1cbdb; font-size: 14px; }
.mega-foot a { margin: 0 4px; color: var(--cd-ink); }
@media (max-width: 991.98px) {
  .mega-menu { position: static; max-height: none; border: 0; box-shadow: none; }
  .mega-inner { padding: 8px 8px 16px; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-foot { padding-top: 16px; }
}
@media (max-width: 575.98px) {
  .mega-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Sections – shared
   ========================================================================== */
.cd-section { margin-top: 32px; }
.section-title { margin: 0 0 12px; font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -.003em; }
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.section-head .section-title { margin: 0; }
/* Bold title with a short orange bar underneath */
.title-bar { position: relative; margin-bottom: 20px; padding-bottom: 12px; font-size: 22px; line-height: 28px; font-weight: 700; }
.title-bar::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 4px; border-radius: 4px; background: var(--cd-orange); }
@media (min-width: 992px) { .title-bar { font-size: 26px; line-height: 32px; } }
.see-all { font-size: 16px; font-weight: 600; text-decoration: none; }
.see-all:hover { text-decoration: underline; }

/* Partner mini logos */
.plogo {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1px solid var(--cd-line);
  border-radius: 3px;
  background: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  color: var(--cd-ink);
}
.plogo .bi { font-size: 12px; }
.pl-google .bi { color: #4285f4; }
.pl-microsoft .bi { color: #00a4ef; }
.pl-meta .bi { color: #0866ff; }
.pl-ibm { color: #1f70c1; }
.pl-dl { color: #f0465f; }
.pl-penn { color: #011f5b; }
.pl-michigan { color: #00274c; background: #ffcb05; }

.partner { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; color: var(--cd-ink-weak); }

/* Horizontal scroll helper (used on smaller screens) */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ==========================================================================
   Hero carousel
   ========================================================================== */
.hero { padding-top: 24px; }
.hero-viewport { position: relative; margin-inline: -16px; }
@media (min-width: 992px) { .hero-viewport { margin-inline: -48px; } }

.hero-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 646px;
  gap: 16px;
  padding: 8px 16px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  scroll-behavior: smooth;
}
@media (min-width: 992px) {
  .hero-track { padding-inline: 48px; scroll-padding-inline: 48px; }
}
@media (max-width: 768px) { .hero-track { grid-auto-columns: 273px; } }
@media (max-width: 599.98px) { .hero-track { grid-auto-columns: 228px; } }

.hero-slide { scroll-snap-align: start; }

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  min-height: 298px;
  overflow: hidden;
  border-radius: 24px;
  color: var(--cd-ink);
  text-decoration: none;
}
.hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px 0 24px 16px;
}
.hero-text h2 { margin: 0; font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -.01em; }
.hero-text p { margin: 0; font-size: 14px; line-height: 20px; }
.hero-text .btn-cd { align-self: flex-start; margin-top: 8px; }

/* Every slide: full photo with a navy overlay across the whole card and text on top */
.hero-photo {
  --overlay: rgba(0, 20, 56, .82) 0%, rgba(0, 20, 56, .6) 38%, rgba(0, 20, 56, .3) 70%, rgba(0, 20, 56, .18) 100%;
  display: flex;
  align-items: center;
  background: var(--cd-navy);
  color: #fff;
}
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--overlay));
}
.hero-photo .hero-text { max-width: 62%; padding: 24px 0 24px 24px; text-shadow: 0 1px 3px rgba(0, 10, 30, .45); }
.hero-photo .hero-text .btn-cd { text-shadow: none; }

/* Alternate sides: every second slide has its overlay and text on the right */
@media (min-width: 769px) {
  .hero-slide:nth-child(even) .hero-photo { justify-content: flex-end; }
  .hero-slide:nth-child(even) .hero-photo::before { background: linear-gradient(270deg, var(--overlay)); }
  .hero-slide:nth-child(even) .hero-photo .hero-text { padding: 24px 24px 24px 0; }
}
.hero-photo .hero-text p { color: rgba(255, 255, 255, .88); }
.hero-eyebrow { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #ffd27a; }

/* Arrows + dots */
.hero-arrow {
  position: absolute;
  top: calc(50% - 8px);
  z-index: 3;
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--cd-line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 17, 20, .15);
  color: var(--cd-ink);
  font-size: 18px;
  transform: translateY(-50%);
}
.hero-arrow.prev { left: 4px; }
.hero-arrow.next { right: 4px; }
.hero-arrow:hover { color: var(--cd-blue); }
.hero-arrow:disabled { display: none !important; }
@media (min-width: 992px) and (hover: hover) {
  .hero-viewport:hover .hero-arrow { display: grid; }
}

.hero-dots { display: flex; gap: 8px; margin-top: 4px; }
.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--cd-line-strong);
  transition: width .2s, background-color .2s;
}
.hero-dots button.active { width: 24px; background: var(--cd-blue); }

@media (max-width: 768px) {
  .hero-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 0; }
  .hero-text { flex: none; padding: 22px 16px 0; }
  .hero-text h2 { font-size: 20px; line-height: 24px; letter-spacing: -.003em; }
  .hero-text p,
  .hero-text .btn-cd .bi { display: none; }
  .hero-photo { justify-content: flex-end; min-height: 300px; }
  .hero-photo::before { background: linear-gradient(0deg, rgba(0, 20, 56, .88) 15%, rgba(0, 20, 56, .45) 60%, rgba(0, 20, 56, .18) 100%); }
  .hero-photo .hero-text { max-width: none; padding: 0 16px 18px; }
  .hero-eyebrow { font-size: 13px; }
}

/* ==========================================================================
   Course lists (New and popular / Trending searches)
   ========================================================================== */
.collections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 991.98px) {
  .collections {
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    margin-inline: -16px;
    padding-inline: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 16px;
  }
  .collections > * { scroll-snap-align: start; }
}

.col-head {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--cd-ink);
  text-decoration: none;
}
.col-head:hover { color: var(--cd-blue-hover); text-decoration: underline; }

/* Light-blue band behind the course lists */
.band { padding: 24px 0 28px; background: #e3eeff; }

.course-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(36, 112, 184, .08);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .3s var(--cd-ease), box-shadow .3s var(--cd-ease);
}
.course-item:last-child { margin-bottom: 0; }
.course-item:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(0, 36, 87, .18);
}
.thumb {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff;
  font-size: 18px;
}
.course-item .partner { font-size: 12px; line-height: 16px; }
.course-item .partner > .bi { font-size: 12px; color: var(--cd-blue); }
.course-item .course-meta { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.course-item .plogo { width: 16px; height: 16px; font-size: 8px; }
.course-item .plogo .bi { font-size: 10px; }
.course-item > span:last-child { min-width: 0; }
.course-title {
  display: block;
  margin: 1px 0 2px;
  overflow: hidden;
  font-size: 15px;
  line-height: 19px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.course-meta { font-size: 12px; line-height: 16px; color: var(--cd-ink-weak); }

/* ==========================================================================
   Promo cards
   ========================================================================== */
.promo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  min-height: 240px;
  overflow: hidden;
  border-radius: 16px;
  transition: transform .3s var(--cd-ease), box-shadow .3s var(--cd-ease);
}
.promo:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 0 40px -8px rgba(0, 0, 0, .16), 0 0 24px -16px rgba(0, 0, 0, .16); }
.promo-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; }
.promo h3 { margin: 0; font-size: 20px; line-height: 24px; font-weight: 600; }
.promo-light { background: #f0f6ff; color: var(--cd-ink); }
.promo-dark { background: var(--cd-navy); color: #fff; }
.promo-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; }
.promo-art { position: relative; overflow: hidden; }
@media (max-width: 991.98px) {
  .promo { grid-template-columns: 1fr; }
  .promo-art { min-height: 220px; }
}

.art-nodes .node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 6px 16px rgba(15, 17, 20, .15);
}
.art-nodes::before {
  content: "";
  position: absolute;
  inset: 22% 18% 22% 18%;
  border: 2px dashed rgba(36, 112, 184, .35);
  border-radius: 24px;
}
.promo-dark .art-nodes::before { border-color: rgba(255, 255, 255, .3); }
.art-nodes .n1 { top: 12%; left: 10%; background: #4285f4; }
.art-nodes .n2 { top: 12%; right: 10%; background: #34a853; }
.art-nodes .n3 { bottom: 12%; left: 10%; background: #fbbc05; }
.art-nodes .n4 { bottom: 12%; right: 10%; background: #ea4335; }
.art-nodes .center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  color: var(--cd-blue);
  font-size: 38px;
  box-shadow: 0 6px 20px rgba(15, 17, 20, .18);
  transform: translate(-50%, -50%);
}
.art-team .n1 { background: #136ef0; }
.art-team .n2 { background: #53c544; }
.art-team .n3 { background: #925ceb; }
.art-team .n4 { background: #f28100; }

/* ==========================================================================
   Find colleges by course (home)
   ========================================================================== */
.course-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1199.98px) { .course-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .course-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .course-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.course-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--cd-line);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  line-height: 20px;
  color: var(--cd-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--cd-ease);
}
.ct-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--cd-teal-50);
  color: var(--cd-teal);
  font-size: 16px;
  transition: background-color .2s;
}
.course-tile:hover { border-color: var(--cd-teal-200); color: var(--cd-ink); box-shadow: 0 6px 16px -10px rgba(29, 124, 120, .5); transform: translateY(-1px); }
.course-tile:hover .ct-icon { background: var(--cd-teal-100); }

/* ==========================================================================
   Filter chips & product cards
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip {
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--cd-line);
  border-radius: 32px;
  background: #fff;
  font-size: 14px;
  line-height: 20px;
  color: var(--cd-ink);
}
.chip:hover { border-color: var(--cd-blue-hover); background: var(--cd-blue-25); color: var(--cd-blue-hover); }
.chip.active { border-color: #1c2026; background: #1c2026; color: #fff; font-weight: 600; }

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px;
  border: 1px solid var(--cd-line);
  border-radius: 16px;
  background: #fff;
  color: var(--cd-ink);
  text-decoration: none;
  transition: transform .3s var(--cd-ease), box-shadow .3s var(--cd-ease);
}
.product-card:hover {
  color: var(--cd-ink);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 4px #e9eef7, 0 4px 12px 4px rgba(15, 17, 20, .1);
}
.p-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff;
  font-size: 40px;
}
.p-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 4px 8px 8px; }
.p-title,
.p-skills {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.p-title { font-size: 16px; line-height: 20px; font-weight: 600; }
.p-skills { font-size: 14px; line-height: 20px; color: var(--cd-ink-weak); }
.p-skills strong { color: var(--cd-ink); font-weight: 600; }
.p-meta { margin-top: auto; padding-top: 8px; font-size: 12px; line-height: 18px; color: var(--cd-ink-weak); }

/* ==========================================================================
   How CollegeDream helps (home): free counselling intro + 4 steps
   ========================================================================== */
.how-wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px 40px;
  align-items: center;
  padding: 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f3f9f8 0%, #f1f6fb 100%);
}
@media (max-width: 991.98px) {
  .how-wrap { grid-template-columns: 1fr; padding: 24px 16px; border-radius: 16px; }
}
.how-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--cd-teal-100);
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  color: var(--cd-teal);
}
.how-lead { margin: 0 0 16px; font-size: 15px; line-height: 24px; color: var(--cd-ink-weak); }
.how-points { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 15px; line-height: 22px; font-weight: 600; }
.how-points li { display: flex; align-items: flex-start; gap: 10px; }
.how-points .bi { flex: none; margin-top: 1px; color: var(--cd-teal); font-size: 18px; line-height: 1.1; }

.how-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 575.98px) { .how-steps { grid-template-columns: 1fr; gap: 12px; } }
.how-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--cd-line);
  border-radius: 16px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--cd-ease);
}
.how-step:hover { border-color: var(--cd-teal-200); box-shadow: 0 12px 28px -16px rgba(29, 124, 120, .45); transform: translateY(-2px); }
.hs-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.hs-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cd-teal-50); color: var(--cd-teal); font-size: 20px; }
.hs-num { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cd-orange); }
.how-step h3 { margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; }
.how-step p { margin: 0; font-size: 14px; line-height: 21px; color: var(--cd-ink-weak); }

/* ==========================================================================
   Free counselling strip (home): light orange to white
   ========================================================================== */
.counsel-strip {
  display: flex;
  align-items: center;
  gap: 16px 20px;
  padding: 20px 24px;
  border: 1px solid #fde4d2;
  border-radius: 16px;
  background: linear-gradient(90deg, #fff3ea 0%, #fffaf6 55%, #fff 100%);
}
.cs-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: #ffe6d5; color: var(--cd-orange); font-size: 22px; }
.cs-body { flex: 1; min-width: 0; }
.cs-body h2 { margin: 0 0 2px; font-size: 18px; line-height: 24px; font-weight: 700; }
.cs-body p { margin: 0; font-size: 14px; line-height: 20px; color: var(--cd-ink-weak); }
.cs-links { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #fde4d2;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--cd-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--cd-ease);
}
.cs-links .bi { color: var(--cd-orange); font-size: 16px; }
.cs-links a:hover { border-color: #f9b98f; color: var(--cd-ink); box-shadow: 0 6px 16px -10px rgba(242, 101, 34, .5); transform: translateY(-1px); }
@media (max-width: 991.98px) {
  .counsel-strip { flex-wrap: wrap; padding: 16px; }
  .cs-links { flex-basis: 100%; }
}
@media (max-width: 575.98px) {
  .cs-links a { flex: 1 1 100%; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 4px 8px; }
@media (max-width: 991.98px) {
  .testi-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 290px; margin-inline: -16px; padding-inline: 16px; overflow-x: auto; }
}
.testi {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--cd-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 36, 87, .04);
  transition: transform .3s var(--cd-ease), box-shadow .3s var(--cd-ease), border-color .3s;
}
.testi:hover { border-color: #cfe2ff; box-shadow: 0 12px 28px -10px rgba(0, 36, 87, .22); transform: translateY(-4px); }
.testi-quote {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cd-blue-25);
  color: var(--cd-blue);
  font-size: 26px;
  line-height: 1;
}
.stars { display: flex; gap: 2px; color: #f5b335; font-size: 15px; }
.testi blockquote { flex: 1; margin: 14px 0 20px; font-size: 15px; line-height: 24px; color: var(--cd-ink); }
.testi-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--cd-line); }
.avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--av, var(--cd-blue-50));
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--cd-line);
  color: var(--cd-navy);
  font-size: 16px;
  font-weight: 700;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.testi-author strong { display: block; font-size: 16px; line-height: 20px; font-weight: 600; }
.testi-author small { display: block; font-size: 13px; line-height: 18px; color: var(--cd-ink-weak); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  --bs-accordion-border-width: 0;
  --bs-accordion-bg: transparent;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: var(--cd-ink);
  --bs-accordion-btn-focus-box-shadow: none;
}
.faq .accordion-item { border-top: 1px solid var(--cd-line); border-radius: 0; }
.faq .accordion-item:last-child { border-bottom: 1px solid var(--cd-line); }
.faq .accordion-button {
  gap: 12px;
  margin: 8px 0;
  padding: 16px;
  border-radius: 8px !important;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: var(--cd-ink);
}
.faq .accordion-button::after { display: none; }
.faq .accordion-button .bi { flex: none; font-size: 20px; transition: transform .15s ease-in-out; }
.faq .accordion-button:not(.collapsed) .bi { transform: rotate(180deg); }
.faq .accordion-button:hover { background: var(--cd-blue-25); }
.faq .accordion-button:focus-visible { outline: 2px solid var(--cd-focus); outline-offset: -2px; }
.faq .accordion-body { padding: 0 16px 16px 48px; font-size: 14px; line-height: 20px; }
.faq .accordion-body p:last-child { margin-bottom: 0; }

/* Home FAQ: intro + help card on the left, card-style questions on the right */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; align-items: start; }
@media (max-width: 991.98px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq-aside .title-bar { font-weight: 400; }
.faq-aside > p { margin: 0 0 20px; font-size: 15px; line-height: 24px; color: var(--cd-ink-weak); }
.faq-help { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid #fde4d2; border-radius: 16px; background: linear-gradient(90deg, #fff3ea 0%, #fffaf6 60%, #fff 100%); color: var(--cd-ink); }
.faq-help-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #ffe6d5; color: var(--cd-orange); font-size: 20px; }
.faq-help strong { display: block; font-size: 16px; line-height: 22px; }
.faq-help p { margin: 2px 0 10px; font-size: 14px; line-height: 20px; color: var(--cd-ink-weak); }
.faq-help a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #c2410c; text-decoration: none; }
.faq-help a:hover { color: #9a3412; text-decoration: underline; }

.faq-cards {
  --bs-accordion-bg: #fff;
  --bs-accordion-border-color: var(--cd-line);
  --bs-accordion-border-radius: 12px;
  --bs-accordion-inner-border-radius: 12px;
  --bs-accordion-active-bg: #fff;
  --bs-accordion-active-color: var(--cd-ink);
  --bs-accordion-btn-focus-box-shadow: none;
  display: grid;
  gap: 12px;
}
.faq-cards .accordion-item,
.faq-cards .accordion-item:not(:first-of-type) { overflow: hidden; border: 1px solid var(--cd-line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.faq-cards .accordion-item:hover { border-color: var(--cd-teal-200); }
.faq-cards .accordion-item:has(.accordion-button:not(.collapsed)) { border-color: var(--cd-teal-200); box-shadow: 0 12px 28px -18px rgba(29, 124, 120, .5); }
.faq-cards .accordion-button {
  gap: 14px;
  padding: 16px 18px;
  box-shadow: none;
  font-size: 15px;
  line-height: 22px;
  font-weight: 450;
  color: var(--cd-ink);
}
.faq-cards .accordion-button::after { display: none; }
.faq-cards .accordion-button:focus-visible { outline: 2px solid var(--cd-focus); outline-offset: -2px; }
.fq-num { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--cd-teal-50); color: var(--cd-teal); font-size: 13px; font-weight: 800; transition: background-color .2s, color .2s; }
.fq-text { flex: 1; }
.fq-toggle { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1px solid var(--cd-line); border-radius: 50%; color: var(--cd-ink-weak); font-size: 14px; transition: transform .2s, background-color .2s, border-color .2s, color .2s; }
.faq-cards .accordion-button:not(.collapsed) .fq-num { background: var(--cd-teal); color: #fff; }
.faq-cards .accordion-button:not(.collapsed) .fq-toggle { border-color: var(--cd-teal); background: var(--cd-teal); color: #fff; transform: rotate(45deg); }
.faq-cards .accordion-body { padding: 0 18px 18px 64px; font-size: 14px; line-height: 22px; color: var(--cd-ink-weak); }
.faq-cards .accordion-body p:last-child { margin-bottom: 0; }
.faq-cards .accordion-body a { font-weight: 600; }
@media (max-width: 575.98px) {
  .faq-cards .accordion-button { gap: 12px; padding: 14px; font-size: 14px; }
  .faq-cards .accordion-body { padding: 0 14px 16px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-top: 48px; padding-top: 80px; background: var(--cd-bg-weak); }
@media (max-width: 991.98px) { .site-footer { padding-top: 32px; } }
.footer-col h2 { margin-bottom: 12px; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.1px; }
.footer-col ul { list-style: none; margin: 0 18px 32px 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14px; line-height: 20px; }
.footer-col a { color: var(--cd-ink); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }

.footer-more { display: inline-block; margin: -20px 0 32px; font-size: 14px; font-weight: 600; text-decoration: underline; color: var(--cd-ink); }
.footer-more:hover { color: var(--cd-blue); }
.footer-contact { display: grid; gap: 8px; margin: -16px 0 32px; font-size: 14px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--cd-ink); text-decoration: none; overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--cd-blue); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 40px;
  border-top: 1px solid #c1cbdb;
  font-size: 14px;
  color: var(--cd-ink-weak);
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand .cd-logo img { height: 56px; }
.footer-follow { display: flex; align-items: center; gap: 16px; }
.follow-label { font-size: 14px; font-weight: 600; color: var(--cd-ink); }
@media (max-width: 767.98px) {
  .footer-bottom { flex-direction: column-reverse; align-items: center; text-align: center; padding: 24px 0 32px; }
  .footer-brand { align-items: center; }
  .footer-follow { flex-direction: column; gap: 12px; }
}

.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--brand-fill, var(--brand));
  color: #fff;
  font-size: 17px;
  transition: transform .2s, box-shadow .2s;
}
.social a:hover {
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(15, 17, 20, .35);
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   "Ask Counsellor" side panel (partials/call-panel): wipes in from the right edge, like edureka's "Call us".
   It is clipped, not moved off-screen: a hidden panel past the right edge lets phones scroll the page sideways.
   The negative insets keep the shadow visible.
   ========================================================================== */
.call-panel {
  position: fixed;
  top: 38%;
  right: 0;
  z-index: 1040;
  width: 248px;
  padding: 18px 20px 16px;
  border: 1px solid var(--cd-line);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #fff;
  box-shadow: -10px 12px 32px -12px rgba(0, 36, 87, .28);
  font-family: var(--cd-font);
  clip-path: inset(-48px 0 -48px 100%);
  visibility: hidden;
  transition: clip-path .3s var(--cd-ease), visibility 0s linear .3s;
}
.call-panel.is-open { clip-path: inset(-48px 0 -48px -48px); visibility: visible; transition: clip-path .3s var(--cd-ease), visibility 0s; }
.call-panel-hide { position: absolute; top: 8px; right: 12px; padding: 2px 4px; border: 0; background: none; font-size: 13px; color: var(--cd-ink-weak); }
.call-panel-hide:hover { color: var(--cd-ink); text-decoration: underline; }
.call-panel-title { margin: 14px 0 8px; font-size: 16px; line-height: 22px; font-weight: 500; color: var(--cd-ink); }
.call-panel-number { display: inline-block; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: .01em; color: #1a6fb5; text-decoration: none; }
.call-panel-number:hover { color: var(--cd-blue-hover); text-decoration: underline; }
.call-panel-note { margin: 4px 0 0; font-size: 13px; color: var(--cd-ink-weak); }
.call-panel :focus-visible { outline: 2px solid var(--cd-focus); outline-offset: 2px; }

/* Counsellor card pieces, used on the Contact page and the blog sidebar */
.counsellor-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2470b8, #6fa9e0);
  box-shadow: 0 0 0 6px #fff, 0 10px 24px -10px rgba(36, 112, 184, .6);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
}
.counsellor-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cd-blue); }
.counsellor-name { margin: 4px 0 2px; font-size: 22px; line-height: 28px; font-weight: 700; color: var(--cd-ink); }
.counsellor-role { margin: 0; font-size: 14px; color: var(--cd-ink-weak); }

.counsellor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.counsellor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s, box-shadow .15s, transform .15s;
}
.counsellor-btn .bi { font-size: 17px; }
.counsellor-btn:hover { transform: translateY(-1px); }
.counsellor-btn:focus-visible { outline: 3px solid var(--cd-focus); outline-offset: 2px; }
.counsellor-btn.is-call { background: var(--cd-blue); color: #fff; box-shadow: 0 10px 20px -12px rgba(36, 112, 184, .7); }
.counsellor-btn.is-call:hover { background: var(--cd-blue-hover); color: #fff; }
.counsellor-btn.is-whatsapp { background: #1ea952; color: #fff; box-shadow: 0 10px 20px -12px rgba(30, 169, 82, .7); }
.counsellor-btn.is-whatsapp:hover { background: #178a42; color: #fff; }


@media (prefers-reduced-motion: reduce) {
  .call-panel,
  .call-panel.is-open { transition: none; }
  .counsellor-btn:hover { transform: none; }
}

/* Home: student reviews summary next to the heading */
.reviews-head { flex-wrap: wrap; justify-content: space-between; margin-bottom: 16px; }
.reviews-summary { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 15px; color: var(--cd-ink-weak); }
.reviews-summary strong { color: var(--cd-ink); }
.testi .stars .bi-star { color: #d9dee8; }
