/**
 * 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;
  }
}
