/* main.css — news-lite site styles.
   Migrated from ../longf-news Tailwind (src/styles/globals.css @theme + component classes),
   converted to vanilla CSS, layered on top of Bootstrap 5.3.8 + Font Awesome 7.
   Tailwind utility classes from the Next app are translated into the semantic classes
   emitted by the PHP views (header.php, footer.php, articleCard.php, …). */

/* ============================================================
   Design tokens — ported from globals.css @theme
   ============================================================ */
:root {
  /* brand palette */
  --brand-25:  #ffffff;
  --brand-50:  #eff5ff;
  --brand-100: #e0e9f9;
  --brand-200: #c7d8f6;
  --brand-300: #a1c0ef;
  --brand-400: #749ee6;
  --brand-500: #547ddd;
  --brand-600: #3f61d1;
  --brand-700: #364fbf;
  --brand-800: #31419c;
  --brand-900: #26326a;
  --brand-950: #1f254c;

  /* gray palette */
  --gray-25:  #fdfdfd;
  --gray-50:  #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e9eaeb;
  --gray-300: #d5d7da;
  --gray-400: #a4a7ae;
  --gray-500: #717680;
  --gray-600: #535862;
  --gray-700: #414651;
  --gray-800: #252b37;
  --gray-900: #181d27;
  --gray-950: #0a0d12;

  --footer-bg: #0c1827;

  /* legacy aliases kept for existing markup */
  --lf-blue: var(--brand-600);
  --lf-text: var(--gray-900);
  --lf-muted: var(--gray-500);

  /* Bootstrap theme overrides → align BS primary with the brand */
  --bs-primary: #26326a;
  --bs-primary-rgb: 38, 50, 106;
  --bs-link-color: var(--brand-700);
  --bs-link-color-rgb: 54, 79, 191;
  --bs-link-hover-color: var(--brand-900);
  --bs-body-color: #181d27;
  --bs-body-font-family: Inter, InterVariable, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ============================================================
   Base — globals.css html/body rules
   ============================================================ */
html {
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  font-family: var(--bs-body-font-family);
  color: var(--lf-text);
}

/* globals.css: * { focus-visible:outline-2 outline-current } */
*:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.text-muted { color: var(--lf-muted) !important; }

/* ============================================================
   Layout shell — RootLayout <main> spacing
   Tailwind: space-y-10 py-8 md:space-y-24 md:pt-15 md:pb-24
   ============================================================ */
.site-main {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.site-main > * + * { margin-top: 2.5rem; }

@media (min-width: 768px) {
  .site-main {
    padding-top: 3.75rem;
    padding-bottom: 6rem;
  }
  .site-main > * + * { margin-top: 6rem; }
}

/* ============================================================
   Header — header/index.tsx + navigation.tsx
   ============================================================ */
.site-header { background: #fff; }

/* logo bar: h-17 md:h-20 */
.header-bar {
  display: flex;
  align-items: center;
  height: 4.25rem;
}
@media (min-width: 768px) {
  .header-bar { height: 5rem; }
}
.header-logo { display: inline-block; line-height: 0; }
.header-logo img { height: 2rem; width: auto; }
@media (min-width: 768px) {
  .header-logo img { height: 2.75rem; }
}

/* nav: bg-brand-900 */
.site-nav { background: var(--brand-900); }
.nav-row {
  display: flex;
  align-items: stretch;
}

/* home icon: size-13 md:h-19 md:w-20 */
.nav-home,
.nav-cat {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .15s ease;
  outline-offset: -2px;
}
.nav-home:hover,
.nav-home:focus,
.nav-cat:hover,
.nav-cat:focus {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.nav-home.is-active,
.nav-cat.is-active {
  background: rgba(255, 255, 255, .1);
}

.nav-home {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1rem;
  flex: 0 0 auto;
}
@media (min-width: 768px) {
  .nav-home { width: 5rem; height: 4.75rem; font-size: 1.5rem; }
}

/* category strip: horizontal scroll, hidden scrollbar */
.nav-cats {
  display: flex;
  flex: 1 1 auto;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.nav-cats::-webkit-scrollbar { display: none; }

.nav-cat {
  height: 3.25rem;
  padding: 0 1rem;
  font-size: .75rem;
  font-weight: 600;
}
@media (min-width: 768px) {
  .nav-cat { height: 4.75rem; padding: 0 1.5rem; font-size: .875rem; }
}

/* ============================================================
   Footer — footer/index.tsx (static block; dynamic columns omitted)
   ============================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--footer-bg);
  color: rgba(255, 255, 255, .7);
  padding-top: 2rem;
  font-size: .8125rem;
  line-height: 1.5;
}
/* Layout is Bootstrap grid (.row / .col-*); these classes carry styling only. */
.footer-logo { display: inline-block; line-height: 0; }
.footer-logo img { height: 2.25rem; width: auto; }

.footer-legal {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
}
.footer-legal > li + li { margin-top: .5rem; }
.footer-legal p { margin: 0 0 .5rem; }
.footer-legal-title {
  color: #fff;
  text-transform: uppercase;
  font-weight: 500;
}
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }
/* contact rows with leading icon (phone/address) — Tailwind: flex items-center gap-1, icon text-blue-500 */
.footer-legal li:has(> i) { display: flex; align-items: center; gap: .375rem; }
.footer-legal li > i {
  flex: 0 0 auto;
  color: #3b82f6; /* blue-500 */
  font-size: 1.125rem;
}
@media (min-width: 992px) {
  .footer-legal { margin-top: 1.5rem; font-size: .875rem; }
  .footer-legal > li + li { margin-top: .75rem; }
}

/* social: round buttons, *:size-10 bg-white/70 text-#0c1827 */
.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  color: var(--footer-bg);
  font-size: 1.125rem;
  text-decoration: none;
  transition: background-color .15s ease;
}
.footer-social a:hover { background: #fff; }

/* dynamic columns: Danh mục / Đối tác / Liên kết (master API). Layout via BS .row/.col-4. */
.footer-columns {
  color: #fff;
  font-size: .75rem;
  font-weight: 500;
}
@media (min-width: 992px) {
  .footer-columns { font-size: .875rem; }
}
.footer-col__title { text-transform: uppercase; }
.footer-col__list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  color: rgba(255, 255, 255, .5);
}
.footer-col__list > * + * { margin-top: 1rem; }
.footer-col__list a { color: inherit; text-decoration: none; }
.footer-col__list a:hover { color: #fff; }
.footer-col__partners img {
  width: 6rem;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  background: #fff;
  border-radius: .375rem;
}

/* QR figure */
.footer-qr {}
.footer-qr img {
  margin: 0 auto;
  width: 12.5rem;
  max-width: 100%;
  height: auto;
  background: #fff;
  padding: .125rem;
  border-radius: .75rem;
}
.footer-qr figcaption {
  margin-top: 1rem;
  color: #fff;

}
@media (min-width: 992px) {
  .footer-qr { text-align: center; }
  .footer-qr figcaption { text-align: center; }
}

/* bottom bar */
.footer-bottom {
  margin-top: 1.25rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom > span { margin-top: .5rem; }
@media (min-width: 992px) {
  .footer-bottom { padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: .875rem; }
  .footer-bottom > span { margin-top: 0; }
}

/* ============================================================
   Article card — components/articleCard.php (mirrors article-item)
   ============================================================ */
.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
}
.article-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.article-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: .5rem;
  background: var(--gray-100);
}
.article-card__title {
  margin: .625rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__link:hover .article-card__title { color: var(--brand-700); }
.article-card__summary {
  margin: .5rem 0 0;

  gap: .5rem;
  font-weight: 700;
  color: var(--brand-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__time {
  margin-top: .5rem;
  font-size: .75rem;
  color: var(--gray-500);
}

/* section headings */
.home-latest > h1,
.all-news > h1,
.category-list > h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--gray-900);
}

/* ============================================================
   Pagination / load-more — components/pagination.php
   ============================================================ */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* ============================================================
   Breadcrumbs — components/breadcrumbs.php (Bootstrap .breadcrumb)
   ============================================================ */
.lf-breadcrumb { margin-bottom: 1rem; }
.lf-breadcrumb .breadcrumb { margin-bottom: 0; font-size: .8125rem; }
.lf-breadcrumb a { color: var(--brand-700); text-decoration: none; }
.lf-breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   Article detail prose — article/detail.php content[] HTML
   (replaces Tailwind @tailwindcss/typography "typo" class)
   ============================================================ */
.article-detail {
  max-width: 48rem;
}
.article-detail h1 { font-size: 2rem; font-weight: 700; line-height: normal; text-wrap: pretty; margin: 0 0 1rem; }
@media (min-width: 992px) {
  .article-detail h1 { font-size: 3rem; line-height: 1.2; }
}
.article-detail h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; }
.article-detail h3 { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
.article-detail p { margin: 0 0 1.25rem; line-height: 1.75; font-size: 1.0625rem; }
.article-detail img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
}
.article-detail figure { margin: 1.5rem 0; }
.article-detail figcaption {
  margin-top: .5rem;
  font-size: .8125rem;
  color: var(--gray-500);
}
.article-detail a { color: var(--brand-700); }
.article-detail blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--brand-300);
  gap: .5rem;
  font-weight: 700;
  color: var(--brand-600);
}
.article-detail ul,
.article-detail ol { margin: 0 0 1.25rem; padding-left: 1.5rem; line-height: 1.75; }
/* table-cell paragraph resets (content[] tables) */
.article-detail td > p,
.article-detail th > p { margin: 0; }

/* --- article-detail: header chrome --- */
.article-detail__header { margin-bottom: 2rem; }

.article-back-wrap { margin-bottom: 4rem; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  color: var(--brand-600);
  text-decoration: none;
}
.article-back:hover { color: var(--brand-700); }
.article-back i { font-size: 1.25rem; }

/* --- article-detail: category badge --- */
.article-cat-badge-wrap { margin-bottom: 1rem; }
.article-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 1rem;
  background-color: color-mix(in srgb, currentColor 10%, transparent);
  padding: .25rem .5rem .25rem .25rem;
  font-size: .75rem;
  font-weight: 500;
}
a.article-cat-badge__link {
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  background: #fff;
  padding: .125rem .375rem;
  text-decoration: none;
  color: currentColor;
}
.article-cat-badge__time { line-height: 1; }

