/* ═══════════════════════════════════════
   NEWS.CSS — HMC GROUP
═══════════════════════════════════════ */

/* ── PAGE HEADER ── */
.page-header {
  margin-top: 88px;
  height: 280px;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 0 80px;
  position: relative;
  overflow: hidden;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,32,88,0.72) 0%, rgba(8,40,120,0.45) 100%);
  z-index: 1;
}

.page-header-content {
  position: relative;
  z-index: 3;
  animation: fadeUp 0.9s ease both;
}

.page-header-h1 {
  font-size: 46px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}

.page-header-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  line-height: 1.7;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ── NEWS SECTION ── */
.news-section {
  padding: 96px 80px;
  background: #eef1f6;
}

/* ── NEWS GRID ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* الصف الأخير — wrapper يتمركز */
.news-row-last {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.news-row-last .news-card {
  width: calc((100% - 24px) / 3);
}

/* ── NEWS CARD ── */
.news-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy);
}

.news-card-img {
  height: 220px;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.news-card:hover .news-card-img img {
  transform: scale(1.04);
}

/* ── CARD BODY — كحلي ── */
.news-card-body {
  padding: 20px;
  background: var(--navy);
}

.news-tag {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── MODAL ── */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.news-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.news-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.news-modal-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 820px;
  width: 90%;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s ease;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
}

.news-modal.is-open .news-modal-box {
  transform: translateY(0) scale(1);
}

.news-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.news-modal-close:hover {
  background: rgba(0,0,0,0.7);
}

.news-modal-close svg {
  width: 18px;
  height: 18px;
}

.news-modal-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.news-modal-title {
  padding: 20px 24px;
  background: var(--navy);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}