/* Đổi các màu chính tại đây để tùy chỉnh toàn bộ website. */
:root {
  --green: #174b3e;
  --green-dark: #123d33;
  --cream: #f9f7f1;
  --ink: #202e29;
  --muted: #66716a;
  --line: #dedfd5;
  --accent: #d8e7b4;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -1.6px;
}
h1 {
  font-size: clamp(42px, 5.2vw, 70px);
  margin-bottom: 25px;
}
h1 em {
  color: var(--green);
  font-weight: 400;
}
h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  margin-bottom: 24px;
}
h3 {
  font-size: 21px;
  letter-spacing: -0.5px;
}
p {
  margin-bottom: 18px;
}
.container {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.section {
  padding-block: 90px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 23px;
}
.site-header {
  /* Giữ logo và menu luôn nhìn thấy khi cuộn trang. */
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 95px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand-icon {
  background: var(--green);
  color: var(--cream);
  height: 34px;
  width: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 24px;
  padding-bottom: 3px;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
}
.nav nav > a:not(.button):hover,
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: var(--green);
  color: white;
  padding: 15px 25px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}
.button-small {
  padding: 10px 18px;
  gap: 18px;
}
.button span {
  font-size: 20px;
  font-weight: 400;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
  padding-block: 65px 70px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 6px;
}
.intro {
  max-width: 470px;
  color: var(--muted);
  font-size: 17px;
}
.intro strong {
  font-weight: 400;
  color: var(--ink);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
}
.text-link {
  font-size: 13px;
  font-weight: 700;
}
.hero-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 19px;
}
.hero-art {
  position: relative;
  min-height: 500px;
  background: #e9eddf;
  border-radius: 48% 48% 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
}
.book-cover {
  width: 245px;
  height: auto;
  transform: rotate(-8deg);
  box-shadow: 13px 20px 24px #253b292f;
  border-radius: 3px;
  z-index: 1;
}
.book-halo {
  position: absolute;
  width: 335px;
  height: 335px;
  border: 1px solid #c9d2bc;
  border-radius: 50%;
  z-index: -1;
}
.art-label,
.art-bottom {
  position: absolute;
  font-size: 9px;
  letter-spacing: 2px;
  color: #52664b;
}
.art-label {
  top: 30px;
}
.art-bottom {
  bottom: 24px;
}
.art-sticker {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 91px;
  background: #f1d599;
  padding: 15px 18px;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  transform: rotate(10deg);
  box-shadow: 0 3px 8px #0000000a;
}
.art-sticker span {
  display: block;
  font-size: 25px;
  margin-bottom: 3px;
}
.details-strip {
  border-block: 1px solid var(--line);
}
.details {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  font-size: 13px;
}
.details b {
  font-size: 10px;
  color: var(--muted);
  margin-right: 15px;
  font-weight: 400;
}
.section-heading {
  margin-bottom: 35px;
}
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}
.large-copy {
  font-size: 24px;
  line-height: 1.55;
  max-width: 410px;
}
.two-column > div {
  color: var(--muted);
}
.sample-note {
  font-size: 12px;
  color: var(--muted);
  border-left: 2px solid #b5c1a5;
  padding-left: 12px;
}
.benefits {
  background: #edf0e7;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.benefit-card {
  background: var(--cream);
  padding: 30px;
  border: 1px solid #e1e5d9;
  border-radius: var(--radius);
}
.benefit-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}
.card-icon {
  display: flex;
  width: 44px;
  height: 44px;
  background: #e8eddc;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 26px;
  margin-bottom: 35px;
}
.contents {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 95px;
}
.contents-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
}
.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 5px 13px;
  font-size: 11px;
  margin-top: 14px;
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 0;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}
summary::-webkit-details-marker {
  display: none;
}
.chapter-number {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.toggle {
  margin-left: auto;
  font-size: 21px;
  font-weight: 400;
}
.toggle:before {
  content: "+";
}
details[open] .toggle:before {
  content: "−";
}
.chapter-list details p {
  padding-left: 35px;
  font-size: 14px;
  color: var(--muted);
  padding-right: 20px;
}
.author-section {
  background: #eeeade;
  padding-block: 70px;
}
.author-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.author-layout > div > p:not(.eyebrow) {
  font-size: 15px;
  color: var(--muted);
}
.author-art {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}
.paper {
  background: #fffdf5;
  padding: 30px 35px;
  transform: rotate(-5deg);
  box-shadow: 0 12px 30px #4e4e2b14;
  position: relative;
  z-index: 1;
}
.paper > span:first-child {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.paper p {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 25px;
  line-height: 1.6;
  margin-block: 23px;
}
.paper-sign {
  font-size: 11px;
  color: var(--green);
}
.author-sun {
  position: absolute;
  top: 0;
  left: 15px;
  color: #b8be94;
  font-size: 100px;
  line-height: 1;
}
.leaf {
  position: absolute;
  right: 20px;
  bottom: 0;
  font-size: 150px;
  color: var(--green);
  transform: rotate(-25deg);
  z-index: 2;
  line-height: 1;
}
.purchase-panel {
  background: var(--green);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 55px 60px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 55px;
  align-items: center;
}
.purchase-panel .eyebrow {
  color: var(--accent);
}
.purchase-panel h2 {
  margin-bottom: 16px;
}
.purchase-panel p {
  color: #d0dacf;
}
.purchase-features {
  list-style: none;
  padding: 0;
  font-size: 13px;
  margin: 24px 0 0;
}
.purchase-features li {
  padding-block: 4px;
}
.purchase-features li:before {
  content: "✓";
  color: var(--accent);
  margin-right: 10px;
}
.purchase-action {
  text-align: center;
  border-left: 1px solid #ffffff30;
  padding-left: 55px;
}
.price-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #c4d2c5;
}
.purchase-action .price {
  font-family: Georgia, serif;
  font-size: 48px;
  color: white;
  line-height: 1.2;
  margin-block: 14px 25px;
}
.price span {
  font-size: 25px;
  margin-left: 4px;
}
.button-light {
  background: var(--accent);
  color: var(--green);
  width: 100%;
}
.button-light:hover {
  background: #e5efcc;
}
.purchase-action .purchase-note {
  font-size: 11px;
  line-height: 1.7;
  margin: 15px 0 0;
}
.faq {
  max-width: 760px;
  padding-bottom: 90px;
}
.faq h2 {
  margin-bottom: 30px;
}
.faq summary {
  justify-content: space-between;
}
.faq summary:after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
}
.faq details[open] summary:after {
  content: "−";
}
.faq details p {
  font-size: 14px;
  color: var(--muted);
  padding-right: 25px;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding-block: 30px;
}
.footer p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.footer p span {
  font-size: 10px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 15px;
  background: var(--green);
  color: white;
  padding: 10px;
  z-index: 10;
}
.skip-link:focus {
  top: 10px;
}
:focus-visible {
  outline: 3px solid #bd8831;
  outline-offset: 5px;
}
@media (min-width: 1500px) {
  .hero {
    padding-block: 85px;
  }
  .hero-art {
    min-height: 540px;
  }
}
@media (max-width: 850px) {
  .container {
    width: calc(100% - 40px);
  }
  .hero {
    gap: 25px;
    grid-template-columns: 1.1fr 1fr;
  }
  .hero-art {
    min-height: 410px;
  }
  .book-cover {
    width: 205px;
  }
  .art-label {
    font-size: 7px;
  }
  .art-sticker {
    right: 5px;
    bottom: 55px;
    padding: 12px;
  }
  .art-bottom {
    font-size: 7px;
  }
  .hero-actions {
    gap: 15px;
  }
  .two-column,
  .contents,
  .author-layout {
    gap: 35px;
  }
  .benefit-card {
    padding: 22px;
  }
  .purchase-panel {
    padding: 35px;
    gap: 25px;
  }
  .purchase-action {
    padding-left: 25px;
  }
  .nav nav {
    gap: 20px;
  }
  .footer {
    flex-wrap: wrap;
  }
  .section {
    padding-block: 65px;
  }
}
@media (max-width: 600px) {
  /* Menu hai hàng trên điện thoại không che các điểm đến trong trang. */
  html {
    scroll-padding-top: 165px;
  }
  .nav {
    min-height: 80px;
    gap: 10px;
  }
  .brand {
    font-size: 13px;
    gap: 7px;
  }
  .brand-icon {
    width: 29px;
    height: 29px;
    font-size: 21px;
  }
  .button-small {
    padding: 8px 12px;
    font-size: 12px;
    gap: 9px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 40px;
    gap: 30px;
  }
  .hero-copy .eyebrow {
    font-size: 9px;
    letter-spacing: 1.2px;
  }
  h1 {
    font-size: 45px;
  }
  .intro {
    font-size: 16px;
  }
  .hero-note {
    font-size: 10px;
  }
  .hero-art {
    min-height: 425px;
    max-width: 400px;
    width: 100%;
    margin: auto;
  }
  .book-cover {
    width: 225px;
  }
  .art-label {
    font-size: 8px;
  }
  .art-bottom {
    font-size: 8px;
  }
  .art-sticker {
    right: 15px;
    bottom: 65px;
  }
  .details {
    flex-direction: column;
    gap: 8px;
    padding-block: 18px;
  }
  .details b {
    margin-right: 10px;
  }
  .section {
    padding-block: 52px;
  }
  .two-column,
  .contents,
  .author-layout,
  .card-grid,
  .purchase-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section-heading {
    margin-bottom: 25px;
  }
  .large-copy {
    font-size: 22px;
  }
  .card-icon {
    margin-bottom: 20px;
  }
  .benefit-card {
    padding: 25px;
  }
  .contents-intro {
    min-width: 0;
  }
  .author-section {
    padding-block: 40px;
  }
  .author-art {
    min-height: 330px;
  }
  .author-layout {
    gap: 40px;
  }
  .purchase-panel {
    padding: 30px 24px;
  }
  .purchase-action {
    border-left: 0;
    border-top: 1px solid #ffffff30;
    padding: 25px 0 0;
  }
  .purchase-panel h2 {
    font-size: 33px;
  }
  .purchase-features {
    font-size: 12px;
  }
  .faq {
    padding-bottom: 55px;
  }
  .faq summary {
    font-size: 15px;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-block: 25px;
  }
  .footer .text-link {
    font-size: 12px;
  }
  summary {
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Mũi tên SVG hiển thị rõ nét trên mọi thiết bị. */
.arrow-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Thanh toán thủ công: giữ ảnh nguyên tỉ lệ, không cắt mã QR. */
[hidden] {
  display: none !important;
}
.payment-section {
  padding-bottom: 90px;
}
.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}
.payment-card {
  background: #edf0e7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.payment-card h3 {
  margin-bottom: 22px;
}
.qr-frame {
  background: white;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.qr-frame img {
  width: 100%;
  max-width: 380px;
  height: auto;
  margin-inline: auto;
}
.qr-frame p {
  margin: 0;
  padding: 16px 8px;
  font-size: 14px;
  color: var(--muted);
}
.bank-details {
  margin: 24px 0 0;
  font-size: 14px;
}
.bank-details div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 14px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}
.bank-details dt {
  color: var(--muted);
}
.bank-details dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.payment-amount {
  color: var(--green);
}
.payment-steps {
  padding-left: 25px;
  margin: 0 0 28px;
}
.payment-steps li {
  padding-left: 8px;
  margin-bottom: 26px;
}
.payment-steps li::marker {
  color: var(--green);
  font-weight: 700;
}
.payment-steps h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.payment-steps p {
  color: var(--muted);
  font-size: 15px;
}
.payment-steps strong {
  color: var(--ink);
}
.order-form-link {
  width: 100%;
  text-align: center;
}
#form-note {
  margin-top: 18px;
}
.transfer-reference {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.transfer-reference h4 {
  margin: 0 0 12px;
  font-size: 16px;
}
.reference-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.reference-copy code {
  font-size: 19px;
  color: var(--green);
  user-select: all;
}
.reference-copy .button {
  padding: 10px 16px;
}
.transfer-reference p:last-child {
  margin-bottom: 0;
}
#copy-status:empty {
  display: none;
}
@media (max-width: 700px) {
  .payment-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .payment-section {
    padding-bottom: 52px;
  }
  .payment-card {
    padding: 20px;
  }
  .order-form-link {
    padding-inline: 16px;
  }
}