/* --- article-detail: lead paragraph --- */
p.article-lead {
  margin-top: 1rem;
  color: var(--gray-600);
}
@media (min-width: 992px) {
  p.article-lead { margin-top: 1.5rem; font-size: 1.25rem; line-height: 1.5; }
}

/* --- article-detail: source line + clipboard --- */
.article-source {
  margin-top: 2.5rem;
  text-align: right;

  color: var(--gray-900);
}
.source-copier {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.source-origin { color: var(--brand-500); }
.source-copy-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0 .25rem;
  cursor: pointer;
  color: var(--gray-500);

  line-height: 1;
}
.source-copy-btn:hover { color: var(--brand-700); }

/* ============================================================
   Error pages — errDemo/page404.php, page500.php
   ============================================================ */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}
.error-page h1 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--brand-900);
  margin: 0;
}
.error-page p { color: var(--gray-600); margin: .5rem 0 1.5rem; }
.error-page a { color: var(--brand-700); font-weight: 600; }

/* ============================================================
   Scroll-to-top button — ScrollTopButton (layout.php #scrollTopBtn)
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1030;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--brand-900);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.scroll-top-btn[hidden] { display: none; }
.scroll-top-btn.is-visible { opacity: 1; visibility: visible; }
.scroll-top-btn:hover { background: var(--brand-700); }

/* ============================================================
   Home page — page.tsx (Section + ArticleItem + CategorySummary + CTA)
   ============================================================ */

