/* ══════════════════════════════════════════════════════════
   news-media.css  —  News & Media page styles
   All classes prefixed  nm-  — zero conflicts with
   style.css / home.css / about.css / contact.css / chairman.css
   Sections:
   1. Intro Band (hero)
   2. Shared utilities  (wrap, two-col, section-label, txt, content-list, post-item)
   3. S1 — Announcements  (white)
   4. S2 — Press Releases  (gray)
   5. S3 — Media Coverage  (white)
   6. S4 — Photo & Video Gallery  (gray)
   7. Lightbox
   8. Responsive
══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────
   KEYFRAMES  (nm- prefix)
─────────────────────────────────────────── */
@keyframes nm-fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes nm-slideRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ──────────────────────────────────────────
   SHARED LAYOUT UTILITIES
─────────────────────────────────────────── */
.nm-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
}

.nm-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

/* ──────────────────────────────────────────
   SHARED: SECTION LABEL
─────────────────────────────────────────── */
.nm-label {
  font-family: var(--font-family-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(14px);
}
.nm-label span {
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.nm-label.nm-visible { animation: nm-fadeUp .6s ease forwards .05s; }

/* ──────────────────────────────────────────
   SHARED: TEXT BLOCK  (left col of two-col)
─────────────────────────────────────────── */
.nm-txt h2 {
  font-family: var(--font-family-secondary);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
}
.nm-txt p {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.9;
  opacity: 0;
  transform: translateY(14px);
  margin-bottom: 0;
}
.nm-txt.nm-visible h2 { animation: nm-fadeUp .6s ease forwards .1s; }
.nm-txt.nm-visible p  { animation: nm-fadeUp .6s ease forwards .2s; }

/* ──────────────────────────────────────────
   SHARED: CONTENT LIST  (right col)
─────────────────────────────────────────── */
.nm-list {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(24px);
}
.nm-list.nm-visible { animation: nm-slideRight .7s ease forwards .2s; }

/* Post row */
.nm-post {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 20px 0;
  border-bottom: 1px solid rgba(13,27,62,.07);
  cursor: default;
  transition: padding-left .25s ease;
}
.nm-post:first-child { border-top: 1px solid rgba(13,27,62,.07); }
.nm-post:hover { padding-left: 6px; }

.nm-post-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 90px;
  flex-shrink: 0;
  padding-top: 2px;
}
.nm-post-date {
  font-size: .65rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nm-post-tag {
  font-size: .62rem;
  font-weight: 600;
  color: #ccc;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nm-post-body {
  flex: 1;
  padding-left: 20px;
  border-left: 2px solid rgba(13,27,62,.07);
}
.nm-post-body h5 {
  font-family: var(--font-family-secondary);
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 4px;
  transition: color .2s;
}
.nm-post:hover .nm-post-body h5 { color: var(--red); }
.nm-post-body p {
  font-size: .74rem;
  color: #aaa;
  line-height: 1.6;
}

/* ──────────────────────────────────────────
   1. INTRO BAND  (navy hero)
─────────────────────────────────────────── */
.nm-intro {
  background: var(--navy);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
/* subtle grid texture */
.nm-intro::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
/* red accent line on bottom */
.nm-intro::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, transparent 70%);
}

.nm-intro-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

/* Eyebrow tag */
.nm-intro-tag {
  font-family: var(--font-family-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(16px);
  animation: nm-fadeUp .6s ease forwards .1s;
}
.nm-intro-tag span {
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.nm-intro-title {
  font-family: var(--font-family-secondary);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: 1;
  opacity: 0;
  transform: translateY(24px);
  animation: nm-fadeUp .7s ease forwards .2s;
}
.nm-intro-title em {
  font-style: normal;
  color: var(--red);
}

.nm-intro-right {
  max-width: 380px;
  opacity: 0;
  transform: translateY(20px);
  animation: nm-fadeUp .7s ease forwards .35s;
}
.nm-intro-right p {
  font-size: .83rem;
  color: rgba(255,255,255,.55);
  line-height: 1.85;
}

/* ──────────────────────────────────────────
   2. S1 — ANNOUNCEMENTS  (white)
─────────────────────────────────────────── */
.nm-s-announcements {
  background: #fff;
  padding: 100px 0;
}

/* ──────────────────────────────────────────
   3. S2 — PRESS RELEASES  (light gray)
─────────────────────────────────────────── */
.nm-s-press {
  background: var(--gray);
  padding: 100px 0;
}

/* ──────────────────────────────────────────
   4. S3 — MEDIA COVERAGE  (white)
─────────────────────────────────────────── */
.nm-s-coverage {
  background: #fff;
  padding: 100px 0;
}

.nm-cov-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-end;
  margin-bottom: 52px;
}
.nm-cov-header-right {
  opacity: 0;
  transform: translateY(18px);
}
.nm-cov-header-right.nm-visible { animation: nm-fadeUp .6s ease forwards .2s; }
.nm-cov-header-right p {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.9;
}

/* Editorial card grid: large left + two stacked right */
.nm-cov-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  opacity: 0;
  transform: translateY(28px);
}
.nm-cov-grid.nm-visible { animation: nm-fadeUp .7s ease forwards .1s; }

.nm-cov-card {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: default;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  transition: transform .3s ease, box-shadow .3s ease;
}
.nm-cov-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(13,27,62,.16);
}
.nm-cov-card-featured { grid-row: 1 / 3; }

