/* ============================================================
   news.css — rules specific to news.html.
   Loaded after css/styles.css, which holds the shared base.
   ============================================================ */

.site-header {
    position: fixed; top: 14px;
    left: clamp(14px, 2vw, 28px); right: clamp(14px, 2vw, 28px);
    z-index: 100; padding: 8px clamp(18px, 2vw, 28px);
    background: rgba(250, 244, 232, 0.96);
    backdrop-filter: saturate(180%) blur(14px);
    border-radius: var(--radius-pill);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.95),
      0 3px 0 rgba(31,143,62,0.85),
      0 5px 0 rgba(215,46,31,0.45),
      0 8px 14px rgba(26,20,16,0.06);
  }

@media (max-width: 1100px) {
    .nav-links, .nav-actions .btn-outline { display: none; }
    .nav-toggle { display: inline-flex; }
    .mobile-open .nav-links {
      display: flex; flex-direction: column;
      position: absolute; top: 100%; left: 0; right: 0;
      background: var(--c-cream); padding: 20px; gap: 14px;
      border-radius: 20px; margin-top: 12px;
      box-shadow: 0 16px 36px rgba(26,20,16,0.12);
    }
  }

/* Page hero */
  .page-hero {
    position: relative;
    padding: clamp(140px, 18vw, 220px) 0 clamp(70px, 9vw, 110px);
    overflow: hidden;
    background:
      linear-gradient(135deg, rgba(247,243,236,0.86) 0%, rgba(237,226,199,0.82) 100%),
      url('../img/community/IMG_7028.JPG') center/cover;
    color: var(--c-ink);
    border-bottom: 1px solid var(--c-line);
  }

.page-hero::before {
    content: ""; position: absolute;
    top: -120px; right: -80px;
    width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle, rgba(31,143,62,0.18), transparent 65%);
    pointer-events: none;
  }

.page-hero .eyebrow { color: var(--c-green); }

.page-hero h1 { color: var(--c-ink); margin-bottom: 22px; max-width: 18ch; }

/* Filter pills */
  .filters {
    background: var(--c-cream);
    padding: 50px 0 30px;
    border-bottom: 1px solid var(--c-line);
  }

.filter-row {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  }

.filter-pill {
    padding: 9px 18px; border-radius: var(--radius-pill);
    background: #fff; color: var(--c-ink-soft);
    border: 1.5px solid var(--c-line);
    font-size: 0.84rem; font-weight: 600;
    cursor: pointer; transition: all var(--t-fast);
  }

.filter-pill:hover { border-color: var(--c-green); color: var(--c-green); }

.filter-pill.active { background: var(--c-green); color: #fff; border-color: var(--c-green); }

/* Featured story */
  .featured { background: var(--c-cream); padding: 60px 0 30px; }

.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(30px, 5vw, 60px);
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--c-line);
    box-shadow: 0 16px 36px rgba(26,20,16,0.08);
  }

.featured-card .img {
    aspect-ratio: 4/3;
    background-size: cover; background-position: center;
  }

.featured-card .body {
    padding: clamp(28px, 4vw, 50px);
    display: flex; flex-direction: column;
    justify-content: center;
  }

.featured-card .meta {
    display: flex; gap: 10px; align-items: center;
    margin-bottom: 16px;
    font-size: 0.78rem; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--c-muted); font-weight: 600;
  }

.featured-card .pill {
    background: var(--c-red); color: #fff;
    padding: 4px 12px; border-radius: var(--radius-pill);
    letter-spacing: 0.06em;
  }

.featured-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 14px; }

.featured-card p { font-size: 1.02rem; }

.featured-card .read {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 18px; font-weight: 600;
    color: var(--c-red); border-bottom: 2px solid var(--c-red);
    padding-bottom: 4px; align-self: flex-start;
    transition: gap var(--t-med);
  }

.featured-card .read:hover { gap: 12px; }

@media (max-width: 860px) {
    .featured-card { grid-template-columns: 1fr; }
  }

/* Story grid */
  .stories { background: var(--c-cream); padding: 30px 0 100px; }

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

.story {
    background: #fff; border-radius: var(--radius-md);
    overflow: hidden; border: 1px solid var(--c-line);
    transition: all var(--t-med);
    display: flex; flex-direction: column;
  }

/* display:flex above beats the hidden attribute's default, so the category
   filter needs this to actually take a card out of the grid. */
.story[hidden] { display: none; }

.story:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(26,20,16,0.12); }

.story .img { aspect-ratio: 16/10; background-size: cover; background-position: center; }

.story .body { padding: 24px 24px 26px; }

.story .meta {
    display: flex; gap: 10px; align-items: center; margin-bottom: 12px;
    font-size: 0.74rem; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--c-muted); font-weight: 600;
  }

.story .pill {
    background: rgba(31,143,62,0.12); color: var(--c-green);
    padding: 4px 10px; border-radius: var(--radius-pill);
  }

.story .pill.red { background: rgba(215,46,31,0.12); color: var(--c-red); }

.story h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.25; }

.story h3 a { color: var(--c-ink); }

.story h3 a:hover { color: var(--c-red); }

.story p { font-size: 0.94rem; margin: 0 0 14px; }

.story .read { font-size: 0.86rem; font-weight: 600; color: var(--c-red); display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 900px) { .stories-grid { grid-template-columns: 1fr 1fr; } }

