/* ==========================================================================
   CollegeDream – inner pages (colleges, college, courses, course, login, register)
   Loaded after style.css and reuses its tokens and components.
   ========================================================================== */

/* Visible height of the pinned header; pages.js keeps it in sync */
:root { --hdr-h: 111px; }
@media (max-width: 991.98px) { :root { --hdr-h: 64px; } }

.sub-links a[aria-current="page"] { color: var(--cd-blue); }
.sub-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Shared bits ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 20px;
  color: var(--cd-ink-weak);
}
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: 10px; color: var(--cd-line-strong); }
.crumbs a { color: var(--cd-ink-weak); text-decoration: none; }
.crumbs a:hover { color: var(--cd-blue); text-decoration: underline; }
.crumbs [aria-current] { color: var(--cd-ink); font-weight: 600; }
.crumbs-top { margin: 20px 0 12px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--cd-bg-weak);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  color: var(--cd-ink-weak);
  white-space: nowrap;
}
.tag-blue { background: var(--cd-blue-25); color: var(--cd-blue-hover); }
.tag-green { background: #e9f7e7; color: #197d12; }

.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.rating .bi { color: #f5b335; }
.rating small { font-size: 13px; font-weight: 400; color: var(--cd-ink-weak); }

.link-btn { padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--cd-blue); }
.link-btn:hover { color: var(--cd-blue-hover); text-decoration: underline; }

.btn-block { width: 100%; justify-content: center; padding: 12px 16px; font-size: 16px; }
.btn-lg-cd { padding: 14px 28px; border-radius: 10px; font-size: 16px; }
.btn-cd-light { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.btn-cd-light:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.note { display: flex; gap: 8px; margin: 12px 0 0; font-size: 13px; line-height: 18px; color: var(--cd-ink-weak); }
.note .bi { flex: none; color: var(--cd-blue); }

.empty-state { max-width: 520px; margin-inline: auto; padding: 24px 20px; border: 1px dashed var(--cd-line-strong); border-radius: 12px; background: #fff; text-align: center; }
.empty-state > .bi {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cd-blue-25);
  color: var(--cd-blue);
  font-size: 19px;
}
.empty-state h3,
.empty-state .empty-title { margin: 10px 0 4px; font-size: 17px; line-height: 23px; font-weight: 600; }
.empty-state p { margin: 0 0 12px; font-size: 14px; line-height: 20px; color: var(--cd-ink-weak); }
.empty-state .btn-cd { padding: 7px 14px; font-size: 13px; }

/* ==========================================================================
   Listing pages – hero with search
   ========================================================================== */
.page-hero { padding: 24px 0 32px; background: linear-gradient(180deg, var(--cd-blue-50) 0%, var(--cd-blue-25) 100%); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; }
.page-hero h1 { margin: 0; font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -.02em; }
.page-hero h1 em { font-style: normal; color: var(--cd-blue); }
.page-hero-lead { max-width: 640px; margin: 8px 0 20px; font-size: 18px; line-height: 26px; color: var(--cd-ink-weak); }
.page-hero-art { position: relative; height: 260px; }
@media (max-width: 991.98px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero-art { display: none; }
  .page-hero h1 { font-size: 28px; line-height: 34px; }
  .page-hero-lead { font-size: 16px; line-height: 24px; }
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 680px;
  padding: 6px;
  border: 1px solid var(--cd-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px -12px rgba(0, 36, 87, .25);
  transition: border-color .15s, box-shadow .15s;
}
.hero-search:focus-within { border-color: var(--cd-blue); box-shadow: 0 0 0 3px rgba(36, 112, 184, .15), 0 8px 24px -12px rgba(0, 36, 87, .25); }
.hs-field { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 0 10px; }
.hs-field .bi { font-size: 18px; color: var(--cd-ink-weak); }
.hs-field input { width: 100%; min-width: 0; height: 44px; border: 0; background: transparent; font-size: 16px; color: var(--cd-ink); outline: 0; }
.hs-field input::placeholder { color: #6b778c; }
.hero-search .btn-cd { padding: 12px 22px; font-size: 16px; }
@media (max-width: 575.98px) {
  .hero-search .btn-cd { padding-inline: 14px; }
}

.quick-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--cd-ink-weak); }
.q-chip {
  padding: 4px 12px;
  border: 1px solid var(--cd-line);
  border-radius: 100px;
  background: #fff;
  font-size: 14px;
  line-height: 20px;
  color: var(--cd-ink);
  transition: border-color .15s, color .15s, transform .3s var(--cd-ease);
}
.q-chip:hover { border-color: var(--cd-blue); color: var(--cd-blue); transform: translateY(-1px); }
.q-chip.is-active { border-color: var(--cd-blue); background: var(--cd-blue-25); font-weight: 600; color: var(--cd-blue-hover); }

/* ---------- Shortcut cards above a listing (university types, government categories) ---------- */
.section-lead { max-width: 720px; margin: -4px 0 16px; font-size: 16px; line-height: 24px; color: var(--cd-ink-weak); }
.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.type-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1199.98px) {
  .type-grid,
  .type-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.type-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--cd-line);
  border-radius: 16px;
  background: #fff;
  color: var(--cd-ink);
  text-align: left;
  transition: transform .3s var(--cd-ease), box-shadow .3s var(--cd-ease), border-color .2s, background-color .2s;
}
.type-card:hover { border-color: #cfe2ff; box-shadow: 0 10px 24px -14px rgba(0, 36, 87, .3); transform: translateY(-2px); }
.type-card.is-active { border-color: var(--cd-blue); background: var(--cd-blue-25); box-shadow: inset 0 0 0 1px var(--cd-blue); }
.tc-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  font-size: 22px;
  color: #fff;
}
.tc-body { min-width: 0; }
.tc-body strong { display: block; font-size: 16px; line-height: 22px; font-weight: 600; }
.tc-body > span { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--cd-ink-weak); }
.tc-body small { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--cd-blue); }
/* Phones: compact two-column cards so the results stay close to the top */
@media (max-width: 575.98px) {
  .type-grid,
  .type-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .type-card { flex-direction: column; gap: 10px; padding: 12px; }
  .type-card .tc-icon { width: 40px; height: 40px; font-size: 18px; }
  .tc-body > span { display: none; }
  .tc-body small { margin-top: 2px; }
}

/* ---------- Entrance exam cards (governments.html) ---------- */
.exam-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 991.98px) { .exam-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .exam-grid { grid-template-columns: minmax(0, 1fr); } }
.exam-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--cd-line); border-radius: 16px; background: #fff; }
.exam-head { display: flex; align-items: center; gap: 12px; }
.exam-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.exam-head h3 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.exam-head span { font-size: 13px; line-height: 18px; color: var(--cd-ink-weak); }
.exam-card p { flex: 1; margin: 0; font-size: 14px; line-height: 20px; color: var(--cd-ink-weak); }
.exam-card .link-btn { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; }

/* ==========================================================================
   Listing pages – filters + results
   ========================================================================== */
.listing { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 32px; }
@media (max-width: 991.98px) { .listing { grid-template-columns: minmax(0, 1fr); margin-top: 20px; } }

.filters { --bs-offcanvas-width: 320px; }
.filters-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 4px; }
.filters-title h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; }
.filters-foot { padding: 12px 16px; border-top: 1px solid var(--cd-line); background: #fff; }
.filters-foot .btn-cd { padding-block: 12px; font-size: 16px; }
@media (min-width: 992px) {
  .filters {
    position: sticky;
    top: calc(var(--hdr-h) + 16px);
    max-height: calc(100vh - var(--hdr-h) - 32px);
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
  }
  .filters .offcanvas-body { display: block; }
}

.f-group { padding: 16px 0; border-bottom: 1px solid var(--cd-line); }
.f-group:last-child { border-bottom: 0; }
/* Floated (as in Bootstrap's reboot) so the legend sits inside the padding, not on the border */
.f-group legend { float: left; width: 100%; margin: 0 0 8px; padding: 0; font-size: 16px; line-height: 20px; font-weight: 600; }
.f-option { display: flex; align-items: center; gap: 10px; margin: 0; padding: 5px 0; font-size: 14px; line-height: 20px; cursor: pointer; }
.f-option[hidden] { display: none; }
.f-option input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--cd-blue); cursor: pointer; }
.f-option span { flex: 1; min-width: 0; }
.f-option small { font-size: 13px; color: var(--cd-ink-weak); }
.f-option:hover span { color: var(--cd-blue); }
.f-more { margin-top: 4px; }

