/* ilme aalim news desk — used only on PHP subpages (linked from header.php) */
.nav-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
.nav-menu a.is-active {
  color: var(--accent, #07D29D);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  margin-left: 0.75rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text, #F2FBF7);
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .navbar .container,
  .navbar .nav-inner { position: relative; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    background: var(--bg2, #08131B);
    border: 1px solid var(--border, rgba(7,210,157,0.14));
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    z-index: 200;
  }
  .nav-menu.active { display: flex; }
  .dropdown-menu { position: static; box-shadow: none; border: 0; }
}

.news-desk { padding-bottom: 2rem; }
.page-header,
.news-page-header {
  padding: 3rem 0 0.5rem;
  text-align: center;
}
.news-kicker {
  font-family: var(--sc-font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #07D29D);
  margin-bottom: 0.75rem;
}
.news-page-header h1 {
  font-family: var(--sc-font-display, "Space Grotesk", sans-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--text, #F2FBF7);
}
.news-page-header p {
  color: var(--text2, #8BA8A1);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.02rem;
}

/* Featured + feed layout — no dead space, no horizontal overflow */
.news-desk { overflow-x: clip; padding-bottom: 2rem; }
.featured-news { padding: 0.5rem 0 2rem; }
.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.featured-card,
.news-desk .card,
.featured-grid,
.news-grid {
  min-width: 0;
}
.featured-card-lead { grid-row: 1 / span 2; }
.featured-card {
  background: var(--bg2, #08131B);
  border: 1px solid var(--border, rgba(7,210,157,0.14));
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.featured-card:hover { border-color: var(--accent, #07D29D); transform: translateY(-2px); }
.featured-img-wrap {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg3, #0E1D28);
  min-width: 0;
}
/* Extra height of the 2-row lead card goes into the photo, not a blank text area */
.featured-card-lead .featured-img-wrap,
.featured-card-lead .news-fallback-art {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 260px;
}
.featured-img-wrap img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}
.featured-body {
  padding: 1.1rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 0 0 auto;
}
.featured-meta { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.impact-pill {
  font-family: var(--sc-font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, #07D29D);
  border: 1px solid rgba(7,210,157,0.35);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.featured-title {
  font-family: var(--sc-font-display, "Space Grotesk", sans-serif);
  font-size: 1.15rem;
  line-height: 1.3;
}
.featured-card-lead .featured-title { font-size: 1.55rem; }
.featured-title a:hover { color: var(--accent, #07D29D); }
.featured-summary { color: var(--text2, #8BA8A1); font-size: 0.92rem; }

.news-feed-section { padding: 1rem 0 3rem; }
.feed-count { color: var(--text2, #8BA8A1); font-size: 0.85rem; font-family: var(--sc-font-mono, ui-monospace, monospace); }
.news-desk .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.news-desk .card {
  background: var(--bg2, #08131B);
  border: 1px solid var(--border, rgba(7,210,157,0.14));
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.news-desk .card:hover { border-color: var(--accent, #07D29D); transform: translateY(-2px); }
.card-img-link { display: block; aspect-ratio: 16 / 9; background: var(--bg3, #0E1D28); overflow: hidden; min-width: 0; }
.card-img { width: 100%; height: 100%; max-width: 100%; object-fit: cover; display: block; }
.card-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, #07D29D);
}
.card-title {
  font-family: var(--sc-font-display, "Space Grotesk", sans-serif);
  font-size: 1.02rem;
  line-height: 1.35;
}
.card-title a:hover { color: var(--accent, #07D29D); }
.card-summary { color: var(--text2, #8BA8A1); font-size: 0.88rem; }
.card-meta { color: var(--text2, #8BA8A1); font-size: 0.78rem; margin-top: auto; }

.news-fallback-art {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.15rem 1.1rem;
  min-height: 160px;
  color: #F2FBF7;
  text-decoration: none !important;
  background:
    radial-gradient(120% 90% at 90% 0%, color-mix(in srgb, var(--g2) 70%, transparent) 0%, transparent 58%),
    linear-gradient(var(--angle, 135deg), var(--g1), var(--g3) 52%, var(--g2));
}
.featured-card-lead .news-fallback-art { min-height: 260px; }
.news-fallback-source {
  font-family: var(--sc-font-mono, ui-monospace, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.92;
}
.news-fallback-letter {
  font-family: var(--sc-font-display, "Space Grotesk", sans-serif);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 0.9;
  opacity: 0.32;
  align-self: flex-end;
}
.news-fallback-cat { font-size: 0.75rem; opacity: 0.8; }

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 2rem;
}
.pagination a, .pagination span {
  min-width: 2.2rem;
  text-align: center;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border, rgba(7,210,157,0.14));
  border-radius: 8px;
  color: var(--text2, #8BA8A1);
  font-size: 0.85rem;
}
.pagination a:hover, .pagination .active {
  border-color: var(--accent, #07D29D);
  color: var(--accent, #07D29D);
}
.pagination .active { background: rgba(7,210,157,0.12); }
.news-empty { color: var(--text2, #8BA8A1); text-align: center; padding: 3rem 0; }
.breadcrumb { padding: 1.25rem 0 0; color: var(--text2, #8BA8A1); font-size: 0.85rem; }
.breadcrumb a { color: var(--accent, #07D29D); }
.ad-slot {
  text-align: center;
  color: var(--text2, #8BA8A1);
  border: 1px dashed var(--border, rgba(7,210,157,0.14));
  border-radius: 10px;
  padding: 1rem;
}

/* 768–960: stacked featured (no overflow), 2-col feed */
@media (max-width: 960px) {
  .featured-grid { grid-template-columns: minmax(0, 1fr); }
  .featured-card-lead { grid-row: auto; }
  .featured-card-lead .featured-img-wrap,
  .featured-card-lead .news-fallback-art {
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 390–767: single column, no horizontal overflow */
@media (max-width: 767px) {
  .featured-grid,
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .news-page-header { padding-top: 2rem; }
  .featured-card,
  .news-desk .card { transform: none; }
  .featured-card:hover,
  .news-desk .card:hover { transform: none; }
}
