/* ==========================================================================
   EduNav — index.html page stylesheet
   --------------------------------------------------------------------------
   Loaded AFTER assets/css/style.css. Nothing here duplicates a class the main
   stylesheet already defines — every selector below is either a genuinely new
   homepage component (prefixed `.home-`) or a `.home-*` scoped override of an
   existing grid. No `style=""`, no `all: unset`, no new colour literals outside
   the token set in DESIGN-SPEC.md § 2 — except the hero's, which are the
   owner's mockup's own and are declared once, as custom properties, in 01.

   01  Hero                    .hero*      — the owner's three-card mockup
   01a What parents look for   .home-pick*  — ready-made searches under the hero
   01b News front              .home-news* — lead, two picks, a list, a row
   03  Map search banner       .home-map-pin — the banner is .banner-dark
   04  Vacancy cards           .home-vac*
   05  Photo slots             .home-ann-thumb
   06  Media queries
   07  Reduced motion

   Block 02 is kept deliberately. The AI banner was removed from the homepage,
   not rewritten, so the rules are the way back if it returns; the same is true
   of `.marquee*` in style.css, which held the partner tape. Both are dead
   bytes on every homepage load until somebody decides one way or the other.
   ========================================================================== */


/* ==========================================================================
   01  HERO  —  the owner's mockup
   --------------------------------------------------------------------------
   Left: a pill, the headline with its rotating gold word, one sentence, one
   link. Right: three cards stacked — schools, kindergartens, vacancies — the
   words on the left of each and its photo on the right, fading in along a
   curve. No figures: the mockup's 320+ / 120+ / 15K row was left out at the
   owner's word.

   The colours were measured off the mockup and are the hero's alone: a
   quieter gold than --brand-word for the headline's word, the cream of the
   school and nursery cards, the violet of the vacancies one.
   ========================================================================== */

/* On :root, not .hero-bg: the hero's colours are free to the rest of the
   page. This sheet is the homepage's alone. */
/* --hh-text and --hh-gold each a step darker than the mockup's: the lead
   under the headline measured 4.49:1 on the cream (4.5 needed) and the
   rotating gold word 2.70 (3 needed for 56px). Now 4.55 and 3.03. */
:root {
  --hh-ink: #0B0D1E;
  --hh-text: #737289;
  --hh-gold: #AA903B;
  --hh-gold-ink: #A0832F;
  --hh-cream: #FAF2D3;
  --hh-cream-2: #F6ECC4;
  --hh-violet: #4E41B0;
  --hh-violet-soft: #DAD6FB;
}

/* The news front wears the hero's ground too (.home-front): the owner had
   it made the page's hero when it moved to the top. */
.hero-bg,
.home-front {
  position: relative;
  overflow: hidden;
  background: #FDFCF9;
}
/* The dotted field in the top right corner, as in the mockup. */
.hero-bg::before,
.home-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 20, 32, .17) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(55% 60% at 100% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(55% 60% at 100% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero { position: relative; padding: 56px 0 64px; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: center;
}

.hero-copy { min-width: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 9px 18px 9px 13px;
  border-radius: var(--r-pill);
  background: #F6F3E6;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #4A4860;
}
.hero-eyebrow svg { flex: none; color: var(--hh-gold); }

/* 70px was the mockup's size and outweighed the cards beside it; the owner
   had it brought down to sit level with them. */
.hero-title {
  margin: 24px 0 0;
  font-family: var(--font-head);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.04em;
  color: var(--hh-ink);
}
.hero-word { display: inline-block; color: var(--hh-gold); white-space: nowrap; }
/* app.js (HeroWord) swaps the word's text and sets .is-anim to replay its
   entrance; the word is a line of its own, so nothing reflows around it. */
.hero-word.is-anim { animation: edu-word-in .55s var(--ease) both; }

.hero-lead {
  max-width: 440px;
  margin: 22px 0 0;
  font-family: var(--font-body);
  font-size: clamp(15.5px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--hh-text);
}

/* «Seçimləri kəşf et»: a link, not a button — bold, an arrow, and the short
   gold rule under it that runs the link's width on hover. */
.hero-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-bottom: 11px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1;
  color: var(--hh-ink);
}
.hero-more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--hh-gold);
  transition: width .25s var(--ease);
}
.hero-more:hover::after { width: 100%; }
.hero-more svg { flex: none; transition: transform .2s var(--ease); }
.hero-more:hover svg { transform: translateX(4px); }
.hero-more:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }

/* --- the three cards -------------------------------------------------------
   One row each — icon, the words, the round arrow — over the photo on the
   right, under a curved mask that is wider at the foot, as the mockup draws
   it. The mockup stacked the arrow under the icon and put a kicker over the
   title; the owner found the cards too tall, so both moved out of the way:
   the arrow to the row's end, on the photo, and the kicker out entirely.
   Then too small beside the headline: ~125px now, the line under the title
   on two lines, so the three stand as tall as the column of words opposite.
   The words sit above the photo (z-index) and are kept off most of it. */
/* Equal rows: where one card's line wraps and another's does not, all three
   take the taller height rather than three different ones. */
.hero-cards { display: grid; grid-auto-rows: 1fr; gap: 16px; min-width: 0; }

.hero-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 46px;
  grid-template-areas: "icon body go";
  align-items: center;
  column-gap: 20px;
  padding: 24px 24px 24px 26px;
  border: 1px solid rgba(15, 20, 32, .05);
  border-radius: 20px;
  background: linear-gradient(135deg, #FEFDF9 0%, #FAF7EE 100%);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(60, 50, 20, .04), 0 18px 40px -26px rgba(60, 50, 20, .3);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(60, 50, 20, .05), 0 26px 50px -28px rgba(60, 50, 20, .38);
}
.hero-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hero-card--kg  { background: linear-gradient(135deg, #FCFBF2 0%, #F8F3E0 100%); }
.hero-card--job { background: linear-gradient(135deg, #FCFBF9 35%, #EFEDFB 100%); }

/* From just past the words to the card's edge, whatever the card's width — a
   share of the width put the picture under the words whenever it narrowed. */
.hero-card-photo {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  /* A width, not left + right: an <img> keeps its width attribute's size
     however both sides are pinned. */
  width: calc(100% - 360px);
  height: 100%;
  object-fit: cover;
  object-position: right center;
  -webkit-mask-image: radial-gradient(120% 160% at 100% 100%, #000 58%, transparent 83%);
  mask-image: radial-gradient(120% 160% at 100% 100%, #000 58%, transparent 83%);
  transition: transform .5s var(--ease);
  transform-origin: right center;
}
.hero-card:hover .hero-card-photo { transform: scale(1.03); }

.hero-card-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--hh-cream);
  color: var(--hh-gold-ink);
}
.hero-card-icon svg { width: 24px; height: 24px; }
.hero-card--job .hero-card-icon { background: var(--hh-violet-soft); color: var(--hh-violet); }

/* On the photo now, so white rather than the card's cream: it has to read
   against grey, gold and violet alike. */
.hero-card-go {
  grid-area: go;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--hh-ink);
  box-shadow: 0 6px 16px -8px rgba(15, 20, 32, .45);
  transition: transform .2s var(--ease);
}
.hero-card:hover .hero-card-go { transform: translateX(3px); }
.hero-card--job .hero-card-go { color: var(--hh-violet); }

.hero-card-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 280px;
}
.hero-card-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--hh-ink);
}
.hero-card-sub {
  max-width: 27ch;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--hh-text);
  text-wrap: pretty;
}