.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; scroll-margin-top: calc(var(--hdr-h) + 16px); }
.results-count { margin: 0; font-size: 16px; color: var(--cd-ink-weak); }
.results-count b { color: var(--cd-ink); }
.results-tools { display: flex; align-items: center; gap: 8px; }

.cd-select {
  height: 40px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--cd-line-strong);
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2348546e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 12px center / 12px;
  font-size: 14px;
  color: var(--cd-ink);
  appearance: none;
}
.cd-select:focus { border-color: var(--cd-blue); outline: 0; box-shadow: 0 0 0 3px rgba(36, 112, 184, .15); }

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--cd-line-strong);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--cd-ink);
}
.filter-btn:hover { background: var(--cd-blue-25); }
.badge-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--cd-blue); font-size: 12px; line-height: 20px; color: #fff; }

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.active-filters:empty { display: none; }
.af-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 12px;
  border: 1px solid var(--cd-blue);
  border-radius: 100px;
  background: var(--cd-blue-25);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--cd-blue-hover);
}
.af-chip .bi { font-size: 11px; }
.af-chip:hover { background: var(--cd-blue-50); }

/* ---------- College cards ---------- */
.college-list { display: grid; gap: 16px; }
.college-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--cd-line);
  border-radius: 16px;
  background: #fff;
  transition: transform .3s var(--cd-ease), box-shadow .3s var(--cd-ease), border-color .3s;
}
.college-card:hover { border-color: #cfe2ff; box-shadow: 0 12px 28px -12px rgba(0, 36, 87, .22); transform: translateY(-2px); }
.cc-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 200px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  font-size: 56px;
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
}
.cc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--cd-ease); }
.cc-mark { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cc-mark .bi { font-size: 40px; line-height: 1; opacity: .85; }
.cc-mark b { font-size: 26px; line-height: 1; letter-spacing: .02em; color: #fff; }
.college-card:hover .cc-media img { transform: scale(1.04); }
.cc-own {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 2px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .95);
  font-size: 12px;
  line-height: 20px;
  font-weight: 700;
  color: var(--cd-navy);
}
.cc-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 20px; }
.cc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cc-head > div { min-width: 0; }
.cc-title { margin: 2px 0 0; font-size: 20px; line-height: 26px; font-weight: 600; }
.cc-title a { color: var(--cd-ink); text-decoration: none; }
.cc-title a:hover { color: var(--cd-blue); text-decoration: underline; }
.cc-full { margin: 0; font-size: 14px; line-height: 20px; color: var(--cd-ink-weak); }
.cc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--cd-line); border-radius: 12px; }
.cc-stats > div { min-width: 0; padding: 8px 14px; }
.cc-stats > div + div { border-left: 1px solid var(--cd-line); }
.cc-stats dt { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--cd-ink-weak); }
.cc-stats dd { margin: 2px 0 0; overflow: hidden; font-size: 15px; line-height: 20px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.cc-stats dd small { font-size: 12px; font-weight: 600; color: var(--cd-ink-weak); }
.cc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.cc-courses { flex: 1 1 240px; margin: 0; font-size: 13px; line-height: 18px; color: var(--cd-ink-weak); }
.cc-courses strong { color: var(--cd-ink); }
.cc-actions { display: flex; gap: 8px; }
@media (max-width: 767.98px) {
  .college-card { grid-template-columns: minmax(0, 1fr); }
  .cc-media { min-height: 0; aspect-ratio: 16 / 7; }
  .cc-body { padding: 14px 16px 16px; }
  .cc-stats > div { padding: 8px 10px; }
  .cc-actions { width: 100%; }
  .cc-actions .btn-cd { flex: 1; justify-content: center; }
}

/* ---------- Course cards (reuse .product-card from the home page) ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.course-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199.98px) {
  .course-grid,
  .course-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .course-grid,
  .course-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
}
.course-grid .p-thumb { position: relative; }
.p-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  color: #197d12;
}
.p-badge .bi { font-size: 12px; }
.p-foot { margin-top: auto; padding-top: 8px; }
.p-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.p-foot .p-meta { margin: 2px 0 0; padding: 0; }
.p-price { font-size: 14px; font-weight: 700; color: var(--cd-ink); }
.p-price.free { color: #197d12; }

/* ---------- Bottom of listing pages ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.benefit { padding: 24px; border-radius: 18px; background: linear-gradient(278deg, #f9f5ff 17.86%, #f0f6ff 75.22%); }
.benefit > .bi {
  font-size: 32px;
  line-height: 1;
  background: linear-gradient(135deg, #6923de, #2470b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.benefit h3 { margin: 12px 0 4px; font-size: 18px; line-height: 24px; font-weight: 600; }
.benefit p { margin: 0; font-size: 14px; line-height: 20px; color: var(--cd-ink-weak); }
.benefits.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .benefits.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .benefits,
  .benefits.cols-4 { grid-template-columns: minmax(0, 1fr); }
}

/* Free counselling call-to-action (partials/counsellor-cta): soft brand-blue card matching the site palette */
.cta-pro {
  --cta-bg: #f2f6fd;
  --cta-line: #d6e2f7;
  --cta-accent: var(--cd-blue);
  --cta-tint: #e3ecfb;
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  overflow: hidden;
  padding: 32px 40px;
  border: 1px solid var(--cta-line);
  border-radius: 20px;
  background: var(--cta-bg);
  color: var(--cd-ink);
}
/* Soft circles in the corners */
.cta-pro::before,
.cta-pro::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--cta-tint);
  pointer-events: none;
}
.cta-pro::before { top: -90px; right: -60px; width: 240px; height: 240px; opacity: .7; }
.cta-pro::after { bottom: -120px; left: 30%; width: 220px; height: 220px; opacity: .45; }
.cta-pro > * { position: relative; z-index: 1; }

