/* Homepage / editorial home sections */

/* --------------------------------------------------------------------------
   Hero Section (3 Columns)
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 24px 0 0;
  border-bottom: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 330px 1fr 340px;
  grid-template-rows: auto 1fr;
  gap: 18px 16px;
  align-items: stretch;
}

.hero-grid > * {
  min-width: 0;
}

.hero-grid--no-chamber {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.hero-grid--no-lead {
  grid-template-columns: 330px minmax(0, 1fr);
}

.hero-grid--no-center {
  grid-template-columns: 330px minmax(0, 1fr);
}

.hero-grid--no-chamber.hero-grid--no-lead,
.hero-grid--no-chamber.hero-grid--no-center,
.hero-grid--no-lead.hero-grid--no-center,
.hero-grid--solo {
  grid-template-columns: minmax(0, 1fr);
}

.hero-col-center.hero-col--single,
.hero-col-lead.hero-col--single {
  display: flex;
  flex-direction: column;
  grid-template-rows: none;
}

.hero-col-center.hero-col--single > *,
.hero-col-lead.hero-col--single > * {
  flex: 1 1 auto;
  min-height: 0;
}

/* Hidden لقاءات or لوجستيات: the neighbor fills that bottom row. The widget above stays put. */
.hero-grid--span-bottom {
  grid-template-rows: auto auto;
}