@media (max-width: 1024px) {
  .hero { padding: 48px 0 56px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-copy { max-width: 640px; }
}
@media (max-width: 560px) {
  .hero { padding: 30px 0 40px; }
  .hero-inner { gap: 32px; }
  .hero-eyebrow { gap: 10px; padding: 9px 16px 9px 12px; font-size: 10.5px; letter-spacing: .16em; }
  .hero-title { margin-top: 20px; font-size: clamp(32px, 9.4vw, 42px); }
  /* The longest word fills a phone's line; let it break before it overflows. */
  .hero-word { white-space: normal; }
  .hero-lead { margin-top: 18px; font-size: 15.5px; }
  .hero-more { margin-top: 24px; }

  .hero-cards { gap: 12px; }
  .hero-card {
    grid-template-columns: 44px minmax(0, 1fr) 38px;
    column-gap: 14px;
    padding: 18px 16px 18px 18px;
    border-radius: 16px;
  }
  .hero-card-icon { width: 44px; height: 44px; border-radius: 13px; }
  .hero-card-icon svg { width: 21px; height: 21px; }
  .hero-card-go { width: 38px; height: 38px; }
  .hero-card-go svg { width: 16px; height: 16px; }
  /* A phone's card has no room for the line under the title beside a
     picture — it ran onto the photo — so the card is the title alone; the
     sentence above the cards says what the line said. */
  .hero-card-photo { width: 40%; }
  /* «Vakansiyalarla tanış ol» breaks in two rather than run onto the photo;
     two lines are still no taller than the icon. */
  .hero-card-body { max-width: 150px; }
  .hero-card-title { font-size: 17px; }
  .hero-card-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-card:hover,
  .hero-card:hover .hero-card-go,
  .hero-card:hover .hero-card-photo,
  .hero-more:hover svg { transform: none; }
}


/* ==========================================================================
   01a  WHAT PARENTS LOOK FOR  —  ready-made searches under the hero
   --------------------------------------------------------------------------
   A centred heading over an even grid of tiles on the hero's #FDFCF9, each
   opening the catalogue with a filter set (SiteQuery::PICKS). Was a cloud of
   chips of every width; the owner wanted it tidier, so every tile is the
   same size, the grid runs the hero's width and lines up with its edges —
   four across, three on a tablet, two on a phone. The icon's ground says
   which half a tile opens: cream for schools, violet for kindergartens, ink
   for the map, in the hero cards' colours.
   ========================================================================== */

/* The band opens the hero's cream ground: the owner had it moved from
   under the hero to over it. A section's room is its top padding only, so
   on a ground of its own the band first keeps that much white above it —
   without it the cream met the journal's cards at their bottom edge — then
   opens a little tighter inside, and keeps nothing below: the hero's top
   padding is the gap between the two. It used to keep 8px above and 72px
   below for the hero it followed. */
.section.home-picks { margin-top: 64px; padding-top: 56px; background: #FDFCF9; }

.home-picks-title {
  margin: 0 0 24px;
  font-family: var(--font-head);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-align: center;
  color: var(--hh-ink);
}
.home-picks-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-picks-list li { display: flex; min-width: 0; }
.home-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(15, 20, 32, .07);
  border-radius: 14px;
  background: #fff;
  color: var(--hh-ink);
  box-shadow: 0 1px 2px rgba(60, 50, 20, .04), 0 10px 22px -18px rgba(60, 50, 20, .3);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.home-pick:hover {
  transform: translateY(-2px);
  border-color: rgba(181, 153, 63, .45);
  box-shadow: 0 1px 2px rgba(60, 50, 20, .05), 0 16px 30px -20px rgba(60, 50, 20, .42);
}
.home-pick:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.home-pick-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--hh-cream);
  color: var(--hh-gold-ink);
}
.home-pick--kg .home-pick-ico  { background: var(--hh-violet-soft); color: var(--hh-violet); }
.home-pick--map .home-pick-ico { background: var(--hh-ink); color: #fff; }
.home-pick-label {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}
.home-pick-go {
  flex: none;
  color: var(--muted-3);
  transition: transform .2s var(--ease), color .2s var(--ease);
}
.home-pick:hover .home-pick-go { transform: translateX(3px); color: var(--hh-ink); }

@media (max-width: 1024px) {
  .home-picks-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .section.home-picks { margin-top: 40px; padding-top: 36px; }
  .home-picks-title { margin-bottom: 16px; }
  .home-picks-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-pick { gap: 10px; min-height: 56px; padding: 9px 10px 9px 9px; }
  .home-pick-ico { width: 34px; height: 34px; border-radius: 10px; }
  .home-pick-label { font-size: 13.5px; }
  .home-pick-go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-pick:hover,
  .home-pick:hover .home-pick-go { transform: none; }
}


/* ==========================================================================
   01b  NEWS  —  a front page rather than a row of four
   --------------------------------------------------------------------------
   The owner asked for the block to be more interesting and to carry more.
   The lead story large, its picture behind the headline on a dark veil; two
   picks beside it — the listing's .ntile, headline and date only — «Ən çox
   oxunanlar» in the third column, ranked, no pictures; and under all three a
   row of four of the listing's cards (.home-news-more). The topic chips that
   stood over it came off at the owner's word.
   ========================================================================== */

.home-news {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "lead picks list";
  gap: 22px;
}
.home-news--no-list { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); grid-template-areas: "lead picks"; }

