/*
Theme Name: Hieu Thuong Custom
Author: Henry
Version: 1.0
Description: Custom premium homepage for Hieu & Thuong
*/

:root {
  --bg: #f7f2ea;
  --bg-soft: #fcfaf6;
  --surface: #ffffff;
  --text: #2f2a24;
  --muted: #6f675f;
  --line: rgba(47, 42, 36, 0.10);
  --accent: #5d7158;
  --accent-dark: #445441;
  --shadow: 0 18px 50px rgba(44, 36, 28, 0.10);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-soft);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.ht-container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Typography */
h1, h2, h3 {
  margin-top: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.9rem;
  margin-bottom: 12px;
}

p {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.ht-section-label,
.ht-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ht-section-heading {
  margin-bottom: 42px;
  text-align: center;
}

.ht-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  text-align: left;
}

/* Buttons */
.ht-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: all 0.25s ease;
}

.ht-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(93, 113, 88, 0.22);
}

.ht-btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.ht-btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  color: var(--text);
}

.ht-btn-secondary:hover {
  background: #fff;
}

.ht-text-link {
  color: var(--accent-dark);
  font-weight: 600;
}

/* Hero */
.ht-hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
  background:
    radial-gradient(circle at top left, rgba(93,113,88,0.10), transparent 34%),
    linear-gradient(180deg, #f7f2ea 0%, #fcfaf6 100%);
}

.ht-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.ht-hero-text {
  font-size: 1.14rem;
  max-width: 620px;
  margin-bottom: 30px;
}

.ht-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ht-hero-visual {
  position: relative;
}

.ht-image-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: #efe8dc;
  box-shadow: var(--shadow);
}

.ht-image-card img {
  width: 100%;
  min-height: 620px;
  object-fit: cover;
}

.ht-image-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to top, rgba(30,25,20,0.15), transparent);
}

/* Sections */
.ht-values,
.ht-story,
.ht-posts,
.ht-cta {
  padding: 90px 0;
}

.ht-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.ht-card {
  padding: 34px 30px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(47,42,36,0.06);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(44,36,28,0.05);
  backdrop-filter: blur(6px);
}

.ht-card p {
  margin-bottom: 0;
}

/* Story */
.ht-story-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.ht-story-image img {
  border-radius: 28px;
  box-shadow: var(--shadow);
  min-height: 520px;
  object-fit: cover;
  width: 100%;
}

/* Posts */
.ht-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ht-post-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(44,36,28,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ht-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(44,36,28,0.10);
}

.ht-post-thumb img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.ht-post-body {
  padding: 24px 22px 26px;
}

