/* ==========================================================================
   home-sections.css — the newer Home page section: universities. Home page only.
   index.html loads it right after css/pages/home.css, so nothing needs to be copied or pasted.
   All class names start with "hm-", so none of the older rules in home.css are affected.

   What it styles:
     .hm-unis    "Where our students study": the spotlight university (.hm-spot) + four university cards (.hm-uni)
     .hm-link    the "Every university we recommend" link: top-right on computers, full-width button under the cards on phones

   The destination tiles ("Explore top destinations") are NOT here any more: since Nov 2026 the Home page uses the
   same photo tiles as the Countries page (.dx-tile), which live in css/components.css.
   ========================================================================== */

/* ---------- Section heading with a link on the right (computers) ---------- */
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); }
.hm-head .section-head { margin-bottom: 0; }
.hm-link--top { display: none; }
.hm-link--bottom { display: flex; width: 100%; margin-top: var(--sp-4); }
.hm-head + * { margin-top: var(--sp-5); }

/* ================= SPOTLIGHT UNIVERSITY (.hm-spot) ================= */
.hm-spot { overflow: hidden; display: grid; margin-bottom: var(--sp-4); box-shadow: var(--shadow-md); }
.hm-spot .img-slot { --ratio: 16 / 10; border-radius: 0; }
.hm-spot__body { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5) var(--sp-4); }
.hm-spot__kicker { display: inline-flex; align-items: center; gap: .4rem; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--color-blue-light); }
.hm-spot__kicker .icon { width: 14px; height: 14px; }
.hm-spot h3 { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.7rem); line-height: 1.18; letter-spacing: -.02em; }
.hm-spot__lead { font-size: var(--fs-sm); line-height: 1.65; color: var(--color-text-muted); }
.hm-spot__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.hm-spot__chips li { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .65rem; border-radius: 999px; background: var(--color-wash); font-size: .7rem; font-weight: 700; color: var(--color-primary); }
.hm-spot__chips .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.hm-spot__stats { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); }
.hm-spot__stats > div { min-width: 0; padding: var(--sp-3); }
.hm-spot__stats > div + div { border-left: 1px solid var(--color-border); }
.hm-spot__stats b { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.hm-spot__stats span { display: block; margin-top: .2rem; font-size: .64rem; line-height: 1.35; color: var(--color-text-muted); }

/* Two buttons used on the spotlight and on every university card: fees on WhatsApp + the guide (or the university's own page) */
.hm-acts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.hm-acts .btn { min-width: 0; padding: 0 .6rem; }
.hm-acts .icon--fill { width: 17px; height: 17px; }
.btn:hover .icon--fill { transform: none; }

/* ================= UNIVERSITY CARDS (.hm-uni) ================= */
.hm-unis > * { flex-basis: 82%; }
.hm-uni { overflow: hidden; display: flex; flex-direction: column; }
.hm-uni .img-slot { --ratio: 16 / 10; border-radius: 0; }
.hm-uni__body { display: flex; flex-direction: column; flex: 1; padding: var(--sp-4); }
.hm-uni__place { display: flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; color: var(--color-text-muted); }
.hm-uni__place .icon { width: 13px; height: 13px; color: var(--color-blue-light); }
/* Name and fact take a fixed two lines each, and every card has a fee block, so all cards line up */
.hm-uni h3 { margin-top: .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; font-size: 1.02rem; line-height: 1.25; }
.hm-uni__fact { margin-top: .35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; font-size: var(--fs-xs); line-height: 1.5; color: var(--color-text-muted); }
.hm-uni__fee { display: grid; gap: .05rem; margin-top: var(--sp-3); padding: .65rem .8rem; border-radius: var(--radius-md); background: var(--color-wash); }
.hm-uni__fee small { font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); }
.hm-uni__fee b { font-size: 1.1rem; font-weight: 800; line-height: 1.2; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.hm-uni__fee span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .68rem; color: var(--color-text-muted); }
.hm-uni .hm-acts { margin-top: auto; padding-top: var(--sp-4); }

/* ================= TABLET & DESKTOP ================= */
@media (min-width: 768px) {
  .hm-link--top { display: inline-flex; flex-shrink: 0; }
  .hm-link--bottom { display: none; }
  .hm-unis > * { flex-basis: auto; }
  .hm-spot { grid-template-columns: 1fr 1.1fr; }
  .hm-spot .img-slot { --ratio: auto; height: 100%; min-height: 320px; }
  .hm-spot__body { padding: var(--sp-5); }
  .hm-spot .hm-acts { max-width: 400px; }
}
@media (min-width: 1024px) {
  .hm-unis { gap: var(--sp-4); }
  .hm-spot { margin-bottom: var(--sp-5); grid-template-columns: 1.05fr 1fr; }
  .hm-spot__body { padding: var(--sp-6); gap: var(--sp-4); }
  .hm-spot__stats > div { padding: var(--sp-3) var(--sp-4); }
  .hm-spot__stats b { font-size: 1.2rem; }
}