.hero-grid--span-bottom > .hero-col-opinion {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.hero-grid--span-bottom > .hero-col-center {
  grid-column: 2;
  grid-row: 1;
  display: block;
  height: auto;
  align-self: start;
}

.hero-grid--span-bottom > .hero-col-lead {
  grid-column: 3;
  grid-row: 1;
  display: block;
  height: auto;
  align-self: start;
}

.hero-grid--span-bottom > .hero-bottom-span {
  grid-column: 2 / span 2;
  grid-row: 2;
  min-width: 0;
}

.hero-grid--no-chamber.hero-grid--span-bottom > .hero-col-center {
  grid-column: 1;
}

.hero-grid--no-chamber.hero-grid--span-bottom > .hero-col-lead {
  grid-column: 2;
}

.hero-grid--no-chamber.hero-grid--span-bottom > .hero-bottom-span {
  grid-column: 1 / span 2;
}

.hero-grid--no-bottom {
  grid-template-rows: auto;
}

.hero-grid--no-bottom > .hero-col-opinion,
.hero-grid--no-bottom > .hero-col-center,
.hero-grid--no-bottom > .hero-col-lead {
  grid-row: auto;
  align-self: start;
}

.hero-grid--no-bottom .hero-col--single > * {
  flex: 0 0 auto;
}

/*
 * Joined cover + شخصية العدد (desktop): equal height so the -17px seam
 * reads as one card. --no-bottom / --span-bottom otherwise use
 * align-self:start and the taller cover hangs over the short text card.
 * Scoped to desktop so mobile `display: contents` stacking still wins.
 */
@media (min-width: 1025px) {
  .hero-grid--joined.hero-grid--no-bottom,
  .hero-grid--joined.hero-grid--span-bottom {
    align-items: stretch;
  }

  .hero-grid--joined.hero-grid--no-bottom > .hero-col-center,
  .hero-grid--joined.hero-grid--no-bottom > .hero-col-lead,
  .hero-grid--joined.hero-grid--span-bottom > .hero-col-center,
  .hero-grid--joined.hero-grid--span-bottom > .hero-col-lead {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
  }

  .hero-grid--joined.hero-grid--no-bottom .hero-col--single > *,
  .hero-grid--joined.hero-grid--span-bottom .magazine-cover-card,
  .hero-grid--joined.hero-grid--span-bottom .lead-primary-story,
  .hero-grid--joined.hero-grid--no-bottom .magazine-cover-card,
  .hero-grid--joined.hero-grid--no-bottom .lead-primary-story {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .hero-grid--joined .magazine-cover-card {
    z-index: 1;
  }

  .hero-grid--joined .lead-primary-story {
    position: relative;
    z-index: 2;
  }

  .hero-grid--joined .lead-primary-inner {
    flex: 1 1 auto;
    min-height: 100%;
  }

  .hero-grid--joined .hero-cover-meta {
    margin-top: auto;
  }
}

/* Column 1 (inline-start) */
.hero-col-lead {
  border-inline-end: 1px solid var(--border-dashed);
  padding-inline-end: 12px;
  grid-row: span 2;
  display: grid;
  grid-template-rows: subgrid;
  gap: 18px;
}

.lead-primary-story {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12px;
  background: #F2DFCE;
  border: 1px solid var(--border-color);
  border-inline-start: none;
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-start-end-radius: 6px;
  border-end-end-radius: 6px;
  margin-inline-start: -17px;
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  box-shadow: none;
}

/* Cover slider off: do not keep the joined overlap that expects the magazine card. */
.hero-grid--no-magazine .lead-primary-story,
.hero-grid:not(:has(.magazine-cover-card)) .lead-primary-story {
  margin-inline-start: 0;
  border-inline-start: 1px solid var(--border-color);
  border-start-start-radius: 6px;
  border-end-start-radius: 6px;
}

/* Personality off: magazine stands alone with full rounded corners. */
.hero-grid--no-personality .magazine-cover-card,
.hero-grid:not(:has(.lead-primary-story)) .magazine-cover-card {
  border-radius: 6px;
}

.lead-primary-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 0 0 auto;
  min-height: 0;
  padding: 16px 18px 16px 16px;
  background: var(--bg-salmon);
  border-radius: 6px;
  box-sizing: border-box;
}

.lead-primary-story .lead-story-footer {
  margin-top: 12px;
  border-top: 1px dashed var(--border-dashed);
}

.lead-primary-story .pill-badge {
  align-self: flex-start;
  margin-bottom: 10px;
}

.lead-extra-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead-extra-list a {
  color: inherit;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.lead-extra-list a:hover {
  color: var(--accent-brand, var(--color-brand, #1897B8));
}

.altijara-empty-tag-warnings {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #fff4e5;
  border: 1px solid rgba(38, 42, 51, 0.16);
  border-radius: 6px;
  color: #262a33;
}

.altijara-empty-tag-warnings p {
  margin: 0;
}

.altijara-empty-tag-warnings p + p {
  margin-top: 6px;
}

.altijara-section-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 18px;
  min-height: 120px;
  box-sizing: border-box;
}

.altijara-section-empty p {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink-muted, #64748b);
}

.altijara-section-empty--hero {
  flex: 1 1 auto;
  width: 100%;
  min-height: 160px;
}

.altijara-section-empty--body {
  flex: 1 1 auto;
  width: 100%;
  grid-column: 1 / -1;
  min-height: 200px;
  padding: 36px 20px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px dashed rgba(0, 0, 0, 0.1);
  border-radius: 6px;
}

.chamber-box .altijara-section-empty--hero,
.international-wire-list .altijara-section-empty--hero,
.lead-primary-inner .altijara-section-empty--hero,
.sub-hero-card .altijara-section-empty--hero,
.magazine-cover-details--empty .altijara-section-empty--hero {
  min-height: 180px;
}

.news-grid-4col .altijara-section-empty--body,
.cars-cards-row .altijara-section-empty--body {
  min-height: 240px;
}

.sector-col .altijara-section-empty--body,
.most-read-col .altijara-section-empty--body {
  min-height: 180px;
  background: transparent;
}

.magazine-cover-details--empty {
  padding: 24px 16px 28px;
}

.sub-hero-card .block-header-row {
  margin-bottom: 10px;
}

.lead-title-giant {
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink-black);
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}

.lead-title-giant:hover {
  color: var(--accent-red);
}

.lead-excerpt {
  font-size: 15.5px;
  color: var(--ink-secondary);
  line-height: 1.68;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lead-excerpt .tag-badge-inline {
  margin-inline-start: 6px;
  display: inline-block;
  vertical-align: middle;
}

.lead-special-label {
  align-self: flex-start;
  margin-bottom: 12px;
}

/* Sub-card with image */
.sub-hero-card {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.sub-hero-card .card-thumb {
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  aspect-ratio: 16/9;
  background-color: #e2e8f0;
}

.sub-hero-card .card-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.sub-hero-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sub-hero-card .card-thumb:hover img {
  transform: scale(1.03);
}

.sub-hero-card .card-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 10px;
  color: var(--ink-black);
}

.sub-hero-card .card-subtext {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin: 0 0 8px;
  width: 100%;
  text-align: start;
  flex: 0 0 auto;
  min-height: 0;
}

.sub-hero-card .card-subtext-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  min-height: 0;
}

.sub-hero-list {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.sub-hero-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.sub-hero-item-thumb {
  width: 96px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.sub-hero-item-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.sub-hero-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.sub-hero-item:hover .sub-hero-item-thumb img {
  transform: scale(1.04);
}

.sub-hero-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sub-hero-item-body .category-tag {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-brand, #1897B8);
}

.sub-hero-item-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-black);
}

.sub-hero-item-title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.sub-hero-item-title a:hover {
  color: var(--color-brand, #1897B8);
}

.sub-hero-item-body .meta-time {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* Column 2 (Center: Magazine Cover & Feature) */
.hero-col-center {
  grid-row: span 2;
  display: grid;
  grid-template-rows: subgrid;
  gap: 18px;
}

.magazine-cover-card {
  background: #F2DFCE;
  border: 1px solid var(--border-color);
  border-inline-end: none;
  border-start-start-radius: 6px;
  border-end-start-radius: 6px;
  border-start-end-radius: 0;
  border-end-end-radius: 0;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  position: relative;
  container-type: inline-size;
  z-index: 1;
}

.hero-cover-slide {
  display: none;
  flex-direction: column;
}

.hero-cover-slide.is-active {
  display: flex;
  flex-direction: column;
  animation: heroCoverIn 0.28s ease;
}

@keyframes heroCoverIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nav-arrow-btn.hero-cover-arrow {
  position: static;
  z-index: 2;
  width: 40px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: 1.5px solid rgba(38, 42, 51, 0.28);
  color: #262A33;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.nav-arrow-btn.hero-cover-arrow:hover {
  transform: none;
  border-radius: 6px;
  background: transparent;
  border-color: var(--color-brand, #1897B8);
  color: var(--color-brand, #1897B8);
  box-shadow: none;
}

.nav-arrow-btn.hero-cover-arrow:active {
  transform: translateY(1px);
  border-radius: 6px;
  background: transparent;
  border-color: #262A33;
  color: #262A33;
  box-shadow: none;
}

.nav-arrow-btn.hero-cover-arrow:focus-visible {
  outline: 2px solid rgba(38, 42, 51, 0.35);
  outline-offset: 2px;
}

.hero-cover-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 14px;
  background: #F2DFCE;
}

.hero-cover-arrows {
  display: flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
  flex-direction: row-reverse;
}

.hero-cover-slide .magazine-cover-date {
  display: none;
}

.magazine-cover-details {
  padding: 14px 16px 0;
  background: #F2DFCE;
  border-top: none;
  text-align: start;
}

.magazine-cover-img-wrap {
  width: auto;
  margin: 12px 12px 0;
  aspect-ratio: 2 / 1;
  background-color: #e8e4df;
  overflow: hidden;
  position: relative;
  border: none;
  border-radius: 6px;
  box-sizing: border-box;
}

.magazine-cover-img-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}

.magazine-cover-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  border-radius: 6px;
}

.magazine-cover-title {
  font-size: 15px;
  font-weight: 700;
  color: #262A33;
  margin: 0 0 8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.45em * 2);
}

.magazine-cover-desc {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #64748b;
  font-weight: 500;
  max-width: 92%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.55em * 2);
}

.magazine-cover-date {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
}

/* 3-item International wire list — لقاءات */
.international-wire-list {
  background-color: #FFF7EF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 6px;
  padding: 16px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.international-wire-list > .block-header-row {
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.international-wire-list > .pill-badge {
  align-self: flex-start;
  width: auto;
  margin-bottom: 6px;
  padding-bottom: 0;
}

.intl-wire-item {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

/* Footer is also a div — use adjacent sibling so last article has no solid border */
.intl-wire-item:has(+ .wire-list-footer) {
  border-bottom: none;
  padding-bottom: 16px;
}

.intl-wire-thumb {
  width: 104px;
  height: 78px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f3e8dc;
}

.intl-wire-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intl-wire-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding-top: 1px;
}

.intl-wire-cat {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-brand, #1897B8);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.intl-wire-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 10px;
}

.intl-wire-title a {
  color: inherit;
  text-decoration: none;
  unicode-bidi: plaintext;
}

.intl-wire-desc {
  font-size: 11.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intl-wire-time {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 2px;
}

/* Column 3 (inline-end: Chamber News & Opinions) */
.hero-col-opinion {
  border-inline-start: 1px solid var(--border-dashed);
  padding-inline-start: 12px;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.chamber-box {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.chamber-box > .pill-badge {
  align-self: flex-start;
  width: auto;
  display: inline-block;
  margin-bottom: 12px;
}

/* Featured lead story */
.chamber-lead {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.chamber-lead-img-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  background-color: #f1f5f9;
}

.chamber-lead-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.chamber-lead:hover .chamber-lead-img-wrap img {
  transform: scale(1.03);
}

.chamber-lead-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--ink-black);
  margin: 0 0 8px;
}

.chamber-lead-title a {
  color: inherit;
  text-decoration: none;
}

.chamber-lead-title a:hover {
  color: var(--color-brand, #1897B8);
}

.chamber-lead-excerpt {
  font-size: 12.5px;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.chamber-opinion-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0;
}

.chamber-opinion-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.chamber-opinion-item:last-child {
  border-bottom: none;
  padding-bottom: 6px;
}

.chamber-item-thumb {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 72px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f1f5f9;
  flex-shrink: 0;
  position: relative;
}

.chamber-item-thumb > * {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
}

.chamber-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chamber-item-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: start;
}

.chamber-item-kicker {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-brand, #1897B8);
  margin-bottom: 5px;
}

.chamber-item-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 6px;
  color: #262A33;
}

.chamber-item-title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.chamber-item-title a:hover {
  color: var(--color-brand, #1897B8);
}

.chamber-item-time {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.chamber-box-footer,
.lead-story-footer,
.sub-hero-footer,
.wire-list-footer {
  margin-top: auto;
  padding-top: 12px;
  padding-bottom: 14px;
  border-top: 1px dashed var(--border-dashed);
  display: flex;
  justify-content: flex-end; /* physical left in RTL */
  width: 100%;
  flex-shrink: 0;
}

.international-wire-list > .pill-badge {
  align-self: flex-start;
  width: auto;
  margin-bottom: 6px;
  padding-bottom: 0;
}

.international-wire-list .wire-list-footer {
  margin-top: auto;
  padding: 16px 0 18px;
}

.sub-hero-card > .pill-badge {
  align-self: flex-start;
  width: auto;
  display: inline-block;
  margin-bottom: 10px;
}

.chamber-more-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-brand, #1897B8) !important;
  transition: all 0.15s ease;
}

.chamber-more-link:hover {
  color: #15798d !important;
  transform: translateX(-3px);
}

html:not([dir="rtl"]) .chamber-more-link:hover {
  transform: translateX(3px);
}

/* Block / section header row: title pill + المزيد + arrow */
.block-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  width: 100%;
}

.block-header-row .pill-badge {
  margin-bottom: 0;
  align-self: flex-start;
  width: auto;
  flex-shrink: 0;
}

.section-more-nav {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-brand, #1897B8) !important;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
  padding: 2px 0;
  opacity: 1;
  visibility: visible;
  transition: color 0.15s ease, transform 0.15s ease;
}

.section-more-nav:hover {
  color: #12748e !important;
  transform: translateX(-2px);
}

html:not([dir="rtl"]) .section-more-nav:hover {
  transform: translateX(2px);
}

.section-more-nav svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  stroke: currentColor;
}

/* RTL arrow points ←; flip to → for English / LTR */
html:not([dir="rtl"]) .section-more-nav svg {
  transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   Section Separator Bar (Dashed with Centered Header)
   -------------------------------------------------------------------------- */
.section-bar-wrapper {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  margin: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 8px;
  padding-inline-start: 0;
  box-sizing: border-box;
  min-height: 36px;
}

/* Keep hero → متابعات on the same rhythm as other sections */
.hero-section + .home-category-section > .section-bar-wrapper {
  margin-top: 10px;
}

.home-category-section {
  margin-bottom: 0;
}

.section-bar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-salmon);
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
}

.section-bar-badge-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.section-bar-badge-right .pill-badge {
  margin-bottom: 0;
}

/* Pin more link removed from title row — now lives in .section-footer-more */

/* --------------------------------------------------------------------------
   Section 2: 4-Column News Grid (متابعات / أبرز الأخبار)
   -------------------------------------------------------------------------- */
.news-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 0;
}