/* --- the lead ------------------------------------------------------------- */
.home-news-lead {
  grid-area: lead;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #fff;
}
.home-news-lead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 20, 32, 0) 28%, rgba(15, 20, 32, .55) 58%, rgba(15, 20, 32, .93) 100%);
}
.home-news-lead-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.home-news-lead:hover .home-news-lead-img { transform: scale(1.04); }
.home-news-lead:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.home-news-lead-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px;
}
/* The listing's label, standing in the column here rather than on a photo. */
.home-news-lead .ntile-cat { position: static; }
.home-news-lead-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: #fff;
  text-wrap: balance;
}
.home-news-lead-text {
  display: -webkit-box;
  max-width: 52ch;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .8);
}
.home-news-lead-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
}

/* --- the two picks -------------------------------------------------------- */
.home-news-picks { grid-area: picks; display: grid; grid-auto-rows: 1fr; gap: 22px; min-width: 0; }
/* Out of the flow, so the frame keeps its 16:9: in it, the picture's own
   236px height stretched the frame past the ratio. */
.home-news-pick .ntile-shot { overflow: hidden; }
.home-news-pick .ntile-img { position: absolute; inset: 0; }
.home-news-pick .ntile-body { gap: 10px; }
.home-news-pick .ntile-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.home-news-date {
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

/* --- the list ------------------------------------------------------------- */
.home-news-list {
  grid-area: list;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
/* Today's date and the clock, over the wire's name, ruled off from it. */
.home-news-now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-2);
}
.home-news-today { min-width: 0; }
.home-news-clock {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.home-news-clock svg { color: var(--brand-dark); }
.home-news-list-head {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.home-news-rows { margin: 0; padding: 0; list-style: none; }
.home-news-rows li + li { border-top: 1px solid var(--line); }
/* The hour in a column of its own beside the words, a wire as news sites set
   it; a story from another day has its day under the hour. */
.home-news-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; }
.home-news-time {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  padding-top: 1px;
}
.home-news-hour {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--brand-dark);
}
.home-news-day {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
}
.home-news-row-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.home-news-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.home-news-row-cat {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
}
.home-news-row-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -.012em;
  color: var(--ink);
  transition: color .16s var(--ease);
}
.home-news-row:hover .home-news-row-title { color: var(--brand-dark); }
/* At the list's foot, wherever that falls in a column as tall as the lead. */
.home-news-all { align-self: flex-start; margin-top: auto; padding-top: 12px; }

/* --- news by category (01b) ---------------------------------------------- */
/* Three columns of three, the «Son xəbərlər» box's own vocabulary — a
   framed box, a quiet head, rows ruled apart — with a picture where the rank
   was. White, as the vacancy cards on the same ground below. */
.home-cats {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 22px;
}
.home-cats-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 22px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}
.home-cats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
}
.home-cats-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--ink);
}
.home-cats-all { flex: none; font-size: 13px; }
.home-cats-rows { margin: 0; padding: 0; list-style: none; }
.home-cats-rows li + li { border-top: 1px solid var(--line); }
.home-cats-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.home-cats-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.home-cats-thumb {
  position: relative;
  flex: none;
  width: 96px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.home-cats-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-cats-mono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.home-cats-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.home-cats-row-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -.01em;
  color: var(--ink);
  transition: color .16s var(--ease);
}
.home-cats-row:hover .home-cats-row-title { color: var(--brand-dark); }
.home-cats-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
}
.home-cats-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.home-cats-meta svg { flex: none; }

