/**
 * Washnah News & Media Center — Unified Website Identity
 * Mirrors the main Washnah website: typography, red accent, glass details,
 * soft white surfaces, rounded cards, footer, motion and mobile behaviour.
 */

.media-center-page {
  --media-red: #801922;
  --media-red-deep: #5f1018;
  --media-red-soft: #bd4551;
  --media-red-pale: #fff8f9;
  --media-ink: #282828;
  --media-muted: #6f6568;
  --media-line: rgba(128, 25, 34, 0.12);
  --media-surface: #ffffff;
  --media-shadow: 0 18px 48px rgba(95, 16, 24, 0.08);
  --media-shadow-hover: 0 26px 68px rgba(95, 16, 24, 0.15);
  background: #fff;
  color: var(--default-color);
}

.media-center-page .site-header {
  --accent-color: var(--media-red);
  --nav-hover-color: var(--media-red);
  --nav-dropdown-hover-color: var(--media-red);
}

.media-center-page.scrolled .site-header,
.scrolled .media-center-page .site-header {
  background: linear-gradient(110deg, rgba(38, 6, 11, .95), rgba(128, 25, 34, .91));
  border-bottom-color: rgba(255, 255, 255, .12);
  box-shadow: 0 16px 42px rgba(38, 6, 11, .25);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.media-center-page .navmenu > ul > li > a.active::before {
  visibility: visible;
  width: 100%;
}

.media-main {
  min-height: 70vh;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Hero — same cinematic language as the main/contact pages
   -------------------------------------------------------------------------- */
.media-hero {
  position: relative;
  min-height: clamp(520px, 66svh, 720px);
  padding: calc(var(--header-height, 80px) + clamp(78px, 9vw, 118px)) 0 clamp(78px, 9vw, 112px);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #0d1217;
}

.media-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: none;
  opacity: 0;
  mix-blend-mode: normal;
}

.media-hero__video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: saturate(1) contrast(1.035) brightness(.97);
  transform: scale(1.02);
}

.media-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 74%, rgba(128, 25, 34, .18), transparent 36%),
    linear-gradient(110deg, rgba(5, 9, 13, .88) 8%, rgba(5, 9, 13, .50) 52%, rgba(5, 9, 13, .76) 100%);
}

html[dir="rtl"] .media-hero__overlay {
  background:
    radial-gradient(circle at 82% 74%, rgba(128, 25, 34, .18), transparent 36%),
    linear-gradient(-110deg, rgba(5, 9, 13, .88) 8%, rgba(5, 9, 13, .50) 52%, rgba(5, 9, 13, .76) 100%);
}

.media-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 920px);
  margin-inline: auto;
  text-align: center;
}

.media-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 9px 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.media-eyebrow i {
  color: #f0b0b6;
  font-size: 1rem;
}

.media-hero h1 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

html[dir="rtl"] .media-hero h1 {
  letter-spacing: 0;
  line-height: 1.18;
}

.media-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.85;
  text-wrap: pretty;
}

.media-hero__switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(18, 8, 11, 0.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.media-hero__switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 17px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 600;
}

.media-hero__switcher a:hover,
.media-hero__switcher a.is-active {
  color: #fff;
  background: var(--media-red);
  box-shadow: 0 8px 24px rgba(128, 25, 34, 0.34);
}

/* --------------------------------------------------------------------------
   Main section
   -------------------------------------------------------------------------- */
.media-section {
  position: relative;
  padding: clamp(72px, 8vw, 108px) 0;
  background:
    radial-gradient(circle at 12% 16%, rgba(128, 25, 34, 0.055), transparent 26%),
    radial-gradient(circle at 88% 80%, rgba(189, 69, 81, 0.05), transparent 30%),
    linear-gradient(180deg, #fff 0%, #fffafb 100%);
}

.media-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(128, 25, 34, 0.018), transparent 42%, rgba(128, 25, 34, 0.025));
}

.media-section > .container {
  position: relative;
  z-index: 1;
}

.media-toolbar,
.album-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.media-toolbar h2,
.album-heading h2 {
  position: relative;
  margin: 0;
  padding-bottom: 14px;
  color: var(--heading-color);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}

.media-toolbar h2::after,
.album-heading h2::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--media-red), var(--media-red-soft));
}

.media-count {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  color: var(--media-red);
  background: rgba(128, 25, 34, 0.06);
  border: 1px solid rgba(128, 25, 34, 0.1);
  border-radius: 999px;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 600;
}

.media-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.media-filter {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(128, 25, 34, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--media-ink);
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.media-filter:hover,
.media-filter.is-active {
  color: #fff;
  background: var(--media-red);
  border-color: var(--media-red);
  box-shadow: 0 10px 26px rgba(128, 25, 34, 0.18);
  transform: translateY(-1px);
}

.news-grid,
.gallery-grid,
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 28px);
}

/* Cards */
.news-card,
.media-card,
.album-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #fff 0%, #fffafb 100%);
  border: 1px solid var(--media-line);
  border-radius: 24px;
  box-shadow: var(--media-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.news-card::after,
.media-card::after,
.album-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.78);
}