/* Thương hiệu và điều hướng dùng chung cho bốn trang. */
.brand-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  line-height: 1.15;
  color: var(--green);
  letter-spacing: -1px;
}
.brand-name span {
  margin-top: 7px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.primary-nav a {
  display: block;
  padding: 12px 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.primary-nav a[aria-current="page"] {
  color: var(--green);
  font-weight: 700;
  border-bottom-color: var(--green);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 12px;
}
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home-hero {
  width: min(1280px, calc(100% - 64px));
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
.home-hero h1 {
  font-size: clamp(38px, 4.5vw, 61px);
}
.home-note {
  background: #e9eddf;
  border-radius: 48% 48% 12px 12px;
  padding: 80px 35px 45px;
  text-align: center;
}
.home-note blockquote {
  margin: 25px 0 30px;
  font:
    36px/1.35 Georgia,
    "Times New Roman",
    serif;
  color: var(--green);
  letter-spacing: -1px;
}
.note-signature {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  color: var(--green);
}
.pathway-card {
  display: flex;
  flex-direction: column;
}
.pathway-card > .text-link {
  margin-top: auto;
  padding-top: 24px;
  color: var(--green);
}
.story-section {
  background: #eeeade;
}
.story-layout {
  max-width: 820px;
  margin-top: 45px;
}
.story-block {
  border-top: 1px solid #d7d6c8;
  padding-top: 25px;
  margin-top: 30px;
}
.story-block h3 {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
}
.story-block p {
  color: #4f5c53;
  font-size: 17px;
  max-width: 720px;
}
.gentle-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.gentle-callout > div {
  max-width: 650px;
}
.gentle-callout p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}
.gentle-callout > a {
  flex-shrink: 0;
}
.page-intro {
  padding-block: 75px 55px;
}
.page-intro h1 {
  font-size: clamp(42px, 5vw, 64px);
}
.page-intro .intro {
  max-width: 700px;
}
.course-options,
.community-channels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}
.course-card {
  background: #edf0e7;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.course-card h2,
.community-channels h2 {
  font-size: 34px;
}
.course-card p:not(.eyebrow):not(.large-copy) {
  color: #4f5c53;
}
.course-card h3 {
  margin-top: 30px;
}
.community-channels .benefit-card {
  background: #edf0e7;
  padding: 36px;
}
.community-channels .channel-note {
  margin-top: 18px;
  font-size: 12px;
}
@media (max-width: 850px) {
  .home-hero {
    width: calc(100% - 40px);
    gap: 25px;
  }
  .home-note {
    padding: 65px 20px 35px;
  }
  .home-note blockquote {
    font-size: 30px;
  }
  .gentle-callout {
    flex-direction: column;
    align-items: flex-start;
  }
  .course-card {
    padding: 26px;
  }
}
@media (max-width: 600px) {
  .nav {
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 22px;
  }
  .brand-name {
    font-size: 27px;
  }
  .nav .primary-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }
  .primary-nav a {
    text-align: center;
    font-size: 12px;
    padding-block: 12px;
  }
  .home-hero,
  .course-options,
  .community-channels {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-hero h1 {
    font-size: clamp(33px, 8.5vw, 48px);
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  .home-note {
    padding: 60px 25px 35px;
  }
  .home-note blockquote {
    font-size: 34px;
  }
  .page-intro {
    padding-block: 45px 30px;
  }
  .page-intro h1 {
    font-size: 41px;
  }
  .course-card,
  .community-channels .benefit-card {
    padding: 25px;
  }
  .gentle-callout {
    padding: 26px;
  }
  .story-block p {
    font-size: 16px;
  }
}

/* Logo gốc có nền trong suốt; giữ trọn hình và tỉ lệ trên nền kem. */
.brand-lockup {
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-brand {
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.footer-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
}
.footer-brand > span {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--muted);
}
.illustration {
  margin: 0;
  min-width: 0;
}
.illustration img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.illustration figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 12px;
}
.home-illustration {
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}
.home-illustration figcaption {
  text-align: center;
  padding-inline: 5px;
}
.reading-illustration {
  margin-top: 28px;
}
.course-illustration {
  margin-block: 26px;
}
.course-illustration figcaption {
  color: var(--green);
  font-weight: 600;
}
.community-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.community-intro h1 {
  font-size: clamp(40px, 4.6vw, 60px);
}
.community-illustration figcaption {
  text-align: center;
}
@media (max-width: 850px) {
  .community-intro {
    gap: 24px;
  }
  .brand-logo {
    width: 60px;
    height: 60px;
  }
}
@media (max-width: 600px) {
  .brand-lockup {
    gap: 9px;
  }
  .brand-logo {
    width: 58px;
    height: 58px;
  }
  .community-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .footer-brand {
    align-self: center;
  }
}

/* Khung đọc thử chỉ dùng trên trang Ebook. */
.ebook-sample > .eyebrow {
  text-transform: uppercase;
}
.sample-page {
  max-width: 820px;
  margin: 36px auto 0;
  padding: 48px 56px;
  background: #fffaf0;
  border: 1px solid #ded8c6;
  border-left: 5px solid #c6d2b4;
  border-radius: 6px 18px 18px 6px;
  box-shadow: 0 8px 24px #174b3e08;
  color: var(--green-dark);
}
.sample-page h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 30px;
}
.sample-page > p {
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 24px;
}
.sample-expressions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 24px;
}
.sample-expressions p {
  margin: 0;
  padding: 12px 22px;
  border-radius: 8px;
  background: #e9eedf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
}
.sample-page .sample-question {
  padding-top: 8px;
}
.sample-page .sample-disclaimer {
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: 1px solid #ded8c6;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
@media (max-width: 600px) {
  .sample-page {
    margin-top: 26px;
    padding: 28px 22px;
  }
  .sample-page > p {
    font-size: 16px;
  }
  .sample-expressions p {
    padding: 10px 16px;
    font-size: 21px;
  }
}

/* Nội dung câu chuyện và bốn nguyên tắc chỉ có trên Trang chủ. */
.personal-story > .story-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-block: 64px;
}
.story-copy { min-width: 0; }
.story-illustration {
  position: sticky;
  top: 140px;
  margin-top: 116px;
  display: flex;
  justify-content: center;
}
.story-mascot {
  display: block;
  width: min(100%, 224px);
  height: auto;
  object-fit: contain;
}
@media (max-width: 900px) {
  .personal-story > .story-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-block: 48px;
  }
  .story-illustration {
    position: static;
    margin-top: 0;
    justify-content: flex-end;
  }
  .story-mascot { width: 88px; }
}
.personal-story .story-block p {
  max-width: none;
}
.personal-story .story-layout {
  max-width: 760px;
  margin-top: 32px;
}
.personal-story .story-block:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.personal-story strong {
  color: var(--green);
}
.method-intro {
  max-width: 760px;
  margin-bottom: 36px;
}
.method-intro > p:last-child {
  color: #4f5c53;
  font-size: 17px;
}
.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.principle-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f1f3e9;
}
.principle-listening {
  background: #e5ecdc;
  border-color: #c8d3ba;
}
.principle-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: #dde5d2;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.principle-listening .principle-number {
  background: #d1dec3;
}
.principle-card h3 {
  font-size: 22px;
  line-height: 1.4;
  color: var(--green);
  margin-bottom: 20px;
}
.principle-card p {
  font-size: 16px;
  color: #4f5c53;
}
.principle-card .principle-takeaway {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 20px;
  border-top: 1px solid #d1dac6;
  color: var(--green);
}
.method-closing {
  max-width: 720px;
  margin: 36px auto 0;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  color: var(--green);
}
@media (max-width: 700px) {
  .principle-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .principle-card {
    padding: 25px;
  }
  .method-intro > p:last-child {
    font-size: 16px;
  }
  .method-closing {
    font-size: 20px;
  }
}

