/* news/news.css */

/* =====================
   NEWS GLOBAL WRAPPER
===================== */

#news-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* =====================
   NEWS HERO / INTRO
===================== */

.news-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.news-hero p {
  max-width: 640px;
  margin: 0.5rem auto 0;
  opacity: 0.85;
  font-size: 0.95rem;
}

/* =====================
   FEATURED / LATEST
===================== */

.news-featured {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3.5rem;
  background: rgba(0,0,0,0.15);
}

.news-featured img {
  width: 100%;
  display: block;
}

.news-featured-content {
  padding: 1.25rem 1.25rem 1.5rem;
}

.news-meta {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-bottom: 0.4rem;
}

.news-tag {
  color: var(--color-subtitle);
  font-weight: 600;
}

/* =====================
   NEWS TIMELINE (INDEX)
===================== */

.news-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.news-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.news-item::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background-color: var(--color-button);
  flex-shrink: 0;
}

.news-item-content h3 {
  margin-bottom: 0.25rem;
}

.news-item-content p {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* =====================
   SINGLE NEWS PAGE
===================== */

.news-article {
  max-width: 760px;
  margin: 0 auto;
}

.news-article-header {
  margin-bottom: 2rem;
}

.news-article-header img {
  width: 100%;
  border-radius: 12px;
  margin-top: 1rem;
}

.news-article-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-article-content p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* =====================
   ARCHIVE / TAGS
===================== */

.news-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.news-tags span {
  font-size: 0.7rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  opacity: 0.85;
}

/* =====================
   SINGLE NEWS WRAPPER
===================== */

#news-single {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* =====================
   SINGLE NEWS HERO
===================== */

.news-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.news-hero img {
  width: 100%;
  border-radius: 14px;
}

.news-hero-text {
  text-align: center;
}

/* =====================
   SINGLE NEWS SECTIONS
===================== */

.news-section {
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.news-section p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* =====================
   POINT LIST
===================== */

.news-points {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-points li::before {
  content: "•";
  color: var(--color-subtitle);
  margin-right: 0.5rem;
}

/* =====================
   CARD SHOWCASE
===================== */

.card-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.card-showcase-grid img {
  width: 100%;
  border-radius: 10px;
}

/* =====================
   CTA
===================== */

.news-cta {
  text-align: center;
}

/* =====================
   DESKTOP POLISH
===================== */

@media (min-width: 1024px) {
  
  /* NEWS INDEX */
  /* Featured jadi horizontal */
  .news-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
  }

  .news-featured img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .news-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* SINGLE NEWS */
  .news-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 3rem;
  }

  .news-hero-text {
    text-align: left;
  }

  .card-showcase-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