.news-card:hover,
.media-card:hover,
.album-card:hover {
  transform: translateY(-7px);
  border-color: rgba(128, 25, 34, 0.22);
  box-shadow: var(--media-shadow-hover);
}

.news-card__image,
.media-card__visual,
.album-card__visual {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, #f4edef, #eee5e7);
}

.news-card__image::after,
.media-card__visual::after,
.album-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(35, 9, 14, 0.2), transparent 48%);
  opacity: 0.75;
}

.news-card__image img,
.media-card__visual img,
.album-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.news-card:hover img,
.media-card:hover img,
.album-card:hover img {
  transform: scale(1.045);
}

.news-card__body,
.album-card__body {
  padding: 24px 24px 26px;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 13px;
  color: var(--media-red);
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 600;
}

.news-card h3,
.album-card h3,
.media-card__caption h3 {
  color: var(--heading-color);
  font-weight: 800;
  text-wrap: balance;
}

.news-card h3,
.album-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  line-height: 1.48;
}

.news-card p,
.album-card p,
.media-card__caption p,
.album-heading p {
  color: var(--media-muted);
  line-height: 1.8;
}

.news-card p,
.album-card p {
  margin: 0 0 19px;
}

.media-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--media-red);
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.media-link:hover,
.back-link:hover {
  color: var(--media-red-deep);
  gap: 11px;
}

.media-link i,
.back-link i {
  transition: transform 0.25s ease;
}

.media-link:hover i,
.back-link:hover i {
  transform: translateX(2px);
}

html[dir="rtl"] .media-link:hover i,
html[dir="rtl"] .back-link:hover i {
  transform: translateX(-2px);
}

.media-card {
  cursor: pointer;
}

.media-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(128, 25, 34, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(95, 16, 24, 0.38);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-card__play::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: inherit;
}

.media-card:hover .media-card__play {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 18px 42px rgba(95, 16, 24, 0.5);
}

.media-card__play i {
  margin-inline-start: 2px;
  font-size: 1.55rem;
}

.media-card__badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 3;
  padding: 7px 11px;
  color: #fff;
  background: rgba(28, 13, 17, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-family: var(--nav-font);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.media-card__caption {
  padding: 18px 20px 21px;
}

.media-card__caption h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  line-height: 1.45;
}

.media-card__caption p {
  margin: 0;
  font-size: 0.92rem;
}

.media-empty {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(55px, 8vw, 85px) 24px;
  background: linear-gradient(145deg, #fff, #fffafb);
  border: 1px dashed rgba(128, 25, 34, 0.22);
  border-radius: 26px;
  box-shadow: 0 16px 44px rgba(95, 16, 24, 0.05);
}

.media-empty i {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--media-red-soft), var(--media-red));
  border-radius: 50%;
  font-size: 1.8rem;
  box-shadow: 0 12px 30px rgba(128, 25, 34, 0.2);
}

.media-empty h3,
.media-empty h1 {
  margin-bottom: 10px;
  font-weight: 800;
}

.media-empty p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--media-muted);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Article detail
   -------------------------------------------------------------------------- */
.news-detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-height, 80px) + clamp(75px, 9vw, 120px)) 0 clamp(65px, 8vw, 100px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(212, 138, 145, 0.22), transparent 30%),
    linear-gradient(145deg, #21070b 0%, #5f1018 60%, #2b080d 100%);
}

.news-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../../img/patterns/washnah-pattern-source.png") center / 720px auto repeat;
  opacity: 0.12;
  mix-blend-mode: screen;
}