.news-card-v {
  background-color: #FFF7EF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.news-card-v:last-child {
  border: 1px solid rgba(0, 0, 0, 0.07);
  padding: 14px;
}

.news-card-v:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.news-card-v .card-img-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
  background-color: #f3e8dc;
}

.news-card-v .card-img-wrap > a,
.news-card-v .card-img-wrap > .cat-video-play-badge {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
}

.news-card-v .card-img-wrap > a {
  display: block;
  height: 100%;
}

.news-card-v .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.news-card-v:hover .card-img-wrap img {
  transform: scale(1.04);
}

/* Issue-source card grid: full covers contained with inset (no cropping). */
.news-grid-4col--issues .news-card-v {
  padding: 0 0 14px;
  overflow: hidden;
}

.news-grid-4col--issues .card-cover-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 12px;
  margin: 0 0 10px;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: #f3e8dc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-grid-4col--issues .card-cover-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: -3px 4px 12px rgba(0, 0, 0, 0.12), -1px 1px 4px rgba(0, 0, 0, 0.06);
}

.news-grid-4col--issues .news-card-v:hover .card-cover-img {
  transform: none;
}

.news-grid-4col--issues .card-headline,
.news-grid-4col--issues .meta-time,
.news-grid-4col--issues .card-bullet-sub {
  padding-inline: 14px;
}

