/* English */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');

:root {
  --clr-white: #ffffff;
  --clr-dark: #1a1a1a;
  --clr-muted: #6b6b6b;
  --radius-md: 32px;
}

/* ================================================
   BASE
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

main {
  font-family: Cairo, sans-serif;
  background-color: #fff;
  color: #1a1a1a;
}

/* ================================================
   HEADER
   ================================================ */
.news-details-header {
  background-color: #000;
  padding: 60px 20px 136px;
}

  .news-details-header .section-inner {
    max-width: 1232px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0;
  }

.news-details-header__badge {
  display: inline-block;
  background: #8A1538;
  color: #FFF;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.news-details-header__title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  max-width: 820px;
  margin: 0;
}

.news-details-header__description {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 24px;
}

.news-details-header__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.news-details-header__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  flex-direction: row-reverse;
}

  .news-details-header__meta-item:not(:last-child)::after {
    content: '·';
    margin-left: 12px;
    color: rgba(255, 255, 255, 0.3);
  }

  .news-details-header__meta-item img {
    width: 16px;
    height: 16px;
  }

.news-details-header__meta-separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 16px;
}

/* ================================================
   CARD WRAPPER
   ================================================ */
.news-details-card {
  max-width: 1232px;
  margin: -85px auto 48px;
  border-radius: 24px;
  background-color: #fff;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* ================================================
   PRESENTATION PICTURE
   ================================================ */
.news-details-presentation {
  width: 100%;
  background-color: #000;
}

  .news-details-presentation .section-inner {
    max-width: 1232px;
    margin: 0 auto;
    padding: 0;
  }

.news-details-presentation__image {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* ================================================
   PUBLISHER + SHARE BAR
   ================================================ */
.news-details-publisher {
  background-color: #fff;
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
}

  .news-details-publisher .section-inner {
    max-width: 1200px;
    padding: 0 44px;
  }

.news-details-publisher__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

.news-details-publisher__source {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-details-publisher__title {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  background-color: #f4f4f4;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #444;
  margin: 0;
}

.news-details-publisher__share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.news-details-publisher__share-label {
  font-size: 14px;
  font-weight: 500;
  color: #888;
  margin-right: 4px;
  align-self: center;
}

.news-details-publisher__share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background-color: #fff;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s;
}

  .news-details-publisher__share-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
  }

  .news-details-publisher__share-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
  }

.news-details-publisher__share-btn--facebook {
  background-color: #EFF6FF;
  border-color: transparent;
  color: #1877F2;
}

  .news-details-publisher__share-btn--facebook:hover {
    background-color: #DBEAFE;
    border-color: transparent;
    color: #1464D0;
  }

.news-details-publisher__share-btn--x {
  background-color: #F1F5F9;
  border-color: transparent;
  color: #333;
}

  .news-details-publisher__share-btn--x:hover {
    background-color: #E2E8F0;
    border-color: transparent;
    color: #111;
  }

.news-details-publisher__share-btn--whatsapp {
  background-color: #DCFCE7;
  border-color: transparent;
  color: #1A9E4A;
}

  .news-details-publisher__share-btn--whatsapp:hover {
    background-color: #BBF7D0;
    border-color: transparent;
    color: #128C3A;
  }

.news-details-publisher__share-btn--icon-only {
  width: 38px;
  padding: 0;
  justify-content: center;
}

.news-details-publisher__share-btn--copied {
  border-color: #22c55e;
  background-color: #f0fdf4;
}

/* ================================================
   LONG DESCRIPTION
   ================================================ */
.news-details-body {
  padding: 0;
  background-color: #fff;
}

  .news-details-body .section-inner {
    max-width: 1232px;
    margin: 0 auto;
  }

.news-details-body__text {
  font-size: 16px;
  font-weight: 400;
  color: #2a2a2a;
  line-height: 2;
  padding-top: 40px;
}

  .news-details-body__text p {
    margin-bottom: 28px;
  }

    .news-details-body__text p:last-child {
      margin-bottom: 0;
    }

/* ================================================
   QUOTE
   ================================================ */
.news-details-quote {
  padding: 40px 0 0;
  background-color: #fff;
}

  .news-details-quote .section-inner {
    max-width: 1232px;
    margin: 0 auto;
  }

.news-details-quote__block {
  background-color: #FDF8F9;
  border: 1px solid rgba(138, 21, 56, 0.1);
  border-radius: 16px;
  padding: 44px 56px;
  position: relative;
  text-align: center;
  margin: 0;
}