.ht-post-meta {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ht-post-body h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.ht-post-body p {
  margin-bottom: 14px;
}

/* Quote */
.ht-quote-band {
  padding: 80px 0;
  background:
    linear-gradient(rgba(68,84,65,0.88), rgba(68,84,65,0.88)),
    url("assets/images/quote-bg.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
}

.ht-quote-band blockquote {
  margin: 0 auto;
  max-width: 900px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.25;
}

/* CTA */
.ht-cta-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 54px 40px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f6f2ea 100%);
  border: 1px solid rgba(47,42,36,0.08);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.ht-cta-box p {
  max-width: 700px;
  margin: 0 auto 28px;
}

/* Basic Header / Footer suggestion */
.site-header,
.site-footer {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  padding: 22px 0;
}

.site-footer {
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .ht-hero-grid,
  .ht-story-grid,
  .ht-card-grid,
  .ht-post-grid {
    grid-template-columns: 1fr;
  }

  .ht-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ht-hero {
    padding-top: 70px;
  }

  .ht-image-card img,
  .ht-story-image img {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .ht-values,
  .ht-story,
  .ht-posts,
  .ht-cta,
  .ht-quote-band {
    padding: 70px 0;
  }

  .ht-card,
  .ht-cta-box {
    padding: 28px 22px;
  }

  .ht-btn {
    width: 100%;
  }

  .ht-hero-actions {
    flex-direction: column;
  }
}

/* ABOUT PAGE */
.ht-about-page {
  background: var(--bg-soft);
}

.ht-about-hero {
  padding: 90px 0 70px;
  background:
    radial-gradient(circle at top left, rgba(93,113,88,0.10), transparent 32%),
    linear-gradient(180deg, #f7f2ea 0%, #fcfaf6 100%);
}

.ht-about-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 54px;
}

.ht-about-hero-content h1 {
  max-width: 760px;
}

.ht-about-lead {
  max-width: 650px;
  font-size: 1.12rem;
}

.ht-about-hero-image img {
  width: 100%;
  min-height: 560px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.ht-about-intro,
.ht-about-values,
.ht-about-story,
.ht-about-philosophy,
.ht-about-offer,
.ht-about-cta {
  padding: 90px 0;
}

.ht-about-narrow {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.ht-about-narrow p {
  font-size: 1.05rem;
}

.ht-about-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.ht-about-value-card {
  padding: 34px 30px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(47,42,36,0.06);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(44,36,28,0.06);
}

.ht-about-value-number {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.ht-about-story-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  align-items: center;
}

.ht-about-story-image img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.ht-about-philosophy {
  padding-top: 20px;
}

.ht-about-philosophy-box {
  padding: 64px 40px;
  text-align: center;
  background:
    linear-gradient(rgba(68,84,65,0.88), rgba(68,84,65,0.88)),
    url("assets/images/quote-bg.jpg") center/cover no-repeat;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.ht-about-philosophy .ht-section-label {
  color: rgba(255,255,255,0.82);
}

.ht-about-philosophy blockquote {
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.25;
}

.ht-about-offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ht-about-offer-card {
  padding: 30px 28px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(44,36,28,0.06);
}

.ht-about-offer-card p {
  margin-bottom: 0;
}

.ht-about-cta-box {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 40px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f6f2ea 100%);
  border: 1px solid rgba(47,42,36,0.08);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.ht-about-cta-box p {
  max-width: 720px;
  margin: 0 auto 28px;
}

.ht-about-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 1024px) {
  .ht-about-hero-grid,
  .ht-about-story-grid,
  .ht-about-value-grid,
  .ht-about-offer-grid {
    grid-template-columns: 1fr;
  }

  .ht-about-hero-image img,
  .ht-about-story-image img {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .ht-about-intro,
  .ht-about-values,
  .ht-about-story,
  .ht-about-philosophy,
  .ht-about-offer,
  .ht-about-cta {
    padding: 70px 0;
  }

  .ht-about-philosophy-box,
  .ht-about-cta-box,
  .ht-about-value-card,
  .ht-about-offer-card {
    padding: 28px 22px;
  }

  .ht-about-cta-actions .ht-btn {
    width: 100%;
  }
}

/* WRITINGS PAGE */
.ht-writing-page {
  background: var(--bg-soft);
}

.ht-writing-hero {
  padding: 90px 0 60px;
  background:
    radial-gradient(circle at top left, rgba(93,113,88,0.10), transparent 32%),
    linear-gradient(180deg, #f7f2ea 0%, #fcfaf6 100%);
}

.ht-writing-hero-inner {
  max-width: 860px;
  text-align: center;
}

.ht-writing-lead {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.ht-writing-toolbar-section {
  padding: 20px 0 30px;
}

.ht-writing-toolbar {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(47,42,36,0.08);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(44,36,28,0.06);
}

.ht-writing-search input,
.ht-writing-filter select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(47,42,36,0.10);
  border-radius: 14px;
  background: #fff;
  font-size: 1rem;
  color: var(--text);
}

.ht-writing-listing {
  padding: 30px 0 90px;
}

.ht-writing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ht-writing-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(44,36,28,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ht-writing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(44,36,28,0.10);
}

.ht-writing-thumb img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.ht-writing-body {
  padding: 24px 22px 26px;
}

.ht-writing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.ht-writing-body h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.ht-writing-cats {
  margin-bottom: 12px;
}

.ht-writing-cats a {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3eee5;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.ht-writing-body p {
  margin-bottom: 14px;
}

.ht-writing-empty {
  padding: 40px 30px;
  text-align: center;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(44,36,28,0.06);
}

.ht-writing-pagination {
  margin-top: 40px;
  text-align: center;
}

.ht-writing-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin: 0 4px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(47,42,36,0.08);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(44,36,28,0.05);
}

.ht-writing-pagination .page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

@media (max-width: 1024px) {
  .ht-writing-toolbar,
  .ht-writing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ht-writing-hero {
    padding: 80px 0 50px;
  }

  .ht-writing-listing {
    padding: 20px 0 70px;
  }

  .ht-writing-toolbar,
  .ht-writing-body {
    padding: 20px;
  }
}

/* SINGLE WRITING PAGE */
.ht-single-writing-page {
  background: var(--bg-soft);
}

.ht-single-hero {
  padding: 90px 0 40px;
  background:
    radial-gradient(circle at top left, rgba(93,113,88,0.10), transparent 32%),
    linear-gradient(180deg, #f7f2ea 0%, #fcfaf6 100%);
}

.ht-single-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.ht-single-meta-top {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}

.ht-single-cats {
  margin-bottom: 20px;
}

.ht-single-cats a {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3eee5;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.ht-single-lead {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: 1.14rem;
}

.ht-single-featured-image-wrap {
  padding: 0 0 30px;
}

.ht-single-featured-image img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: 30px;
  display: block;
}

.ht-single-content-section {
  padding: 40px 0 70px;
}

.ht-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

.ht-single-article {
  min-width: 0;
}

.ht-single-content {
  padding: 40px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 14px 35px rgba(44,36,28,0.07);
}

.ht-single-content > *:first-child {
  margin-top: 0;
}

.ht-single-content p,
.ht-single-content li {
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.95;
}

.ht-single-content h2,
.ht-single-content h3,
.ht-single-content h4 {
  margin-top: 38px;
  margin-bottom: 16px;
}

.ht-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  margin: 26px 0;
}

.ht-single-content blockquote {
  margin: 30px 0;
  padding: 24px 26px;
  border-left: 4px solid var(--accent);
  background: #f8f5ef;
  border-radius: 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--text);
}

.ht-single-content a {
  color: var(--accent-dark);
  text-decoration: underline;
}

.ht-single-content ul,
.ht-single-content ol {
  padding-left: 22px;
}

.ht-single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 24px;
}

.ht-single-sidebar-card {
  padding: 28px 24px;
  background: linear-gradient(180deg, #fff 0%, #f7f3eb 100%);
  border: 1px solid rgba(47,42,36,0.08);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(44,36,28,0.06);
}

.ht-single-sidebar-card h3 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.ht-single-sidebar-card p {
  margin-bottom: 0;
}

.ht-single-sidebar-cats a {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3eee5;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.ht-single-nav-section {
  padding: 0 0 40px;
}

.ht-single-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ht-single-nav-item {
  min-height: 120px;
  padding: 28px 26px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(44,36,28,0.06);
}

.ht-single-nav-item a {
  display: inline-block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.2;
}

.ht-single-nav-next {
  text-align: right;
}

.ht-single-related-section {
  padding: 30px 0 90px;
}

.ht-single-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ht-related-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(44,36,28,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ht-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(44,36,28,0.10);
}

.ht-related-thumb img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.ht-related-body {
  padding: 24px 22px 26px;
}

.ht-related-body h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.ht-related-body p {
  margin-bottom: 14px;
}

@media (max-width: 1024px) {
  .ht-single-layout,
  .ht-single-nav,
  .ht-single-related-grid {
    grid-template-columns: 1fr;
  }

  .ht-single-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .ht-single-hero {
    padding: 80px 0 30px;
  }

  .ht-single-content-section,
  .ht-single-related-section {
    padding-bottom: 70px;
  }

  .ht-single-content,
  .ht-single-sidebar-card,
  .ht-single-nav-item {
    padding: 24px 20px;
  }

  .ht-single-nav-next {
    text-align: left;
  }
}

.ht-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.ht-site-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.ht-main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.ht-main-nav a {
  color: var(--text);
  font-weight: 600;
}

.ht-main-nav a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .ht-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
.ht-writing-back-home {
  margin-top: 18px;
  text-align: center;
}
/* PROFESSIONAL STICKY HEADER */
.ht-sticky-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  padding: 18px 0;
  background: rgba(252, 250, 246, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(47, 42, 36, 0.08);
}

.ht-header-shell {
  position: relative;
}

.ht-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(47, 42, 36, 0.08);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(44, 36, 28, 0.07);
}

.ht-site-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ht-site-brand-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.ht-main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ht-main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.ht-main-nav a:hover {
  color: var(--accent-dark);
  background: rgba(93, 113, 88, 0.08);
}

.ht-main-nav a.is-active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(93, 113, 88, 0.18);
}

.ht-main-nav a.is-active:hover {
  background: var(--accent-dark);
  color: #fff;
}

.ht-nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
}

.ht-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 999px;
  transition: all 0.25s ease;
}

body.admin-bar .ht-sticky-header {
  top: 32px;
}

@media (max-width: 900px) {
  .ht-kinh-item {
    grid-template-columns: 1fr;
  }

  .ht-nav-toggle {
    display: inline-block;
    flex-shrink: 0;
  }

  .ht-main-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(47, 42, 36, 0.08);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(44, 36, 28, 0.10);
  }

  .ht-main-nav.is-open {
    display: flex;
  }

  .ht-main-nav a {
    width: 100%;
    justify-content: flex-start;
    padding: 0 16px;
  }
}

@media (max-width: 782px) {
  body.admin-bar .ht-sticky-header {
    top: 46px;
  }
}

@media (max-width: 640px) {
  .ht-sticky-header {
    padding: 14px 0;
  }

  .ht-site-brand-mark {
    font-size: 1.7rem;
  }

  .ht-header-inner {
    min-height: 62px;
  }
}

/* KINH SACH PAGE */
.ht-kinh-page {
  background: var(--bg-soft);
}

.ht-kinh-hero {
  padding: 90px 0 60px;
  background:
    radial-gradient(circle at top left, rgba(93,113,88,0.10), transparent 32%),
    linear-gradient(180deg, #f7f2ea 0%, #fcfaf6 100%);
}

.ht-kinh-hero-inner {
  max-width: 860px;
  text-align: center;
}

.ht-kinh-lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.ht-kinh-list-section {
  padding: 30px 0 90px;
}

.ht-kinh-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ht-kinh-item {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 24px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 14px 35px rgba(44,36,28,0.07);
}

.ht-kinh-item-image {
  width: 100%;
  max-width: 320px;
  overflow: hidden;
  border-radius: 22px;
}

.ht-kinh-item-image a {
  display: block;
  width: 100%;
}

.ht-kinh-item-image img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 22px;
}

.ht-kinh-item-content h2 {
  margin-bottom: 12px;
}

.ht-kinh-item-content h2 a {
  color: var(--text);
}

.ht-kinh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.ht-kinh-item-content p {
  margin-bottom: 20px;
}

.ht-kinh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ht-kinh-empty {
  padding: 40px 30px;
  text-align: center;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(44,36,28,0.06);
}

.ht-kinh-pagination {
  margin-top: 40px;
  text-align: center;
}

.ht-kinh-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin: 0 4px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(47,42,36,0.08);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(44,36,28,0.05);
}