.news-grid-4col--issues .card-num-badge {
  inset-inline-start: auto;
  inset-inline-end: 10px;
}

.news-card-v .card-headline {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 6px;
  color: var(--ink-black);
  /* Always reserve 2 lines so date/line/desc align across cards */
  min-height: calc(1.4em * 2);
  max-height: calc(1.4em * 2);
}

.news-card-v .card-headline a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-height: calc(1.4em * 2);
  height: 100%;
}

.news-card-v .category-tag {
  min-height: 1.2em;
  margin-bottom: 6px;
}

.news-card-v .meta-time {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 500;
  display: block;
  text-align: end;
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 8px;
  min-height: 1.35em;
  line-height: 1.35;
}

.news-card-v .card-bullet-sub {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.5;
  padding-top: 8px;
  margin-top: 6px;
  border-top: 1px dashed var(--border-dashed);
  /* Always reserve 1 line for desc */
  min-height: calc(1.5em + 8px);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.5em + 8px);
  white-space: normal;
}

/* --------------------------------------------------------------------------
   Section 3: Home Split Sectors (مال وأعمال & شركات)
   -------------------------------------------------------------------------- */
.home-split-sectors-section {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 10px 0;
  /* Solid separator above split blocks (تقنية → صحة / متابعات → مال وأعمال) */
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 12px;
}