/* --- the front as the page's hero ----------------------------------------- */
/* Straight under the header, as the hero was: the section's own top room
   goes, and the band keeps its own inside. The container is lifted over
   the dotted field, which would otherwise be drawn across the pictures. */
.section.home-front-sec { padding-top: 0; }
.home-front { padding: 40px 0 48px; }
.home-front > .container { position: relative; }

/* --- the row of cards under the front ------------------------------------- */
/* On the band, one gap under the front: the same 22px that stands between
   the two picks and between the columns. The owner tried it 88px off the
   band, then asked for the two measures to be one. */
.home-news-more { gap: 22px; margin-top: 22px; }
/* The picks' frame rule: the picture out of the flow keeps the frame 16:9. */
.home-news-more .ntile-shot { overflow: hidden; }
.home-news-more .ntile-img { position: absolute; inset: 0; }

@media (max-width: 1024px) {
  /* Three columns of three would leave a headline a hand's width: one
     column, the boxes stacked. */
  .home-cats { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-news { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "lead lead" "picks list"; }
  .home-news--no-list { grid-template-areas: "lead lead" "picks picks"; }
  .home-news-lead { min-height: 380px; }
  .home-front { padding: 32px 0 40px; }
  /* Two by two: the shared .grid-4 goes to three here, which left one over. */
  .grid-4.home-news-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .home-cats-col { padding: 14px 16px 4px; }
  .home-cats-thumb { width: 84px; }
  .home-news { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead" "picks" "list"; gap: 14px; }
  .home-news--no-list { grid-template-areas: "lead" "picks"; }
  .home-news-lead { min-height: 340px; border-radius: var(--r-lg); }
  .home-news-lead-body { gap: 10px; padding: 20px; }
  /* Two small cards side by side rather than two full-width ones. */
  .home-news-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 12px; }
  .home-news-pick .ntile-shot { aspect-ratio: 4 / 3; }
  .home-news-pick .ntile-body { padding: 12px 12px 13px; }
  .home-news-pick .ntile-title { font-size: 14px; -webkit-line-clamp: 3; }
  .home-news-pick .ntile-cat { left: 8px; bottom: 8px; }
  .home-news-date { font-size: 11.5px; }
  .home-news-list { padding: 16px 16px 6px; }
  /* As the picks: two small cards a row. */
  .home-front { padding: 20px 0 28px; }
  .grid-4.home-news-more { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
  .home-news-more .ntile-shot { aspect-ratio: 4 / 3; }
  .home-news-more .ntile-body { padding: 12px 12px 13px; }
  .home-news-more .ntile-title { font-size: 14px; }
  .home-news-more .ntile-cat { left: 8px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-news-lead:hover .home-news-lead-img { transform: none; }
}


/* ==========================================================================
   03  MAP SEARCH BANNER
   --------------------------------------------------------------------------
   Was a brand-yellow strip with a map drawing. At the owner's word it now
   wears the promo banner's .banner-dark, whose rules live in style.css; the
   one part of its own is the pin in front of the copy — the catalogue map's
   teardrop, in brand yellow, on a ring lit like the banner's glow. It lifts
   a little when the banner does.
   ========================================================================== */

.home-map-pin {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(255, 198, 41, .26) 0%, rgba(255, 198, 41, .07) 62%, rgba(255, 198, 41, 0) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 198, 41, .30);
}
/* A second, fainter ring — the «you are here» ripple, standing still. */
.home-map-pin::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 198, 41, .14);
}
.home-map-pin svg {
  display: block;
  width: 40px;
  height: 50px;
  margin-top: 4px;
  overflow: visible;
}
.home-map-pin-drop   { fill: var(--brand); }
.home-map-pin-dot    { fill: var(--ink-2); }
.home-map-pin-shadow { fill: rgba(0, 0, 0, .38); transition: opacity .22s var(--ease); }
.home-map-pin-drop,
.home-map-pin-dot    { transition: transform .22s var(--ease); }
/* The drop lifts off its shadow, which stays on the ground and pales. */
.banner-dark:hover .home-map-pin-drop,
.banner-dark:hover .home-map-pin-dot { transform: translateY(-2px); }
.banner-dark:hover .home-map-pin-shadow { opacity: .55; }

