/* ============================================================
   AMIHAN — News section components (index + article pages)
   Loaded after styles.css (uses its design tokens)
   ============================================================ */

/* ---------- News hero (shared by index and article) ---------- */
.news-hero {
  position: relative;
  background: var(--ink);
  color: rgba(255,255,255,.82);
  padding: clamp(5rem, 11vw, 8.5rem) 0 clamp(3.5rem, 6vw, 5rem);
  overflow: hidden;
}
.news-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 46% at 84% 4%, rgba(20,50,245,.36), transparent 62%),
    radial-gradient(46% 46% at 4% 96%, rgba(101,178,249,.18), transparent 60%);
  pointer-events: none;
}
.news-hero .container { position: relative; z-index: 1; }
.news-hero h1 { color: #fff; }
.news-hero .lede { color: rgba(255,255,255,.68); margin-bottom: 0; }

.news-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 1.2rem;
}
.news-hero__eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sky);
  flex: none;
}

/* ---------- News cards ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
a.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--sky); }
.news-card--lead { grid-column: 1 / -1; position: relative; overflow: hidden; }

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.news-card__tag {
  color: var(--blue);
  background: var(--tint-2);
  border-radius: 999px;
  padding: .28rem .7rem;
}
.news-card h3,
.news-card h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin-bottom: .6rem;
}
.news-card--lead h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.news-card p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }
.news-card__more {
  margin-top: auto;
  padding-top: 1.2rem;
  font-weight: 600;
  font-size: .93rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.news-card__more span { transition: transform .18s ease; }
a.news-card:hover .news-card__more span { transform: translateX(4px); }

/* Lead card: dark, hero-weight */
.news-card--lead {
  background: var(--ink);
  border-color: rgba(255,255,255,.14);
}
.news-card--lead::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 88% 8%, rgba(20,50,245,.4), transparent 62%),
    radial-gradient(50% 70% at 4% 100%, rgba(101,178,249,.16), transparent 60%);
  pointer-events: none;
}
.news-card--lead > * { position: relative; z-index: 1; }
.news-card--lead h2,
.news-card--lead h3 { color: #fff; }
.news-card--lead p { color: rgba(255,255,255,.68); }
.news-card--lead .news-card__meta { color: rgba(255,255,255,.6); }
.news-card--lead .news-card__tag { background: var(--sky); color: var(--ink); }
.news-card--lead .news-card__more { color: var(--sky); }

/* ---------- Secondary links (more from Amihan) ---------- */
.news-more {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.news-more .pcard h3 { font-size: 1.08rem; }

/* ---------- Article ---------- */
.article-hero h1 {
  max-width: 22ch;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
}
.article-hero .lede { max-width: 780px; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin-top: 1.8rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}
.article-meta__tag {
  color: var(--sky);
  border: 1px solid rgba(101,178,249,.45);
  border-radius: 999px;
  padding: .3rem .75rem;
}

.article {
  max-width: 760px;
  margin-inline: auto;
}
.article > p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.3rem;
}
.article .dateline strong { color: var(--ink); font-weight: 700; }
.article h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 2.8rem 0 1rem;
}
.article h3 { margin-top: 2rem; }
.article a { color: var(--blue); font-weight: 600; text-decoration: none; }
.article a:hover { text-decoration: underline; }
.article strong { color: var(--ink); }

.art-quote {
  margin: 2.2rem 0;
  padding: 1.6rem 1.8rem;
  background: var(--tint);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
}
.art-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 .9rem;
}
.art-quote p:last-child { margin-bottom: 0; }
.art-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--muted);
}
.art-quote cite strong { color: var(--ink); }

/* Pricing packs */
.packs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.8rem 0 2rem;
  padding: 0;
}
.pack {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.2rem;
}
.pack__name {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}
.pack__price {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: .4rem 0 .1rem;
}
.pack__valid { font-size: .88rem; color: var(--muted); }
.pack__note {
  display: block;
  margin-top: .55rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue);
}

/* Article end matter */
.article-end {
  max-width: 760px;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .93rem;
  color: var(--muted);
}
.article-end p { margin: 0; }
.article-end a { color: var(--blue); font-weight: 600; text-decoration: none; }
.article-end a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .news-more { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .news-grid { grid-template-columns: 1fr; }
  .packs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .packs { grid-template-columns: 1fr; }
  .article-end { flex-direction: column; align-items: flex-start; }
}