main > .home-split-sectors-section:last-of-type {
  margin-bottom: var(--home-section-gap);
}

.home-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background-color: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 24px 28px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.home-split-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.home-split-grid--single .sector-col,
.home-split-grid--single .sector-col:first-child,
.home-split-grid--single .sector-col:last-child {
  border-inline-end: none;
  padding-inline: 0;
}

.sector-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.sector-col:first-child {
  padding-inline-end: 28px;
  border-inline-end: 1px dashed rgba(0, 0, 0, 0.22);
}

.sector-col:last-child {
  padding-inline-start: 28px;
}

/* Header bar — dotted line sits under the category pill */
.sector-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: none;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.22);
  padding-top: 0;
  padding-bottom: 12px;
  margin-bottom: 16px;
  position: relative;
}

.sector-header-bar .pill-badge {
  margin-bottom: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 3px;
  background-color: #262A33;
  color: #ffffff;
}

/* Footer More Link — pinned to column bottom so both CTAs share one line */
.sector-footer-more,
.section-footer-more {
  margin-top: 14px;
  padding-top: 12px;
  border-top: none;
  display: flex;
  justify-content: flex-end; /* physical left in RTL */
  width: 100%;
  flex-shrink: 0;
}

.sector-col .sector-footer-more {
  margin-top: auto;
}