.news-detail-hero__inner {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.news-detail-hero .back-link {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
}

.news-detail-hero .back-link:hover {
  color: #fff;
}

.news-detail__meta {
  margin-bottom: 17px;
  color: #f0b0b6;
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 600;
}

.news-detail-hero h1 {
  max-width: 940px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

html[dir="rtl"] .news-detail-hero h1 {
  letter-spacing: 0;
  line-height: 1.2;
}

.news-detail-hero p {
  max-width: 760px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.85;
}

.news-detail {
  padding: clamp(65px, 8vw, 100px) 0;
  background:
    radial-gradient(circle at 10% 14%, rgba(128, 25, 34, 0.045), transparent 26%),
    linear-gradient(180deg, #fff, #fffafb);
}

.news-detail__image {
  max-width: 1120px;
  margin: 0 auto clamp(36px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid var(--media-line);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(95, 16, 24, 0.11);
}

.news-detail__image img {
  display: block;
  width: 100%;
  max-height: 660px;
  object-fit: cover;
}

.news-detail__content {
  max-width: 850px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 44px);
  color: #403437;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(128, 25, 34, 0.09);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(95, 16, 24, 0.055);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 2;
}

.news-detail__content p {
  margin-bottom: 1.3em;
}

.album-heading p {
  max-width: 660px;
  margin: 10px 0 0;
}

.back-link {
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(13, 8, 10, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.media-lightbox.is-open {
  display: flex;
  animation: mediaFadeIn 0.25s ease both;
}

.media-lightbox__inner {
  position: relative;
  width: min(1120px, 100%);
  max-height: 90vh;
}

.media-lightbox__stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.media-lightbox__stage iframe,
.media-lightbox__stage video,
.media-lightbox__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
}

.media-lightbox__close {
  position: absolute;
  top: -50px;
  inset-inline-end: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  font-size: 1.45rem;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.media-lightbox__close:hover {
  background: var(--media-red);
  transform: rotate(5deg) scale(1.05);
}

.media-toast {
  margin-bottom: 20px;
  padding: 14px 18px;
  color: #7f101e;
  background: #fff3f5;
  border: 1px solid #efcbd1;
  border-radius: 14px;
}

/* Match the main homepage footer identity */
.media-center-page .site-footer {
  background:
    radial-gradient(circle at 86% 10%, rgba(232, 165, 173, 0.15), transparent 29%),
    linear-gradient(145deg, #26060b 0%, #5f1018 58%, #33070d 100%);
}

.media-center-page .site-footer::before {
  background: radial-gradient(circle, rgba(212, 138, 145, 0.2), transparent 65%);
}

.media-center-page .footer-socials a:hover,
.media-center-page .footer-contact-btn:hover {
  background: var(--media-red);
  border-color: var(--media-red);
}

/* RTL refinements */
html[dir="rtl"] .media-center-page,
html[dir="rtl"] .media-center-page input,
html[dir="rtl"] .media-center-page textarea,
html[dir="rtl"] .media-center-page button {
  font-family: "Tahoma", "Arial", var(--default-font);
}

html[dir="rtl"] .media-toolbar h2::after,
html[dir="rtl"] .album-heading h2::after {
  inset-inline-start: 0;
}

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

@media (max-width: 1199px) {
  .media-center-page .header-actions {
    margin-inline-start: auto;
    margin-inline-end: 10px;
  }

  .media-center-page .navmenu > ul {
    min-height: 0;
  }
}

@media (max-width: 991.98px) {
  .news-grid,
  .gallery-grid,
  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-hero {
    min-height: 560px;
  }
}

@media (max-width: 767.98px) {
  .media-hero {
    min-height: 510px;
    padding: 128px 0 70px;
  }

  .media-hero h1 {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  .media-section {
    padding: 62px 0;
  }

  .media-toolbar,
  .album-heading {
    align-items: flex-start;
  }

  .media-filter {
    min-height: 40px;
    padding-inline: 14px;
  }

  .news-detail-hero {
    padding: 132px 0 68px;
  }

  .media-lightbox {
    padding: 14px;
  }

  .media-lightbox__close {
    top: -46px;
  }
}

@media (max-width: 575.98px) {
  .news-grid,
  .gallery-grid,
  .album-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .media-hero {
    min-height: 480px;
    padding: 120px 0 60px;
  }

  .media-hero__inner {
    width: min(100% - 20px, 920px);
  }

  .media-eyebrow {
    margin-bottom: 16px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .media-hero h1 {
    margin-bottom: 15px;
    font-size: clamp(2.15rem, 12vw, 3.2rem);
  }

  .media-hero p {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .media-hero__switcher {
    width: 100%;
    margin-top: 24px;
  }

  .media-hero__switcher a {
    flex: 1 1 0;
    padding-inline: 10px;
  }

  .media-toolbar {
    gap: 14px;
    margin-bottom: 24px;
  }

  .media-toolbar h2,
  .album-heading h2 {
    font-size: 1.75rem;
  }

  .media-filters {
    width: 100%;
  }

  .media-filter {
    flex: 1 1 auto;
  }

  .news-card__body,
  .album-card__body {
    padding: 20px;
  }

  .news-card h3,
  .album-card h3 {
    font-size: 1.18rem;
  }

  .news-detail-hero h1 {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .news-detail {
    padding: 56px 0;
  }

  .news-detail__image {
    border-radius: 20px;
  }

  .news-detail__content {
    padding: 23px 20px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-card,
  .media-card,
  .album-card,
  .news-card img,
  .media-card img,
  .album-card img,
  .media-filter,
  .media-link,
  .back-link {
    transition: none !important;
    transform: none !important;
  }
}


/* ==========================================================================
   Refined editorial cards & dedicated media details — 2026-07-15
   ========================================================================== */
.editorial-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.news-card__image,
.media-card__visual,
.album-card__visual {
  aspect-ratio: 16 / 9;
}

.card-visual-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 3;
  max-width: calc(100% - 28px);
  padding: 7px 11px;
  overflow: hidden;
  color: #fff;
  background: rgba(38, 6, 11, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-family: var(--nav-font);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.news-card__body,
.album-card__body,
.media-card__caption {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.news-card h3,
.album-card h3,
.media-card__caption h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card h3 a,
.album-card h3 a,
.media-card__caption h3 a {
  color: inherit;
  text-decoration: none;
}

.news-card h3 a:hover,
.album-card h3 a:hover,
.media-card__caption h3 a:hover {
  color: var(--media-red);
}

.news-card p,
.album-card p,
.media-card__caption p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.media-card {
  cursor: default;
}

.media-card__caption {
  padding: 20px 21px 22px;
}

.media-card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: var(--media-red);
  font-family: var(--nav-font);
  font-size: 11px;
  font-weight: 650;
}

.editorial-card__footer {
  margin-top: auto;
  padding-top: 18px;
}

.media-readmore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--media-red-soft), var(--media-red));
  border: 1px solid rgba(128, 25, 34, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(128, 25, 34, 0.16);
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.media-readmore-button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--media-red), var(--media-red-deep));
  box-shadow: 0 14px 30px rgba(128, 25, 34, 0.24);
  transform: translateY(-2px);
}

.media-readmore-button i {
  transition: transform 0.25s ease;
}

.media-readmore-button:hover i {
  transform: translateX(3px);
}

html[dir="rtl"] .media-readmore-button:hover i {
  transform: translateX(-3px);
}

.media-readmore-button--wide {
  width: 100%;
  margin-top: 8px;
}

/* News and media detail heroes use the actual story visual. */
.news-detail-hero.has-hero-image {
  min-height: clamp(570px, 74svh, 820px);
  display: flex;
  align-items: center;
  background: #16070a;
}

.news-detail-hero__media {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.015);
}

.news-detail-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(8, 8, 9, 0.35) 0%, rgba(8, 8, 9, 0.56) 48%, rgba(22, 7, 10, 0.88) 100%),
    radial-gradient(circle at 18% 40%, rgba(128, 25, 34, 0.3), transparent 38%);
}

html[dir="rtl"] .news-detail-hero__shade {
  background:
    linear-gradient(180deg, rgba(8, 8, 9, 0.35) 0%, rgba(8, 8, 9, 0.56) 48%, rgba(22, 7, 10, 0.88) 100%),
    radial-gradient(circle at 82% 40%, rgba(128, 25, 34, 0.3), transparent 38%);
}

.news-detail-hero.has-hero-image::before {
  opacity: 0.06;
}

.news-detail-hero__inner {
  position: relative;
  z-index: 2;
}

.news-detail-hero.has-hero-image .news-detail-hero__inner {
  padding-top: clamp(36px, 6vw, 72px);
}

.news-detail__content {
  max-width: 900px;
}

/* Dedicated image/video detail page. */
.media-item-detail-hero .news-detail-hero__inner {
  max-width: 1000px;
}

.media-detail__hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.media-detail__hero-meta > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-family: var(--nav-font);
  font-size: 11px;
  font-weight: 650;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.media-detail__hero-meta .media-detail__type {
  color: #fff;
  background: var(--media-red);
  border-color: rgba(255, 255, 255, 0.2);
}

.media-detail-section {
  padding: clamp(64px, 8vw, 104px) 0;
  background:
    radial-gradient(circle at 10% 12%, rgba(128, 25, 34, 0.045), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fffafb 100%);
}

.media-detail__stage {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto clamp(36px, 5vw, 58px);
  background: #12090b;
  border: 1px solid rgba(128, 25, 34, 0.12);
  border-radius: 28px;
  box-shadow: 0 26px 74px rgba(95, 16, 24, 0.13);
}

.media-detail__stage.is-video {
  aspect-ratio: 16 / 9;
}

.media-detail__stage.is-image {
  background: #f3ecee;
}

.media-detail__stage img {
  display: block;
  width: 100%;
  max-height: 780px;
  object-fit: contain;
}

.media-detail__stage iframe,
.media-detail__stage video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.media-detail__content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.65fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.media-detail__copy,
.media-detail__aside {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(128, 25, 34, 0.09);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(95, 16, 24, 0.055);
}

.media-detail__copy {
  padding: clamp(26px, 4vw, 44px);
}

.media-detail__aside {
  position: sticky;
  top: calc(var(--header-height, 80px) + 24px);
  padding: 22px;
}

.media-detail__eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 10px;
  color: var(--media-red);
  background: rgba(128, 25, 34, 0.07);
  border-radius: 999px;
  font-family: var(--nav-font);
  font-size: 11px;
  font-weight: 750;
}

.media-detail__copy h2 {
  margin: 0 0 18px;
  color: var(--heading-color);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
}

.media-detail__description {
  color: #403437;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 2;
}

.media-detail__fact {
  padding: 14px 0;
  border-bottom: 1px solid rgba(128, 25, 34, 0.09);
}

.media-detail__fact:first-child {
  padding-top: 0;
}

.media-detail__fact:last-of-type {
  border-bottom: 0;
}

.media-detail__fact span {
  display: block;
  margin-bottom: 4px;
  color: var(--media-muted);
  font-family: var(--nav-font);
  font-size: 11px;
  font-weight: 600;
}

.media-detail__fact strong,
.media-detail__fact a {
  color: var(--media-ink);
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

.media-detail__fact a:hover {
  color: var(--media-red);
}

@media (max-width: 991.98px) {
  .media-detail__content-grid {
    grid-template-columns: 1fr;
  }

  .media-detail__aside {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .news-card__image,
  .media-card__visual,
  .album-card__visual {
    aspect-ratio: 16 / 9;
  }

  .media-card__caption {
    padding: 19px;
  }

  .news-detail-hero.has-hero-image {
    min-height: 560px;
  }

  .media-detail__stage {
    border-radius: 20px;
  }

  .media-detail__copy,
  .media-detail__aside {
    border-radius: 20px;
  }
}

/* News linked video */
.news-linked-media { width: min(100%, 1180px); margin: clamp(28px, 5vw, 64px) auto 0; }
.news-linked-media__head { margin-bottom: 18px; }
.news-linked-media__head span { display: inline-block; color: #801922; font-weight: 700; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
.news-linked-media__head h2 { margin: 7px 0 0; font-size: clamp(1.5rem, 3vw, 2.4rem); }



/* ==========================================================================
   Fresh content badge — visible for the first 7 days after publication
   ========================================================================== */
.washnah-new-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 30px;
  padding: 6px 13px;
  color: #fff;
  background: linear-gradient(135deg, #c92f42 0%, #801922 58%, #5f1018 100%);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  box-shadow:
    0 10px 26px rgba(128, 25, 34, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-family: var(--nav-font);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(9px) saturate(145%);
  -webkit-backdrop-filter: blur(9px) saturate(145%);
  animation: washnah-new-badge-enter 520ms cubic-bezier(.2,.75,.25,1) both;
}

html[dir="rtl"] .washnah-new-badge {
  left: 14px;
  right: auto;
  font-family: "Tajawal", var(--default-font);
  letter-spacing: 0;
  text-transform: none;
}

/* Keep the content type/category on the opposite corner when NEW is present. */
.news-card .card-visual-badge,
.media-card .media-card__badge {
  left: auto;
  right: 14px;
  inset-inline-start: auto;
  inset-inline-end: auto;
}

@keyframes washnah-new-badge-enter {
  from {
    opacity: 0;
    transform: translateY(-7px) scale(.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 575.98px) {
  .washnah-new-badge {
    top: 11px;
    left: 11px;
    min-width: 52px;
    min-height: 28px;
    padding: 6px 11px;
    font-size: 10px;
  }

  html[dir="rtl"] .washnah-new-badge {
    left: 11px;
  }

  .news-card .card-visual-badge,
  .media-card .media-card__badge {
    right: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .washnah-new-badge {
    animation: none;
  }
}

/* ==========================================================================
   Final album grid + news inline thumbnail placement
   Arabic: thumbnail on the visual left. English: thumbnail on the visual right.
   ========================================================================== */
.gallery-grid.album-media-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.album-media-grid .album-media-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
}

.album-media-grid .media-card__visual {
  aspect-ratio: 4 / 3;
}

.album-media-grid .media-card__caption {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.album-media-grid .editorial-card__footer {
  margin-top: auto;
}

.news-detail__content-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  /* English: copy first, image on the right. */
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  grid-template-areas: "copy thumbnail";
  gap: clamp(28px, 4.2vw, 54px);
  align-items: start;
  direction: ltr;
}

/* Arabic: image on the left and copy on the right. */
html[dir="rtl"] .news-detail__content-layout {
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  grid-template-areas: "thumbnail copy";
}

.news-detail__content-layout.no-content-image,
html[dir="rtl"] .news-detail__content-layout.no-content-image {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy";
  width: min(860px, 100%);
}

.news-detail__thumbnail {
  grid-area: thumbnail;
  position: sticky;
  top: 112px;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #f4edef, #eee5e7);
  border: 1px solid rgba(128, 25, 34, .11);
  border-radius: 24px;
  box-shadow: 0 24px 62px rgba(95, 16, 24, .13);
}

.news-detail__thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, .78);
}

.news-detail__thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.news-detail__content-layout .news-detail__content {
  grid-area: copy;
  width: 100%;
  max-width: none;
  margin: 0;
}

html[dir="rtl"] .news-detail__content-layout .news-detail__content {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] .news-detail__content-layout .news-detail__content {
  direction: ltr;
  text-align: left;
}

@media (max-width: 1199.98px) {
  .gallery-grid.album-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .gallery-grid.album-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-detail__content-layout,
  html[dir="rtl"] .news-detail__content-layout {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  }

  html[dir="rtl"] .news-detail__content-layout {
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  }
}

@media (max-width: 767.98px) {
  .news-detail__content-layout,
  html[dir="rtl"] .news-detail__content-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "thumbnail"
      "copy";
    gap: 20px;
  }

  .news-detail__content-layout.no-content-image,
  html[dir="rtl"] .news-detail__content-layout.no-content-image {
    grid-template-areas: "copy";
  }

  .news-detail__thumbnail {
    position: relative;
    top: auto;
    width: min(100%, 540px);
    margin-inline: auto;
  }
}

@media (max-width: 575.98px) {
  .gallery-grid.album-media-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Luxury responsive titles — news, photos, videos and albums
   Arabic and English / all screen sizes
   ========================================================================== */
.media-hero__inner,
.news-detail-hero__inner,
.media-item-detail-hero .news-detail-hero__inner {
  width: min(100%, 1120px);
  padding-inline: clamp(18px, 4vw, 52px);
}

.media-hero h1,
.news-detail-hero h1,
.media-item-detail-hero h1 {
  position: relative;
  width: min(100%, 1040px);
  max-width: 1040px;
  margin-inline: auto;
  color: #fff;
  font-size: clamp(2.35rem, 4.5vw, 4.35rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.26);
}

html[dir="rtl"] .media-hero h1,
html[dir="rtl"] .news-detail-hero h1,
html[dir="rtl"] .media-item-detail-hero h1 {
  font-size: clamp(2.45rem, 4.35vw, 4.2rem);
  line-height: 1.28;
  letter-spacing: 0;
  font-weight: 800;
}

.media-hero h1::after,
.news-detail-hero h1::after,
.media-item-detail-hero h1::after {
  content: "";
  display: block;
  width: clamp(54px, 6vw, 82px);
  height: 3px;
  margin: clamp(18px, 2.3vw, 27px) auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.42), #d76772 48%, #ffffff 100%);
  box-shadow: 0 4px 16px rgba(128, 25, 34, .32);
}

.media-hero p,
.news-detail-hero p,
.media-item-detail-hero p {
  width: min(100%, 790px);
  margin-inline: auto;
  font-size: clamp(.98rem, 1.35vw, 1.12rem);
  line-height: 1.9;
  text-wrap: pretty;
}

html[dir="rtl"] .media-hero p,
html[dir="rtl"] .news-detail-hero p,
html[dir="rtl"] .media-item-detail-hero p {
  line-height: 2;
}

.news-detail-hero .back-link,
.news-detail__meta,
.media-detail__hero-meta {
  position: relative;
  z-index: 2;
}

.news-detail-hero .back-link {
  margin-bottom: clamp(18px, 2.3vw, 28px);
}

.news-detail__meta,
.media-detail__hero-meta {
  margin-bottom: clamp(18px, 2.2vw, 27px);
}

.news-detail-hero.has-hero-image {
  min-height: clamp(540px, 70svh, 790px);
  height: auto;
  padding-block: calc(var(--header-height, 80px) + clamp(66px, 7vw, 96px)) clamp(64px, 8vw, 104px);
}

.media-item-detail-hero.news-detail-hero.has-hero-image {
  min-height: clamp(520px, 66svh, 760px);
}

.media-hero.video-banner {
  min-height: clamp(480px, 61svh, 690px);
}

.album-heading > div {
  min-width: 0;
  max-width: min(100%, 850px);
}

.album-heading h2,
.media-toolbar h2,
.media-detail__copy h2,
.news-linked-media__head h2 {
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
}

.album-heading h2 {
  font-size: clamp(2rem, 3.7vw, 3.35rem);
  line-height: 1.24;
}

html[dir="rtl"] .album-heading h2 {
  line-height: 1.38;
}

.album-heading p {
  max-width: 760px;
  margin-top: 14px;
  font-size: clamp(.98rem, 1.3vw, 1.08rem);
  line-height: 1.95;
}

html[dir="rtl"] .album-heading p {
  line-height: 2.05;
}

.media-card__caption h3,
.album-card__body h3,
.news-card__body h3 {
  line-height: 1.45;
  text-wrap: balance;
  overflow-wrap: break-word;
}

html[dir="rtl"] .media-card__caption h3,
html[dir="rtl"] .album-card__body h3,
html[dir="rtl"] .news-card__body h3 {
  line-height: 1.62;
}

@media (max-width: 991.98px) {
  .media-hero__inner,
  .news-detail-hero__inner,
  .media-item-detail-hero .news-detail-hero__inner {
    width: min(100%, 920px);
    padding-inline: clamp(18px, 4vw, 34px);
  }

  .media-hero h1,
  .news-detail-hero h1,
  .media-item-detail-hero h1 {
    width: min(100%, 880px);
    font-size: clamp(2.2rem, 6.2vw, 3.85rem);
    line-height: 1.18;
  }

  html[dir="rtl"] .media-hero h1,
  html[dir="rtl"] .news-detail-hero h1,
  html[dir="rtl"] .media-item-detail-hero h1 {
    font-size: clamp(2.3rem, 6vw, 3.75rem);
    line-height: 1.3;
  }

  .news-detail-hero.has-hero-image {
    min-height: clamp(520px, 68svh, 720px);
  }
}

@media (max-width: 767.98px) {
  .media-hero__inner,
  .news-detail-hero__inner,
  .media-item-detail-hero .news-detail-hero__inner {
    padding-inline: 18px;
  }

  .media-hero h1,
  .news-detail-hero h1,
  .media-item-detail-hero h1 {
    width: min(100%, 680px);
    font-size: clamp(2rem, 8.2vw, 3.1rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
  }

  html[dir="rtl"] .media-hero h1,
  html[dir="rtl"] .news-detail-hero h1,
  html[dir="rtl"] .media-item-detail-hero h1 {
    font-size: clamp(2.05rem, 8vw, 3rem);
    line-height: 1.34;
  }

  .media-hero h1::after,
  .news-detail-hero h1::after,
  .media-item-detail-hero h1::after {
    height: 2px;
    margin-top: 18px;
  }

  .media-hero p,
  .news-detail-hero p,
  .media-item-detail-hero p {
    margin-top: 17px;
    font-size: .98rem;
    line-height: 1.82;
  }

  html[dir="rtl"] .media-hero p,
  html[dir="rtl"] .news-detail-hero p,
  html[dir="rtl"] .media-item-detail-hero p {
    line-height: 1.95;
  }

  .news-detail-hero.has-hero-image,
  .media-item-detail-hero.news-detail-hero.has-hero-image {
    min-height: auto;
    padding-block: calc(var(--header-height, 76px) + 62px) 70px;
  }

  .media-hero.video-banner {
    min-height: auto;
    padding-block: calc(var(--header-height, 76px) + 56px) 64px;
  }

  .album-heading {
    align-items: flex-start;
    gap: 18px;
  }

  .album-heading h2 {
    font-size: clamp(1.85rem, 7vw, 2.75rem);
    line-height: 1.28;
  }

  html[dir="rtl"] .album-heading h2 {
    line-height: 1.42;
  }
}

@media (max-width: 575.98px) {
  .media-hero h1,
  .news-detail-hero h1,
  .media-item-detail-hero h1 {
    font-size: clamp(1.78rem, 8.9vw, 2.55rem);
    line-height: 1.24;
  }

  html[dir="rtl"] .media-hero h1,
  html[dir="rtl"] .news-detail-hero h1,
  html[dir="rtl"] .media-item-detail-hero h1 {
    font-size: clamp(1.85rem, 8.7vw, 2.55rem);
    line-height: 1.4;
  }

  .news-detail__meta {
    font-size: 11px;
    line-height: 1.7;
  }

  .media-detail__hero-meta {
    gap: 6px;
  }

  .media-detail__hero-meta > span {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 10px;
  }

  .album-heading h2 {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }
}


/* ==========================================================================
   Interactive article side panel — title, date and reader likes
   Arabic: panel on the visual left. English: panel on the visual right.
   ========================================================================== */
.news-detail__content-layout,
.news-detail__content-layout.no-content-image {
  width: min(1220px, 100%);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  grid-template-areas: "copy story";
  gap: clamp(30px, 4.5vw, 58px);
  align-items: start;
}

html[dir="rtl"] .news-detail__content-layout,
html[dir="rtl"] .news-detail__content-layout.no-content-image {
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  grid-template-areas: "story copy";
}

.news-detail__story-panel {
  grid-area: story;
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.news-detail__story-panel .news-detail__thumbnail {
  position: relative;
  top: auto;
  grid-area: auto;
  border-radius: 25px;
  box-shadow: 0 24px 62px rgba(95, 16, 24, .14);
}

.news-detail__story-panel .news-detail__thumbnail img {
  aspect-ratio: 4 / 3;
}

.news-story-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 2.5vw, 32px);
  color: #fff;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 27px;
  background:
    radial-gradient(circle at 90% 8%, rgba(255,255,255,.18), transparent 30%),
    linear-gradient(145deg, #8f202b 0%, #74151f 52%, #4f0e16 100%);
  box-shadow: 0 26px 68px rgba(78, 11, 20, .22);
}

html[dir="rtl"] .news-story-card {
  direction: rtl;
  text-align: right;
}

.news-story-card::before,
.news-story-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.news-story-card::before {
  width: 180px;
  height: 180px;
  inset: -82px -54px auto auto;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 0 0 24px rgba(255,255,255,.025), 0 0 0 52px rgba(255,255,255,.02);
}

.news-story-card::after {
  width: 150px;
  height: 150px;
  inset: auto auto -95px -70px;
  background: rgba(255,255,255,.055);
  filter: blur(1px);
}

.news-story-card__glow {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .5;
  background: linear-gradient(115deg, transparent 10%, rgba(255,255,255,.08) 45%, transparent 72%);
  transform: translateX(-110%);
  animation: washStoryShimmer 8s ease-in-out infinite;
}

.news-story-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  margin-bottom: 17px;
  color: rgba(255,255,255,.94);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.095);
  backdrop-filter: blur(10px);
}

.news-story-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -.018em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

html[dir="rtl"] .news-story-card h2 {
  line-height: 1.62;
  letter-spacing: 0;
}

.news-story-card__date {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0 19px;
  margin-top: 19px;
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.news-story-card__date-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: #801922;
  font-size: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 25px rgba(32,0,6,.18);
}

.news-story-card__date > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.news-story-card__date small {
  color: rgba(255,255,255,.66);
  font-size: 11px;
  font-weight: 600;
}

.news-story-card__date time {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.news-story-card__actions {
  margin-top: 20px;
}

.news-like-button {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 10px 12px;
  color: #66131d;
  text-align: start;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 17px 38px rgba(34,0,6,.2);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.news-like-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(34,0,6,.25);
}

.news-like-button:focus-visible {
  outline: 3px solid rgba(255,255,255,.7);
  outline-offset: 4px;
}

.news-like-button:disabled {
  cursor: not-allowed;
  opacity: .66;
  transform: none;
}

.news-like-button.is-pending {
  pointer-events: none;
}

.news-like-button__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #9a202d;
  font-size: 21px;
  border-radius: 16px;
  background: linear-gradient(145deg, #faeef0, #f4dadd);
  box-shadow: inset 0 1px rgba(255,255,255,.8);
}

.news-like-button__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.news-like-button__copy small {
  color: #88676b;
  font-size: 10px;
  font-weight: 600;
}

.news-like-button__copy strong {
  color: #66131d;
  font-size: 14px;
  font-weight: 800;
}

.news-like-button__count {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 38px;
  padding-inline: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border-radius: 13px;
  background: linear-gradient(145deg, #9b2430, #6d121c);
  box-shadow: 0 8px 18px rgba(128,25,34,.22);
}

.news-like-button.is-liked {
  background: #fff;
}

.news-like-button.is-liked .news-like-button__icon {
  color: #fff;
  background: linear-gradient(145deg, #b42d3b, #791722);
  animation: washLikePop .45s ease both;
}

.news-like-status {
  min-height: 18px;
  margin: 9px 3px 0;
  color: rgba(255,255,255,.78);
  font-size: 11px;
  line-height: 1.6;
}

@keyframes washLikePop {
  0% { transform: scale(.78); }
  55% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

@keyframes washStoryShimmer {
  0%, 68%, 100% { transform: translateX(-110%); }
  82% { transform: translateX(110%); }
}

@media (max-width: 1199.98px) {
  .news-detail__content-layout,
  .news-detail__content-layout.no-content-image {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 370px);
  }

  html[dir="rtl"] .news-detail__content-layout,
  html[dir="rtl"] .news-detail__content-layout.no-content-image {
    grid-template-columns: minmax(310px, 370px) minmax(0, 1fr);
  }
}

@media (max-width: 991.98px) {
  .news-detail__content-layout,
  .news-detail__content-layout.no-content-image {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
    gap: 28px;
  }

  html[dir="rtl"] .news-detail__content-layout,
  html[dir="rtl"] .news-detail__content-layout.no-content-image {
    grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
  }

  .news-story-card {
    padding: 22px;
  }
}

@media (max-width: 767.98px) {
  .news-detail__content-layout,
  html[dir="rtl"] .news-detail__content-layout,
  .news-detail__content-layout.no-content-image,
  html[dir="rtl"] .news-detail__content-layout.no-content-image {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "story" "copy";
    gap: 24px;
  }

  .news-detail__story-panel {
    position: relative;
    top: auto;
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .news-story-card h2 {
    font-size: clamp(1.3rem, 5.3vw, 1.72rem);
  }
}

@media (max-width: 420px) {
  .news-story-card {
    padding: 20px 17px;
    border-radius: 23px;
  }

  .news-like-button {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 64px;
    border-radius: 18px;
  }

  .news-like-button__icon {
    width: 42px;
    height: 42px;
  }

  .news-like-button__count {
    min-width: 38px;
    min-height: 36px;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-story-card__glow,
  .news-like-button.is-liked .news-like-button__icon {
    animation: none;
  }
}


/* ========================================================================== 
   Photo/video engagement card and responsive like control
   ========================================================================== */
.media-engagement-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 22px;
  color: #fff;
  border: 1px solid rgba(128, 25, 34, .12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 0, rgba(255,255,255,.18), transparent 34%),
    linear-gradient(145deg, #942430 0%, #74151f 55%, #4f0e16 100%);
  box-shadow: 0 20px 48px rgba(95, 16, 24, .16);
}

.media-engagement-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 150px;
  inset-inline-end: -80px;
  inset-block-end: -90px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255,255,255,.025), 0 0 0 48px rgba(255,255,255,.018);
}

.media-engagement-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 6px 10px;
  margin-bottom: 12px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.media-engagement-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  font-weight: 800;
  line-height: 1.55;
}

.media-engagement-card > p:not(.media-like-status) {
  margin: 8px 0 17px;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  line-height: 1.7;
}

.media-engagement-card .news-like-button {
  min-height: 62px;
  border-radius: 18px;
}

.media-like-status {
  min-height: 18px;
  margin: 8px 4px 0;
  color: rgba(255,255,255,.8);
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .media-engagement-card { padding: 20px; }
}

@media (max-width: 575.98px) {
  .media-engagement-card {
    padding: 18px;
    border-radius: 19px;
  }
  .media-engagement-card .news-like-button {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }
}
