/* ==========================================================================
   Trang Tin Tức Phật Giáo — Chùa Viên Đức (Tân Lý, Phường La Gi, Lâm Đồng)
   Đồng bộ 100% với Washi & Liên Hoa Tịnh Độ Theme (src/styles/hanami.css)
   ========================================================================== */

.news-page {
  background: var(--paper);
  color: var(--ink);
}

.news-wrap {
  padding: 0 var(--pad);
  max-width: 112rem;
  margin: 0 auto;
}

.news-nav {
  background: linear-gradient(180deg, rgba(30, 19, 25, 0.76) 0%, rgba(30, 19, 25, 0) 100%);
}

.news-nav.scrolled-light {
  background: rgba(245, 236, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(138, 95, 108, 0.22);
  color: var(--ink);
}

.news-nav.scrolled-light .brand {
  color: var(--ink) !important;
}

.news-nav .active-nav-link {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

/* ==========================================================================
   HERO BANNER (NIGHT PLUM + MISTY WASHI WATERCOLOR BACKDROP)
   ========================================================================== */
.news-hero-banner {
  position: relative;
  padding: 8.6rem var(--pad) 5.2rem;
  background: var(--night);
  color: var(--paper);
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 236, 230, 0.16);
}

.news-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../assets/hanami/footer-fuji.webp?v=20261105r") center 38% / cover no-repeat;
  opacity: 0.28;
  pointer-events: none;
}

.news-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(30, 19, 25, 0.92) 0%, rgba(46, 29, 37, 0.76) 48%, rgba(140, 92, 106, 0.42) 100%);
  pointer-events: none;
}

.news-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 112rem;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.news-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--blush);
  margin-bottom: 0.9rem;
}

.news-eyebrow svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--rose);
}

.news-hero-left h1 {
  color: var(--paper);
}

.news-hero-right {
  max-width: 32rem;
  color: rgba(245, 236, 230, 0.88);
}

.news-hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   SEARCH & 36-CHANNEL SELECTOR BAR
   ========================================================================== */
.rss-filter-panel {
  background: var(--paper-2);
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(138, 95, 108, 0.22);
}

.rss-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.rss-search-box {
  position: relative;
  flex: 1 1 20rem;
}

.rss-search-input {
  width: 100%;
  font-family: inherit;
  font-size: max(12.5px, 0.92rem);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(138, 95, 108, 0.34);
  border-radius: 2px;
  padding: 0.72rem 1rem 0.72rem 2.4rem;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.rss-search-input:focus {
  border-color: var(--ink);
  background: #fbf6f2;
}

.rss-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--heading);
  pointer-events: none;
}

.rss-actions-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.rss-channel-select {
  font-family: inherit;
  font-size: max(11.5px, 0.84rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(138, 95, 108, 0.34);
  border-radius: 2px;
  padding: 0.68rem 0.95rem;
  cursor: pointer;
  outline: none;
}

.rss-refresh-btn {
  appearance: none;
  border: 1px solid rgba(138, 95, 108, 0.34);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: max(11px, 0.82rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.68rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}

.rss-refresh-btn:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--paper);
}

.rss-status-pill {
  font-size: max(11px, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--heading);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-left: 0.3rem;
}

.rss-status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--rose);
  flex: none;
}

.rss-status-dot.loading {
  background: #d89b48;
  animation: rssPulse 1s ease-in-out infinite;
}

@keyframes rssPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

/* ==========================================================================
   STICKY CATEGORY TABS BAR
   ========================================================================== */