/* Section heading with orange accent rule — section/index.tsx */
.section__head { margin-bottom: 1.5rem; }
.section__title {
  margin: 0;

  font-weight: 700;
  text-transform: uppercase;
}
@media (min-width: 768px) { .section__title { font-size: 1.5rem; } }
.section__rule { position: relative; height: .3125rem; }
.section__rule-line {
  margin-top: .5rem;
  height: 100%;
  border-top: 1px solid #dfdfdf;
  border-bottom: 1px solid #dfdfdf;
}
.section__rule-accent {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  width: 2.5rem;
  background: #fba834;
}
.section__rule-accent::after {
  content: '';
  position: relative;
  left: 95%;
  display: block;
  height: 100%;
  width: .3125rem;
  transform: skewX(-30deg);
  background: #fff;
}

/* ---- ArticleItem — article-item/index.tsx (reusable across the site) ---- */
.article-item {
  position: relative;
  display: flex;
  width: 100%;
  gap: 1.5rem;
}
.article-item > * { flex: 1; }
.article-item__overlay { position: absolute; inset: 0; z-index: 1; }
.article-item__figure { margin: 0; }
.article-item__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--brand-900);
}
.article-item__body { display: flex; flex: 1; flex-direction: column; gap: .75rem; }
.article-item__meta { color: var(--brand-900); font-size: .75rem; font-weight: 500; line-height: 1.4; }
@media (min-width: 768px) { .article-item__meta { font-size: .875rem; } }
.article-item__content { display: flex; flex-direction: column; gap: .75rem; }
.article-item__titlerow { display: flex; gap: 1rem; align-items: flex-start; }
.article-item__title {
  flex: 1;
  margin: 0;
  font-weight: 600;
  font-size: .75rem;
  line-height: 1.4;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) { .article-item__title { font-size: 1.5rem; } }
