/* ==========================================================================
   Thành phần riêng của theme WordPress (nạp sau main.css)
   ========================================================================== */
.entry-content > *:first-child { margin-top: 0; }
.bg- { background: transparent; }

/* Header: giỏ hàng */
.cart-link { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--forest); background: var(--sand); transition: background .2s; }
.cart-link:hover { background: var(--sand-2); }
.cart-link .ic { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--saffron); color: #fff; font-size: .7rem; font-weight: 600; display: grid; place-items: center; }
@media (max-width: 1080px) { .header-cta { margin-left: auto; display: flex !important; } .header-cta .header-phone, .header-cta .btn { display: none !important; } .nav-toggle { margin-left: 8px; } }
.drawer-nav a .ic { width: 18px; height: 18px; color: var(--moss); }
.topbar-news .ic { width: 14px; height: 14px; }
a.hero-card { color: inherit; transition: transform .4s var(--ease), box-shadow .4s; }
a.hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Ban lãnh đạo */
.leader-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.leader { display: grid; grid-template-columns: minmax(200px, 42%) 1fr; gap: clamp(20px, 2.6vw, 34px); background: var(--cream); border-radius: var(--radius-lg); padding: clamp(18px, 2vw, 26px); border: 1px solid var(--line); align-items: start; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.leader:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.leader-photo { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 180px 180px var(--radius) var(--radius); overflow: hidden; background: var(--sand); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.leader:hover .leader-photo img { transform: scale(1.04); }
.leader-badge { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; align-items: center; justify-content: center; padding: 8px 10px; border-radius: 99px; background: rgba(29, 58, 47, .88); color: var(--cream); font-size: .74rem; font-weight: 600; letter-spacing: .04em; backdrop-filter: blur(6px); }
.leader-badge .ic { width: 16px; height: 16px; color: var(--matcha); }
.leader-body { display: grid; gap: 12px; padding-top: 6px; }
.leader-role { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-2); font-weight: 600; line-height: 1.5; }
.leader-body h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.1; color: var(--forest); }
.leader-body h3 a:hover { color: var(--moss); }
.leader-tag { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--moss); line-height: 1.35; }
.leader-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 0; border-block: 1px solid var(--line); }
.leader-stats b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--forest); line-height: 1; font-weight: 600; }
.leader-stats span { display: block; font-size: .72rem; color: var(--muted); line-height: 1.35; margin-top: 4px; }
.leader .checklist li { font-size: .88rem; }
.leader .checklist .ic { width: 18px; height: 18px; }

/* Trang chủ: khối trị liệu */
.therapy-visual { position: relative; }
.tv-main { aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.tv-main img { width: 100%; height: 100%; object-fit: cover; }
.tv-card { position: absolute; left: -24px; bottom: 28px; display: flex; gap: 14px; align-items: center; background: var(--cream); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); max-width: 340px; }
.tv-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--forest); color: var(--matcha); display: grid; place-items: center; flex: none; }
.tv-card b { display: block; color: var(--forest); font-family: var(--font-display); font-size: 1.25rem; }
.tv-card span { font-size: .8rem; color: var(--muted); }

/* Dấu ấn (lưới ảnh) */
.moments { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 16px; }
.moments figure { position: relative; border-radius: var(--radius); overflow: hidden; margin: 0; background: var(--sand-2); }
.moments .m1 { grid-row: span 2; }
.moments img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.moments figure:hover img { transform: scale(1.05); }
.moments figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(180deg, transparent, rgba(18, 36, 29, .85)); color: rgba(247, 242, 234, .9); font-size: .84rem; line-height: 1.4; }
.moments figcaption b { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--matcha); font-weight: 600; }

/* Thẻ khoá học: giá */
.pcard-price { color: var(--forest); font-size: .95rem; }
.pcard-foot small { color: var(--muted); }