/* Hai lựa chọn xác nhận sau chuyển khoản, chỉ dùng trên trang Ebook. */
.payment-confirmation {
  margin-top: 32px;
}
.payment-confirmation > h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--green);
}
.payment-confirmation > p,
.confirmation-option > p {
  font-size: 15px;
  color: var(--muted);
}
.confirmation-options {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.confirmation-option {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f1f3e9;
  min-width: 0;
}
.confirmation-option h4 {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 17px;
  line-height: 1.5;
}
.confirmation-option .button {
  width: 100%;
  text-align: center;
}
.zalo-phone {
  display: block;
  color: var(--green);
  font-size: 22px;
  letter-spacing: 1px;
  margin-top: 8px;
}
.confirmation-option > .sample-note {
  margin: 16px 0 0;
  font-size: 12px;
}
.confirmation-manual-note {
  margin: 22px 0 0;
}
@media (max-width: 600px) {
  .confirmation-option {
    padding: 20px;
  }
  .confirmation-option .button {
    padding-inline: 14px;
  }
}

/* Trang ủng hộ riêng /donate/: đồng bộ phong cách kem - xanh của TuanBong. */
.donate-page {
  padding-bottom: 34px;
}
.donate-hero {
  max-width: 920px;
  padding-block: 78px 50px;
  text-align: center;
}
.donate-coffee {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 27px;
  background: #e7eddf;
  border: 1px solid #d5dfcb;
  border-radius: 50%;
  font-size: 38px;
}
.donate-hero .eyebrow {
  margin-bottom: 17px;
}
.donate-hero h1 {
  font-size: clamp(36px, 4.3vw, 57px);
  line-height: 1.23;
  letter-spacing: -1.7px;
  margin-bottom: 25px;
}
.donate-hero h1 em {
  color: var(--green);
}
.donate-intro {
  max-width: 740px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}
.donate-card {
  display: grid;
  grid-template-columns: minmax(0, 0.91fr) minmax(0, 1.09fr);
  gap: 50px;
  align-items: center;
  padding: 48px;
  border: 1px solid #dbe2d5;
  border-radius: 24px;
  background: #f0f3e9;
}
.donate-qr-side {
  min-width: 0;
  text-align: center;
}
.donate-qr-side .eyebrow {
  margin-bottom: 24px;
}
.donate-qr-frame {
  width: min(100%, 370px);
  aspect-ratio: 1;
  overflow: hidden;
  margin: 0 auto;
  background: #dceefa;
  border: 10px solid white;
  border-radius: 20px;
  box-shadow: 0 14px 36px #143b2920;
}
.donate-qr-frame img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  /* QR nằm ở nửa trên ảnh gốc chụp từ ứng dụng ngân hàng. */
  object-position: center 35%;
}
.donate-qr-caption {
  max-width: 400px;
  margin: 23px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.donate-qr-error {
  margin-top: 16px;
  color: #a23a2c;
  font-size: 13px;
}
.donate-bank-side {
  min-width: 0;
}
.donate-bank-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  margin-bottom: 22px;
  background: #dce9d9;
  border-radius: 40px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.donate-bank-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #318b66;
}
.donate-bank-side h2 {
  margin-bottom: 19px;
  font-size: clamp(30px, 3vw, 41px);
}
.donate-bank-lead {
  font-size: 15px;
  color: #516157;
  line-height: 1.8;
  margin-bottom: 25px;
}
.donate-bank-list {
  margin: 0;
  overflow: hidden;
  border: 1px solid #d8e0d2;
  border-radius: 14px;
  background: #fffdf8;
}
.donate-bank-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 15px;
  padding: 13px 19px;
}
.donate-bank-list > div + div {
  border-top: 1px solid #e3e8dd;
}
.donate-bank-list dt {
  font-size: 13px;
  color: var(--muted);
}
.donate-bank-list dd {
  margin: 0;
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.donate-bank-list .donate-account-number {
  font-size: 20px;
  letter-spacing: 0.5px;
  user-select: all;
}
.donate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.donate-copy-button {
  gap: 13px;
}
.donate-secondary-button {
  min-height: 50px;
  padding: 10px 13px;
  background: transparent;
  border: 1px solid #a8b8a4;
  border-radius: 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}
.donate-secondary-button:hover {
  background: #e0e8dc;
}
.donate-copy-status {
  min-height: 24px;
  margin: 8px 0 0;
  color: var(--green);
  font-size: 13px;
  line-height: 1.5;
}
.donate-safety {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid #8aab84;
  background: #e8eee1;
  border-radius: 0 9px 9px 0;
}
.donate-safety strong {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 14px;
}
.donate-safety p {
  margin: 0;
  font-size: 12px;
  color: #526457;
  line-height: 1.8;
}
.donate-outro {
  max-width: 800px;
  padding-block: 76px 45px;
  text-align: center;
}
.donate-outro p {
  margin-bottom: 20px;
  color: #526458;
  font: italic 23px/1.7 Georgia, "Times New Roman", serif;
}
.donate-outro a {
  color: var(--green);
}
@media (max-width: 800px) {
  .donate-card {
    gap: 26px;
    padding: 30px;
  }
  .donate-qr-frame {
    width: min(100%, 340px);
  }
}
@media (max-width: 700px) {
  .donate-hero {
    padding-block: 50px 35px;
  }
  .donate-coffee {
    width: 64px;
    height: 64px;
    font-size: 32px;
    margin-bottom: 22px;
  }
  .donate-hero h1 {
    font-size: clamp(34px, 8vw, 44px);
  }
  .donate-intro {
    font-size: 15px;
  }
  .donate-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 23px;
    gap: 34px;
  }
  .donate-bank-side h2 {
    font-size: 32px;
  }
  .donate-outro {
    padding-block: 54px 30px;
  }
  .donate-outro p {
    font-size: 20px;
  }
}
@media (max-width: 400px) {
  .donate-card {
    padding: 16px;
  }
  .donate-bank-list > div {
    padding: 12px;
  }
  .donate-copy-button,
  .donate-secondary-button {
    width: 100%;
  }
}

