:root {
  --news-bg: #0f172a;
  --news-bg-soft: #eef4ff;
  --news-card-border: rgba(15, 23, 42, 0.08);
  --news-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --news-radius: 1.5rem;
}

body.news-shell {
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 24%), linear-gradient(180deg, #f8fbff 0%, #ffffff 40%, #f8fbff 100%);
}

.news-hero,
.post-hero {
  background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.5), transparent 26%), linear-gradient(135deg, #0f172a 0%, #111827 45%, #1d4ed8 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.news-hero::after,
.post-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(10px);
}


.news-hero .btn,
.post-hero .btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  line-height: 1.2;
  border-radius: 0.8rem;
}

.news-hero .btn i,
.post-hero .btn i {
  font-size: 0.95rem;
}

.news-hero .btn-outline-dark {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.25);
  color: #0f172a;
}

.news-hero .btn-outline-dark:hover,
.news-hero .btn-outline-dark:focus {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.35);
  color: #0f172a;
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glass-panel,
.stat-card,
.toolbar-card,
.news-card {
  border: 1px solid var(--news-card-border);
  border-radius: var(--news-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--news-shadow);
  backdrop-filter: blur(10px);
}

.news-hero-card {
  padding: 1.5rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-checklist {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.8rem;
}

.stat-card {
  padding: 1.25rem;
  height: 100%;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.stat-value {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  margin-top: 0.6rem;
  color: #0f172a;
}

.featured-story {
  position: relative;
  overflow: hidden;
}

.featured-story::before {
  content: "";
  position: absolute;
  inset: auto auto -35% -8%;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
}

.featured-type,
.news-type {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

.type-news {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}
.type-event {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}
.type-update {
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
}

.toolbar-card {
  padding: 1.5rem;
}

.news-card {
  padding: 1.4rem;
  height: 100%;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
}

.news-card .card-title,
.featured-story h2,
.post-hero-copy h1 {
  color: #0f172a;
}

.news-meta,
.related-meta,
.post-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: #64748b;
  font-size: 0.95rem;
}

.read-more-link,
.back-link {
  text-decoration: none;
  font-weight: 700;
}

.empty-state .glass-panel {
  border-style: dashed;
}

.post-hero-copy {
  min-height: 14rem;
}

.post-body {
  line-height: 1.75;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.post-body p,
.post-body li {
  color: #334155;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}

.info-card {
  border: 1px solid var(--news-card-border);
  border-radius: 1.25rem;
}

.meta-grid {
  display: grid;
  gap: 1rem;
}

.meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.meta-value {
  font-weight: 700;
  color: #0f172a;
}

.related-link {
  text-decoration: none;
  display: block;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.related-link:hover {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.18);
}

.admin-shell .navbar .nav-link.active,
.detail-shell .navbar .nav-link.active,
.news-shell .navbar .nav-link.active {
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .toolbar-card,
  .glass-panel,
  .news-card,
  .stat-card {
    border-radius: 1.25rem;
  }
}

/* Changes that affect the other pages */
.all-services {
  color: #7ef8f6;
  font-size: 18px;
}

.sub-banner {
  color: #e9e9e9;
}


/* Updated banner + news card treatment */
.news-hero,
.post-hero {
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.32), transparent 26%),
    linear-gradient(135deg, #0f172a 0%, #111827 45%, #1d4ed8 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.news-hero .fw-bold,
.post-hero .fw-bold,
.news-hero h1,
.post-hero h1 {
  color: #fff;
}

.news-hero .sub-banner,
.post-hero .sub-banner,
.news-hero .section-sub,
.post-hero .section-sub {
  color: rgba(255,255,255,0.86);
  max-width: 62ch;
}

.news-hero::after,
.post-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(10px);
  pointer-events: none;
}

.news-card {
  padding: 1.35rem;
  height: 100%;
  border: 2px solid #4c4c4c;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.news-card:hover,
.news-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--rwd-shadow, 0 12px 40px rgba(13, 27, 42, 0.1));
  border-color: #731829;
  background-color: #f3f4f6;
}

.news-card .card-title,
.news-card p,
.news-card .news-meta,
.news-card .small-muted,
.news-card .news-type,
.news-card .read-more-link {
  transition: color 0.18s ease;
}

.news-card:hover .card-title,
.news-card:hover p,
.news-card:hover .news-meta,
.news-card:hover .small-muted,
.news-card:hover .read-more-link,
.news-card:focus-within .card-title,
.news-card:focus-within p,
.news-card:focus-within .news-meta,
.news-card:focus-within .small-muted,
.news-card:focus-within .read-more-link {
  color: #731829;
}

.read-more-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--rwd-burgundy, #872534);
}

.read-more-link:hover,
.back-link:hover {
  color: #731829;
}


.detail-main {
  position: relative;
}

.detail-article {
  position: relative;
  overflow: hidden;
}

.detail-article::before {
  content: "";
  position: absolute;
  inset: auto auto -10rem -7rem;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  pointer-events: none;
}

.detail-article-head {
  position: relative;
  z-index: 1;
}

.detail-summary {
  max-width: 60ch;
}

.detail-hero-image {
  width: 100%;
  border-radius: 1.25rem;
  margin-top: 1.75rem;
}

.detail-divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
  margin-top: 2rem;
}

.detail-sidebar {
  position: relative;
}

.detail-sidebar .info-card:first-child {
  position: sticky;
  top: 6rem;
}

@media (max-width: 1199.98px) {
  .detail-sidebar .info-card:first-child {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .detail-article,
  .detail-sidebar .info-card {
    border-radius: 1.25rem;
  }

  .detail-article .display-5 {
    font-size: calc(1.55rem + 1.5vw);
  }
}
