/* ===================================================================
   Kubbaan — Page styles for Blog, Privacy Policy, Terms of Service.
   Loads AFTER styles.css. Reuses --orange / --navy / --ink tokens.
   =================================================================== */

/* Nav forced into light state on non-hero pages */
body.page-light .nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  padding: 10px 0;
  border-bottom-color: var(--line);
}
body.page-light .nav .brand-name { color: var(--navy); }
body.page-light .nav .nav-link { color: var(--ink-2); }
body.page-light .nav .nav-link:hover { color: var(--navy); background: var(--surface-2); }

/* ===================================================================
   SUBHERO — compact navy header for inner pages
   =================================================================== */
.subhero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(255,137,0,0.20), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(255,137,0,0.10), transparent 60%),
    linear-gradient(160deg, #0A2540 0%, #0E2E50 100%);
  color: var(--white);
  padding: 140px 0 80px;
  overflow: hidden;
}
.subhero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
  opacity: 0.5;
  pointer-events: none;
}
.subhero .container { position: relative; }

.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
  font-family: "Inter", sans-serif;
}
.crumbs a { color: rgba(255,255,255,0.8); transition: color .2s; }
.crumbs a:hover { color: var(--orange); }
.crumbs .sep { opacity: 0.4; }

.subhero h1 {
  font-family: "Noto Sans Lao", "Inter", sans-serif;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--white);
  text-wrap: balance;
  max-width: 760px;
}
.subhero h1 .accent { color: var(--orange); }
.subhero-lead {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.subhero-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-family: "Inter", sans-serif;
}
.subhero-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.subhero-meta strong { color: var(--orange); font-weight: 600; }

/* ===================================================================
   BLOG — search, categories, featured + grid
   =================================================================== */
.blog-search-wrap {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.blog-search {
  flex: 1 1 320px;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--white);
  backdrop-filter: blur(8px);
}
.blog-search input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
.blog-search input::placeholder { color: rgba(255,255,255,0.55); }
.blog-search .material-icons { color: var(--orange); }

.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.cat {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  transition: all .2s;
  cursor: pointer;
}
.cat:hover { color: var(--white); background: rgba(255,255,255,0.10); }
.cat.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(255,137,0,0.30);
}

/* Featured article */
.featured-article {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-soft);
  margin-bottom: 64px;
}
.featured-article .fa-img {
  height: 100%;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.featured-article .fa-tag {
  position: absolute; top: 20px; left: 20px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.featured-article .fa-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--white); }
.featured-article .fa-body { padding: 48px 56px 48px 0; }
.featured-article .fa-cat {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.featured-article h2 {
  font-family: "Noto Sans Lao", "Inter", sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  color: var(--navy);
  margin: 14px 0 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.featured-article p {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0 0 28px;
  line-height: 1.6;
}
.fa-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-3);
}
.fa-meta .avatar-sm {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8900, #E55B00);
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.fa-meta .author-name { color: var(--navy); font-weight: 600; }
.fa-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.fa-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  transition: background .2s, transform .15s;
}
.fa-cta:hover { background: var(--orange); transform: translateX(4px); }
.fa-cta .material-icons { font-size: 18px; }

/* Article grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card .ac-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.article-card .ac-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.article-card .ac-body { padding: 24px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.article-card .ac-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin: 0 0 12px;
  text-wrap: balance;
}
.article-card:hover .ac-title { color: var(--orange); }
.article-card .ac-excerpt {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0 0 20px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .ac-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-3);
}
.article-card .ac-meta .author-name { color: var(--navy); font-weight: 600; }
.article-card .ac-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }

/* Newsletter strip */
.newsletter {
  margin-top: 88px;
  padding: 56px 56px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 40% 80% at 80% 50%, rgba(255,255,255,0.20), transparent 60%),
    linear-gradient(135deg, var(--orange) 0%, #E55B00 100%);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.newsletter h3 {
  font-family: "Noto Sans Lao", "Inter", sans-serif;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.2;
}
.newsletter p { margin: 0; opacity: 0.92; font-size: 16px; max-width: 480px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  background: var(--white);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.newsletter-form input {
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  min-width: 240px;
}
.newsletter-form button {
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  transition: background .2s;
}
.newsletter-form button:hover { background: #061A30; }

/* ===================================================================
   LEGAL PAGE — sticky TOC + content
   =================================================================== */
.legal-section { padding: 80px 0 120px; background: var(--white); }
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 96px;
  font-size: 14px;
}
.legal-toc h4 {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 16px;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--line);
}
.legal-toc ol li {
  counter-increment: toc;
  padding: 0;
}
.legal-toc ol li a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  transition: color .2s, background .2s;
  line-height: 1.4;
}
.legal-toc ol li a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  color: var(--ink-3);
  margin-right: 8px;
  font-weight: 600;
}
.legal-toc ol li a:hover { color: var(--navy); background: var(--surface-2); }
.legal-toc ol li a.active {
  color: var(--orange);
  border-left: 2px solid var(--orange);
  margin-left: -1px;
  background: rgba(255,137,0,0.04);
}
.legal-toc ol li a.active::before { color: var(--orange); }

.legal-content { max-width: 760px; }
.legal-content section { margin-bottom: 56px; scroll-margin-top: 100px; }
.legal-content h2 {
  font-family: "Noto Sans Lao", "Inter", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  text-wrap: balance;
}
.legal-content h2 .count {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.04em;
}
.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin: 28px 0 10px;
}
.legal-content p {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.legal-content ul, .legal-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.legal-content li { margin-bottom: 8px; }
.legal-content li::marker { color: var(--orange); }
.legal-content strong { color: var(--navy); font-weight: 600; }
.legal-content a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-content a:hover { color: #E55B00; }

.callout {
  background: var(--surface-2);
  border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .ic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: "Inter", sans-serif;
}
.callout .ic .material-icons { color: var(--orange); font-size: 18px; }

.legal-cta {
  margin-top: 80px;
  padding: 40px 48px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.legal-cta h3 {
  font-family: "Noto Sans Lao", "Inter", sans-serif;
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.legal-cta p { margin: 0; color: rgba(255,255,255,0.7); font-size: 15px; }
.legal-cta .btn {
  background: var(--orange);
  color: var(--white);
  padding: 12px 22px;
  box-shadow: 0 6px 18px rgba(255,137,0,0.35);
}
.legal-cta .btn:hover { background: #E55B00; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 960px) {
  .subhero { padding: 110px 0 60px; }
  .featured-article { grid-template-columns: 1fr; gap: 0; }
  .featured-article .fa-img { min-height: 280px; }
  .featured-article .fa-body { padding: 32px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter { grid-template-columns: 1fr; padding: 36px; text-align: center; }
  .newsletter-form { margin: 0 auto; width: 100%; max-width: 420px; }
  .newsletter-form input { min-width: 0; flex: 1; }
  .legal-layout { grid-template-columns: 1fr; gap: 40px; }
  .legal-toc { position: static; }
  .legal-toc ol {
    display: flex; flex-wrap: wrap; gap: 6px;
    border-left: 0; border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
  }
  .legal-toc ol li a { padding: 6px 12px; border-radius: 999px; }
  .legal-toc ol li a.active { background: rgba(255,137,0,0.10); border-left: 0; margin-left: 0; }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; padding: 12px; border-radius: 18px; }
  .newsletter-form input { padding: 8px; text-align: center; }
  .legal-cta { padding: 28px; }
  .featured-article .fa-body { padding: 24px; }
}