.news-details-quote__icon {
  position: absolute;
  top: 16px;
  left: 32px;
  width: 49px;
  height: 98px;
}

.news-details-quote__text {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: normal;
}

.news-details-quote__subtitle {
  display: inline;
  font-size: 13px;
  font-weight: 400;
  color: #888;
}

  .news-details-quote__subtitle::after {
    content: ' | ';
    color: #ccc;
    margin: 0 6px;
  }

.news-details-quote__author {
  display: inline;
  font-size: 14px;
  font-weight: 700;
  color: #8A1538;
  font-style: normal;
}

/* ================================================
   GALLERY
   ================================================ */
.news-details-gallery {
  padding: 0 0 48px;
  margin-top: 50px;
  background-color: #fff;
}

  .news-details-gallery .section-inner {
    max-width: 1232px;
    margin: 0 auto;
  }

.news-details-gallery__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
}

.news-details-gallery__heading {
  font-size: 20px;
  font-weight: 700;
  color: #101828;
  margin: 0;
}

.news-details-gallery__count {
  font-size: 14px;
  font-weight: 500;
  color: #888;
}

/* ── Swiper container ── */
.news-details-gallery__swiper {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 16px;
}

  .news-details-gallery__swiper::-webkit-scrollbar {
    display: none;
  }

/* ── Swiper page ── */
.news-details-gallery__page {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  gap: 10px;
  height: 440px;
}

/* ── Featured image — fills page when no grid sibling ── */
.news-details-gallery__item--featured {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  background-color: #e8e8e8;
}

/* ── When a grid is present, featured takes the left half ── */
.news-details-gallery__page--with-grid .news-details-gallery__item--featured {
  flex: 0 0 calc(50% - 5px);
}

/* ── 2×2 grid (right half on page 1, full-width on overflow pages) ── */
.news-details-gallery__grid2x2 {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

/* ── Individual image item ── */
.news-details-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background-color: #e8e8e8;
  cursor: pointer;
}

  .news-details-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }

  .news-details-gallery__item:hover img {
    transform: scale(1.04);
  }

/* ── Dot navigation ── */
.news-details-gallery__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.news-details-gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d1d5db;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s, transform 0.2s;
}

  .news-details-gallery__dot--active,
  .news-details-gallery__dot:hover {
    background-color: #8A1538;
    transform: scale(1.3);
  }

/* ================================================
   TAGS
   ================================================ */
.news-details-tags {
  padding: 25px 0 40px;
  background-color: #fff;
  border-top: 1px solid #F3F4F6;
}

  .news-details-tags .section-inner {
    max-width: 1232px;
    margin: 0 auto;
  }

.news-details-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  justify-content: flex-start;
}

.news-details-tags__item {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  background-color: #f4f4f4;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #444;
  cursor: default;
  transition: background-color 0.2s;
}

  .news-details-tags__item:hover {
    background-color: #e8e8e8;
  }

/* ================================================
   RELATED NEWS
   ================================================ */
.news-related {
  max-width: 1232px;
  margin: 0 auto;
  padding: 16px 0 68px;
}

  .news-related .section-inner {
    max-width: 1232px;
    margin: 0 auto;
    padding: 0;
  }

.news-related__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.news-related__title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--clr-dark);
}

.news-related__see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #8A1538;
  text-decoration: none;
}

  .news-related__see-all img {
    width: 16px;
    height: 16px;
  }

/* ================================================
   NEWS GRID & CARD
   ================================================ */
.news-grid__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  height: 580px;
  width: 100%;
}

  .news-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
  }

.news-card__image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

  .news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
  }

.news-card:hover .news-card__image img {
  transform: scale(1.05);
}

.news-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  color: #8A1538;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-card__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__date {
  font-size: 14px;
  color: var(--clr-muted);
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 1.45;
  margin-bottom: 6px;
  max-width: 330px;
}

.news-card__description {
  font-size: 15px;
  color: var(--clr-muted);
  font-weight: 400;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 100px;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 800;
  color: #8A1538;
  text-decoration: none;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #F3F4F6;
}

  .news-card__link img {
    transform: scaleX(-1);
  }

.news-card:hover .news-card__link {
  gap: 8px;
}

/* ================================================
   RESPONSIVE OVERRIDES
   ================================================ */

/* ── Small desktop (≤ 1280px) ── */
@media (max-width: 1280px) {
  .news-details-card {
    margin-left: 20px;
    margin-right: 20px;
  }

  .news-related {
    padding-left: 20px;
    padding-right: 20px;
  }

  .news-details-quote__icon {
    display: none;
  }

  .news-details-publisher .section-inner,
  .news-details-body .section-inner,
  .news-details-quote .section-inner,
  .news-details-gallery .section-inner,
  .news-details-tags .section-inner {
    padding: 0 32px;
  }
}