.rss-toolbar-wrap {
  position: sticky;
  top: 4.1rem;
  z-index: 45;
  background: rgba(245, 236, 230, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(138, 95, 108, 0.24);
  padding: 0.68rem 0;
}

.rss-tabs-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.rss-tabs-row::-webkit-scrollbar {
  display: none;
}

.rss-tab-btn {
  appearance: none;
  border: 1px solid rgba(138, 95, 108, 0.28);
  background: rgba(236, 224, 218, 0.65);
  color: var(--ink);
  font-family: inherit;
  font-size: max(11px, 0.8rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.52rem 0.95rem;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s var(--ease);
}

.rss-tab-btn:hover {
  border-color: var(--rose);
  color: var(--ink);
}

.rss-tab-btn.active {
  background: var(--night);
  border-color: var(--night);
  color: var(--paper);
}

/* ==========================================================================
   FEATURED LEAD ARTICLE CARD & 3-COLUMN NEWS GRID
   ========================================================================== */
.news-main-section {
  position: relative;
  z-index: 2;
  padding: 2.8rem 0 5.4rem;
}

.featured-article-card {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2.4rem;
  background: var(--paper-2);
  border: 1px solid rgba(138, 95, 108, 0.28);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1.6rem 3.4rem rgba(30, 19, 25, 0.08);
  margin-bottom: 2.8rem;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.featured-article-card:hover {
  transform: translateY(-0.22rem);
  border-color: var(--rose);
  box-shadow: 0 2rem 4rem rgba(30, 19, 25, 0.14);
}

.featured-media {
  position: relative;
  min-height: 22rem;
  background: var(--night);
  overflow: hidden;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.featured-article-card:hover .featured-media img {
  transform: scale(1.03);
}

.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(30, 19, 25, 0.88);
  backdrop-filter: blur(8px);
  color: var(--paper);
  font-size: max(10.5px, 0.76rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.38rem 0.78rem;
  border-radius: 2px;
  border: 1px solid rgba(245, 236, 230, 0.22);
}

.featured-body {
  padding: 2.2rem 2.2rem 2.2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: max(11px, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--heading);
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.featured-cat {
  color: var(--rose);
  font-weight: 600;
}

.featured-title {
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}

.featured-summary {
  font-size: max(13px, 0.98rem);
  color: var(--ink);
  opacity: 0.86;
  line-height: 1.62;
  margin-bottom: 1.2rem;
}

.featured-related {
  list-style: none;
  padding: 0.85rem 1.1rem;
  margin: 0 0 1.35rem;
  background: rgba(245, 236, 230, 0.75);
  border-left: 2px solid var(--rose);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.featured-related li {
  font-size: max(11.5px, 0.86rem);
  color: var(--heading);
  line-height: 1.45;
}

.featured-related a {
  color: var(--ink);
  font-weight: 500;
}

.featured-related a:hover {
  color: var(--rose);
  text-decoration: underline;
}

.featured-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.news-card {
  background: rgba(236, 224, 218, 0.72);
  border: 1px solid rgba(138, 95, 108, 0.24);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.news-card:hover {
  transform: translateY(-0.25rem);
  border-color: var(--rose);
  box-shadow: 0 1.2rem 2.8rem rgba(63, 44, 51, 0.12);
}

.news-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--night);
  overflow: hidden;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s var(--ease);
}

.news-card:hover .news-card-thumb img {
  transform: scale(1.04);
}

.news-card-cat {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  background: rgba(30, 19, 25, 0.86);
  backdrop-filter: blur(6px);
  color: var(--paper);
  font-size: max(10px, 0.74rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.26rem 0.62rem;
  border-radius: 2px;
}

.news-card-body {
  padding: 1.35rem 1.45rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-date {
  font-size: max(10.5px, 0.78rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--heading);
  margin-bottom: 0.45rem;
}

.news-card-title {
  font-size: 1.32rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.24;
  letter-spacing: -0.015em;
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-desc {
  font-size: max(12px, 0.92rem);
  color: var(--ink);
  opacity: 0.86;
  line-height: 1.56;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(138, 95, 108, 0.18);
}

.news-read-btn {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: inherit;
  font-size: max(11px, 0.8rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.54rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.news-card:hover .news-read-btn,
.news-read-btn:hover {
  background: var(--rose);
  border-color: var(--rose);
}

/* ==========================================================================
   36 RSS CHANNELS DIRECTORY SECTION
   ========================================================================== */
.rss-directory-section {
  position: relative;
  z-index: 2;
  background: var(--paper-2);
  padding: 4.8rem 0 5.4rem;
  border-top: 1px solid rgba(138, 95, 108, 0.24);
  border-bottom: 1px solid rgba(138, 95, 108, 0.24);
}

.rss-dir-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(138, 95, 108, 0.22);
}

.rss-dir-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.rss-dir-chip {
  appearance: none;
  border: 1px solid rgba(138, 95, 108, 0.26);
  background: var(--paper);
  border-radius: 2px;
  padding: 0.9rem 1.05rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-family: inherit;
  font-size: max(11.5px, 0.86rem);
  font-weight: 500;
  color: var(--ink);
  transition: all 0.22s var(--ease);
}

.rss-dir-chip:hover {
  transform: translateY(-0.15rem);
  border-color: var(--rose);
  background: var(--rose);
  color: var(--paper);
}

.rss-dir-chip small {
  font-size: max(10px, 0.74rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

/* ==========================================================================
   FULL-CONTENT ARTICLE READER MODAL (WASHI / NIGHT PLUM THEME)
   ========================================================================== */
.reader-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(24, 15, 20, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overscroll-behavior: contain;
}

.reader-modal-overlay.open {
  display: flex;
}

.reader-modal-card {
  width: min(58rem, 100%);
  height: min(88svh, 54rem);
  max-height: 88svh;
  min-height: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(138, 95, 108, 0.35);
  border-radius: 3px;
  box-shadow: 0 2.4rem 5rem rgba(15, 8, 12, 0.48);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  --reader-font-size: 1.12rem;
}

.reader-modal-card.reader-night {
  background: #1e1419;
  color: #f3e8df;
  border-color: rgba(245, 236, 230, 0.22);
}

.reader-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.8rem;
  border-bottom: 1px solid rgba(138, 95, 108, 0.24);
  background: rgba(181, 128, 142, 0.06);
}

.reader-tools-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.reader-font-btn,
.reader-back-btn {
  appearance: none;
  border: 1px solid rgba(138, 95, 108, 0.34);
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: max(11px, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.44rem 0.78rem;
  border-radius: 2px;
  cursor: pointer;
}

.reader-back-btn {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.reader-modal-card.reader-night .reader-back-btn {
  background: var(--rose);
  border-color: var(--rose);
}

.reader-scroll-content {
  flex: 1 1 0%;
  min-height: 0;
  padding: 1.8rem 2.2rem 2.6rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  outline: none;
}

.reader-modal-title {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.reader-modal-summary {
  font-size: calc(var(--reader-font-size) * 1.02);
  font-weight: 500;
  background: rgba(181, 128, 142, 0.12);
  border-left: 3px solid var(--rose);
  padding: 0.9rem 1.15rem;
  border-radius: 2px;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.reader-modal-img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  border-radius: 2px;
  margin: 0.8rem 0 1.4rem;
}

.reader-article-body {
  font-size: var(--reader-font-size);
  line-height: 1.82;
  margin-bottom: 1.8rem;
}

.reader-article-body p {
  margin: 0 0 1.1rem;
}

.reader-article-body table.picture,
.reader-article-body table.details__img {
  width: 100%;
  margin: 1.3rem 0;
  border-collapse: collapse;
  background: rgba(181, 128, 142, 0.08);
  border: 1px solid rgba(138, 95, 108, 0.22);
  border-radius: 2px;
  overflow: hidden;
}

.reader-article-body table.picture img,
.reader-article-body img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.reader-article-body td.caption {
  padding: 0.65rem 0.9rem;
  font-size: max(11.5px, 0.86rem);
  font-style: italic;
  color: var(--heading);
  text-align: center;
}

.reader-bottom-bar {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(138, 95, 108, 0.22);
}

/* ==========================================================================
   RESPONSIVE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 980px) {
  .featured-article-card {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .featured-media {
    min-height: 15rem;
    aspect-ratio: 16 / 9;
  }

  .featured-body {
    padding: 0 1.4rem 1.6rem;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .rss-dir-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-hero-banner {
    padding: 6.4rem var(--pad) 3.2rem;
  }

  .rss-toolbar-wrap {
    top: 3.6rem;
  }

  .rss-controls-row {
    flex-direction: column;
    align-items: stretch;
  }

  .rss-actions-right {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .rss-channel-select {
    width: 100%;
  }

  .rss-status-pill {
    grid-column: 1 / -1;
  }

  .news-grid,
  .rss-dir-grid {
    grid-template-columns: 1fr;
  }

  .reader-modal-overlay {
    padding: 0.5rem;
  }

  .reader-modal-card {
    width: 100%;
    height: 94svh;
    max-height: 94svh;
  }

  .reader-topbar {
    padding: 0.85rem 1rem;
  }

  .reader-scroll-content {
    padding: 1.2rem 1rem 2rem;
  }
}
