/* ==============
   IN THE NEWS PAGE – PREMIUM UI
   ============== */

:root {
  --sp-primary: #00b894;
  --sp-primary-soft: rgba(0, 184, 148, 0.08);
  --sp-dark-bg: #050814;
  --sp-card-radius: 1.25rem;
}

/* =========================
   HERO SECTION
   ========================= */
   

.news-hero {
  background: radial-gradient(circle at top left, #152436 0, #050814 55%, #02040a 100%);
  border-radius: calc(var(--sp-card-radius) + 0.25rem);
  color: #e5f0ff;
  position: relative;
  overflow: hidden;
  padding: 3rem;
}

/* glow background */
.news-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 184, 148, 0.25), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(46, 134, 222, 0.18), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.news-hero > .row {
  position: relative;
  z-index: 2;
}

/* HERO TEXT FIX — FULLY READABLE */

/* Heading */
.news-hero .hero-title {
  color: #ffffff !important;
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.25;
}

/* Sub-heading */
.news-hero .hero-sub {
  color: rgba(230, 237, 255, 0.92) !important;
  font-size: 1rem;
}

/* Top muted nav text */
.news-hero .text-muted, 
.news-hero small, 
.news-hero .kicker {
  color: rgba(226, 232, 240, 0.75) !important;
}

/* Stats section */
.news-hero .text-white {
  color: #ffffff !important;
}

.news-hero .text-white-50 {
  color: rgba(240, 240, 255, 0.65) !important;
}

/* badge styling */
.news-hero .badge.bg-primary-subtle {
  background: rgba(0, 184, 148, 0.12) !important;
  color: var(--sp-primary) !important;
}

/* hero buttons */
.news-hero .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.news-hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* hero image and badge */
.hero-media-wrapper {
  max-width: 420px;
  position: relative;
}

.hero-image {
  border-radius: 1.5rem;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 8%;
  bottom: -6%;
  border-radius: 1.1rem;
  backdrop-filter: blur(14px);
  background: rgba(5, 8, 20, 0.85);
  color: #f5f7fb;
  width: 88%;
  transform: translateY(-18%);
}

.hero-badge .badge.bg-success-subtle {
  background: rgba(46, 204, 113, 0.16) !important;
  color: #2ecc71 !important;
}

@media (max-width: 767px) {
  .hero-media-wrapper {
    max-width: 330px;
  }
  .hero-badge {
    width: 92%;
    left: 4%;
    bottom: 2%;
    transform: none;
  }
}

/* =========================
   FILTER BAR (sticky)
   ========================= */

.news-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  border-radius: var(--sp-card-radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 22px 40px rgba(10, 22, 50, 0.12);
  padding: 1rem;
  position: sticky;
  top: 78px;
  z-index: 50;
}

.news-filter-bar .btn-group .btn {
  border-radius: 999px !important;
  padding-inline: 0.75rem;
}

.news-filter-bar .btn.active {
  background: var(--sp-primary) !important;
  border-color: var(--sp-primary) !important;
  color: #fff !important;
}

.news-search-group .input-group-text {
  border-right: 0;
}

.news-search-group .form-control {
  border-left: 0;
  box-shadow: none;
}

@media (max-width: 768px) {
  .news-filter-bar {
    top: 70px;
    padding: 0.75rem;
  }
}

/* =========================
   FEATURED CARDS
   ========================= */

.news-feature-card {
  border-radius: var(--sp-card-radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.news-feature-card img {
  width: 100%;
  height: 300px !important;  /* FIXED HEIGHT */
  object-fit: contain;
  object-position: center;
  border-radius: 12px 0 0 12px;
}

/* carousel buttons */
#featuredCarousel .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 15, 30, 0.7) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 0.35rem 0.75rem !important;
}

#featuredCarousel .owl-prev {
  left: -6px;
}
#featuredCarousel .owl-next {
  right: -6px;
}

/* =========================
   NEWS GRID CARDS
   ========================= */

.news-card {
  border-radius: var(--sp-card-radius);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding-bottom: 0.5rem;
  transition: 0.18s ease-out;
  position: relative;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(30, 30, 60, 0.18);
  border-color: rgba(148, 163, 184, 0.9);
}

.news-card .badge.bg-light {
  background: var(--sp-primary-soft) !important;
}

/* bookmark button */
.news-bookmark-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(20, 20, 40, 0.15);
  z-index: 5;
}

/* =========================
   TIMELINE STRIP
   ========================= */

.timeline-strip {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.4rem;
}

.timeline-item {
  min-width: 180px;
  padding: 1rem;
  border-radius: 1rem;
  background: linear-gradient(
    135deg,
    rgba(20, 30, 50, 0.05),
    rgba(148, 163, 184, 0.07)
  );
  border: 1px solid rgba(200, 210, 225, 0.9);
}

.timeline-year {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

/* =========================
   MEDIA KIT + FORM
   ========================= */

.news-contact-form .form-control {
  border-radius: 0.65rem;
  font-size: 0.9rem;
  border-color: rgba(203, 213, 225, 0.9);
}

.news-contact-form .form-control:focus {
  border-color: var(--sp-primary);
  box-shadow: 0 0 0 0.08rem rgba(0, 184, 148, 0.35);
}

/* =========================
   MODAL
   ========================= */

#newsModal .modal-content {
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

#newsModal .modal-header {
  border-bottom: none;
}

.object-fit-cover {
  object-fit: cover;
}

@media (max-width: 768px) {
  .news-feature-card img {
    height: 220px;
    border-radius: 12px 12px 0 0;
  }
}