/* ── Tablet landscape (≤ 1024px) ── */
@media (max-width: 1024px) {
  .news-details-header {
    padding-bottom: 110px;
  }

  .news-details-card {
    margin-top: -70px;
    margin-left: 16px;
    margin-right: 16px;
  }

  .news-details-publisher .section-inner,
  .news-details-body .section-inner,
  .news-details-quote .section-inner,
  .news-details-gallery .section-inner,
  .news-details-tags .section-inner {
    padding: 0 24px;
  }

  .news-grid__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .news-card {
    height: auto;
  }

  .news-card__image {
    height: 220px;
  }
}

/* ── Tablet portrait (≤ 768px) ── */
@media (max-width: 768px) {
  .news-details-header {
    padding: 80px 20px 20px;
  }

  .news-details-card {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .news-details-publisher .section-inner,
  .news-details-body .section-inner,
  .news-details-quote .section-inner,
  .news-details-gallery .section-inner,
  .news-details-tags .section-inner {
    padding: 0 20px;
  }

  .news-details-presentation__image {
    max-height: 280px;
  }

  /* Gallery page 1: featured half + 2 stacked images; overflow pages keep 2×2 */
  .news-details-gallery__page--with-grid .news-details-gallery__grid2x2 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .news-details-gallery__page--with-grid .news-details-gallery__grid2x2 .news-details-gallery__item:nth-child(n+3) {
    display: none;
  }

  .news-details-publisher__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .news-details-publisher__share {
    flex-wrap: wrap;
    gap: 8px;
  }

  .news-details-body__text {
    font-size: 15px;
    padding-top: 28px;
  }

  .news-details-quote__block {
    padding: 32px 24px;
  }

  .news-details-quote__text {
    font-size: 18px;
  }

  .news-grid__list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-card {
    height: auto;
    flex-direction: row;
    border-radius: 16px;
  }

  .news-card__image {
    width: 140px;
    height: auto;
    min-height: 140px;
    flex-shrink: 0;
    border-radius: 0;
  }

  .news-card__body {
    padding: 20px;
  }

  .news-card__title {
    font-size: 16px;
    max-width: 100%;
  }

  .news-card__description {
    display: none;
  }
}

/* ── Gallery tablet (≤ 640px) ── */
@media (max-width: 640px) {
  .news-details-gallery__page {
    height: 280px;
  }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .news-details-header {
    padding: 72px 16px 16px;
  }

  .news-details-publisher .section-inner,
  .news-details-body .section-inner,
  .news-details-quote .section-inner,
  .news-details-gallery .section-inner,
  .news-details-tags .section-inner {
    padding: 0 16px;
  }

  .news-details-header__meta {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
  }

  .news-details-header__meta-item {
    font-size: 11px;
  }

  /* Share buttons collapse to icon-only */
  .news-details-publisher__share-btn {
    font-size: 0;
    padding: 0 9px;
  }

    .news-details-publisher__share-btn img {
      width: 20px;
      height: 20px;
    }

  .js-copy-url {
    font-size: 12px !important;
    padding: 0 10px !important;
  }

  .news-details-quote__block {
    padding: 24px 16px;
  }

  .news-details-quote__text {
    font-size: 16px;
  }

  .news-details-gallery__page {
    height: 220px;
  }

  .news-card {
    flex-direction: column;
  }

  .news-card__image {
    width: 100%;
    height: 200px;
  }

  .news-related__title {
    font-size: 16px;
  }

  .news-details-tags__list {
    gap: 8px;
  }

  .news-details-tags__item {
    font-size: 10px;
    padding: 5px 14px;
  }
}

/* ================================================
   GALLERY LIGHTBOX
   ================================================ */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.gallery-lightbox--open {
  display: flex;
  animation: lightbox-in 0.2s ease;
}

@keyframes lightbox-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.gallery-lightbox__img-wrap {
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
}

.gallery-lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

  .gallery-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.25);
  }

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

  .gallery-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.25);
  }

.gallery-lightbox__nav--prev { left: 16px; }
.gallery-lightbox__nav--next { right: 16px; }

.gallery-lightbox__counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-family: Cairo, sans-serif;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
  direction: ltr;
}

@media (max-width: 640px) {
  .gallery-lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .gallery-lightbox__nav--prev { left: 8px; }
  .gallery-lightbox__nav--next { right: 8px; }
}