/* Icon art on the left */
.cta-pro-visual { position: relative; width: 132px; height: 120px; }
.cta-pro-badge {
  position: absolute;
  inset: 10px 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 8px var(--cta-tint), 0 14px 28px -16px rgba(36, 112, 184, .55);
  font-size: 40px;
  color: var(--cta-accent);
}
.cta-pro-bubble {
  position: absolute;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 14px -8px rgba(13, 15, 18, .35);
  font-size: 16px;
}
.cta-pro-bubble.b1 { top: 0; right: 0; color: var(--cd-navy); }
.cta-pro-bubble.b2 { bottom: 0; left: 0; color: #1ea952; }

.cta-pro-eyebrow { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cta-accent); }
.cta-pro h2 { margin: 0 0 6px; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.01em; color: var(--cd-ink); }
.cta-pro p { max-width: 560px; margin: 0; font-size: 16px; line-height: 24px; color: var(--cd-ink-weak); }
.cta-pro-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.cta-pro-points li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px 4px 8px; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--cta-line); font-size: 13px; font-weight: 600; color: var(--cd-ink); }
.cta-pro-points .bi { font-size: 16px; color: #1f9d55; }

.cta-pro-actions { display: grid; gap: 10px; min-width: 240px; }
.cta-pro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s var(--cd-ease), border-color .2s var(--cd-ease), box-shadow .2s var(--cd-ease), transform .2s var(--cd-ease);
}
.cta-pro-btn:hover { transform: translateY(-1px); }
.cta-pro-btn:focus-visible { outline: 3px solid var(--cd-focus); outline-offset: 2px; }
.cta-pro-btn .bi { font-size: 18px; }
.cta-pro-btn.is-call { background: var(--cd-blue); color: #fff; box-shadow: 0 10px 20px -12px rgba(36, 112, 184, .7); }
.cta-pro-btn.is-call:hover { background: var(--cd-blue-hover); color: #fff; }
.cta-pro-btn.is-whatsapp { border: 1px solid var(--cta-line); background: #fff; color: var(--cd-ink); }
.cta-pro-btn.is-whatsapp .bi { color: #1ea952; }
.cta-pro-btn.is-whatsapp:hover { border-color: #1ea952; color: var(--cd-ink); }

@media (prefers-reduced-motion: reduce) {
  .cta-pro-btn { transition: none; }
  .cta-pro-btn:hover { transform: none; }
}
@media (max-width: 1199.98px) {
  .cta-pro { grid-template-columns: minmax(0, 1fr) auto; }
  .cta-pro-visual { display: none; }
}
@media (max-width: 767.98px) {
  .cta-pro { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 20px; border-radius: 16px; }
  .cta-pro h2 { font-size: 22px; line-height: 28px; }
  .cta-pro-actions { min-width: 0; }
}

/* ==========================================================================
   Detail pages – shared layout, sticky tabs, panels
   ========================================================================== */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.detail-side { align-self: stretch; padding-top: 32px; }
.side-sticky { position: sticky; top: calc(var(--hdr-h) + 72px); display: grid; gap: 16px; }
@media (max-width: 991.98px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side-sticky { position: static; }
}

.page-tabs { position: sticky; top: var(--hdr-h); z-index: 1020; margin-top: 24px; border-bottom: 1px solid var(--cd-line); background: #fff; }
.page-tabs ul { position: relative; display: flex; gap: 4px; margin: 0 -10px; padding: 0; list-style: none; overflow-x: auto; }
.page-tabs a {
  position: relative;
  display: block;
  padding: 13px 10px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--cd-ink-weak);
  text-decoration: none;
  white-space: nowrap;
}
.page-tabs 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;
}
.page-tabs a:hover,
.page-tabs a.active { color: var(--cd-blue); }
.page-tabs a.active::after { transform: scaleX(1); }

.d-section { padding-top: 32px; scroll-margin-top: calc(var(--hdr-h) + 56px); }
.d-section > h2 { margin: 0 0 16px; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.01em; }
.panel { padding: 24px; border: 1px solid var(--cd-line); border-radius: 16px; background: #fff; }
.panel .sub-title { margin: 24px 0 12px; font-size: 16px; line-height: 22px; font-weight: 600; }
@media (max-width: 575.98px) {
  .panel { padding: 16px; }
  .d-section > h2 { font-size: 20px; line-height: 26px; }
}
.prose p { margin: 0 0 12px; font-size: 16px; line-height: 26px; }
.prose p:last-child { margin-bottom: 0; }

.side-card { padding: 20px; border: 1px solid var(--cd-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 28px -18px rgba(0, 36, 87, .35); scroll-margin-top: calc(var(--hdr-h) + 72px); }
.side-card > h2 { margin: 0 0 4px; font-size: 20px; line-height: 26px; font-weight: 600; }
.side-card > p { margin: 0 0 16px; font-size: 14px; line-height: 20px; color: var(--cd-ink-weak); }
.side-contact { display: flex; justify-content: center; gap: 20px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--cd-line); font-size: 14px; font-weight: 600; }
.side-contact a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.side-contact .bi-whatsapp { color: #1da851; }

.includes { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.includes li { display: flex; align-items: center; gap: 10px; }
.includes .bi { flex: none; font-size: 16px; color: var(--cd-blue); }

/* ==========================================================================
   College detail
   ========================================================================== */
.college-cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 360px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--c1, #002457), var(--c2, #136ef0));
  color: #fff;
}
.college-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.college-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 20, 56, .92) 0%, rgba(0, 20, 56, .62) 45%, rgba(0, 20, 56, .12) 100%);
}
.cover-icon { position: absolute; top: 24px; right: 40px; font-size: 180px; line-height: 1; color: rgba(255, 255, 255, .14); }
.cover-body { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; width: 100%; padding: 32px; }
.cover-id { display: flex; align-items: flex-end; gap: 20px; min-width: 0; }
.college-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--c1);
}
.college-logo.sm { font-size: 19px; }
.cover-body h1 { margin: 8px 0 6px; font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -.01em; text-shadow: 0 1px 3px rgba(0, 10, 30, .45); }
.cover-tags .tag { background: rgba(255, 255, 255, .16); color: #fff; }
.cover-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.cover-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.cover-meta > span > .bi { color: #ffd27a; }
.cover-meta .rating { font-size: 15px; }
.cover-meta .rating small { color: rgba(255, 255, 255, .8); }
.cover-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cover-actions .btn-cd { padding: 10px 18px; font-size: 15px; }
@media (max-width: 767.98px) {
  .college-cover { min-height: 400px; border-radius: 16px; }
  .cover-icon { top: 16px; right: 16px; font-size: 120px; }
  .cover-body { padding: 20px; }
  .cover-id { flex-direction: column; align-items: flex-start; gap: 12px; }
  .college-logo { width: 64px; height: 64px; border-radius: 14px; font-size: 20px; }
  .college-logo.sm { font-size: 15px; }
  .cover-body h1 { font-size: 24px; line-height: 30px; }
  .cover-actions { width: 100%; }
  .cover-actions .btn-cd { flex: 1; justify-content: center; }
}

.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.glance-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; border: 1px solid var(--cd-line); border-radius: 14px; background: #fff; }
.glance-item > .bi {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cd-blue-25);
  font-size: 18px;
  color: var(--cd-blue);
}
.glance-item > .bi-star-fill { background: #fff6e0; color: #f5b335; }
.glance-item b { display: block; font-size: 17px; line-height: 22px; }
.glance-item span { display: block; font-size: 13px; line-height: 18px; color: var(--cd-ink-weak); }
@media (max-width: 991.98px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
  .glance { gap: 8px; }
  .glance-item { gap: 10px; padding: 12px; }
  .glance-item > .bi { width: 34px; height: 34px; font-size: 16px; }
  .glance-item b { font-size: 15px; }
}

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 20px 0 0; overflow: hidden; border: 1px solid var(--cd-line); border-radius: 12px; background: var(--cd-line); }
.facts > div { display: flex; gap: 12px; padding: 12px 16px; background: #fff; }
.facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.facts dt { flex: 0 0 120px; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--cd-ink-weak); }
.facts dd { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; }
@media (max-width: 575.98px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dt { flex-basis: 104px; }
}

/* position: relative keeps hidden labels (position: absolute) inside the scroll box; without it they stick out
   and make the whole page wider than the phone, which squeezes the page when a modal opens */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--cd-line); border-radius: 12px; background: #fff; }
.fee-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.fee-table th { padding: 12px 16px; background: var(--cd-bg-weak); font-size: 13px; font-weight: 600; color: var(--cd-ink-weak); text-align: left; white-space: nowrap; }
.fee-table td { padding: 14px 16px; border-top: 1px solid var(--cd-line); vertical-align: middle; }
.fee-table td strong { font-size: 15px; }
.fee-table .fee { font-weight: 700; white-space: nowrap; }
.fee-table .fee small { font-size: 12px; font-weight: 600; color: var(--cd-ink-weak); }
.fee-table tbody tr:hover td { background: var(--cd-blue-25); }
.fee-table .course-name { background: var(--cd-blue-25); font-size: 15px; color: var(--cd-navy); }
.fee-table tbody tr:hover .course-name { background: var(--cd-blue-50); }
.table-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.table-link:hover { text-decoration: underline; }
.adm-exams { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--cd-line); font-size: 14px; font-weight: 600; }
.adm-exams .tag { font-size: 13px; }

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat-tile { padding: 16px 20px; border-radius: 12px; background: var(--cd-blue-25); }
.stat-tile b { display: block; font-size: 28px; line-height: 34px; font-weight: 700; color: var(--cd-navy); }
.stat-tile span { font-size: 14px; color: var(--cd-ink-weak); }
.recruiters { display: flex; flex-wrap: wrap; gap: 8px; }
.recruiter { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border: 1px solid var(--cd-line); border-radius: 100px; background: #fff; font-size: 14px; font-weight: 600; }
/* Logo from Admin → Recruiters, shown in the round spot instead of the letter */
.recruiter img { width: 26px; height: 26px; padding: 2px; border: 1px solid var(--cd-line); border-radius: 50%; background: #fff; object-fit: contain; }
.recruiter b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  font-size: 12px;
  color: #fff;
}

.facility-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.facility { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--cd-line); border-radius: 12px; background: #fff; font-size: 14px; font-weight: 600; }
.facility .bi {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cd-blue-25);
  font-size: 18px;
  color: var(--cd-blue);
}
@media (max-width: 767.98px) { .facility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 170px; gap: 12px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 12px; background: var(--cd-bg-weak); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--cd-ease); }
.gallery figure:hover img { transform: scale(1.04); }
@media (max-width: 575.98px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
  .gallery figure:first-child { grid-row: auto; grid-column: 1 / -1; height: 200px; }
}