/* Menu có 5 mục: chuyển sang 2 hàng trên màn hình hẹp, không tràn ngang. */
@media (max-width: 700px) {
  html {
    scroll-padding-top: 165px;
  }
  .nav {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 12px 0;
  }
  .nav .primary-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }
  .primary-nav a {
    padding: 11px 1px;
    text-align: center;
    font-size: clamp(10px, 1.85vw, 12px);
    white-space: nowrap;
  }
}

/* Liên hệ: dùng chung màu sắc, kiểu chữ và thanh menu TuanBong. */
.contact-hero {
  max-width: 980px;
  padding-block: 88px 65px;
  text-align: center;
}
.contact-hero h1 {
  font-size: clamp(38px, 4.5vw, 60px);
  line-height: 1.25;
  margin-bottom: 26px;
}
.contact-lead {
  max-width: 710px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.contact-section {
  padding: 44px;
  border: 1px solid #dce3d6;
  border-radius: 24px;
  background: #eff2e9;
}
.contact-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
}
.contact-section-head .eyebrow {
  margin-bottom: 13px;
}
.contact-section-head h2 {
  margin-bottom: 0;
}
.contact-section-head > p {
  max-width: 380px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 27px 24px;
  border: 1px solid #dce4d8;
  border-radius: 18px;
  background: #fffdf8;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.contact-card:not(.contact-card-pending):hover {
  transform: translateY(-3px);
  border-color: #a8c2ac;
  box-shadow: 0 12px 25px #2449330d;
}
.contact-channel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 26px;
}
.contact-icon-zalo {
  background: #e8f0fb;
  color: #236bc7;
}
.contact-icon-facebook {
  background: #e8eefb;
  color: #2870ba;
}
.contact-icon-tiktok {
  background: #e9ece5;
  color: var(--green);
}
.contact-card-kicker {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.contact-card h3 {
  margin-bottom: 13px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 400;
}
.contact-card-description {
  flex-grow: 1;
  margin-bottom: 18px;
  color: #58685d;
  font-size: 14px;
  line-height: 1.8;
}
.contact-card-detail {
  margin-bottom: 24px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.contact-card-action {
  width: 100%;
  gap: 10px;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 13px;
}
.contact-card-action span {
  font-size: 18px;
}
.contact-card-pending {
  background: #f8f9f5;
}
.contact-pending-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: auto;
  border: 1px dashed #b7c5b2;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.contact-outro {
  max-width: 790px;
  padding-block: 78px 72px;
  text-align: center;
}
.contact-outro p {
  margin-bottom: 22px;
  color: #526458;
  font: italic 22px/1.7 Georgia, "Times New Roman", serif;
}
.contact-outro a {
  color: var(--green);
}
@media (max-width: 900px) {
  .contact-section-head {
    align-items: start;
    flex-direction: column;
  }
  .contact-section-head > p {
    max-width: 650px;
  }
  .contact-section {
    padding: 26px;
  }
  .contact-grid {
    gap: 12px;
  }
  .contact-card {
    padding: 24px 17px;
  }
}
@media (max-width: 700px) {
  .contact-hero {
    padding-block: 48px 37px;
  }
  .contact-hero h1 {
    font-size: clamp(32px, 8vw, 44px);
  }
  .contact-lead {
    font-size: 15px;
  }
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-card {
    padding: 25px;
  }
  .contact-section {
    padding: 21px;
  }
  .contact-outro {
    padding-block: 55px;
  }
  .contact-outro p {
    font-size: 19px;
  }
}
/* Sáu mục điều hướng: đủ thoáng trên máy tính và không tràn trên điện thoại. */
@media (min-width: 701px) and (max-width: 980px) {
  html {
    scroll-padding-top: 175px;
  }
  .nav {
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 10px;
  }
  .nav .primary-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
  }
  .nav .primary-nav a {
    text-align: center;
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 235px;
  }
  .nav .primary-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
  .nav .primary-nav a {
    font-size: 12px;
    padding: 8px 5px;
  }
}

