/* ---- Scientific & modern vibe ---- */
:root{
  --slate-50:#f8fafc; --slate-100:#f1f5f9; --slate-200:#e2e8f0; --slate-600:#475569; --slate-700:#334155; --slate-800:#1f2937;
  --primary:#115e59;
  --accent:#06b6d4;
}

/* Scope overrides to news page so global navbar styles don't leak in */
.news-page .navbar {
  /* Neutralize any global gradient on this page's navbars */
  background: transparent !important;
  box-shadow: none !important;
}

/* ===== Banner (list page) ===== */
.news-banner{
  position: relative;
  width: 100%;
  min-height: 340px;
  margin: 0;
  padding: 80px 16px 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: var(--banner-url);
  background-size: cover;
  background-position: center center;
}
.news-banner::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.45));
  pointer-events:none;
}
.news-banner .banner-inner{
  position: relative; z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 1200px;
}
.news-banner .banner-title{
  font-size: clamp(2rem, 2.2vw + 1.2rem, 3rem);
  font-weight: 900;
  letter-spacing: .2px;
  margin: 0 0 8px 0;
}
.news-banner .banner-subtitle{
  margin: 0;
  font-size: clamp(1rem, .6vw + .85rem, 1.25rem);
  opacity: .92;
}

/* ===== Navbar layers ===== */

/* Shared base (used by both navbars) */
.news-page .navbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 16px;
  transition: transform .24s ease, background .2s ease, -webkit-backdrop-filter .2s ease, backdrop-filter .2s ease, border-color .2s ease, opacity .2s ease;
  will-change: transform, backdrop-filter, background, opacity;
}

/* Sticky navbar (white while scrolling) */
.news-page .fixed-navbar{
  position: sticky; top: 0;
  z-index: 1000;
  background: #ffffff !important;                 /* white background while scrolling */
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom:1px solid rgba(15,23,42,.06);
}
.news-page .fixed-navbar .brand,
.news-page .fixed-navbar .brand-title{ color: var(--slate-800); }

.news-page .fixed-navbar .navbar-links{
  list-style:none; display:flex; gap:18px; margin:0; padding:0;
}
.news-page .fixed-navbar .nav-link{
  display:inline-flex; align-items:center; gap:6px;
  color:#6b7280; /* gray items */
  text-decoration:none; font-weight:600;
  padding:8px 10px; border-radius:8px;
}
.news-page .fixed-navbar .nav-link:hover{
  color:#374151;
  background: rgba(0,0,0,0.04);
}

/* Hide-on-banner-visible hook (toggled by clientside JS) */
.news-page .navbar.nav-hidden{
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

/* Banner navbar (ONLY on list page, overlays the banner)
   90% transparent so the banner is clearly visible */
.news-page .banner-navbar{
  position: absolute;            /* anchor to banner */
  top: 0; left: 0; right: 0;
  z-index: 1200;                 /* above everything in banner */
  background: rgba(255,255,255,0.10) !important; /* 90% transparent */
  border-bottom: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.news-page .banner-navbar .brand,
.news-page .banner-navbar .brand-title{ color: #ffffff; }

.news-page .banner-navbar .navbar-links{
  list-style:none; display:flex; gap:18px; margin:0; padding:0;
}
.news-page .banner-navbar .nav-link{
  display:inline-flex; align-items:center; gap:6px;
  color:#ffffff;                 /* white items over banner */
  text-decoration:none; font-weight:600;
  padding:8px 10px; border-radius:8px;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
  background: transparent;
}
.news-page .banner-navbar .nav-link:hover{
  color:#ffffff;
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 -2px 0 rgba(255,255,255,0.9);
}

.brand{ display:flex; align-items:center; gap:10px; font-weight:800; }
.brand-title{ font-size:1.25rem; }

/* Footer basics */
.footer a { color:#1f4b99; text-decoration:none; }
.footer a:hover { text-decoration:underline; }

/* ===== Title entrance animation on detail page ===== */
@keyframes titleRise {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
.news-title-animate{
  opacity: 0;
  transform: translateY(24px);
  animation: titleRise .6s ease-out forwards;
  animation-delay: .08s;
  will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
  .news-title-animate{ animation: none; opacity: 1; transform: none; }
}

/* ===== Scientific, modern title style ===== */
.scientific-title{
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.4rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: .3px;
  color: var(--slate-800);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  position: relative;
  margin: 0 0 10px 0;
}
.scientific-title::after{
  content:"";
  display:block;
  width: 78px;
  height: 3px;
  margin: 10px auto 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 18px rgba(6,182,212,.35);
}

/* ===== Simple red back link to match 'Read more' ===== */
.back-link-red{
  display:inline-block;
  font-weight: 800;
  color:#d90429;
  text-decoration:none;
  padding: 6px 0;
  transition: color .15s ease, opacity .15s ease, text-decoration-color .15s ease;
}
.back-link-red:hover{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Keep the rest of your card/grid styles as-is (from previous version) */