.similar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.similar-grid .course-item { margin: 0; border-color: var(--cd-line); }
@media (max-width: 575.98px) { .similar-grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Course detail
   ========================================================================== */
.course-hero { padding: 20px 0 76px; background: linear-gradient(180deg, var(--cd-blue-50), var(--cd-blue-25)); }
.course-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: center; }
.course-partner { font-size: 16px; line-height: 24px; color: var(--cd-ink-weak); }
.course-partner .plogo { width: 28px; height: 28px; font-size: 11px; }
.course-partner .plogo .bi { font-size: 16px; }
.course-partner strong { font-weight: 500; color: var(--cd-ink); }
.course-hero h1 { margin: 10px 0 8px; font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -.01em; }
.course-hero-lead { max-width: 680px; margin: 0 0 16px; font-size: 18px; line-height: 26px; color: var(--cd-ink-weak); }
.course-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 24px; }
.enroll-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.enroll-note { font-size: 14px; color: var(--cd-ink-weak); }
.enroll-note strong { color: var(--cd-ink); }
.course-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 24px 48px -24px rgba(0, 36, 87, .45);
  font-size: 96px;
  color: #fff;
}
.course-visual::before,
.course-visual::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.course-visual::before { top: -30%; right: -20%; width: 70%; aspect-ratio: 1; }
.course-visual::after { bottom: -35%; left: -15%; width: 60%; aspect-ratio: 1; }
.course-visual .bi { position: relative; z-index: 1; }
.cv-label { position: absolute; bottom: 16px; left: 16px; z-index: 1; padding: 4px 12px; border-radius: 100px; background: rgba(255, 255, 255, .95); font-size: 13px; line-height: 18px; font-weight: 700; color: var(--cd-navy); }
@media (max-width: 991.98px) {
  .course-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .course-visual { display: none; }
  .course-hero h1 { font-size: 28px; line-height: 34px; }
  .course-hero-lead { font-size: 16px; line-height: 24px; }
}

.info-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: -48px;
  padding: 20px 0;
  border: 1px solid var(--cd-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px -16px rgba(0, 36, 87, .3);
}
.info-strip > div { min-width: 0; padding: 0 20px; }
.info-strip > div + div { border-left: 1px solid var(--cd-line); }
.info-strip strong { display: flex; align-items: center; gap: 6px; font-size: 16px; line-height: 22px; font-weight: 500; }
.info-strip strong .bi { color: #f5b335; }
.info-strip span { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--cd-ink-weak); }
@media (max-width: 1199.98px) {
  .info-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .info-strip > div:nth-child(4) { border-left: 0; }
}
@media (max-width: 575.98px) {
  .info-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 0; }
  .info-strip > div { padding: 0 14px; }
  .info-strip > div:nth-child(odd) { border-left: 0; }
  .info-strip > div:nth-child(4) { border-left: 1px solid var(--cd-line); }
}

/* What you'll learn: light blue box, each point with a green tick in a small circle */
.learn-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; padding: 16px 18px; border: 1px solid #d9e6fb; border-radius: 10px; background: var(--cd-blue-25); list-style: none; }
.learn-list li { display: flex; gap: 10px; font-size: 14.5px; line-height: 21px; color: var(--cd-ink); }
.learn-list .bi { display: grid; flex: none; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: #dff3e4; font-size: 13px; line-height: 1; color: #197d12; }
@media (max-width: 767.98px) { .learn-list { grid-template-columns: minmax(0, 1fr); } }

.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip { padding: 6px 12px; border-radius: 100px; background: var(--cd-bg-weak); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--cd-ink); }

.know-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } /* all four in one row */
/* Details to know: each card in its own soft colour, icon in a white square */
.know { --know-bg: var(--cd-blue-25); --know-line: #d9e6fb; --know-ink: var(--cd-blue); display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--know-line); border-radius: 10px; background: var(--know-bg); }
.know:nth-child(4n+2) { --know-bg: #f6f1fe; --know-line: #e6dafb; --know-ink: #6f29e5; }
.know:nth-child(4n+3) { --know-bg: #eefaf1; --know-line: #d3eedb; --know-ink: #197d12; }
.know:nth-child(4n+4) { --know-bg: #fff5ec; --know-line: #fbe0c8; --know-ink: #c25400; }
.know > .bi { display: grid; grid-row: 1 / span 2; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(13, 15, 18, .06); font-size: 15px; color: var(--know-ink); }
.know strong { display: block; font-size: 13.5px; line-height: 18px; font-weight: 500; color: var(--cd-ink); }
.know span { font-size: 12px; line-height: 16px; color: var(--cd-ink-weak); }
@media (max-width: 1199.98px) { .know-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .know-grid { grid-template-columns: minmax(0, 1fr); } }

.offered { display: flex; align-items: flex-start; gap: 16px; }
.offered .plogo { width: 56px; height: 56px; border-radius: 12px; font-size: 18px; }
.offered .plogo .bi { font-size: 28px; }
.offered h3 { margin: 0 0 4px; font-size: 18px; line-height: 24px; font-weight: 600; }
.offered p { margin: 0 0 8px; font-size: 14px; line-height: 20px; color: var(--cd-ink-weak); }

/* Syllabus: one bordered list with thin dividers; number, title, and Videos · Readings · Quiz on the right */
.syllabus { display: grid; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--cd-line); border-radius: 10px; background: #fff; list-style: none; }
.syllabus li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; transition: background-color .15s; }
.syllabus li + li { border-top: 1px solid var(--cd-line); }
.syllabus li:hover { background: var(--cd-bg-weak); }
.syl-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--cd-line-strong);
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  color: var(--cd-ink-weak);
}
.syl-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; flex: 1; min-width: 0; }
.syl-body h3 { grid-column: 1; margin: 0; font-size: 14.5px; line-height: 20px; font-weight: 600; }
.syl-body .syl-desc { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13px; line-height: 18px; }
.syl-meta { display: flex; grid-column: 2; grid-row: 1; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; line-height: 17px; color: var(--cd-ink-weak); white-space: nowrap; }
.syl-meta span { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 575.98px) {
  .syl-body { grid-template-columns: minmax(0, 1fr); }
  .syl-meta { grid-column: 1; grid-row: auto; margin-top: 2px; }
}

/* Certificate preview – sizes scale with the card width (container query units) */
.cert-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 767.98px) { .cert-wrap { grid-template-columns: minmax(0, 1fr); } }
.cert {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  aspect-ratio: 1.414;
  padding: 6% 9%;
  border-radius: 10px;
  background:
    radial-gradient(circle at 0 0, var(--cd-blue-50), transparent 38%),
    radial-gradient(circle at 100% 100%, #fff3d6, transparent 38%),
    #fff;
  box-shadow: 0 0 0 1px var(--cd-line), 0 18px 40px -18px rgba(0, 36, 87, .35);
  text-align: center;
  container-type: inline-size;
}
.cert::before { content: ""; position: absolute; inset: 3%; border: 2px solid var(--cd-navy); border-radius: 6px; pointer-events: none; }
.cert::after { content: ""; position: absolute; inset: 4.4%; border: 1px solid #f5b335; border-radius: 4px; pointer-events: none; }
.cert p { margin: 0; }
.cert-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 2.4cqw; }
.cert-logo { font-size: 4cqw; font-weight: 700; letter-spacing: -.02em; color: var(--cd-blue); }
.cert-logo span { color: var(--cd-navy); }
.cert-top .plogo { width: 6.5cqw; height: 6.5cqw; font-size: 2.4cqw; }
.cert-top .plogo .bi { font-size: 3.8cqw; }
.cert-kicker { margin-top: auto !important; font-size: 3cqw; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cd-navy); }
.cert .cert-small { margin-top: 1.4cqw; font-size: 2.3cqw; color: var(--cd-ink-weak); }
.cert .cert-name { margin-top: .6cqw; padding: 0 6cqw .4cqw; border-bottom: 1px solid var(--cd-line-strong); font-family: Georgia, "Times New Roman", serif; font-size: 5.6cqw; font-style: italic; color: var(--cd-ink); }
.cert .cert-course { margin-top: .6cqw; font-size: 3.6cqw; line-height: 1.2; font-weight: 700; color: var(--cd-blue); }
.cert-foot { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; margin-top: auto; }
.cert-sign { display: flex; flex-direction: column; align-items: center; min-width: 24cqw; font-size: 2cqw; color: var(--cd-ink-weak); }
.cert-sign i { display: block; width: 100%; margin-bottom: .6cqw; padding-bottom: .4cqw; border-bottom: 1px solid var(--cd-line-strong); font-family: Georgia, "Times New Roman", serif; font-size: 2.8cqw; color: var(--cd-ink); }
.cert-seal {
  display: grid;
  place-items: center;
  width: 10cqw;
  height: 10cqw;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd27a 0 56%, #f5b335 57%);
  box-shadow: 0 0 0 .8cqw #fff3d6;
  font-size: 5cqw;
  color: var(--cd-navy);
}
.cert-copy h3 { margin: 0 0 8px; font-size: 20px; line-height: 26px; font-weight: 600; }
.cert-copy p { margin: 0; font-size: 15px; line-height: 22px; color: var(--cd-ink-weak); }

