/* =====================================================
   NEWS PAGE — Dar Al Basaer
   (Arabic / RTL)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-bg: #f5f4f0;
  --clr-dark: #1a1a1a;
  --clr-red: #c0392b;
  --clr-red-light: #fdecea;
  --clr-white: #ffffff;
  --clr-muted: #6b6b6b;
  --clr-border: #e2e0da;
  --radius-sm: 6px;
  --radius-md: 32px;
  --radius-lg: 40px;
  --font-main: 'Cairo', sans-serif;
  --section-max: 1232px;
  --section-pad: 0 24px;
}

body {
  font-family: var(--font-main);
  background: var(--clr-bg);
  color: var(--clr-dark);
}

.section-inner {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: var(--section-pad);
}

/* ── HERO ── */
.news-hero {
  background-color: #0A0F1A;
  padding: 96px 0 64px;
  text-align: center;
  height: 423px;
}

.news-hero {
  justify-content: center;
  color: rgba(255,255,255,0.5);
}

.news-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

  .news-hero__label::before {
    font-size: 10px;
    color: var(--clr-red);
  }

.news-hero__title {
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 30px;
  font-weight: 900;
}

.news-hero__subtitle {
  font-size: 20px;
  color: rgba(255,255,255,0.6);
  max-width: 805px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── FILTER TABS ── */
.news-filter {
  background: transparent;
  border-bottom: none;
  position: relative;
  top: 16px;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 0 24px;
  margin-top: -50px;
}

.news-filter__tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 12px 26px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--clr-white);
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

  .news-filter__tabs::-webkit-scrollbar {
    display: none;
  }

.news-filter__tab button {
  display: block;
  padding: 12px 32px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-main);
  color: var(--clr-muted);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

  .news-filter__tab button:hover {
    background: #8A1538;
    color: #FFF;
    box-shadow: 0px 6px 6px 1px rgba(138, 21, 56, 0.20);
  }

.news-filter__tab--active button {
  border-radius: 16px;
  background: #8A1538;
  box-shadow: 0px 6px 6px 1px rgba(138, 21, 56, 0.20);
  color: #FFF;
}

.news-filter__tab--active a {
  border-radius: 16px;
  background: #8A1538;
  box-shadow: 0px 6px 6px 1px rgba(138, 21, 56, 0.20);
  color: #FFF;
}

/* ── FEATURED ── */
.news-featured {
  padding: 48px 0 0;
}

.news-featured__card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--clr-white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s;
  position: relative;
  height: 600px;
}

  .news-featured__card:hover {
    box-shadow: 0 6px 32px rgba(0,0,0,0.13);
  }

.news-featured__image {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(10, 15, 26, 1) 50%, rgba(10, 15, 26, 0.95) 100%);
}

  .news-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
  }

.news-featured__card:hover .news-featured__image img {
  transform: scale(1.03);
}

/* Overlay gradient on image bottom */
.news-featured__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,15,0.85) 0%, rgba(15,15,15,0.3) 45%, transparent 100%);
}

/* Body sits over the image at bottom */
.news-featured__body {
  position: absolute;
  bottom: 48px;
  left: 48px;
  right: 48px;
  padding: 40px;
  z-index: 2;
  background-color: rgba(255,255,255,.1);
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.2);
  word-spacing: 0.5px;
}

.news-featured__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.news-featured__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255,255,255);
  font-weight: 300;
}
  .news-featured__date img {
    filter: brightness(0) invert(1);
  }

.news-featured__badge {
  display: inline-block;
  background: #8A1538;
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-featured__title {
  font-size: 36px;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
  max-width: 885px;
  font-weight: 900;
  font-family: Cairo;
}

.news-featured__description {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-width: 710px;
  margin: 0px;
}

/* Arrow button on featured */
.news-featured__arrow {
  position: absolute;
  top: 35%;
  left: 40px;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: white;
  z-index: 2;
}

/* ── NEWS GRID ── */
.news-grid {
  padding: 65px 0 80px;
}

.news-grid__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ── NEWS CARD ── */
.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: 373px;
}

  .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 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__date::before {
    font-size: 11px;
  }

.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;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 800;
  color: #8A1538;
  text-decoration: none;
  margin: 0px;
  padding-top: 12px;
  border-top: 1px solid #F3F4F6;
}

.news-card:hover .news-card__link {
  gap: 8px;
}

/* ── PAGINATION ── */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.news-pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-dark);
  text-decoration: none;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.news-pagination__btn--prev img {
  transform: rotate(180deg);
}