/* Bảng giá */
.mode-switch { display: inline-flex; padding: 6px; background: var(--sand); border-radius: 99px; gap: 4px; }
.mode-switch button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 99px; font-weight: 500; font-size: .9rem; color: var(--forest); transition: .25s; }
.mode-switch button .ic { width: 18px; height: 18px; }
.mode-switch button.is-active { background: var(--forest); color: var(--cream); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.price-grid.tiers { grid-template-columns: repeat(3, 1fr); }
.price-card { position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 14px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.is-featured { background: var(--forest); border-color: var(--forest); color: rgba(247, 242, 234, .82); }
.price-card.is-featured h3, .price-card.is-featured h3 a, .price-card.is-featured .price-amount b { color: var(--cream); }
.price-card.is-featured .price-hours { color: var(--matcha); }
.price-card.is-featured .checklist .ic { color: var(--matcha); }
.price-card.is-featured .link-arrow { color: var(--cream); }
.price-badge { position: absolute; top: -12px; left: 24px; background: var(--saffron); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .06em; padding: 5px 12px; border-radius: 99px; text-transform: uppercase; }
.price-hours { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); font-weight: 600; }
.price-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.2; color: var(--forest); }
.price-amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.price-card.is-featured .price-amount { border-color: var(--line-light); }
.price-amount b { font-family: var(--font-display); font-size: 2.3rem; line-height: 1; color: var(--forest); font-weight: 600; }
.price-amount small { color: var(--muted); font-size: .82rem; }
.price-card.is-featured .price-amount small { color: rgba(247, 242, 234, .6); }
.price-card .checklist li { font-size: .9rem; }
.price-card .checklist .ic { width: 18px; height: 18px; }
.price-actions { margin-top: auto; display: grid; gap: 12px; justify-items: center; padding-top: 6px; }
.price-list { display: grid; gap: 10px; }
.price-line { display: grid; grid-template-columns: 1fr auto 24px; gap: 20px; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; transition: border-color .3s, transform .3s var(--ease); }
.price-line:hover { border-color: var(--moss); transform: translateX(4px); }
.price-line b { display: block; color: var(--forest); font-weight: 600; }
.price-line small { color: var(--muted); font-size: .84rem; }
.price-line .ic { color: var(--moss); width: 20px; height: 20px; }
.price-val { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; color: var(--forest); white-space: nowrap; text-align: right; }
.price-val small { font-family: var(--font-body); font-size: .78rem; color: var(--muted); font-weight: 400; margin-left: 4px; }
.price-mini { display: grid; gap: 8px; }
.price-mini li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; border-bottom: 1px dashed var(--sand-2); padding-bottom: 8px; }
.price-mini b { color: var(--forest); text-align: right; }
.price-rows { display: grid; gap: 10px; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.price-row b { display: block; color: var(--forest); }
.price-row span { font-size: .85rem; color: var(--muted); }
.combo { margin-top: 22px; display: flex; gap: 14px; align-items: center; padding: 16px 20px; background: #F6E8D4; color: var(--saffron-2); border-radius: var(--radius); font-size: .93rem; }
.combo .ic { width: 24px; height: 24px; flex: none; }
.membership { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); background: var(--forest); color: rgba(247, 242, 234, .82); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 52px); margin-top: 28px; position: relative; overflow: hidden; }
.membership h2, .membership h3 { color: var(--cream); }
.membership .eyebrow { color: var(--matcha); }
.membership-copy { display: grid; gap: 16px; align-content: start; }
.membership .checklist .ic { color: var(--matcha); }
.membership-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.membership-prices > div { background: rgba(255, 255, 255, .06); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 16px; display: grid; gap: 4px; }
.membership-prices span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--matcha); font-weight: 600; }
.membership-prices b { font-family: var(--font-display); font-size: 1.7rem; color: var(--cream); font-weight: 600; line-height: 1.1; }
.membership-prices small { font-size: .78rem; }
.membership-prices .btn { grid-column: 1 / -1; }
.shop-teaser { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.shop-teaser > div { display: grid; gap: 14px; max-width: 760px; }
.shop-teaser h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.audience-light > div { background: var(--cream); color: var(--text); border: 1px solid var(--line); }
.audience-light .ic { color: var(--moss); }
.audience-light h3 { color: var(--forest); }
.callout-free { display: flex; gap: 14px; align-items: flex-start; background: var(--matcha-soft); color: var(--forest); padding: 16px 20px; border-radius: var(--radius); font-size: .93rem; }
.callout-free .ic { width: 28px; height: 28px; flex: none; }
.callout-free b { display: block; }

/* Bảng trong nội dung (thời khoá biểu, thông số) */
.prose .wp-block-table { overflow-x: auto; margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.timetable-wrap .wp-block-table table { min-width: 860px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; text-align: left; line-height: 1.5; }
.prose th:last-child, .prose td:last-child { border-right: 0; }
.prose thead th { background: var(--forest); color: var(--cream); font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.timetable-wrap td:first-child { font-weight: 600; color: var(--forest); white-space: nowrap; background: var(--sand); }
.prose figure { margin: 1.4em 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption, .prose .wp-element-caption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 8px; }
.prose a:not(.btn) { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }
.prose h2 em { font-style: italic; color: var(--moss); }
.prose ol { counter-reset: li; display: grid; gap: 10px; }
.prose ol li { counter-increment: li; display: flex; gap: 12px; }
.prose ol li::before { content: counter(li); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sand); color: var(--forest); font-size: .8rem; font-weight: 600; display: grid; place-items: center; margin-top: 3px; }
.prose img { height: auto; }
.prose .wp-block-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.prose .wp-block-button__link { display: inline-flex; padding: 14px 26px; border-radius: 99px; background: var(--forest); color: var(--cream) !important; text-decoration: none !important; }

/* Hội đồng khoa học */
.council { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.council > div { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; display: grid; gap: 6px; }
.council b { font-family: var(--font-display); font-size: 1.35rem; color: var(--forest); font-weight: 600; }
.council span { font-size: .84rem; color: var(--muted); }

/* Hồ sơ giảng viên */
.profile-hero { padding-block: clamp(40px, 6vw, 80px) clamp(20px, 3vw, 40px); }
.profile-grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.profile-photo { aspect-ratio: 3 / 4; border-radius: 220px 220px var(--radius-lg) var(--radius-lg); overflow: hidden; background: var(--sand); box-shadow: var(--shadow); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile-copy { display: grid; gap: 18px; }
.profile-copy h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.profile-layout { grid-template-columns: minmax(0, 1fr) 320px !important; }
.aside-list { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px; }
.aside-list h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--forest); margin-bottom: 10px; }
.aside-list li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--forest); }
.aside-list li:last-child a { border: 0; }
.aside-list small { display: block; color: var(--muted); font-weight: 400; }
.profile-layout aside { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.profile-layout .aside-cta { position: static; }

/* Tin tức */
.filter-bar .tabs a { padding: 10px 20px; border-radius: 99px; font-size: .9rem; font-weight: 500; color: var(--forest); transition: background .3s, color .3s; white-space: nowrap; }
.filter-bar .tabs a.is-active { background: var(--forest); color: var(--cream); }
.filter-bar .tabs a:not(.is-active):hover { background: rgba(29, 58, 47, .08); }
.pagination .page-numbers { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 500; transition: .2s; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.pagination .ic { width: 18px; height: 18px; }
.share .tags a { width: auto; height: auto; border-radius: 99px; padding: 6px 12px; font-weight: 500; font-size: .78rem; }
.article-hero .chip { justify-self: center; }
.breadcrumb a { text-decoration: none; }
.breadcrumb .separator { opacity: .6; }

@media (max-width: 1080px) {
  .leader-grid { grid-template-columns: 1fr; }
  .leader { grid-template-columns: 240px 1fr; }
  .price-grid.tiers { grid-template-columns: 1fr 1fr; }
  .membership { grid-template-columns: 1fr; }
  .council { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-photo { max-width: 420px; }
  .profile-layout { grid-template-columns: 1fr !important; }
  .profile-layout aside { position: static; }
  .tv-card { left: 16px; }
  .moments { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 200px 200px; }
  .moments .m1 { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 760px) {
  .leader { grid-template-columns: 1fr; }
  .leader-photo { max-width: 320px; width: 100%; margin-inline: auto; aspect-ratio: 4 / 4.4; }
  .leader-stats b { font-size: 1.4rem; }
  .price-grid, .price-grid.tiers { grid-template-columns: 1fr; }
  .price-line { grid-template-columns: 1fr auto; padding: 16px; }
  .price-line .ic { display: none; }
  .price-val { font-size: 1.2rem; }
  .shop-teaser { grid-template-columns: 1fr; }
  .council { grid-template-columns: 1fr; }
  .moments { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
  .moments .m1 { grid-column: auto; }
  .tv-card { position: relative; left: auto; bottom: auto; margin: -36px 16px 0; }
  .mode-switch { width: 100%; }
  .mode-switch button { flex: 1; justify-content: center; }
  .price-row { flex-direction: column; align-items: flex-start; }
  .sched-table { min-width: 680px; }
}

/* Header: không xuống dòng, gọn lại khi màn hình hẹp */
.nav-link { white-space: nowrap; }
.header-inner { gap: 20px; }
.main-nav > ul { gap: 0; }
.header-phone { white-space: nowrap; }
@media (max-width: 1520px) { .header-phone span { display: none; } .main-nav .nav-link { padding: 10px 11px; } }
@media (max-width: 1320px) { .brand-name { font-size: 1.15rem; } .brand-tag { font-size: .6rem; } .main-nav .nav-link { padding: 10px 8px; font-size: .88rem; } .header-cta .btn { padding: 0 14px; } }
@media (min-width: 1081px) and (max-width: 1200px) { .brand-text { display: none; } }
/* Tiêu đề khu vực dạng 2 cột: chỉ cột chữ là lưới */
.section-head.split > div { display: block; }
.section-head.split > div:first-child { display: grid; gap: 18px; max-width: 680px; }
.scroller-nav { display: flex !important; flex-direction: row; gap: 10px; }
.tv-icon .ic { width: 22px; height: 22px; stroke-width: 1.8; }

/* Danh sách trong bài: không dùng flex để chữ đậm + chữ thường chảy cùng dòng */
.prose ul li, .wc-single .woocommerce-Tabs-panel ul li, .modal-body li { display: block; position: relative; padding-left: 22px; }
.prose ul li::before, .wc-single .woocommerce-Tabs-panel ul li::before, .modal-body li::before { position: absolute; left: 2px; top: .72em; margin: 0; }
.prose ol li { display: block; position: relative; padding-left: 38px; }
.prose ol li::before { position: absolute; left: 0; top: .2em; margin: 0; }
.prose li > ul, .prose li > ol { margin-top: 8px; }

.aside-creds li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .86rem; line-height: 1.5; }
.aside-creds li:last-child { border: 0; }
.aside-creds .ic { width: 16px; height: 16px; color: var(--moss); flex: none; margin-top: 3px; }
.values { font-size: clamp(1.8rem, 3.6vw, 3.2rem); flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 760px) { .values { flex-wrap: wrap; white-space: normal; font-size: 1.7rem; } }

/* Đầu trang có ảnh: chữ luôn đọc được */
.page-hero.has-image::before { background: linear-gradient(90deg, rgba(18, 36, 29, .9) 0%, rgba(18, 36, 29, .7) 45%, rgba(18, 36, 29, .3) 100%), linear-gradient(0deg, rgba(18, 36, 29, .6), transparent 60%); }
.page-hero.has-image .eyebrow { color: var(--matcha); }
.page-hero.has-image .eyebrow .lotus { color: var(--matcha); }

/* Noto Serif Display: tinh chỉnh cỡ chữ các khối display */
.leader-body h3 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); }
.pcard-xl h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.tslide blockquote { font-size: clamp(1.35rem, 2.3vw, 1.95rem); line-height: 1.45; }
.course-hero h1, .profile-copy h1 { font-size: clamp(2.3rem, 4.2vw, 3.8rem); }
.article-hero h1 { font-size: clamp(2.1rem, 4vw, 3.5rem); }
.price-amount b { font-size: 2rem; }
.stat .num, .collage-badge .num, .founder-stats .num { font-variant-numeric: lining-nums; }

/* Header di động: luôn hiện nút menu */
.nav-toggle { flex: none; }
.brand { min-width: 0; }
@media (max-width: 760px) {
  .header-inner { gap: 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand-text { min-width: 0; }
  .brand-name { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-tag { font-size: .56rem; letter-spacing: .14em; white-space: nowrap; }
  .cart-link { width: 40px; height: 40px; }
  .nav-toggle { width: 42px; height: 42px; margin-left: 0; }
}
@media (max-width: 360px) { .brand-tag { display: none; } }
/* Thẻ nổi ở hero không đè nút liên hệ nổi */
.hero-card { right: calc(var(--gutter) + 72px); }