.enroll-price { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.enroll-price b { font-size: 28px; line-height: 34px; font-weight: 700; }
.enroll-small { margin: 8px 0 0; font-size: 13px; color: var(--cd-ink-weak); text-align: center; }

/* ==========================================================================
   Forms (login, register, counselling)
   ========================================================================== */
.field { margin-bottom: 16px; }
.field > label:not(.check),
.label-row label { display: block; margin-bottom: 6px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--cd-ink); }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.label-row a { font-size: 14px; font-weight: 600; text-decoration: none; }
.label-row a:hover { text-decoration: underline; }
.label-opt { font-weight: 400; color: var(--cd-ink-weak); }

.input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--cd-line-strong);
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  color: var(--cd-ink);
  outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #6b778c; }
select.input {
  padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2348546e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 14px center / 12px;
  appearance: none;
}
.input:focus,
.input-wrap:focus-within { border-color: var(--cd-blue); box-shadow: 0 0 0 3px rgba(36, 112, 184, .15); }
.input-wrap { display: flex; align-items: stretch; height: 48px; overflow: hidden; border: 1px solid var(--cd-line-strong); border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.input-wrap .input { flex: 1; min-width: 0; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.input-prefix { display: grid; place-items: center; padding: 0 12px; border-right: 1px solid var(--cd-line); background: var(--cd-bg-weak); font-size: 15px; font-weight: 600; color: var(--cd-ink-weak); }
.pw-toggle { display: grid; place-items: center; flex: none; width: 48px; border: 0; background: transparent; font-size: 18px; color: var(--cd-ink-weak); }
.pw-toggle:hover { color: var(--cd-blue); }

.field.is-invalid .input,
.field.is-invalid .input-wrap { border-color: #c51e37; }
.field.is-invalid .input:focus,
.field.is-invalid .input-wrap:focus-within { box-shadow: 0 0 0 3px rgba(197, 30, 55, .15); }
.field.is-invalid .input-wrap .input { box-shadow: none; }
.field-error { display: none; gap: 6px; margin: 6px 0 0; font-size: 13px; line-height: 18px; color: #c51e37; }
.field.is-invalid .field-error { display: flex; }
.field-hint { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: var(--cd-ink-weak); }

/* Select2 (searchable select) styled like .input */
.select2-container--default .select2-selection--single {
  height: 48px;
  border: 1px solid var(--cd-line-strong);
  border-radius: 8px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0 32px 0 12px; font-size: 15px; line-height: 46px; color: var(--cd-ink); }
.auth-compact .select2-container--default .select2-selection--single { height: 38px; }
.auth-compact .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 36px; }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: #6b778c; }
.select2-container--default .select2-selection--single .select2-selection__clear { height: 100%; margin-right: 30px; padding: 0 4px; font-size: 18px; font-weight: 400; line-height: 1; color: var(--cd-ink-weak); }
.select2-container--default .select2-selection--single .select2-selection__clear:hover { color: #c51e37; }
.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0;
  right: 12px;
  width: 12px;
  height: 100%;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2348546e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat center / 12px;
  transition: transform .2s;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b { display: none; }
.select2-container--default.select2-container--open .select2-selection__arrow { transform: rotate(180deg); }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--cd-blue); box-shadow: 0 0 0 3px rgba(36, 112, 184, .15); outline: 0; }
.field.is-invalid .select2-selection--single { border-color: #c51e37; }
.select2-dropdown { overflow: hidden; border: 1px solid var(--cd-line-strong); border-radius: 8px; box-shadow: 0 12px 28px -12px rgba(0, 36, 87, .3); font-family: var(--cd-font); }
.select2-container--open .select2-dropdown--below { margin-top: 4px; border-top: 1px solid var(--cd-line-strong); border-radius: 8px; }
.select2-container--open .select2-dropdown--above { margin-top: -4px; border-bottom: 1px solid var(--cd-line-strong); border-radius: 8px; }
.select2-container--default .select2-search--dropdown { padding: 8px; }
.select2-container--default .select2-search--dropdown .select2-search__field { height: 36px; padding: 0 10px; border: 1px solid var(--cd-line); border-radius: 6px; font-size: 15px; outline: 0; }
.select2-container--default .select2-search--dropdown .select2-search__field:focus { border-color: var(--cd-blue); }
.select2-results__option { padding: 7px 12px; font-size: 14px; }
.select2-container--default .select2-results__option--selected { background: var(--cd-blue-25); color: var(--cd-blue-hover); font-weight: 600; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--cd-blue); color: #fff; }
.select2-container--default .select2-results > .select2-results__options { max-height: 220px; }

.check { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; line-height: 20px; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--cd-blue); cursor: pointer; }

.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.pw-meter span { height: 4px; border-radius: 2px; background: var(--cd-line); transition: background-color .2s; }
.pw-meter[data-score="1"] span:nth-child(-n + 1) { background: #c51e37; }
.pw-meter[data-score="2"] span:nth-child(-n + 2) { background: #de6000; }
.pw-meter[data-score="3"] span:nth-child(-n + 3) { background: var(--cd-blue); }
.pw-meter[data-score="4"] span { background: #197d12; }

.form-status { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; font-size: 14px; line-height: 20px; }
.form-status:empty { display: none; }
.form-status.ok { background: #e9f7e7; color: #197d12; }
.form-status.err { background: #fdecee; color: #c51e37; }
.form-status.info { background: var(--cd-blue-25); color: var(--cd-blue-hover); }

/* ==========================================================================
   Login / register
   ========================================================================== */
.auth-page { padding-top: 32px; background: linear-gradient(180deg, var(--cd-blue-25), #fff 70%); }
.auth-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1120px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--cd-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 48px -28px rgba(0, 36, 87, .3);
}
.auth-main { padding: 40px 48px; }
.auth-main h1 { margin: 0; font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -.01em; }
.auth-sub { margin: 6px 0 24px; font-size: 16px; line-height: 24px; color: var(--cd-ink-weak); }

.auth-aside { position: relative; display: flex; align-items: flex-end; order: -1; min-height: 100%; padding: 40px; overflow: hidden; background: var(--cd-navy); color: #fff; }
.auth-aside > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-aside::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0, 20, 56, .95) 0%, rgba(0, 20, 56, .78) 50%, rgba(0, 20, 56, .3) 100%); }
.auth-aside-body { position: relative; z-index: 2; }
.auth-aside h2 { margin: 10px 0 8px; font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -.01em; }
.auth-aside p { margin: 0; color: rgba(255, 255, 255, .85); }
.perks { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.perks li { display: flex; align-items: flex-start; gap: 12px; }
.perks .bi {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .14);
  font-size: 18px;
  color: #ffd27a;
}
.perks strong { display: block; font-size: 15px; line-height: 20px; }
.perks span span { font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .8); }

/* ---------- Compact login / register (shared) ---------- */
/* Desktop: the same slim 360px image panel on both pages */
@media (min-width: 992px) {
  .auth-compact { grid-template-columns: 360px minmax(0, 1fr); }
  .auth-compact .auth-aside { padding: 28px 24px; }
  .auth-compact .auth-aside h2 { font-size: 22px; line-height: 28px; }
  .auth-compact .perks span span { display: none; }
  .auth-compact .perks { gap: 8px; margin-top: 16px; }
  .auth-compact .perks li { align-items: center; }
  .auth-compact .perks .bi { width: 34px; height: 34px; font-size: 16px; }
  /* Login and register share one card size, so the image is identical on both */
  .auth-compact { max-width: 1000px; min-height: 430px; }
  /* Tighter page top so the whole card fits a 1366×768 laptop screen without scrolling */
  .auth-page { padding-top: 12px; }
}

/* Form in a centred column with a centred button */
.auth-compact .auth-main { display: flex; flex-direction: column; justify-content: center; padding: 16px 40px; }
.auth-compact .auth-main > * { width: 100%; max-width: 340px; margin-inline: auto; }
.auth-register .auth-main > * { max-width: 560px; }
.auth-compact .auth-main h1 { font-size: 24px; line-height: 28px; text-align: center; }
.auth-compact .auth-sub { margin: 2px auto 12px; font-size: 14px; line-height: 20px; text-align: center; }
.auth-compact .field { margin-bottom: 8px; }
.auth-compact .field > label:not(.check),
.auth-compact .label-row label { margin-bottom: 3px; font-size: 12.5px; line-height: 16px; }
.auth-compact .label-row .field-hint { margin: 0; white-space: nowrap; }
.auth-compact .input,
.auth-compact .input-wrap { height: 38px; }
.auth-compact .input { padding: 0 12px; }
.auth-compact select.input { padding-right: 32px; background-position: right 12px center; }
.auth-compact .input-wrap .input { height: 100%; }
.auth-compact .input-prefix { padding: 0 10px; font-size: 14px; }
.auth-compact .pw-toggle { width: 38px; font-size: 16px; }
/* 15px text on desktop; phones keep 16px so iOS doesn't zoom into the field */
@media (min-width: 992px) {
  .auth-compact .input { font-size: 15px; }
}
.auth-compact .pw-meter { gap: 3px; margin-top: 5px; }
.auth-compact .pw-meter span { height: 3px; }
.auth-compact .field-hint { margin-top: 2px; font-size: 11.5px; line-height: 14px; }
.auth-compact .field-error { margin-top: 3px; font-size: 12px; line-height: 16px; }
.auth-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 2px 0 16px; }
.auth-row a { font-size: 13.5px; font-weight: 600; text-decoration: none; }
.auth-row a:hover { text-decoration: underline; }
.auth-row .check { font-size: 13px; line-height: 18px; }
.auth-submit.btn-block { display: flex; width: fit-content; min-width: 180px; margin: 8px auto 0; padding: 9px 36px; font-size: 15px; }
.auth-compact .auth-switch { margin-top: 10px; padding-top: 0; border-top: 0; font-size: 13.5px; }
@media (max-width: 991.98px) {
  /* Short banner instead of a tall image panel below the form */
  .auth-compact .auth-aside { padding: 20px 24px; }
  .auth-compact .auth-aside h2 { margin-bottom: 4px; font-size: 20px; line-height: 26px; }
  .auth-compact .perks { display: none; }
}
@media (max-width: 575.98px) {
  .auth-compact .auth-main { padding: 28px 16px; }
}

.auth-switch { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--cd-line); font-size: 15px; text-align: center; }
.auth-switch a { font-weight: 600; }

@media (max-width: 991.98px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { order: 0; min-height: 0; padding: 32px 28px; }
  .auth-aside::before { background: linear-gradient(0deg, rgba(0, 20, 56, .95) 0%, rgba(0, 20, 56, .82) 100%); }
  .auth-main { padding: 32px 28px; }
}
@media (max-width: 575.98px) {
  .auth-page { padding-top: 16px; }
  .auth-shell { border-radius: 16px; }
  .auth-main { padding: 24px 16px; }
  .auth-main h1 { font-size: 26px; line-height: 32px; }
  .auth-aside { padding: 24px 16px; }
  .auth-aside h2 { font-size: 24px; line-height: 30px; }
}

/* ==========================================================================
   Course page additions (resources/views/courses/show.blade.php)
   ========================================================================== */
.syl-desc { margin: 0 0 6px; font-size: 14px; line-height: 20px; color: var(--cd-ink-weak); }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 767.98px) { .review-grid { grid-template-columns: minmax(0, 1fr); } }

/* Uploaded course picture instead of the icon (Admin → Courses → Card look) */
.p-thumb.has-image,
.course-visual.has-image { position: relative; overflow: hidden; }
.p-thumb.has-image img,
.course-visual.has-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-thumb.has-image .p-badge { z-index: 1; }
.course-visual.has-image::before,
.course-visual.has-image::after { display: none; }

/* College photo in the small thumbnails of "Similar colleges" */
.thumb.has-image { position: relative; overflow: hidden; }
.thumb.has-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* College page: a heading for each admission process when there is more than one */
.adm-title { display: flex; align-items: center; gap: 8px; margin: 24px 0 14px; font-size: 17px; line-height: 24px; font-weight: 600; }
.adm-title .bi { color: var(--cd-blue); }
.adm-title + .syllabus { margin-top: 0; }

/* Welcome page: "Popular colleges" cards, two per row on wide screens */
.college-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.college-grid .college-card { grid-template-columns: 200px minmax(0, 1fr); }
@media (max-width: 1199.98px) {
  .college-grid { grid-template-columns: minmax(0, 1fr); }
  .college-grid .college-card { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .college-grid .college-card { grid-template-columns: minmax(0, 1fr); }
}

/* Welcome page: partner logos inside "Popular courses" */
.partners-title { margin: 0 0 2px; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--cd-ink); }

/* Welcome page: page links under "Popular colleges" (12 per page) */
.college-pages { display: flex; justify-content: center; margin-top: 24px; }
.college-pages nav { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.college-pages .pagination {
  --bs-pagination-color: var(--cd-blue);
  --bs-pagination-hover-color: var(--cd-blue-hover);
  --bs-pagination-active-bg: var(--cd-blue);
  --bs-pagination-active-border-color: var(--cd-blue);
  --bs-pagination-border-radius: 8px;
  margin: 0;
}
.college-pages .d-sm-flex { gap: 16px; }
.college-pages p { margin: 0; color: var(--cd-ink-weak); }
.college-pages { flex-wrap: wrap; align-items: center; gap: 16px; }

/* All colleges page: the quick chips and active-filter chips are links here (buttons on the static page) */
a.q-chip,
a.af-chip { text-decoration: none; }

/* All courses: /courses */
.course-list { margin-top: 24px; }

/* Search results (/search): matching colleges and courses */
.search-results { padding-top: 28px; }
.search-group { scroll-margin-top: calc(var(--hdr-h) + 16px); }
.search-group + .search-group { margin-top: 40px; }
.search-group .section-title small { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--cd-blue-50); font-size: 13px; font-weight: 600; color: var(--cd-blue-hover); vertical-align: middle; }
.search-results .empty-state .btn-cd + .btn-cd { margin-left: 6px; }
.course-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
@media (max-width: 575.98px) {
  .course-filters .cd-select { flex: 1 1 calc(50% - 4px); min-width: 0; }
}

/* Placements: /placements table and /placement/{slug} page */
.pkg-list { margin-top: 20px; }
.pkg-table .pkg-rank { width: 48px; font-weight: 700; color: var(--cd-ink-weak); }
/* Placements list: compact rows */
.pkg-table th { padding: 9px 14px; font-size: 12px; }
.pkg-table td { padding: 8px 14px; }
.pkg-table .pkg-name { font-size: 14px; line-height: 19px; }
.pkg-table .pkg-sub { font-size: 12px; line-height: 16px; }
/* Striped rows: 1st, 3rd, 5th... row in a light peach, the others white */
.pkg-table { --pkg-stripe: #fff3ef; }
.pkg-table tbody tr:nth-child(odd) td { background: var(--pkg-stripe); }
/* No hover colour on the placements list: the stripe stays as it is */
.pkg-table tbody tr:hover td { background: transparent; }
.pkg-table tbody tr:nth-child(odd):hover td { background: var(--pkg-stripe); }
.pkg-name { font-size: 15px; font-weight: 600; color: var(--cd-navy); text-decoration: none; }
.pkg-name:hover { color: var(--cd-blue); text-decoration: underline; }
.pkg-sub { display: block; font-size: 13px; color: var(--cd-ink-weak); }
.pkg-head h1 { margin: 0 0 8px; font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -.01em; color: var(--cd-navy); }
.pkg-lead { margin: 0; font-size: 16px; color: var(--cd-ink-weak); }
.pkg-lead a { font-weight: 600; }
.pkg-detail .detail-layout { margin-top: 24px; }
.fee-table .pkg-current td { background: var(--cd-blue-25); }
.pkg-links { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 575.98px) {
  .pkg-head h1 { font-size: 24px; line-height: 30px; }
}

/* Partner with us: /partner-with-us */
.partner-legend { margin-bottom: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--cd-ink); }
.partner-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.partner-type { position: relative; margin: 0; cursor: pointer; }
.partner-type input { position: absolute; opacity: 0; pointer-events: none; }
.partner-type-box { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid var(--cd-line-strong); border-radius: 100px; background: #fff; font-size: 14px; font-weight: 600; color: var(--cd-ink); white-space: nowrap; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.partner-type-box .bi { font-size: 16px; color: var(--cd-blue); }
.partner-type:hover .partner-type-box { border-color: var(--cd-blue); }
.partner-type input:checked + .partner-type-box { border-color: var(--cd-blue); background: var(--cd-blue-25); color: var(--cd-blue-hover); box-shadow: inset 0 0 0 1px var(--cd-blue); }
.partner-type input:focus-visible + .partner-type-box { box-shadow: 0 0 0 3px rgba(36, 112, 184, .25); }
.partner-hero { padding: 16px 0 20px; }
.partner-hero .page-hero-lead { margin-bottom: 0; }
.partner-section { padding-top: 20px; }
.partner-section > h2 { margin-bottom: 12px; }
.partner-section .panel { padding: 20px; }
.partner-remarks { height: auto; padding-top: 12px; padding-bottom: 12px; resize: vertical; }
.partner-section .field > label:not(.check) { margin-bottom: 4px; font-size: 13px; line-height: 18px; }
.partner-section .input,
.partner-section .input-wrap { height: 40px; border-radius: 6px; }
.partner-section .input { padding: 0 12px; font-size: 14px; }
.partner-section .input-wrap .input { height: 100%; }
.partner-section .input-prefix { padding: 0 10px; font-size: 14px; }
.partner-section textarea.input { height: auto; padding-top: 10px; padding-bottom: 10px; }
.partner-section select.input { padding-right: 32px; background-position: right 12px center; }
.partner-section .btn-cd { padding: 9px 18px; }
.partner-why { display: grid; gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.partner-why li { display: flex; gap: 10px; }
.partner-why .bi { flex: none; font-size: 18px; color: var(--cd-blue); }
@media (max-width: 767.98px) {
  .partner-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Contact us: /contact — ways to reach us, then the form with the counsellor card beside it */
.contact-ways { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 270px)); gap: 12px; padding-top: 20px; }
/* Compact card: icon on the left, label / value / hint on the right */
.contact-way {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--cd-line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: var(--cd-ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.contact-way:hover { border-color: var(--cd-blue); color: var(--cd-ink); box-shadow: var(--cd-shadow-hover); transform: translateY(-1px); }
.contact-way:focus-visible { outline: 3px solid var(--cd-focus); outline-offset: 2px; }
.contact-way-icon { display: grid; grid-row: 1 / span 3; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
.contact-way-icon.is-call { background: var(--cd-blue-25); color: var(--cd-blue); }
.contact-way-icon.is-whatsapp { background: #e8f7ee; color: #1ea952; }
.contact-way-icon.is-email { background: #f3edfd; color: #6f29e5; }
.contact-way-icon.is-office { background: #fff1e6; color: #de6000; }
.contact-way-label { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--cd-ink-weak); }
.contact-way strong { font-size: 15px; line-height: 21px; font-weight: 600; overflow-wrap: anywhere; }
.contact-way strong.contact-way-address { font-size: 14px; line-height: 20px; }
.contact-way-hint { font-size: 12px; line-height: 16px; color: var(--cd-ink-weak); }
.contact-layout { margin-top: 8px; }

.contact-promises { display: grid; gap: 8px; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--cd-line); list-style: none; text-align: left; }
.contact-promises li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 20px; color: var(--cd-ink-weak); }
.contact-promises .bi { margin-top: 1px; font-size: 16px; color: #1f9d55; }
.contact-partner { margin-top: 16px; }
.contact-partner h2 { margin: 0 0 4px; font-size: 16px; line-height: 22px; font-weight: 600; }
.contact-partner p { margin: 0 0 12px; font-size: 14px; color: var(--cd-ink-weak); }

@media (prefers-reduced-motion: reduce) {
  .contact-way { transition: none; }
  .contact-way:hover { transform: none; }
}

/* About us: /about-us — live numbers, what we do (cards), how we help (steps), then a call to action */
.about-glance { margin-top: 20px; }
.about-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.about-feature { display: flex; flex-direction: column; min-width: 0; padding: 18px; border: 1px solid var(--cd-line); border-radius: 14px; background: #fff; }
.about-feature-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 10px; background: var(--cd-blue-25); font-size: 18px; color: var(--cd-blue); }
.about-feature h3 { margin: 0 0 4px; font-size: 16px; line-height: 22px; font-weight: 600; }
.about-feature p { flex: 1; margin: 0 0 12px; font-size: 14px; line-height: 20px; color: var(--cd-ink-weak); }
.about-feature a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.about-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.about-steps li { display: flex; gap: 14px; align-items: flex-start; }
.about-step-num { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cd-blue); font-size: 14px; font-weight: 600; color: #fff; }
.about-steps b { display: block; font-size: 16px; line-height: 22px; }
.about-steps p { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--cd-ink-weak); }
.about-cta-section { padding-bottom: 32px; }
.about-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--cd-blue-25); }
.about-cta h2 { margin: 0 0 4px; font-size: 20px; line-height: 26px; font-weight: 600; }
.about-cta p { margin: 0; font-size: 14px; line-height: 20px; color: var(--cd-ink-weak); }
.about-cta-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 575.98px) {
  .about-features { grid-template-columns: minmax(0, 1fr); }
  .about-cta-actions,
  .about-cta-actions .btn-cd { width: 100%; justify-content: center; }
}

/* Blog: /blog (cards) and /blog/{slug} (article) */
.blog-list { padding-top: 24px; padding-bottom: 32px; }
.blog-list .results-count { margin: 0 0 16px; }
.blog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } /* 4 in a row */
.blog-card { min-width: 0; }
.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--cd-line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: var(--cd-ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.blog-card-link:hover { border-color: var(--cd-blue); color: var(--cd-ink); box-shadow: var(--cd-shadow-hover); transform: translateY(-2px); }
.blog-card-link:focus-visible { outline: 3px solid var(--cd-focus); outline-offset: 2px; }
.blog-card-cover { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); font-size: 40px; color: rgba(255, 255, 255, .9); }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0; font-size: 13px; color: var(--cd-ink-weak); }
.blog-meta span { display: inline-flex; align-items: center; gap: 6px; }
.blog-card-body .blog-meta { gap: 4px; }
.blog-card-title { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-text { font-size: 14px; line-height: 20px; color: var(--cd-ink-weak); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--cd-blue); }

/* One post, WordPress-style: article on the left, sidebar (search, recent, help) on the right */
.blog-single { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; padding: 24px 0 48px; }
.blog-article { min-width: 0; padding-right: 0; }
/* Wide screens: the sidebar sits close to the right edge (container keeps 8px instead of 48px there) */
@media (min-width: 992px) {
  .blog-single { margin-right: -40px; }
}
/* Very wide screens have empty space outside the 1440px container: use some of it for the sidebar */
@media (min-width: 1520px) {
  .blog-single { margin-right: -80px; }
}
.blog-article-head { margin: 20px 0 24px; }
.blog-eyebrow { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 100px; background: var(--cd-blue-25); font-size: 13px; font-weight: 600; text-decoration: none; color: var(--cd-blue); }
.blog-eyebrow:hover { background: var(--cd-blue-50, #e3ecfb); color: var(--cd-blue-hover); }
.blog-article-head h1 { margin: 0; font-size: 36px; line-height: 46px; font-weight: 600; letter-spacing: -.015em; color: var(--cd-ink); }
.blog-lead { margin: 12px 0 0; font-size: 20px; line-height: 30px; color: var(--cd-ink-weak); }
.blog-byline { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--cd-line); }
.blog-byline-text { display: flex; flex-direction: column; font-size: 14px; line-height: 20px; color: var(--cd-ink-weak); }
.blog-byline-text strong { font-size: 15px; color: var(--cd-ink); }
.blog-author-avatar { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #2470b8, #6fa9e0); font-size: 15px; font-weight: 700; color: #fff; }
.blog-author-avatar.lg { width: 64px; height: 64px; font-size: 22px; }
img.blog-author-avatar { padding: 0; object-fit: cover; background: var(--cd-bg-weak); }
.blog-author-box { align-items: center; }

.blog-cover { display: block; width: 100%; height: auto; margin: 0 0 8px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }

/* Post text: comfortable reading size, spacing and pictures that fit the column */
.blog-content { padding: 16px 0 8px; font-size: 18px; line-height: 1.75; color: #1f2733; overflow-wrap: break-word; }
.blog-content > * { margin: 0 0 22px; }
.blog-content > :last-child { margin-bottom: 0; }
.blog-content h2 { margin-top: 40px; font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -.01em; color: var(--cd-ink); }
.blog-content h3 { margin-top: 28px; font-size: 22px; line-height: 30px; font-weight: 600; color: var(--cd-ink); }
.blog-content ul,
.blog-content ol { padding-left: 26px; }
.blog-content li { padding-left: 4px; }
.blog-content li + li { margin-top: 8px; }
.blog-content li::marker { color: var(--cd-blue); }
.blog-content a { color: var(--cd-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.blog-content a:hover { color: var(--cd-blue-hover); }
.blog-content blockquote { padding: 16px 24px; border-left: 4px solid var(--cd-blue); border-radius: 0 12px 12px 0; background: var(--cd-blue-25); font-size: 19px; font-style: italic; color: var(--cd-ink); }
.blog-content img { display: block; max-width: 100%; height: auto; margin: 28px auto; border: 1px solid var(--cd-line); border-radius: 12px; box-shadow: 0 12px 28px -18px rgba(0, 36, 87, .35); }
.blog-content p > img:first-child:last-child { margin-block: 8px; }

.blog-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; padding: 20px 0; border-block: 1px solid var(--cd-line); font-size: 14px; font-weight: 600; color: var(--cd-ink-weak); }
.blog-share span { margin-right: 4px; }
.blog-share a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 16px; color: #fff; text-decoration: none; transition: transform .15s, opacity .15s; }
.blog-share a:hover { color: #fff; opacity: .9; transform: translateY(-1px); }
.blog-share .is-whatsapp { background: #1ea952; }
.blog-share .is-facebook { background: #1877f2; }
.blog-share .is-linkedin { background: #0a66c2; }
.blog-share .is-x { background: #0d0f12; }

.blog-author-box { display: flex; gap: 16px; margin-top: 24px; padding: 20px; border-radius: 16px; background: var(--cd-bg-weak); }
.blog-author-box strong { display: block; font-size: 17px; color: var(--cd-ink); }
.blog-author-box p { margin: 6px 0 0; font-size: 14px; line-height: 21px; color: var(--cd-ink-weak); }
.blog-author-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cd-ink-weak); }

/* Sidebar: the Request More Information card */
.blog-sidebar { position: sticky; top: calc(var(--hdr-h) + 16px); display: grid; gap: 16px; padding-top: 44px; }
.blog-widget { padding: 18px; border: 1px solid var(--cd-line); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(13, 15, 18, .04), 0 10px 24px -20px rgba(0, 36, 87, .35); }

/* "Request More Information" form (like Simplilearn): underline inputs, consent tick, full-width button */
.lead-card { padding: 24px 20px 20px; border: 1px solid var(--cd-line); border-radius: 14px; background: #fff; box-shadow: 0 2px 4px rgba(13, 15, 18, .04), 0 18px 36px -22px rgba(0, 36, 87, .4); }
.lead-card .contact-promises { margin-top: 16px; }
.lead-card .blog-lead-title, .blog-lead-title { margin: 0 0 12px; font-size: 20px; line-height: 28px; font-weight: 600; text-align: center; color: var(--cd-ink); }
.lead-input { display: block; width: 100%; height: 48px; padding: 14px 0 6px; border: 0; border-bottom: 1px solid var(--cd-line-strong); border-radius: 0; outline: 0; background: transparent; font-size: 15px; color: var(--cd-ink); transition: border-color .15s, box-shadow .15s; }
.lead-input::placeholder { color: #6b778c; }
.lead-input:focus { border-bottom-color: var(--cd-blue); box-shadow: 0 1px 0 var(--cd-blue); }
.lead-phone { display: flex; align-items: flex-end; gap: 10px; }
.lead-phone > span { flex: none; padding: 0 10px 7px 0; border-bottom: 1px solid var(--cd-line-strong); font-size: 15px; color: var(--cd-ink-weak); }
.lead-phone > span b { margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--cd-line); font-weight: 500; color: var(--cd-ink); }
.lead-phone .lead-input { flex: 1; min-width: 0; }
.lead-consent { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 18px; font-size: 12px; line-height: 18px; color: var(--cd-ink-weak); cursor: pointer; }
.lead-consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--cd-blue); }
.lead-submit { display: block; width: 100%; height: 48px; border: 0; border-radius: 8px; background: var(--cd-blue); font-size: 16px; font-weight: 600; color: #fff; transition: background-color .15s; }
.lead-submit:hover { background: var(--cd-blue-hover); }
.lead-submit:focus-visible { outline: 3px solid var(--cd-focus); outline-offset: 2px; }
.lead-call { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--cd-ink-weak); }
.lead-call:hover { color: var(--cd-blue); }

@media (max-width: 1199.98px) {
  .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blog-single { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 991.98px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-single { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .blog-article { max-width: none; }
  .blog-sidebar { position: static; padding-top: 32px; }
  .blog-article-head h1 { font-size: 32px; line-height: 40px; }
}
@media (max-width: 575.98px) {
  .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-article-head h1 { font-size: 27px; line-height: 34px; }
  .blog-lead { font-size: 17px; line-height: 26px; }
  .blog-content { font-size: 17px; }
  .blog-content h2 { font-size: 23px; line-height: 31px; }
  .blog-content h3 { font-size: 19px; line-height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card-link,
  .blog-share a { transition: none; }
  .blog-card-link:hover,
  .blog-share a:hover { transform: none; }
}

/* Request More Information card always stays in view while scrolling (sticky). If the screen is too short
   for the whole card, the card scrolls inside itself, so its bottom is never hidden. */
@media (min-width: 992px) {
  .side-sticky:has(.lead-card) {
    top: calc(var(--hdr-h) + 64px);
    max-height: calc(100vh - var(--hdr-h) - 80px);
    overflow-y: auto;
    padding: 0 6px 12px 0; /* room for the card shadow */
    scrollbar-width: thin;
  }
}
/* Compact form so the whole card usually fits on screen */
.lead-card { padding: 20px 18px 16px; }
.lead-card .blog-lead-title { margin-bottom: 6px; font-size: 18px; line-height: 24px; }
.lead-card .lead-input { height: 42px; padding-top: 10px; font-size: 14px; }
.lead-card .lead-phone > span { padding-bottom: 6px; font-size: 14px; }
.lead-card .lead-consent { margin: 14px 0 12px; font-size: 11.5px; line-height: 16px; }
.lead-card .lead-submit { height: 42px; font-size: 15px; }
.lead-card .lead-call { margin-top: 10px; }
.lead-card .lead-points { margin-top: 12px; padding-top: 12px; }
.lead-card .includes { gap: 7px; font-size: 13px; line-height: 18px; }
.lead-card .contact-promises { margin-top: 12px; padding-top: 12px; gap: 6px; }
.lead-card .contact-promises li { font-size: 13px; line-height: 18px; }
.lead-points { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--cd-line); }
.lead-note { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--cd-ink); }
.lead-points .includes { margin: 0; }

/* HTML sitemap: /sitemap */
.sitemap-page { padding-top: 24px; padding-bottom: 48px; }
.sitemap-group + .sitemap-group { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--cd-line); }
.sitemap-group h2 { margin: 0 0 12px; font-size: 20px; line-height: 26px; font-weight: 600; }
.sitemap-group h2 span { font-size: 15px; font-weight: 400; color: var(--cd-ink-weak); }
.sitemap-group h3 { margin: 16px 0 8px; font-size: 15px; line-height: 20px; font-weight: 600; }
.sitemap-group h3 a { color: var(--cd-ink); text-decoration: none; }
.sitemap-group h3 a:hover { color: var(--cd-blue); text-decoration: underline; }
.sitemap-list { columns: 3 240px; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.sitemap-list li { break-inside: avoid; padding: 3px 0; font-size: 14px; line-height: 20px; }
.sitemap-list a { color: var(--cd-ink); text-decoration: none; }
.sitemap-list a:hover { color: var(--cd-blue); text-decoration: underline; }