.nm-cov-photo {
  width: 100%;
  background: #1a2640;
  position: relative;
  overflow: hidden;
}
.nm-cov-card-featured .nm-cov-photo { height: 380px; }
.nm-cov-card-small    .nm-cov-photo { height: 180px; }

.nm-cov-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: .72;
  transition: opacity .35s ease, transform .5s ease;
}
.nm-cov-card:hover .nm-cov-photo img { opacity: .85; transform: scale(1.03); }

/* dark overlay on photo */
.nm-cov-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(13,27,62,.85) 100%);
}

/* Outlet pill badge */
.nm-cov-outlet {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 4px 11px;
  border-radius: 999px;
}

.nm-cov-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nm-cov-tag {
  font-family: var(--font-family-secondary);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}
.nm-cov-body h5 {
  font-family: var(--font-family-secondary);
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  transition: color .2s;
}
.nm-cov-card:hover .nm-cov-body h5 { color: rgba(255,255,255,.85); }
.nm-cov-card-featured .nm-cov-body h5 { font-size: 1.05rem; }
.nm-cov-body p { font-size: .74rem; color: rgba(255,255,255,.45); line-height: 1.65; }

.nm-cov-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}
.nm-cov-date {
  font-size: .62rem;
  color: rgba(255,255,255,.3);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}
.nm-cov-arr {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.nm-cov-card:hover .nm-cov-arr {
  background: var(--red);
  transform: translate(2px,-2px);
}
.nm-cov-arr svg {
  width: 11px; height: 11px;
  stroke: #fff; fill: none;
  stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ──────────────────────────────────────────
   5. S4 — PHOTO & VIDEO GALLERY  (light gray)
─────────────────────────────────────────── */
.nm-s-gallery {
  background: var(--gray);
  padding: 100px 0;
}

.nm-gallery-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-end;
  margin-bottom: 48px;
}
.nm-gallery-header-right {
  opacity: 0;
  transform: translateY(18px);
}
.nm-gallery-header-right.nm-visible { animation: nm-fadeUp .6s ease forwards .2s; }
.nm-gallery-header-right p {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.9;
}

/* Filter tab bar */
.nm-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(14px);
}
.nm-tabs.nm-visible { animation: nm-fadeUp .6s ease forwards .1s; }

.nm-tab-btn {
  font-family: 'Outfit', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(13,27,62,.06);
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.nm-tab-btn:hover  { background: rgba(13,27,62,.1); color: var(--navy); }
.nm-tab-btn.active { background: var(--navy); color: #fff; }

/* Album grid: large left + two stacked right */
.nm-album-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  opacity: 0;
  transform: translateY(24px);
}
.nm-album-grid.nm-visible { animation: nm-fadeUp .7s ease forwards .15s; }

.nm-album-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--navy);
  transition: transform .3s ease, box-shadow .3s ease;
}
.nm-album-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(13,27,62,.18);
}
.nm-album-card-featured { grid-row: 1 / 3; }

.nm-album-cover {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #1a2640;
}
.nm-album-card-featured .nm-album-cover { height: 420px; }
.nm-album-card-small    .nm-album-cover { height: 196px; }

.nm-album-cover img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: .65;
  transition: opacity .35s ease, transform .5s ease;
}
.nm-album-card:hover .nm-album-cover img { opacity: .8; transform: scale(1.04); }
.nm-album-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 25%, rgba(13,27,62,.88) 100%);
}

/* Count badge — top right */
.nm-album-badge {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 999px;
}
/* Type pill — top left */
.nm-album-type {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  padding: 4px 10px;
  border-radius: 999px;
}
.nm-album-card[data-type="video"] .nm-album-type { background: var(--red); }