@media (prefers-reduced-motion: reduce) {
  .banner-dark:hover .home-map-pin-drop,
  .banner-dark:hover .home-map-pin-dot { transform: none; }
}



/* ==========================================================================
   04  VACANCY CARDS
   --------------------------------------------------------------------------
   The reference shows four vacancies side by side instead of four rows. Same
   payload as `.vac-row` (vəzifə · müəssisə · rayon · maaş · ştat · Müraciət et)
   and the ink-block/brand-number signature the hero's old vacancy strip had.
   `.vac-icon` and its colour variants are reused
   from the main stylesheet — only the card shell is new.
   ========================================================================== */

.home-vac {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.home-vac:hover {
  border-color: var(--line-5);
  box-shadow: var(--sh-2);
  transform: translateY(-3px);
}
.home-vac:focus-within { border-color: var(--ink-3); }

.home-vac-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.home-vac-title {
  font-family: var(--font-head);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.019em;
  color: var(--ink);
  text-wrap: pretty;
}
.home-vac-org {
  margin-top: 7px;
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-2);
}
.home-vac-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}
.home-vac-loc svg { flex: none; width: 14px; height: 14px; }

.home-vac-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

/* brand figure on ink — the one place a number still earns a pill */
.home-vac-salary {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  background: var(--ink);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.018em;
  color: var(--brand);
  white-space: nowrap;
}
.home-vac-cur {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .58);
}

.home-vac .btn-ghost { flex: none; }


/* ==========================================================================
   05  PHOTO SLOTS
   --------------------------------------------------------------------------
   The reference puts photographs in the promo banner, the CTA banner, the
   announcement rows and both ad rails. `.ecard-media`, `.news-thumb`,
   `.blog-thumb` and `.blog-card--feature` already accept an <img> through the
   main stylesheet; these three are the slots it does not cover.
   ========================================================================== */


/* announcement rows get the same thumbnail treatment as `.news-card` */
.home-ann-thumb {
  position: relative;
  flex: none;
  width: 78px;
  height: 60px;
  border-radius: var(--r-xxs);
  overflow: hidden;
  background: var(--line-2);
}
.home-ann-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* ==========================================================================
   06  MEDIA QUERIES
   ========================================================================== */

/* -------------------------------------------------------------- ≤1024px -- */
@media (max-width: 1024px) {
  /* the brief asks the vacancy grid to step 4 → 2 → 1, not 4 → 3 → 2 → 1 */
  .grid-4.home-vac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .home-map-pin { width: 72px; height: 72px; }
  .home-map-pin svg { width: 34px; height: 43px; }
}

/* --------------------------------------------------------------- ≤768px -- */
@media (max-width: 768px) {
  /* The banner stacks (style.css); the pin heads the column, smaller. */
  .home-map-pin { width: 60px; height: 60px; }
  .home-map-pin::after { inset: -6px; }
  .home-map-pin svg { width: 28px; height: 35px; margin-top: 3px; }

  .home-vac { padding: 16px 16px 14px; }
}

/* --------------------------------------------------------------- ≤560px -- */
@media (max-width: 560px) {
  .grid-4.home-vac-grid { grid-template-columns: minmax(0, 1fr); }

  .home-ann-thumb { width: 64px; height: 52px; }

  .home-vac-foot { padding-top: 14px; }
  .home-vac .btn-ghost { flex: 1 1 100%; justify-content: center; }
}


/* ==========================================================================
   07  REDUCED MOTION
   The global block in style.css already clamps every duration; what is left
   here are the hover lifts, which a clamp shortens but does not remove.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .home-vac:hover { transform: none; }
}