.article-item__arrow {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gray-600);
  transition: opacity .15s ease;
}
@media (min-width: 992px) {
  .article-item__arrow { width: 1.5rem; height: 1.5rem; opacity: 0; }
  .article-item:hover .article-item__arrow { opacity: 1; }
}
.article-item__summary {
  margin: 0;
  color: var(--gray-600);
  font-size: .875rem;

  line-height: 1.5;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* default variant: row+centered on mobile, column at lg; summary hidden on mobile */
.article-item:not(.article-item--featured):not(.article-item--always-horizontal):not(.article-item--simple) {
  align-items: center;
}
@media (min-width: 992px) {
  .article-item:not(.article-item--featured):not(.article-item--always-horizontal):not(.article-item--simple) {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 991px) {
  .article-item:not(.article-item--featured) .article-item__summary,
  .article-item--horizontal .article-item__summary { display: none; }
}

/* featured (vertical) — bigger type */
.article-item--featured:not(.article-item--horizontal) { flex-direction: column; }
.article-item--featured:not(.article-item--horizontal) .article-item__meta { font-size: .875rem; }
.article-item--featured:not(.article-item--horizontal) .article-item__title { font-size: 1.25rem; }
@media (min-width: 768px) {
  .article-item--featured:not(.article-item--horizontal) .article-item__meta { font-size: 1rem; }
  .article-item--featured:not(.article-item--horizontal) .article-item__title { font-size: 1.5rem; }
  .article-item--featured:not(.article-item--horizontal) .article-item__summary { font-size: 1rem; }
}

/* featured horizontal — image left, body right at lg */
.article-item--featured.article-item--horizontal { align-items: center; }
@media (min-width: 992px) {
  .article-item--featured.article-item--horizontal { flex-direction: row; }
}
@media (min-width: 768px) {
  .article-item--featured.article-item--horizontal .article-item__title { font-size: 1rem; }
}

/* simple — text only, meta last, brand-500, no image/summary */
.article-item--simple { gap: .25rem; }
.article-item--simple .article-item__body,
.article-item--simple .article-item__content { gap: .25rem; }
.article-item--simple .article-item__meta { order: 2; color: var(--brand-500); }
.article-item--simple .article-item__title { font-size: .875rem; }
@media (min-width: 768px) {
  .article-item--simple .article-item__title { font-size: 1rem; }
  .article-item--simple .article-item__meta { font-size: .75rem; }
}

/* alwaysHorizontal — bordered card, image left (category pages) */
.article-item--always-horizontal { align-items: center; gap: 1.25rem; border-radius: .5rem; }
@media (min-width: 576px) { .article-item--always-horizontal { border: 1px solid var(--gray-300); } }
/* img: aspect-ratio drives height; width:100% fills the figure */
.article-item--always-horizontal .article-item__img { aspect-ratio: 1.44; width: 100%; height: auto; }
@media (min-width: 576px) {
  .article-item--always-horizontal .article-item__img { border-radius: .4375rem 0 0 .4375rem; }
}
@media (min-width: 992px) {
  /* fix figure width so base flex:1 doesn't give it 50% of the row */
  .article-item--always-horizontal .article-item__figure { flex: 0 0 16rem; }
  .article-item--always-horizontal .article-item__img { height: 100%; }
}
.article-item--always-horizontal .article-item__body { gap: .5rem; }
@media (min-width: 576px) {
  .article-item--always-horizontal .article-item__body { padding: .5rem 1.25rem .5rem 0; }
}
@media (min-width: 768px) {
  .article-item--always-horizontal .article-item__title { font-size: 1.25rem; }
}
@media (min-width: 992px) {
  .article-item--always-horizontal .article-item__arrow { display: none; }
}

/* Home section layouts use the Bootstrap grid (.row/.col-*) in the markup:
   Tin mới nhất → col-lg-6 + col-lg-6 (lead card | stacked horizontals);
   Tin quan trọng → equal-width .col-lg; Chuyên mục → col-lg-4 (3-up). */

/* ---- CategorySummary — category-summary/index.tsx ---- */
.category-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
@media (min-width: 768px) { .category-summary__head { margin-bottom: 1.5rem; } }
.category-summary__title { margin: 0; font-size: .875rem; font-weight: 700; }
@media (min-width: 768px) { .category-summary__title { font-size: 1.5rem; } }
.category-summary__more {
  color: var(--brand-600);
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
@media (min-width: 768px) { .category-summary__more { font-size: .875rem; } }
.category-summary__more:hover { text-decoration: underline; }
@media (min-width: 992px) {
  .category-summary__lead { border-bottom: 1px solid var(--gray-400); padding-bottom: 1rem; }
}
.category-summary__list { margin: 1rem 0 0; padding-left: 1.5rem; list-style: disc; }
.category-summary__list > li + li { margin-top: 1rem; }

/* ---- CTA — cta/index.tsx (layout via BS .row/.col-lg-6) ---- */
.cta { padding-top: 2rem; padding-bottom: 2rem; }
@media (max-width: 991px) { .cta__text { padding: 0 1rem; } }
.cta h2 { margin: 0; font-size: 2rem; font-weight: 700; line-height: 1.2; text-wrap: balance; }
@media (min-width: 992px) { .cta h2 { font-size: 3rem; } }
.cta p { margin: .75rem 0 0; color: var(--gray-700); font-size: 1rem; }
@media (min-width: 992px) { .cta p { margin-top: 1.5rem; font-size: 1.5rem; } }
.cta__stores { display: flex; gap: .75rem; margin-top: 1.5rem; }
@media (min-width: 992px) { .cta__stores { margin-top: 2.5rem; } }
/* desktop/mobile swap uses BS .d-none/.d-lg-block/.d-lg-none (they carry !important, so they
   override this base display:block regardless of specificity) */
.cta__device img { display: block; margin: 0 auto; width: 100%; height: auto; }

/* ================================================================
   Category page — category/index.php
   ================================================================ */

/* Category page — two Bootstrap rows:
   row 1: article list (col-xl-8)
   row 2: "Tin nổi bật khác" (col-lg-8) + aside (col-lg-4) */
.category-page { padding-top: 1.5rem; padding-bottom: 3rem; }
.category-page__title {
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-900);
  margin: 0 0 2.5rem;
}
@media (min-width: 768px) { .category-page__title { font-size: 1.5rem; } }

/* Article list spacing */
.category-articles__list { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 992px) { .category-articles__list { gap: 2.5rem; } }

/* Gap before row 2 */
.mt-section { margin-top: 3rem; }
@media (min-width: 992px) { .mt-section { margin-top: 4.75rem; } }

/* Aside column spacing */
.category-page__aside { display: flex; flex-direction: column; gap: 3rem; }

/* ================================================================
   Subscription — components/subscription.php
   ================================================================ */
.subscription {
  background: var(--brand-50, #eef2ff);
  color: var(--brand-600, #26326a);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.subscription__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--brand-100, #d4ddf6);
  font-size: 1.5rem;
  color: var(--brand-600, #26326a);
}
.subscription__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-900, #0f172a);
  text-wrap: pretty;
}
.subscription__desc {
  margin: .5rem 0 0;
  color: var(--brand-600, #26326a);
  font-size: .9375rem;
  text-wrap: pretty;
}
.subscription__form { display: flex; flex-direction: column; gap: 1rem; }
.subscription__input {
  width: 100%;
  border: 1px solid var(--gray-300, #d1d5db);
  border-radius: .5rem;
  background: #fff;
  padding: .625rem .75rem;
  font-size: 1rem;
}
.subscription__input:focus { outline: 2px solid var(--brand-600, #26326a); outline-offset: 1px; }
.subscription__btn {
  width: 100%;
  border-radius: .5rem;
  padding: 1rem .75rem;
  line-height: 1;
  font-weight: 700;
  background: var(--brand-600, #26326a);
  color: #fff;
  border: none;
}
.subscription__btn:hover,
.subscription__btn:focus { background: color-mix(in srgb, var(--brand-600, #26326a) 90%, #000); }

/* ================================================================
   CategoryBadges — components/categoryBadges.php
   ================================================================ */
.category-badges { padding-bottom: 3rem; }
.category-badges__title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}
.category-badges__list { display: flex; flex-wrap: wrap; gap: .75rem; }
.category-badges__item {
  display: inline-block;
  border-radius: 1rem;
  padding: .25rem .75rem;
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  /* bg = 10% opacity of current text color */
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.category-badges__item:hover { opacity: .8; }