/* Nút dự phòng Zalo cho trang Liên hệ và Coaching 1:1. */
.contact-copy-button,
.course-copy-zalo {
  width: 100%;
  margin-top: 10px;
  padding: 11px 14px;
  min-height: 44px;
  background: #edf1e8;
  border: 1px solid #becfba;
  border-radius: 7px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  transition: background .2s;
}
.contact-copy-button:hover,
.course-copy-zalo:hover {
  background: #dde9d8;
}
.contact-fallback-note,
.course-zalo-note {
  margin-top: 6px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.zalo-copy-status {
  min-height: 0;
  margin: 8px 0 0;
  color: var(--green);
  font-size: 12px;
  line-height: 1.6;
}
.zalo-copy-status:empty {
  display: none;
}
.course-contact {
  margin-top: 30px;
  padding: 23px;
  border: 1px solid #ccd9c8;
  border-radius: 14px;
  background: #f9faf5;
}
.course-contact .eyebrow {
  margin-bottom: 10px;
}
.course-contact h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}
.course-contact > p:not(.eyebrow, .zalo-copy-status, .course-zalo-note) {
  margin-bottom: 16px;
  color: #53645b;
  font-size: 14px;
}
.course-zalo-action {
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 18px;
  font-size: 13px;
}
.course-zalo-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--green);
}
.contact-card #zalo,
#zalo {
  scroll-margin-top: 155px;
}
@media (max-width: 700px) {
  #zalo {
    scroll-margin-top: 240px;
  }
  .course-contact {
    padding: 18px;
  }
}