.sector-footer-more .sector-more-link {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.sector-footer-more .sector-more-link:hover {
  color: var(--color-brand, #1897B8);
  transform: translateX(-2px);
}

html:not([dir="rtl"]) .sector-footer-more .sector-more-link:hover {
  transform: translateX(2px);
}

/* Lead Card: Side-by-side */
.sector-lead-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.18);
}

.sector-lead-img-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  position: relative;
  width: 44%;
  flex-shrink: 0;
  aspect-ratio: 16 / 10.5;
  border-radius: 4px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.sector-lead-img-wrap > a,
.sector-lead-img-wrap > .cat-video-play-badge {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
}

.sector-lead-img-wrap > a {
  display: block;
  height: 100%;
}

.sector-lead-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.sector-lead-card:hover .sector-lead-img-wrap img {
  transform: scale(1.04);
}

.sector-lead-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.sector-lead-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--ink-black);
  margin: 0 0 8px;
}

.sector-lead-desc {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.sector-lead-title a,
.sector-sub-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sector-lead-title a:hover,
.sector-sub-title a:hover {
  color: var(--color-brand, #1897B8);
}

.sector-meta-line {
  font-size: 11px;
  color: #8892a0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sector-meta-author {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.sector-meta-date {
  font-size: 11px;
  color: #94a3b8;
}

.sector-card-sub {
  display: block;
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary, #64748b);
  line-height: 1.4;
}

/* Sub-card: Side-by-side with thumbnail on left */
.sector-sub-card {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sector-sub-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sector-sub-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sector-sub-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--ink-black);
  margin: 0 0 8px;
}

.sector-sub-thumb {
  width: 104px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.sector-sub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.sector-sub-card:hover .sector-sub-thumb img {
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   Section 4: Dossier 4-Cards Grid (ملف التجارة)
   -------------------------------------------------------------------------- */
.dossier-bar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 36px 0 24px;
  border-top: 1px solid #dcd1c4;
}

.dossier-bar-title {
  background-color: var(--bg-salmon);
  padding: 0 20px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-black);
  margin: 0;
  transform: translateY(-50%);
  line-height: 1;
}

.dossier-more-link {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--bg-salmon);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.dossier-more-link:hover {
  color: var(--color-brand, #1897B8);
}

.dossier-cards-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-dashed);
}

.dossier-card-item {
  display: flex;
  flex-direction: column;
  border-inline-end: 1px solid var(--border-dashed);
  padding-inline-end: 18px;
}

.dossier-card-item:last-child {
  border-inline-end: none;
  padding-inline-end: 0;
}

.dossier-img-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
  background-color: #e2e8f0;
}

.dossier-img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dossier-card-item:hover .dossier-img-thumb img {
  transform: scale(1.04);
}

.dossier-stat-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  background-color: #262a33;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.dossier-stat-num {
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--font-serif, Georgia, serif);
}

.dossier-stat-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.3;
}

.dossier-card-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-black);
  margin: 0 0 6px;
}

.dossier-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.dossier-card-title a:hover {
  color: var(--color-brand, #1897B8);
}

.dossier-card-meta {
  font-size: 11px;
  color: #8892a0;
  font-weight: 500;
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Section 4: Cars & Most Read (سيارات)
   -------------------------------------------------------------------------- */
.cars-section {
  padding: 0;
  border-bottom: none;
}

.cars-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 26px;
  align-items: stretch;
}

.cars-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.cars-grid--single .most-read-col {
  border-inline-end: none;
  padding-inline-end: 0;
}

/* Most Read list (inline-end) */
.most-read-col {
  border-inline-end: 1px solid var(--border-dashed);
  padding-inline-end: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.most-read-heading {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.most-read-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 12px;
}

.most-read-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.most-read-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.most-read-num {
  font-size: 18px;
  font-weight: 800;
  color: #94a3b8;
  text-align: center;
}

.most-read-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-black);
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-height: calc(1.45em * 2);
}

.most-read-text:hover {
  color: var(--accent-red);
}