/* Info overlay — bottom */
.nm-album-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 20px 22px 22px;
}
.nm-album-info h5 {
  font-family: var(--font-family-secondary);
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 5px;
  transition: color .2s;
}
.nm-album-card-featured .nm-album-info h5 { font-size: 1.1rem; }
.nm-album-card:hover .nm-album-info h5 { color: rgba(255,255,255,.85); }
.nm-album-info span {
  font-size: .65rem;
  color: rgba(255,255,255,.42);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ──────────────────────────────────────────
   6. LIGHTBOX
─────────────────────────────────────────── */
.nm-lightbox {
  position: fixed; inset: 0;
  background: rgba(4,8,20,.97);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.nm-lightbox.active {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.nm-lightbox.open { display: flex; }

.nm-lb-inner {
  width: 100%;
  max-width: 900px;
}
.nm-lb-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.nm-lb-title {
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.nm-lb-meta {
  font-size: .65rem;
  color: rgba(255,255,255,.35);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nm-lb-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: none;
  cursor: pointer;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background .2s;
}
.nm-lb-close:hover { background: var(--red); }
.nm-lb-close svg {
  width: 14px; height: 14px;
  stroke: #fff; fill: none;
  stroke-width: 2.5; stroke-linecap: round;
}

.nm-lb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  /* max-height: 62vh; */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
}
.nm-lb-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: opacity .2s;
}
.nm-lb-item:hover { opacity: .8; }
.nm-lb-item img { width: 100%; height: 250px; object-fit: cover; display: block; }
.nm-lb-item.is-video::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(13,27,62,.45);
}
.nm-lb-play-wrap {
  position: absolute; inset: 0;
  z-index: 1;
  display: grid; place-items: center;
}
.nm-lb-play-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(230,57,70,.9);
  display: grid; place-items: center;
}
.nm-lb-play-btn svg {
  width: 12px; height: 12px;
  fill: #fff; stroke: none;
  margin-left: 2px;
}

/* ──────────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .nm-wrap            { padding: 0 36px; }
  .nm-intro-inner     { flex-direction: column; align-items: flex-start; }
  .nm-intro-right     { max-width: 100%; }
  .nm-two-col         { grid-template-columns: 1fr; gap: 48px; }
  .nm-cov-header      { grid-template-columns: 1fr; gap: 24px; }
  .nm-gallery-header  { grid-template-columns: 1fr; gap: 24px; }
  .nm-cov-grid        { grid-template-columns: 1fr; }
  .nm-cov-card-featured { grid-row: auto; }
  .nm-album-grid      { grid-template-columns: 1fr; }
  .nm-album-card-featured { grid-row: auto; }
  .nm-album-card-featured .nm-album-cover { height: 300px; }
  .nm-lb-grid         { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .nm-wrap { padding: 0 20px; }
  .nm-s-announcements,
  .nm-s-press,
  .nm-s-coverage,
  .nm-s-gallery       { padding: 64px 0; }
  .nm-lb-grid         { grid-template-columns: repeat(2, 1fr); }
  .nm-lightbox        { padding: 20px; }
}
/* ──────────────────────────────────────────
   IMAGE VIEWER (full screen slider)
─────────────────────────────────────────── */
#nmImageViewer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
#nmImageViewer.open { display: flex; }

.nm-iv-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.95);
}
.nm-iv-img-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
#nmIvImg {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}
.nm-iv-close,
.nm-iv-prev,
.nm-iv-next {
    position: absolute;
    z-index: 2;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.nm-iv-close:hover,
.nm-iv-prev:hover,
.nm-iv-next:hover { background: rgba(255,255,255,0.25); }

.nm-iv-close { top: 20px; right: 20px; }
.nm-iv-close svg {
    width: 20px; height: 20px;
    stroke: #fff; stroke-width: 2; fill: none;
}
.nm-iv-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.nm-iv-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.nm-iv-prev svg,
.nm-iv-next svg {
    width: 24px; height: 24px;
    stroke: #fff; stroke-width: 2.5; fill: none;
}
.nm-iv-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    letter-spacing: 0.05em;
}

/* ── LIGHTBOX ITEM HOVER OVERLAY ── */
.nm-lb-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border-radius: 4px;
}
.nm-lb-item-overlay svg {
    width: 28px; height: 28px;
    stroke: #fff; stroke-width: 2; fill: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.nm-lb-item:hover .nm-lb-item-overlay { background: rgba(0,0,0,0.4); }
.nm-lb-item:hover .nm-lb-item-overlay svg { opacity: 1; }