.ht-kinh-pagination .page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

@media (max-width: 900px) {
  .ht-kinh-item {
    grid-template-columns: 1fr;
  }

  .ht-kinh-item-image img {
    height: auto;
  }
}

/* KINH PAGED READING */
.ht-single-kinh-page-indicator {
  margin-top: 18px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.98rem;
}

.ht-kinh-reading-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding: 24px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(44,36,28,0.06);
}

.ht-kinh-reading-prev {
  text-align: left;
}

.ht-kinh-reading-next {
  text-align: right;
}

.ht-kinh-reading-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ht-kinh-page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3eee5;
  color: var(--text);
  font-weight: 600;
}

.ht-kinh-page-number.is-active {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 768px) {
  .ht-kinh-reading-navigation {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ht-kinh-reading-prev,
  .ht-kinh-reading-next {
    text-align: center;
  }
}

/* FLOATING TOC FOR KINH */
.ht-kinh-reading-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.ht-kinh-toc {
  position: sticky;
  top: 110px;
}

.ht-kinh-toc-card {
  padding: 24px 20px;
  background: linear-gradient(180deg, #fff 0%, #f7f3eb 100%);
  border: 1px solid rgba(47,42,36,0.08);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(44,36,28,0.06);
}

.ht-kinh-toc-title {
  margin-bottom: 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--text);
}

.ht-kinh-toc-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.ht-kinh-toc-ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ht-kinh-toc-item {
  margin-bottom: 10px;
}

.ht-kinh-toc-item:last-child {
  margin-bottom: 0;
}

.ht-kinh-toc-item a {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.ht-kinh-toc-item a:hover {
  background: #f3eee5;
  color: var(--accent-dark);
}

.ht-kinh-toc-item.is-sub a {
  padding-left: 24px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.ht-single-content {
  scroll-margin-top: 120px;
}

.ht-single-content h2,
.ht-single-content h3 {
  scroll-margin-top: 120px;
}

@media (max-width: 1024px) {
  .ht-kinh-reading-layout {
    grid-template-columns: 1fr;
  }

  .ht-kinh-toc {
    position: static;
    order: -1;
  }
}

/* COLLAPSED MOBILE TOC */
.ht-kinh-toc-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: #f3eee5;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.ht-kinh-toc-toggle-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1;
}

.ht-kinh-toc-toggle-icon {
  font-size: 1.4rem;
  line-height: 1;
}

@media (max-width: 1024px) {
  .ht-kinh-toc-card {
    padding: 18px;
  }

  .ht-kinh-toc-toggle {
    display: flex;
  }

  .ht-kinh-toc-title {
    display: none;
  }

  .ht-kinh-toc-list {
    display: none;
    margin-top: 14px;
  }

  .ht-kinh-toc-list.is-open {
    display: block;
  }
}

.ht-single-kinh-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ht-center {
  text-align: center;
}