/* Cars 3-Cards row on Right */
.cars-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.car-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.car-card:last-child {
  border: 1px solid rgba(0, 0, 0, 0.07);
  padding: 14px;
}

.car-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.car-card .car-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
  background-color: #f3e8dc;
}

.car-card .car-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.car-card:hover .car-thumb img {
  transform: scale(1.04);
}

.car-card .car-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 6px;
}

.car-card .car-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.car-card .car-title a:hover,
.car-card:hover .car-title a {
  color: var(--accent-brand, var(--color-brand, #1897B8));
}

/* --------------------------------------------------------------------------
   Homepage modules — mobile / tablet
   Must live here (home.css loads after base.css and would otherwise keep
   desktop grids for .hero-grid / .news-grid-4col / .cars-grid).
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Stack hero on tablet/mobile so magazine-cover-card + lead/slide sit below each other */
  .hero-grid,
  .hero-grid--no-chamber,
  .hero-grid--no-center,
  .hero-grid--no-lead,
  .hero-grid--solo {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
    align-items: start;
  }

  .hero-col-center,
  .hero-col-lead {
    grid-row: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
  }

  .hero-col-lead {
    border-inline-end: none;
    padding-inline-end: 0;
  }

  .hero-col-opinion {
    grid-column: auto;
    grid-row: auto;
    border-inline-start: none;
    border-top: 1px solid var(--border-dashed);
    padding-inline-start: 0;
    padding-top: 8px;
  }

  .hero-grid--span-bottom > .hero-col-opinion,
  .hero-grid--span-bottom > .hero-col-center,
  .hero-grid--span-bottom > .hero-col-lead,
  .hero-grid--span-bottom > .hero-bottom-span {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-col-center > *,
  .hero-col-lead > *,
  .hero-col-center.hero-col--single > *,
  .hero-col-lead.hero-col--single > *,
  .hero-grid--no-bottom .hero-col--single > * {
    flex: 0 0 auto;
    min-height: auto;
    height: auto;
    max-height: none;
    width: 100%;
  }

  .lead-primary-story {
    height: auto !important;
    min-height: 0 !important;
    margin-inline-start: 0 !important;
    border-inline-start: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: visible;
  }

  .lead-primary-inner {
    flex: 0 0 auto;
    min-height: auto;
  }

  .magazine-cover-card {
    border-inline-end: 1px solid var(--border-color);
    border-radius: 6px;
    height: auto !important;
    max-height: none !important;
    min-height: auto;
    flex: 0 0 auto;
    overflow: hidden;
    width: 100%;
  }

  /*
   * Joined magazine + personality: keep them adjacent (like desktop)
   * but stacked below each other. Flatten columns so interviews/logistics
   * no longer sit between the pair.
   */
  .hero-grid.hero-grid--joined {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero-grid--joined > .hero-col-center,
  .hero-grid--joined > .hero-col-lead {
    display: contents;
  }

  .hero-grid--joined > .hero-col-opinion {
    order: 1;
    margin-bottom: 16px;
    border-top: none;
    padding-top: 0;
  }

  .hero-grid--joined .magazine-cover-card {
    order: 2;
    border-radius: 6px 6px 0 0;
    border-bottom: none;
    width: 100%;
  }

  .hero-grid--joined .lead-primary-story {
    order: 3;
    margin-inline-start: 0 !important;
    margin-bottom: 16px;
    border-radius: 0 0 6px 6px;
    border-top: none;
    border-inline-start: 1px solid var(--border-color);
    width: 100%;
  }

  .hero-grid--joined .international-wire-list {
    order: 4;
    margin-bottom: 16px;
    width: 100%;
  }

  .hero-grid--joined .sub-hero-card {
    order: 5;
    width: 100%;
  }

  .hero-grid--joined > .hero-bottom-span {
    order: 6;
    margin-top: 16px;
    width: 100%;
  }

  .hero-cover-slide.is-active {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-height: auto;
    height: auto;
    width: 100%;
    overflow: visible;
  }

  .magazine-cover-img-wrap {
    margin: 10px 10px 0;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    width: auto;
  }

  .magazine-cover-details {
    padding: 12px 14px 4px;
    flex: 0 0 auto;
  }

  .magazine-cover-title {
    font-size: 14.5px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    min-height: 0;
    margin-bottom: 6px;
  }

  .hero-cover-meta {
    padding: 0 14px 12px;
    flex: 0 0 auto;
  }

  .sub-hero-card {
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
  }

  .dossier-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dossier-side-card {
    border-inline-start: none;
    padding-inline-start: 0;
  }

  .news-grid-4col {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .cars-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 960px) {
  .home-split-sectors-section {
    padding-inline: 0;
  }

  .home-split-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 18px 16px;
  }

  .sector-col,
  .sector-col:first-child,
  .sector-col:last-child {
    padding-inline: 0;
    border-inline-end: none;
  }

  .sector-col:first-child:not(:only-child) {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.22);
    padding-bottom: 24px;
  }

  .sector-lead-card {
    gap: 12px;
  }

  .sector-lead-img-wrap {
    width: 42%;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 16px;
  }

  .hero-grid,
  .hero-grid--no-chamber,
  .hero-grid--no-center,
  .hero-grid--no-lead,
  .hero-grid--solo {
    gap: 14px;
  }

  .hero-grid.hero-grid--joined {
    gap: 0;
  }

  .hero-grid--joined > .hero-col-opinion {
    margin-bottom: 14px;
  }

  .hero-grid--joined .lead-primary-story {
    margin-bottom: 14px;
  }

  .hero-grid--joined .international-wire-list {
    margin-bottom: 14px;
  }

  .hero-grid--joined > .hero-bottom-span {
    margin-top: 14px;
  }

  .hero-col-center,
  .hero-col-lead {
    gap: 14px;
  }

  .lead-primary-story {
    padding: 10px;
  }

  .lead-primary-inner {
    padding: 14px 14px 12px;
  }

  .lead-title-giant {
    font-size: 17.5px;
    margin-bottom: 8px;
  }

  .lead-title-giant a {
    unicode-bidi: plaintext;
  }

  .lead-excerpt {
    margin-bottom: 8px;
  }

  .lead-primary-story .lead-story-footer {
    margin-top: 10px;
  }

  .section-bar-wrapper {
    padding-inline-start: 0;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 0;
  }

  /* Avoid absolute title colliding with badge / more link on narrow widths */
  .section-bar-title {
    position: static;
    left: auto;
    transform: none;
    padding: 0;
    order: -1;
    width: 100%;
    text-align: center;
  }

  .section-more-nav {
    margin-inline-end: auto;
    flex-wrap: wrap;
  }

  .news-grid-4col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cars-cards-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .car-card {
    border: 1px solid rgba(0, 0, 0, 0.07);
    padding: 14px;
  }

  .most-read-col {
    border-inline-end: none;
    padding-inline-end: 0;
  }

  .sub-hero-item {
    gap: 10px;
  }

  .sub-hero-item-thumb {
    width: 80px;
    height: 56px;
  }

  .dossier-bar-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 20px;
  }

  .dossier-bar-title {
    transform: none;
    width: 100%;
    text-align: center;
  }

  .dossier-more-link {
    position: static;
    transform: none;
    display: block;
    text-align: center;
    margin: 0 auto 8px;
    width: fit-content;
  }

  .dossier-stat-num {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .section-bar-wrapper {
    padding-inline-start: 0;
  }

  .home-split-sectors-section {
    padding: 18px 0;
  }

  .home-split-grid {
    padding: 16px 14px 12px;
    gap: 20px;
  }

  .sector-lead-card {
    flex-direction: column;
    gap: 12px;
  }

  .sector-lead-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9.5;
  }

  .sector-lead-title {
    font-size: 15px;
  }

  .sector-sub-thumb {
    width: 88px;
    height: 60px;
  }

  .sector-sub-title {
    font-size: 13px;
  }

  .dossier-cards-4col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dossier-bar-title {
    font-size: 18px;
    padding: 0 12px;
  }

  .news-card-v,
  .car-card {
    padding: 12px;
  }

  .lead-title-giant {
    font-size: 16.5px;
  }

  .lead-excerpt {
    font-size: 14.5px;
    -webkit-line-clamp: 4;
  }

  .magazine-cover-title {
    -webkit-line-clamp: 3;
  }
}