/* ============================================
   News Page — Modern Redesign
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Sinhala:wght@400;600;700&display=swap");

/* ---- Page wrapper background ---- */
body {
  background-color: #f4f1eb !important;
}

/* ---- Page Header ---- */
.news-page-header {
  background: linear-gradient(135deg, #800000 0%, #440306 100%);
  padding: 4rem 1rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.news-page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(212, 175, 55, 0.12) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 80% 50%,
      rgba(212, 175, 55, 0.08) 0%,
      transparent 55%
    );
  pointer-events: none;
}

.news-page-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.news-page-header h1 {
  color: #f5e6a3;
  font-family: "Noto Sans Sinhala", "PT Sans", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  position: relative;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
}

.header-accent {
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #f5e6a3, #d4af37);
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
}

/* ---- News Container ---- */
.news-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

/* ---- Article Card ---- */
.news-article {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 2.75rem;
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.07);
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-article:hover {
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 12px 36px rgba(0, 0, 0, 0.11);
  transform: translateY(-3px);
}

/* ---- Carousel ---- */
.news-article .carousel {
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  margin: 0;
}

.news-article .carousel-inner .item img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.news-article .carousel-control {
  background: none;
  width: 56px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.news-article:hover .carousel-control {
  opacity: 1;
}

.news-article .carousel-control.left {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent);
}

.news-article .carousel-control.right {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.4), transparent);
}

.news-article .carousel-control .glyphicon {
  font-size: 22px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.news-article .carousel-indicators {
  bottom: 14px;
  margin-bottom: 0;
}

.news-article .carousel-indicators li {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.news-article .carousel-indicators .active {
  background: #d4af37;
  border-color: #d4af37;
  transform: scale(1.2);
}

/* ---- Article Body ---- */
.news-article-body {
  padding: 2rem 2.25rem 2.25rem;
  position: relative;
}

/* Gold left-border accent strip */
.news-article-body::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 0;
  width: 4px;
  height: calc(100% - 4rem);
  background: linear-gradient(to bottom, #d4af37, rgba(212, 175, 55, 0.2));
  border-radius: 0 2px 2px 0;
}

.news-article-title {
  font-family: "Noto Sans Sinhala", "PT Sans", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #6b0000;
  margin: 0 0 1.1rem;
  line-height: 1.65;
}

.news-article-text {
  font-family: "Noto Sans Sinhala", "PT Sans", sans-serif;
  font-size: 1.5rem;
  line-height: 1.9;
  color: #4a4a4a;
  margin-bottom: 0.8rem;
  text-align: justify;
}

.news-article-text:last-child {
  margin-bottom: 0;
}

.news-article-body ul {
  padding-left: 1.4rem;
  margin: 0.5rem 0 0.8rem;
}

.news-article-body ul li {
  font-family: "Noto Sans Sinhala", "PT Sans", sans-serif;
  font-size: 1.5rem;
  line-height: 1.9;
  color: #4a4a4a;
  margin-bottom: 0.45rem;
}

/* ---- Simple (no-carousel) articles ---- */
.news-article--simple .news-article-body {
  padding: 1.75rem 2.25rem;
}

/* ---- Divider between articles ---- */
.news-article:last-child {
  margin-bottom: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .news-page-header {
    padding: 2.75rem 1rem 2.5rem;
  }

  .news-page-header h1 {
    font-size: 1.65rem;
  }

  .news-container {
    padding: 2rem 0.75rem 3.5rem;
  }

  .news-article {
    border-radius: 14px;
    margin-bottom: 2rem;
  }

  .news-article .carousel {
    border-radius: 14px 14px 0 0;
  }

  .news-article .carousel-inner .item img {
    height: 240px;
  }

  .news-article .carousel-control {
    opacity: 0.75;
  }

  .news-article-body {
    padding: 1.4rem 1.4rem 1.6rem;
  }

  .news-article-body::before {
    top: 1.4rem;
    height: calc(100% - 2.8rem);
  }

  .news-article-title {
    font-size: 2rem;
  }

  .news-article-text {
    font-size: 1.5rem;
  }
}
