/* ==========================================================
   AMCDD — News & Media (الأخبار والإعلام)
   ========================================================== */

.nm { --nm-line: #e6ecf3; --nm-soft: #f5f8fb; --nm-green: #7ab648; --nm-navy: #0b2545; }

.nm-hero {
  position: relative;
  padding: 4rem 0 3.4rem;
  background: linear-gradient(135deg, #0b2545 0%, #133b63 55%, #1c4f7c 100%);
  overflow: hidden;
}
.nm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 15%, rgba(122,182,72,.22), transparent 55%),
    radial-gradient(circle at 8% 88%, rgba(255,255,255,.08), transparent 50%);
  pointer-events: none;
}
.nm-hero__inner { position: relative; z-index: 1; }
.nm-hero__content { max-width: 820px; }
.nm-hero .rc-overline { color: rgba(255,255,255,.72); }
.nm-hero h1 {
  margin: 0 0 .8rem;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15;
}
.nm-hero p { margin: 0; max-width: 680px; color: rgba(255,255,255,.82); font-size: 1.02rem; line-height: 1.75; }
.nm-hero__actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem; }
.nm-hero__actions .rc-btn--ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
.nm-hero__actions .rc-btn--ghost:hover { background: rgba(255,255,255,.22); color: #fff; }

/* === Section tiles === */
.nm-sections { padding: 3.4rem 0 1rem; background: #fff; }
.nm-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: .9rem;
}
.nm-tile {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--nm-line);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.nm-tile:hover { border-color: var(--nm-green); transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(11,37,69,.45); }
.nm-tile.is-empty { opacity: .6; }
.nm-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #eef6e6;
  color: #5c9436;
}
.nm-tile__icon svg { width: 22px; height: 22px; }
.nm-tile__body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.nm-tile__title { font-weight: 700; font-size: .95rem; color: var(--nm-navy); line-height: 1.3; }
.nm-tile__count { font-size: .76rem; color: #6b7f92; }
.nm-tile__arrow { margin-inline-start: auto; color: #b6c4d2; }
.nm-tile__arrow svg { width: 18px; height: 18px; }

/* === Press room === */
.nm-press { padding: 2.6rem 0 3rem; background: var(--nm-soft); }
.nm-press__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 1.4rem;
  align-items: stretch;
}
.nm-press__card,
.nm-press__logos {
  background: #fff;
  border: 1px solid var(--nm-line);
  border-radius: 20px;
  padding: 1.8rem 1.8rem 2rem;
}
.nm-press__card .rc-overline,
.nm-press__logos .rc-overline { color: #5c9436; }
.nm-press__card h2 { margin: .3rem 0 .6rem; font-size: 1.6rem; color: var(--nm-navy); }
.nm-press__card p { margin: 0 0 1.2rem; color: #33475b; line-height: 1.7; }
.nm-press__list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.nm-press__list li {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .6rem 0;
  border-bottom: 1px dashed var(--nm-line);
  font-size: .9rem;
}
.nm-press__list li:last-child { border-bottom: 0; }
.nm-press__list span { color: #6b7f92; min-width: 90px; }
.nm-press__list strong { color: var(--nm-navy); }
.nm-press__logos ul { list-style: none; margin: .8rem 0 0; padding: 0; }
.nm-press__logos li {
  position: relative;
  padding: .55rem 0 .55rem 1.4rem;
  border-bottom: 1px dashed var(--nm-line);
  font-size: .88rem;
  color: #33475b;
}
.nm-press__logos li:last-child { border-bottom: 0; }
.nm-press__logos li::before {
  content: "";
  position: absolute;
  inset-inline-start: .25rem;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nm-green);
}
@media (max-width: 900px) {
  .nm-press__inner { grid-template-columns: 1fr; }
}

/* === Grids === */
.nm-latest { padding: 3rem 0; background: #fff; }
.nm-events { padding: 3rem 0; background: var(--nm-soft); }
.nm-policy { padding: 3rem 0 3.4rem; background: #fff; }
.nm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}
.nm-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.nmcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--nm-line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nmcard:hover { transform: translateY(-4px); border-color: #d3e3c4; box-shadow: 0 20px 38px -26px rgba(11,37,69,.5); }
.nmcard__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 168px;
  background: linear-gradient(135deg, #eef4fb, #e6f0e2);
  overflow: hidden;
}
.nmcard__media img { width: 100%; height: 100%; object-fit: cover; }
.nmcard__icon { color: #5c9436; opacity: .85; }
.nmcard__icon svg { width: 44px; height: 44px; }
.nmcard__cat {
  position: absolute;
  top: .7rem;
  inset-inline-start: .7rem;
  padding: .22rem .65rem;
  border-radius: 999px;
  background: rgba(11,37,69,.86);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
}
.nmcard__body { display: flex; flex-direction: column; gap: .4rem; padding: 1.05rem 1.15rem 1.25rem; }
.nmcard__date { font-size: .74rem; font-weight: 700; color: #5c9436; letter-spacing: .04em; }
.nmcard__body h3 { margin: 0; font-size: 1rem; line-height: 1.45; }
.nmcard__body h3 a { color: var(--nm-navy); text-decoration: none; }
.nmcard__body h3 a:hover { color: #5c9436; }
.nmcard__body p { margin: 0; font-size: .85rem; line-height: 1.65; color: #33475b; }
.nmcard__loc { display: flex; align-items: center; gap: .35rem; color: #6b7f92 !important; }

.nmcard--event { flex-direction: row; align-items: stretch; }
.nmcard__dateblock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .1rem;
  flex-shrink: 0;
  width: 84px;
  background: linear-gradient(160deg, #0b2545, #16406b);
  color: #fff;
  text-decoration: none;
}
.nmcard__day { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.nmcard__month { font-size: .74rem; font-weight: 700; letter-spacing: .12em; color: #cdebb0; }

/* === Policy columns === */
.nm-policy__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.nm-policy__col {
  padding: 1.3rem 1.3rem 1.5rem;
  border: 1px solid var(--nm-line);
  border-radius: 18px;
  background: #fff;
}
.nm-policy__col h3 { margin: 0 0 .8rem; font-size: .98rem; }
.nm-policy__col h3 a {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--nm-navy);
  text-decoration: none;
}
.nm-policy__col h3 a:hover { color: #5c9436; }
.nm-policy__col h3 svg { width: 20px; height: 20px; color: #5c9436; flex-shrink: 0; }
.nm-policy__col ul { list-style: none; margin: 0; padding: 0; }
.nm-policy__col li { padding: .45rem 0; border-bottom: 1px dashed var(--nm-line); }
.nm-policy__col li:last-child { border-bottom: 0; }
.nm-policy__col li a { font-size: .86rem; color: #33475b; text-decoration: none; line-height: 1.5; }
.nm-policy__col li a:hover { color: #5c9436; }
.nm-policy__empty { margin: 0; font-size: .84rem; color: #94a3b8; }