/* Hai nút trong phần giới thiệu ebook: khám phá và mua ngay. */
.ebook-hero-actions {
  flex-wrap: wrap;
  gap: 14px 16px;
}
.ebook-hero-actions .ebook-buy-cta {
  color: var(--green);
  background: transparent;
  border-color: var(--green);
  gap: 16px;
}
.ebook-hero-actions .ebook-buy-cta:hover {
  background: #e5eee3;
  color: var(--green-dark);
}
.ebook-hero-actions > .text-link {
  flex-basis: 100%;
  width: fit-content;
}


/* Five clear destinations; grouped links open with keyboard, mouse or touch. */
.nav .primary-nav{gap:24px}
.nav-dropdown{position:relative}
.nav-dropdown summary{display:flex;align-items:center;gap:6px;padding:12px 4px;border-bottom:2px solid transparent;cursor:pointer;list-style:none;white-space:nowrap;color:inherit}
.nav-dropdown summary::-webkit-details-marker{display:none}
.nav-dropdown summary::marker{content:""}
.nav-dropdown summary>span{font-size:14px;line-height:1;transition:transform .15s}
.nav-dropdown[open] summary>span{transform:rotate(180deg)}
.nav-dropdown.is-current summary,.nav-dropdown[open] summary{color:var(--green);border-bottom-color:var(--green);font-weight:700}
.nav-dropdown summary:hover{color:var(--green)}
.nav-dropdown summary:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:4px}
.nav-submenu{position:absolute;top:calc(100% + 8px);right:0;z-index:110;min-width:230px;padding:7px;background:var(--cream);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px #173d3217}
.nav-dropdown:not([open])>.nav-submenu{display:none}
.primary-nav .nav-submenu a{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;border:0;border-radius:6px;font-size:13px;text-align:left;text-decoration:none;white-space:nowrap}
.primary-nav .nav-submenu a:hover,.primary-nav .nav-submenu a:focus-visible,.primary-nav .nav-submenu a[aria-current="page"]{background:#e6eee1;color:var(--green)}
@media(max-width:980px){
 .nav .primary-nav{position:relative;display:flex;flex-wrap:wrap;justify-content:center;width:100%;gap:0 16px;padding-bottom:6px}
 .nav-dropdown{position:static}
 .nav-submenu{left:0;right:0;top:calc(100% + 4px);width:100%;min-width:0}
 .nav .primary-nav>a,.nav .primary-nav summary{padding:10px 3px;font-size:13px;text-align:center}
 .primary-nav .nav-submenu a{padding:12px 14px;font-size:14px;text-align:left;white-space:normal}
}
@media(prefers-reduced-motion:reduce){.nav-dropdown summary>span{transition:none}}

/* Light navigation: the caret alone identifies expandable groups. */
.site-header .nav .primary-nav>a,
.site-header .nav .primary-nav .nav-dropdown>summary{font-family:inherit;font-size:13px;font-weight:400;color:inherit;border:0;box-shadow:none;background:transparent;text-decoration:none}
.site-header .nav .primary-nav>a:hover,
.site-header .nav .primary-nav>a[aria-current="page"],
.site-header .nav .primary-nav .nav-dropdown>summary:hover{font-weight:400;border:0;text-decoration:none}
.site-header .nav .primary-nav .nav-submenu a{font-weight:400;text-decoration:none}

/* Keep all five navigation destinations on one row across mobile widths. */
.site-header .primary-nav .nav-dropdown{border:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media(max-width:980px){
 .site-header .nav .primary-nav{
  display:grid;grid-template-columns:1.15fr 1.25fr .75fr 1.1fr .95fr;
  grid-template-rows:auto;gap:0;width:100%;min-width:0;align-items:center;
  padding-bottom:4px
 }
 .site-header .nav .primary-nav>.nav-dropdown{position:static;min-width:0;width:100%;margin:0;padding:0}
 .site-header .nav .primary-nav>a,
 .site-header .nav .primary-nav .nav-dropdown>summary{
  display:flex;justify-content:center;align-items:center;min-width:0;width:100%;
  min-height:44px;padding:10px 0;gap:3px;white-space:nowrap;
  font-size:clamp(11px,3.2vw,13px);line-height:1.4;font-weight:400;
  letter-spacing:0;border:0;text-decoration:none
 }
 .site-header .nav .primary-nav .nav-dropdown>summary>span{font-size:10px;flex:none}
 .site-header .nav .primary-nav .nav-submenu{left:0;right:0;width:100%;min-width:0}
}
@media(max-width:700px){
 .site-header>.container.nav{width:calc(100% - 24px);margin-inline:auto}
}

/* Larger desktop navigation; keep the mobile layout unchanged. */
@media(min-width:981px){
 .site-header .nav .primary-nav{gap:20px}
 .site-header .nav .primary-nav>a,
 .site-header .nav .primary-nav .nav-dropdown>summary{
  font-size:16px;line-height:1.5;padding:12px 6px
 }
 .site-header .nav .primary-nav .nav-submenu a{font-size:15px;padding:12px 14px}
}

/* Consistent compact header and ebook introduction on phones. */
@media(max-width:700px){
 .site-header>.container.nav{gap:10px;padding-block:12px 0}
 .site-header .brand-lockup{gap:9px}
 .site-header .brand-logo{width:48px;height:48px}
 .site-header .brand-name{font-size:26px;line-height:1.15}
 .site-header .brand-name>span{font-size:10px;line-height:1.4;margin-top:5px}
 .ebook-hero{width:calc(100% - 36px);grid-template-columns:minmax(0,1fr);padding-block:32px;gap:28px}
 .ebook-hero .hero-copy{min-width:0}
 .ebook-hero h1{font-size:clamp(28px,8.5vw,40px);line-height:1.2;letter-spacing:-1px;margin-bottom:22px}
 .ebook-hero .eyebrow{font-size:9px;line-height:1.6;letter-spacing:1px;margin-bottom:22px}
 .ebook-hero .intro{font-size:16px;line-height:1.75;margin-bottom:18px}
}

/* Balanced phone footer: centered brand, six links in two equal rows. */
@media(max-width:700px){
 .container.footer{
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  gap:20px;padding-block:28px 24px;text-align:center
 }
 .footer .footer-brand{align-self:center;gap:8px}
 .footer .footer-logo{width:112px;height:112px}
 .footer .footer-brand>span{font-size:11px;line-height:1.5}
 .footer .footer-links{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px 8px;width:100%;max-width:420px
 }
 .footer .footer-links>a{
  display:flex;align-items:center;justify-content:center;
  min-width:0;min-height:44px;padding:8px 2px;
  font-size:13px;line-height:1.5;white-space:normal
 }
 .footer>p{
  width:100%;margin:0;padding-top:18px;border-top:1px solid var(--line);
  font-size:12px;line-height:1.8;text-align:center
 }
 .footer>p span{font-size:inherit}
}

/* The TuanBong puppy: small, static accents that leave room for content. */
.tb-mascot{display:block;width:104px;height:104px;max-width:100%;object-fit:contain;flex:0 0 auto;pointer-events:none;user-select:none}
.tb-mascot-heading,.tb-mascot-kicker{display:flex;align-items:center;justify-content:space-between;gap:24px}
.tb-mascot-heading{margin-bottom:24px}
.tb-mascot-heading h2{margin:0;min-width:0}
.tb-mascot-kicker{max-width:600px;margin-bottom:18px}
.tb-mascot-kicker .eyebrow{margin:0}
.tb-mascot-kicker .tb-mascot{width:88px;height:88px}
.tb-mascot-centered{width:120px;height:120px;margin:0 auto 24px}
@media(max-width:700px){
 .tb-mascot{width:80px;height:80px}
 .tb-mascot-heading,.tb-mascot-kicker{gap:12px}
 .tb-mascot-kicker .tb-mascot{width:68px;height:68px}
 .tb-mascot-heading h2{flex:1}
 .tb-mascot-centered{width:96px;height:96px;margin-bottom:20px}
}


/* Floating public contact links. Compact on phones, with room for the home indicator. */
.tb-contact-dock{
 position:fixed;z-index:90;right:24px;bottom:24px;
 display:flex;flex-direction:column;gap:12px;align-items:center;
 padding:0;margin:0;width:52px
}
.tb-contact-link{
 position:relative;display:flex;align-items:center;justify-content:center;
 width:52px;height:52px;flex:none;border:1px solid #e5e9df;border-radius:15px;background:#fff;
 box-shadow:0 3px 16px #173d3226;text-decoration:none;
 transition:box-shadow .15s,transform .15s
}
.tb-contact-facebook{color:#0866ff}
.tb-contact-zalo{background:#fff;color:#0068ff}
.tb-contact-link>svg{display:block;flex:none;width:30px;height:30px}
.tb-contact-zalo>svg{width:40px;height:40px}
.tb-contact-link:hover{transform:translateY(-2px);box-shadow:0 5px 20px #173d3233}
.tb-contact-link:focus-visible{outline:3px solid #aa7529;outline-offset:4px}
.tb-contact-tooltip{
 position:absolute;right:calc(100% + 10px);top:50%;transform:translateY(-50%);
 padding:6px 10px;border-radius:6px;background:#174b3e;color:white;
 font:12px/1.4 Arial,Helvetica,sans-serif;white-space:nowrap;
 opacity:0;visibility:hidden;pointer-events:none
}
.tb-contact-link:hover .tb-contact-tooltip,.tb-contact-link:focus-visible .tb-contact-tooltip{opacity:1;visibility:visible}
@supports(bottom:env(safe-area-inset-bottom)){
 .tb-contact-dock{bottom:calc(20px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:700px){
 .tb-contact-dock{
  width:44px;right:10px;bottom:16px;
  bottom:calc(14px + env(safe-area-inset-bottom,0px));gap:9px
 }
 .tb-contact-link{width:44px;height:44px;border-radius:13px;box-shadow:0 2px 10px #173d3221}
 .tb-contact-facebook>svg{width:26px;height:26px}
 .tb-contact-zalo>svg{width:34px;height:34px}
 .tb-contact-tooltip{display:none}
}
@media(prefers-reduced-motion:reduce){.tb-contact-link{transition:none}}

/* Android phones use different fallback fonts and available text widths.
   Keep iOS styles intact and retain pinch zoom and accessibility text scaling. */
@media (max-width: 700px) {
  html.android-phone body { font-size: 15px; line-height: 1.7; }
  .android-phone .container { width: calc(100% - 32px); }
  .android-phone .contact-hero h1,
  .android-phone .donate-hero h1,
  .android-phone .page-intro h1 {
    font-size: clamp(28px, 7.5vw, 34px);
    line-height: 1.25; letter-spacing: -.9px; text-wrap: balance;
  }
  .android-phone .contact-hero, .android-phone .donate-hero { padding-block: 36px 30px; }
  .android-phone .contact-lead, .android-phone .donate-intro { font-size: 15px; line-height: 1.75; }
  .android-phone .gentle-callout { padding: 22px 20px; gap: 24px; }
  .android-phone .gentle-callout h2,
  .android-phone .contact-section-head h2,
  .android-phone .donate-bank-side h2,
  .android-phone .course-card h2,
  .android-phone .community-channels h2 {
    font-size: clamp(26px, 7vw, 31px);
    line-height: 1.25; letter-spacing: -.8px; text-wrap: balance;
  }
  .android-phone .gentle-callout p:not(.eyebrow) { font-size: 15px; line-height: 1.75; }
  .android-phone .gentle-callout .eyebrow { font-size: 10px; letter-spacing: 1.2px; margin-bottom: 18px; }
  .android-phone .gentle-callout .button { max-width: 100%; padding-inline: 16px; gap: 12px; font-size: 13px; }
  .android-phone .contact-section { padding: 20px 18px; }
  .android-phone .contact-section-head { gap: 20px; margin-bottom: 26px; }
  .android-phone .contact-card { padding: 22px 20px; }
  .android-phone .contact-card h3 { font-size: 29px; }
  .android-phone .contact-card-kicker { letter-spacing: 1px; }
  .android-phone .contact-outro, .android-phone .donate-outro { padding-block: 40px; }
  .android-phone .contact-outro p, .android-phone .donate-outro p {
    font-size: clamp(17px, 4.4vw, 19px); line-height: 1.65; text-wrap: pretty;
  }
  .android-phone .donate-bank-list > div { gap: 6px 10px; }
  .android-phone .donate-bank-list dd { max-width: 100%; }
  .android-phone .tb-contact-dock { width: 40px; right: 8px; gap: 8px; }
  .android-phone .tb-contact-link { width: 40px; height: 40px; }
  .android-phone .bk-page .bk-hero h1 { font-size: clamp(28px, 7.5vw, 34px); line-height: 1.25; }
  .android-phone .bk-page .bk-hero img { width: 64px; height: 64px; }
  .android-phone .bk-page .bk-card { padding: 20px; }
  .android-phone .bk-page .bk-card h2 { font-size: 27px; }
  .android-phone .bk-page .bk-option strong { font-size: 15px; }
}
@media (max-width: 430px) {
  .android-phone .bk-page .bk-hero img { display: none; }
}