.news-pagination__btn--next img {
  transform: rotate(0deg);
}

  .news-pagination__btn:hover {
    background: #8A1538;
    color: #fff;
    border-color: #8A1538;
  }

    .news-pagination__btn:hover img {
      filter: brightness(0) invert(1);
    }

.news-pagination__btn--active {
  background: #8A1538;
  color: #fff;
  border-color: #8A1538;
}

/* ── RESPONSIVE ── */

/* ── Tablet (max 1024px) ── */
@media (max-width: 1024px) {
  .news-hero {
    height: auto;
    padding: 80px 0 48px;
  }

  .news-hero__title {
    font-size: 42px;
  }

  .news-featured__body {
    bottom: 24px;
    left: 24px;
    right: 24px;
    padding: 28px;
  }

  .news-featured__title {
    font-size: 28px;
    max-width: 90%;
    margin-left: 80px;
  }

  .news-featured__description {
    max-width: 95%;
    margin-left: 80px;
  }

  .news-featured__arrow {
    width: 52px;
    height: 52px;
    left: 28px;
  }

  .news-grid__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-card {
    width: 100%;
    height: auto;
  }
}

/* ── Large Mobile (max 768px) ── */
@media (max-width: 768px) {
  .news-hero {
    padding: 64px 0 40px;
  }

  .news-hero__title {
    font-size: 32px;
  }

  .news-hero__subtitle {
    font-size: 16px;
  }

  .news-filter {
    margin-top: -40px;
    padding: 0 16px;
  }

  .news-filter__tab button {
    padding: 10px 20px;
    font-size: 13px;
  }

  .news-featured {
    padding: 32px 0 0;
  }

  .news-featured__card {
    height: 480px;
  }

  .news-featured__body {
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 20px;
  }

  .news-featured__title {
    font-size: 18px;
  }

  .news-featured__description {
    display: none;
  }

  .news-featured__arrow {
    width: 44px;
    height: 44px;
    top: 30%;
    left: 20px;
  }

  .news-grid {
    padding: 40px 0 60px;
  }

  .news-grid__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .news-card {
    height: auto;
    width: 100%;
  }

  .news-card__image {
    height: 200px;
  }

  .news-card__body {
    padding: 20px;
  }

  .news-card__title {
    font-size: 17px;
    max-width: 100%;
  }

  .news-card__description {
    display: none;
  }
}

/* ── Mobile (max 580px) ── */
@media (max-width: 580px) {
  .news-hero {
    padding: 48px 0 40px;
  }

  .news-hero__title {
    font-size: 26px;
  }

  .news-filter {
    margin-top: -32px;
  }

  .news-featured__card {
    height: 380px;
  }

  .news-featured__image {
    height: 100%;
  }

  .news-featured__body {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 16px;
  }

  .news-featured__title {
    font-size: 18px;
    margin-bottom: 0;
  }

  .news-featured__arrow {
    display: none;
  }

  .news-grid__list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-card__image {
    height: 220px;
  }

  .news-card__description {
    display: none;
  }

  .news-pagination {
    gap: 6px;
  }

  .news-pagination__btn {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

/* ── Small Mobile (max 390px) ── */
@media (max-width: 390px) {

  .news-hero {
    padding: 36px 0 32px;
  }

  .news-hero__title {
    font-size: 22px;
  }

  .news-hero__subtitle {
    font-size: 14px;
    padding: 0 16px;
  }

  .news-hero__label {
    font-size: 12px;
    padding: 4px 12px;
  }

  /* Filter tabs — allow horizontal scroll on tiny screens */
  .news-filter {
    padding: 0 8px;
    margin-top: -28px;
  }

  .news-filter__tabs {
    padding: 8px 12px;
    gap: 2px;
  }

  .news-filter__tab button {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Featured card */
  .news-featured__card {
    height: 340px;
  }

  .news-featured__body {
    bottom: 16px;
    left: 8px;
    right: 8px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .news-featured__badge {
    font-size: 10px;
    padding: 6px 12px;
  }

  .news-featured__date {
    font-size: 12px;
  }

  .news-featured__title {
    font-size: 15px;
    line-height: 1.4;
  }

  /* Grid cards */
  .news-card__image {
    height: 180px;
  }

  .news-card__body {
    padding: 16px;
  }

  .news-card__title {
    font-size: 15px;
  }

  .news-card__date {
    font-size: 12px;
    margin-bottom: 10px;
  }

  /* Pagination */
  .news-pagination {
    gap: 4px;
    flex-wrap: wrap;
  }

  .news-pagination__btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}