/* News Center (Figma 600:101265, layer CSS at 1440 px) */
/* featured: a 1352 px card, 9 px gold top edge; the photo on the start side, the text on a patterned panel */
.news-featured { position: relative; max-width: 1352px; margin: 0 auto; padding-top: var(--sp-8); }
.news-featured__track {
  list-style: none; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  background: #fff; border-top: 9px solid var(--gold); box-shadow: var(--shadow-raised); border-radius: var(--r-lg);
}
.news-featured__track::-webkit-scrollbar { display: none; }
.news-featured__slide { position: relative; display: flex; flex: 0 0 100%; height: 575px; scroll-snap-align: start; overflow: hidden; }
.news-featured__media { position: relative; flex: 0 0 729px; overflow: hidden; }
.news-featured__media img { width: 100%; height: 100%; object-fit: cover; }
.news-featured__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(16 19 20 / .5) 0%, rgb(16 19 20 / 0) 55%); }
.news-featured__badge { position: absolute; z-index: 1; inset-inline-start: 20px; top: 20px; padding: var(--sp-2) var(--sp-3); border: 1px solid rgb(255 255 255 / .25); border-radius: var(--r-full); background: rgb(16 19 20 / .55); color: #fff; font-size: var(--fs-xs); font-weight: 700; line-height: 15px; }
.news-featured__text { position: relative; isolation: isolate; flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: var(--sp-9) var(--sp-6) var(--sp-6) var(--sp-6); }
.news-featured__text::before {
  /* Figma: the gold pattern image filling an 812 × 580 layer at the panel's left edge, at 4 % opacity. */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .04;
  background: url("../core/img/pattern-sports-gold.7e6ab857a03f.webp") no-repeat -18px 0 / auto 580px;
}
.news-featured__tag { margin-bottom: var(--sp-3); }
.news-featured__title { min-height: 105px; display: flex; align-items: center; margin-inline-end: -30px; font-size: var(--fs-h2-sm); font-weight: 700; line-height: var(--lh-heading); }
.news-featured__title a { color: var(--gold-strong); }
.news-featured__title a:hover { color: var(--text); }
.news-featured__excerpt { padding-top: var(--sp-5); font-size: var(--fs-lead); line-height: var(--lh-body); letter-spacing: .25px; text-align: start; color: rgb(62 50 50 / .75); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-featured__date { display: flex; align-items: center; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-6); font-size: var(--fs-xs); font-weight: 700; line-height: 18px; }
.news-featured__date .icon { width: 14px; height: 14px; color: var(--gold); }
.news-featured__more { align-self: flex-end; gap: var(--sp-2); margin-top: var(--sp-4); min-height: 48px; padding-inline: var(--sp-5); border-radius: var(--r-md); font-size: var(--fs-small); line-height: 20px; }
.news-featured__more:hover { color: #fff; }
.news-featured__more .icon { width: 14px; height: 14px; }
.news-featured__controls { position: absolute; inset-inline-start: 0; bottom: 0; width: 729px; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-end; padding: var(--sp-6); pointer-events: none; }
.news-featured__controls > * { pointer-events: auto; }
.news-featured__dots { display: flex; align-items: center; gap: var(--sp-4); }
.news-featured__arrows { display: flex; gap: var(--sp-2); }

/* «نبض الرياضة»: heading and search, then three cards a row */
.news-pulse { max-width: 1440px; margin: var(--sp-4) auto 0; padding-bottom: var(--sp-9); }
.news-pulse__head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); max-width: 1336px; margin-inline: auto; padding-top: var(--sp-7); }
.news-pulse__title { min-height: 88px; display: flex; align-items: center; font-size: var(--fs-h1); font-weight: 800; line-height: var(--lh-heading); }
.news-search { align-self: stretch; width: 100%; max-width: 100%; flex-wrap: wrap; margin: 0; padding-block: var(--sp-5); border-bottom: 0; }
.news-search .search-bar__field { flex: 1 1 320px; }
/* «السنة» and «الشهر» beside the search (600:101265) */
.news-search__select { flex: 0 1 210px; }
@media (max-width: 640px) { .news-search__select { flex: 1 1 40%; } .news-search__submit { flex: 1 1 100%; } }
.news-pulse__head::after { content: ""; display: block; width: 100%; height: 1px; margin-top: -19px; background: var(--border); }
.news-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: var(--sp-9) var(--sp-5); margin-top: var(--sp-9); }
.news-card {
  display: flex; flex-direction: column; width: 444px; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.news-card__media { height: 327px; border-radius: var(--r-md) var(--r-md) 0 0; overflow: hidden; background: var(--surface-2); }
.news-card__media img, .news-card__media picture { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-5) var(--sp-4); }
.news-card__title { display: flex; align-items: center; font-size: 1.125rem; font-weight: 700; line-height: var(--lh-heading); letter-spacing: -1px; }
.news-card__title a { color: var(--text); }
.news-card__date { font-size: var(--fs-small); font-weight: 700; line-height: 22px; letter-spacing: .1px; color: var(--gold-strong); }
.news-card__excerpt { margin-bottom: 0; font-size: var(--fs-lead); line-height: var(--lh-body); letter-spacing: .25px; text-align: start; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* The drawn second card is the hover state: a cream card with a gold edge. */
.news-pulse__more { display: flex; justify-content: center; margin-top: var(--sp-8); }
.news-pulse__all { min-width: 240px; }
.news-list--four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
.news-list--four .news-card { width: auto; }


@media (max-width: 1440px) {
  .news-featured, .news-pulse__head { margin-inline: var(--gutter); }
  .news-featured__media { flex-basis: 54%; }
  .news-featured__controls { width: 54%; }
}
@media (max-width: 900px) {
  .news-featured__slide { flex-direction: column; height: auto; }
  .news-featured__media { flex-basis: auto; height: 260px; }
  .news-featured__controls { width: 100%; top: 220px; bottom: auto; padding: 0 var(--sp-4); }
  .news-featured__text { padding: var(--sp-5) var(--sp-5); }
  .news-featured__title { font-size: var(--fs-h3); line-height: 1.5; min-height: 0; }
  .news-pulse__head { padding-top: var(--sp-5); }
  .news-pulse__title { min-height: 0; }
  .news-list { margin-top: var(--sp-6); gap: var(--sp-5); }
  .news-list { padding-inline: var(--gutter); }
  .news-card { width: 100%; max-width: 444px; min-height: 0; }
  .news-list--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* News article (Figma 620:102921): the title as a gold heading, a 1336 × 560 photo slider, the date,
   «تفاصيل الخبر», the text, then «الصور:» thumbnails that drive the slider. */
.article-heading { max-width: calc(1338px + 2 * var(--gutter)); margin: 0 auto; padding: var(--sp-7) var(--gutter) var(--sp-6); } /* the gutter at every width (R-91) */
.article-heading__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); color: var(--text-2); font-size: var(--fs-small); font-weight: 700; }
.article__date { max-width: calc(1338px + 2 * var(--gutter)); margin: var(--sp-7) auto var(--sp-3); padding-inline: var(--gutter); font-weight: 700; color: var(--text); }
.article-heading__title { max-width: 40ch; font-size: var(--fs-h1); font-weight: 800; color: var(--gold-strong); }
.article { max-width: 1440px; margin: 0 auto; padding-bottom: var(--sp-9); }
.article-slider { position: relative; width: 1336px; max-width: calc(100% - 32px); margin: var(--sp-4) auto 0; overflow: hidden; border-radius: var(--r-lg); } /* frameless photos (R-62) */
.article-slider__track { list-style: none; display: flex; height: 558px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.article-slider__track::-webkit-scrollbar { display: none; }
.article-slider__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.article-slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.article-slider__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(179.95deg, rgb(102 102 102 / 0) 0.04%, #000 133.33%); }
.article-slider__arrow { position: absolute; z-index: 1; top: calc(50% - 20px); }
.article-slider__arrow--prev { inset-inline-start: 70px; }
.article-slider__arrow--next { inset-inline-end: 70px; }
.article-slider__dots { position: absolute; z-index: 1; bottom: 20px; inset-inline: 0; display: flex; justify-content: center; align-items: center; gap: var(--sp-2); }
.article__section { max-width: calc(1338px + 2 * var(--gutter)); padding-inline: var(--gutter); min-height: 83px; margin: 0 auto; display: flex; align-items: center; font-size: var(--fs-h2); font-weight: 800; line-height: var(--lh-heading); color: var(--gold-strong); }
/* Reading text: lead size, 1.8 line-height, at most 70 characters a line, a blank line between paragraphs */
.article__body { max-width: calc(1338px + 2 * var(--gutter)); margin: 0 auto; padding: var(--sp-5) var(--gutter) 0; font-size: var(--fs-lead); line-height: var(--lh-body); color: var(--text-3); }
.article__body > * { max-width: var(--measure); }
.article__body > * + * { margin-top: 1em; }
.article__body p { margin: 0; }
.article-photos { margin-top: var(--sp-8); }
.article-photos__title { min-height: 101px; font-size: var(--fs-h2); line-height: 140%; padding-inline: var(--sp-8); max-width: none; }
.article-photos__strip { display: flex; justify-content: center; align-items: center; gap: var(--sp-8); height: 199px; margin-top: var(--sp-4); }
.article-photos__list { list-style: none; display: flex; align-items: center; gap: var(--sp-3); max-width: 851px; overflow-x: auto; scrollbar-width: none; }
.article-photos__thumb { display: block; width: 150px; height: 150px; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; background: none; }
.article-photos__thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-photos__thumb.is-current { width: 199px; height: 199px; padding: var(--sp-3); background: #fff; border: 2px solid var(--gold-strong); }
.article-photos__thumb.is-current img { border-radius: var(--r-sm); }
@media (max-width: 900px) {
  .article-heading { padding-block: var(--sp-6) var(--sp-5); }
  .article-slider__track { height: 260px; }
  .article-slider__arrow--prev { inset-inline-start: 12px; }
  .article-slider__arrow--next { inset-inline-end: 12px; }
    .article__section { font-size: var(--fs-h3); line-height: 1.4; min-height: 0; padding-block: var(--sp-4); }
  .article-photos__strip { gap: var(--sp-3); height: auto; padding-inline: var(--gutter); }
  .article-photos__thumb { width: 96px; height: 96px; }
  .article-photos__thumb.is-current { width: 120px; height: 120px; padding: var(--sp-2); }
}

/* Phones: the decorative numeral sat on the featured title. */