@media (max-width: 600px) { .stories-grid { grid-template-columns: 1fr; } }

.stories-empty {
    text-align: center;
    color: var(--c-muted);
    padding: 40px 0 0;
    margin: 0;
  }

/* Newsletter */
  .newsletter-cta {
    background: linear-gradient(135deg, var(--c-green) 0%, var(--c-green-deep) 100%);
    color: #fff; text-align: center;
    position: relative; overflow: hidden;
  }

.newsletter-cta::before {
    content: ""; position: absolute;
    top: -100px; left: -80px;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(215,46,31,0.30), transparent 65%);
    pointer-events: none;
  }

.newsletter-cta .container { position: relative; }

.newsletter-cta h2 { color: #fff; margin-bottom: 20px; max-width: 22ch; margin-left: auto; margin-right: auto; }

.newsletter-cta p { color: rgba(255,255,255,0.92); font-size: 1.08rem; max-width: 56ch; margin: 0 auto 30px; }

/* Podcast link under the newsletter signup, on the green band */
.podcast-line {
    margin: 34px auto 14px !important;
    font-size: 0.95rem !important;
    color: rgba(255,255,255,0.85) !important;
  }

.podcast-btn {
    color: #fff;
    border-color: rgba(255,255,255,0.55);
    padding: 13px 26px;
    font-size: 0.9rem;
  }

.podcast-btn:hover { background: #fff; color: var(--c-green-deep); }

.newsletter-form {
    display: flex; gap: 10px;
    max-width: 480px; margin: 0 auto;
    background: #fff; padding: 6px;
    border-radius: var(--radius-pill);
  }

.newsletter-form input {
    flex: 1; background: transparent; border: 0;
    padding: 14px 20px; color: var(--c-ink);
    font: inherit; font-size: 0.94rem; outline: none; min-width: 0;
  }

.newsletter-form button {
    background: var(--c-red); color: #fff;
    padding: 12px 26px; border-radius: var(--radius-pill);
    font-weight: 600; font-size: 0.88rem;
    transition: background var(--t-fast);
  }

.newsletter-form button:hover { background: var(--c-red-deep); }

/* Signpost in the hero so the video section at the foot of the page gets found */
.hero-jump {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1.5px solid var(--c-green);
    color: var(--c-green-deep);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 6px 16px rgba(26,20,16,0.08);
    transition: all var(--t-med);
  }

.hero-jump:hover {
    background: var(--c-green);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(19,106,43,0.28);
  }

.hero-jump svg { animation: jump-nudge 1.9s ease-in-out infinite; }

.hero-jump:hover svg { animation: none; }

@keyframes jump-nudge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
  }

@media (prefers-reduced-motion: reduce) { .hero-jump svg { animation: none; } }

/* Additional media: YouTube talks, podcasts, and performances */
  .media {
    background: var(--c-paper);
    padding: clamp(60px, 8vw, 100px) 0;
    /* Clears the fixed header pill when jumped to from the hero link */
    scroll-margin-top: 96px;
  }

.media-head { max-width: 720px; margin-bottom: 44px; }

.media-head h2 em { color: var(--c-red); font-style: italic; }

.media-head p { margin: 14px 0 0; }

/* Flanbwayan's own podcast, given its own band above the video grid */
.podcast-feature {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.5vw, 32px);
    padding: clamp(24px, 3vw, 34px) clamp(24px, 3vw, 38px);
    margin-bottom: 34px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--c-green-deep) 0%, var(--c-green) 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(19,106,43,0.28);
    transition: transform var(--t-med), box-shadow var(--t-med);
  }

.podcast-feature:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 24px 52px rgba(19,106,43,0.36);
  }

.podcast-feature .ico {
    flex: none;
    width: 66px; height: 66px;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    border: 1.5px solid rgba(255,255,255,0.35);
    display: grid; place-items: center;
  }

.podcast-feature .copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.podcast-feature .kicker {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--c-green-pale);
  }

.podcast-feature .name {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 800;
    line-height: 1.2;
  }

.podcast-feature .desc { font-size: 0.94rem; color: rgba(255,255,255,0.9); }

.podcast-feature .cta {
    flex: none;
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--c-green-deep);
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
  }

.podcast-feature:hover .cta { gap: 12px; }

@media (max-width: 760px) {
    .podcast-feature { flex-wrap: wrap; }
    .podcast-feature .cta { margin-left: 0; width: 100%; justify-content: center; }
  }

.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

.media-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    color: var(--c-ink);
    transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  }

.media-card:hover {
    transform: translateY(-6px);
    border-color: var(--c-green);
    box-shadow: 0 16px 36px rgba(26,20,16,0.12);
  }

.media-card .thumb {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    background-color: var(--c-ink);
    background-size: cover;
    background-position: center;
  }

.media-card .play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(215,46,31,0.92);
    display: grid; place-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    transition: transform var(--t-fast), background var(--t-fast);
  }

.media-card .play svg { margin-left: 3px; }

.media-card:hover .play { background: var(--c-red); transform: translate(-50%, -50%) scale(1.08); }

.media-card .body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px 24px;
  }

.media-card .title {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
  }

.media-card:hover .title { color: var(--c-red); }

.media-card .src {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--c-muted);
    margin-top: auto;
  }

@media (max-width: 900px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 620px) { .media-grid { grid-template-columns: 1fr; } }
