/*
 * Design tokens port tu src/styles.css (Tailwind v4) sang CSS thuan.
 * Giu nguyen ten bien --brand/--primary... de de doi chieu voi ban React.
 */

/* Urbanist + Epilogue được tải qua Google Fonts (xem functions.php:medx_enqueue_fonts) */

:root {
  --radius: 0.75rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);

  --background: #ffffff;
  --foreground: #182939;
  --card: #ffffff;

  --primary: #243951;
  --primary-foreground: #ffffff;

  --brand: #0276c4;
  --brand-foreground: #ffffff;
  --brand-soft: #e6f2fb;
  --brand-strong: #045a94;

  --secondary: #fafbfc;
  --muted: #f5f7fa;
  --muted-foreground: #66707d;
  --accent: #eafaf1;
  --destructive: #d13a3a;
  --border: #e6e9ee;
  --input: #e6e9ee;
  --ring: #4a9d6e;

  --font-sans: "Epilogue", system-ui, sans-serif;
  --font-display: "Urbanist", system-ui, sans-serif;
}

* { box-sizing: border-box; }
dl, dd { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.5em;
  scroll-margin-top: 80px;
}
h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
@media (min-width: 640px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 1.875rem; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

@media (max-width: 768px) {
  body { line-height: 1.6; }
  button, a[role="button"], .tap, input, select, textarea {
    min-height: 44px;
  }
}

/* ---------- Layout helpers ---------- */
.container-x {
  margin-inline: auto;
  width: 100%;
  max-width: 1600px;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .container-x { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-x { padding-inline: 2.5rem; } }

.section-base  { position: relative; background: var(--background); color: var(--foreground); }
.section-muted { position: relative; background: color-mix(in srgb, var(--muted) 40%, transparent); color: var(--foreground); }
.section-brand { position: relative; background: color-mix(in srgb, var(--brand-soft) 40%, transparent); color: var(--foreground); }
.section-dark  { position: relative; background: var(--primary); color: var(--primary-foreground); }
.section-y     { padding-block: 2.5rem; }
@media (min-width: 640px)  { .section-y { padding-block: 3.5rem; } }
@media (min-width: 768px)  { .section-y { padding-block: 6rem; } }

/* ---------- Buttons ---------- */
.btn-primary, .btn-outline, .btn-on-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-foreground);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--brand) 20%, transparent);
}
.btn-primary:hover { background: var(--brand-strong); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--border);
}
.btn-outline:hover { border-color: color-mix(in srgb, var(--brand) 50%, transparent); background: color-mix(in srgb, var(--brand-soft) 50%, transparent); }

.btn-on-dark {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
}
.btn-on-dark:hover { background: rgba(255,255,255,.2); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--background) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  height: 64px;
  display: flex;
  align-items: center;
  transition: box-shadow .15s ease, border-color .15s ease;
}
@media (min-width: 1024px) { .site-header { height: 80px; } }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 8px rgba(0,0,0,.08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.site-header__logo img { height: 36px; width: auto; }
@media (min-width: 768px) { .site-header__logo img { height: 40px; } }
.site-header__nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .site-header__nav { display: flex; } }
.site-header__nav a {
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.site-header__nav a:hover { color: var(--foreground); }
.site-header__nav a.is-active { color: var(--brand-strong); }
.site-header__dropdown { position: relative; }
.site-header__dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,.1); padding: 0.5rem; display: none; flex-direction: column;
}
.site-header__dropdown:hover .site-header__dropdown-menu,
.site-header__dropdown:focus-within .site-header__dropdown-menu { display: flex; }
.site-header__dropdown-menu a { display: block; padding: 0.5rem 0.75rem; border-radius: var(--radius-md); font-size: 0.875rem; }
.site-header__dropdown-menu a:hover { background: var(--muted); color: var(--foreground); }
.site-header__cta { display: none; }
@media (min-width: 1024px) { .site-header__cta { display: inline-flex; } }
.site-header__burger { display: inline-flex; background: none; border: 0; padding: 0.5rem; }
@media (min-width: 1024px) { .site-header__burger { display: none; } }

.mobile-drawer {
  position: fixed; inset: 0; z-index: 60; display: none;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.mobile-drawer__panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: 85%; max-width: 320px;
  background: var(--background); padding: 1.25rem; overflow-y: auto;
}
.mobile-drawer__panel a { display: block; padding: 0.75rem 0.25rem; font-weight: 500; }
.mobile-drawer__panel a.is-active { color: var(--brand-strong); background: var(--muted); border-radius: var(--radius-md); }
.mobile-drawer__submenu { padding-left: 1rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 6rem; background: var(--primary); color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(4, 1fr); } }
.site-footer__col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.75rem; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer p,
.site-footer li,
.site-footer a {
  line-height: 1.5;
}
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 0;
  padding-block: 1.25rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem;
}
.site-footer__bottom p { margin: 0; opacity: .7; }

/* ---------- Mobile CTA bar ---------- */
.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; gap: 0.5rem; padding: 0.5rem; background: var(--background);
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) { .mobile-cta-bar { display: none; } }
.mobile-cta-bar .btn-primary, .mobile-cta-bar .btn-outline { flex: 1; }

/* ---------- Chat widgets ---------- */
.chat-widgets { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40; display: none; flex-direction: column; gap: 0.75rem; }
@media (min-width: 768px) { .chat-widgets { display: flex; } }
.chat-widgets__btn {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.2), 0 0 0 4px rgba(255,255,255,.4);
  transition: transform .2s ease, opacity .2s ease, background-color .2s ease;
}
.chat-widgets__btn:hover { transform: scale(1.05); }
.chat-widgets__btn--zalo { background: #0068FF; }
.chat-widgets__btn--zalo:hover { background: #0057d9; }
.chat-widgets__btn--messenger { background: linear-gradient(135deg, #00B2FF, #006AFF, #A033FF); }
.chat-widgets__btn--messenger:hover { opacity: .9; }
.chat-widgets__btn--call { background: var(--brand-strong); }
.chat-widgets__btn--call:hover { opacity: .9; }

/* ---------- Cards ---------- */
.card {
  transition: border-color .2s ease, box-shadow .2s ease;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-2xl);
  padding: 1.5rem;
}
/* Equal-height cards khi la truc tiep grid item cua .card-grid (grid stretch mac dinh) —
   KHONG dung height:100% chung cho .card, vi khi .card nam sau trong 1 grid item bi stretch
   (vi du <article> trong single-kien_thuc.php), no gay vong lap tinh chieu cao khien .card
   phinh to bang toan bo chieu cao cha, day toan bo noi dung phia sau xuong rat xa. */
.card-grid > .card, .card-grid > [data-tab-category] > .card { height: 100%; }
.card-grid > [data-tab-category] { display: flex; }
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Hover: khớp bản React (hover:border-brand hover:shadow-lg trên mọi card tương tác) */
.card:hover, a.card:hover { border-color: var(--brand); box-shadow: 0 10px 25px rgba(0,0,0,.08); }

.social-icon { width: 16px; height: 16px; color: #fff; }

/* Callout chèn xen kẽ trong nội dung bài kiến thức (post_content) — khớp React <aside> block */
.callout-inline {
  border-color: color-mix(in srgb, var(--brand) 20%, transparent);
  background: color-mix(in srgb, var(--brand-soft) 30%, transparent);
  margin-block: 1.5rem;
}
.callout-inline strong { display: block; font-weight: 600; color: var(--primary); }
.callout-inline p { margin-top: .375rem; font-size: .9rem; color: var(--muted-foreground); }
.callout-inline a.btn-outline { margin-top: .75rem; display: inline-flex; }

/* Icon box trong card (5 module) đổi màu khi hover card cha, giống group-hover của React */
.card-icon-box { transition: background-color .2s ease; }
.card:hover .card-icon-box { background: var(--brand-soft); }

/* Mũi tên "Xem thêm →" trượt sang phải khi hover, giống group-hover:translate-x-1 */
.link-arrow { display: inline-block; transition: transform .2s ease; }
.card:hover .link-arrow, a:hover .link-arrow { transform: translateX(4px); }

/* Vòng sáng mờ ở góc segment-card, đậm hơn khi hover — giống blur blob của React */
.segment-card__glow {
  position: absolute; right: -2.5rem; top: -2.5rem; height: 8rem; width: 8rem;
  border-radius: 50%; pointer-events: none;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  filter: blur(24px);
  transition: background-color .2s ease;
}
.segment-card:hover .segment-card__glow { background: color-mix(in srgb, var(--brand) 20%, transparent); }

/* ---------- Accordion (FAQ/TOC) ---------- */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; background: none; border: 0; font-weight: 600; text-align: left; cursor: pointer;
}
.accordion-panel { display: none; padding-bottom: 1rem; color: var(--muted-foreground); }
.accordion-item.is-open .accordion-panel { display: block; }
.accordion-item.is-open .accordion-trigger .icon { transform: rotate(180deg); }

/* ---------- Tabs ---------- */
.tabs-list { display: flex; gap: 0.5rem; overflow-x: auto; border-bottom: 1px solid var(--border); }
.tabs-trigger { padding: 0.75rem 1rem; border: 0; background: none; font-weight: 500; white-space: nowrap; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs-trigger.is-active { border-color: var(--brand); color: var(--brand); }
.tabs-panel { display: none; }
.tabs-panel.is-active { display: block; }

/* ---------- Carousel (screenshots) ---------- */
.carousel { position: relative; overflow: hidden; }
.carousel__track { display: flex; gap: 1rem; transition: transform .3s ease; }
.carousel__slide { flex: 0 0 auto; width: 85%; }
@media (min-width: 768px) { .carousel__slide { width: 45%; } }
.carousel__nav { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
.carousel__nav button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--background); cursor: pointer; }

/* ---------- Carousel scroll-snap (testimonial trang chủ, case study segment...) prev/next buttons ---------- */
.carousel-btn {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%); z-index: 2;
  width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--border);
  background: var(--background); display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.1); transition: background-color .2s ease;
}
.carousel-btn--next { left: auto; right: 0; }
@media (min-width: 768px) { .carousel-btn--prev { left: -1rem; } .carousel-btn--next { left: auto; right: -1rem; } }
.carousel-btn:hover { background: var(--brand-soft); }
.carousel-btn:disabled {
  cursor: not-allowed;
  opacity: .5;
  pointer-events: none;
}

/* ---------- Pricing table ---------- */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-card { position: relative; display: flex; flex-direction: column; transition: box-shadow .2s ease; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; }
.pricing-card .js-open-consult { margin-top: auto; }
.pricing-card--featured { border-color: var(--brand); box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 15%, transparent); }
.pricing-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,.1); }
.pricing-card--featured:hover { box-shadow: 0 12px 30px color-mix(in srgb, var(--brand) 22%, transparent); }
.pricing-card__price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.pricing-hero-title { font-size: 2.25rem; }
@media (min-width: 640px) { .pricing-hero-title { font-size: 3rem; } }
.pricing-card__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: var(--brand);
  color: var(--brand-foreground);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.43; }
.comparison-table th, .comparison-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { display: flex; gap: 0.5rem; font-size: 0.8rem; color: var(--muted-foreground); flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--brand); }

/* ---------- TOC ---------- */
.toc-box { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; }
.toc-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.toc-box a { font-size: 0.9rem; color: var(--muted-foreground); }
.toc-box a:hover { color: var(--brand); }

.kt-layout { grid-template-columns: 1fr; }
.kt-layout--pillar { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .kt-layout { grid-template-columns: 260px 1fr; align-items: start; }
  .kt-layout--pillar { grid-template-columns: 260px 1fr; align-items: start; }
  .kt-layout .toc-box, .kt-layout--pillar .toc-box { position: sticky; top: 6rem; }
}

/* ---------- Form ---------- */
.form-grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.85rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.65rem 0.85rem; font-family: inherit; font-size: 0.9rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 20%, transparent);
}

.demo-trigger { transition: background-color .2s ease; }
.demo-trigger:hover { background: var(--brand-soft); }

/* ---------- Solution detail (giai_phap) ---------- */
.sol-hero { background: color-mix(in srgb, var(--brand-soft) 40%, transparent); }
.sol-hero__back {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; color: var(--muted-foreground);
}
.sol-hero__back:hover { color: var(--brand-strong); }
.sol-hero__back svg { width: 1rem; height: 1rem; }
.sol-hero__grid { margin-top: 1.5rem; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .sol-hero__grid { grid-template-columns: auto 1fr; } }
.sol-hero__icon {
  display: grid; place-items: center; height: 5rem; width: 5rem; border-radius: var(--radius-xl);
  background: var(--primary); color: var(--primary-foreground);
  box-shadow: 0 10px 25px color-mix(in srgb, var(--brand) 20%, transparent);
}
.sol-hero__icon svg { width: 2.5rem; height: 2.5rem; }
.sol-hero__code { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-strong); }
.sol-hero__title { margin-top: 0.5rem; font-size: 1.875rem; font-weight: 700; color: var(--primary); }
@media (min-width: 640px) { .sol-hero__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .sol-hero__title { font-size: 3rem; } }
.sol-hero__tagline { margin-top: 0.75rem; font-size: 1rem; color: var(--muted-foreground); }
@media (min-width: 640px) { .sol-hero__tagline { font-size: 1.125rem; } }

.sol-intro { max-width: 48rem; margin-inline: auto; font-size: 1rem; line-height: 1.75; color: color-mix(in srgb, var(--foreground) 90%, transparent); }

.sol-quote {
  max-width: 48rem; margin-inline: auto; border-radius: var(--radius-2xl); border: 1px solid var(--border);
  background: linear-gradient(to bottom right, color-mix(in srgb, var(--brand-soft) 60%, transparent), var(--card));
  padding: 2rem;
}
@media (min-width: 768px) { .sol-quote { padding: 2.5rem; } }
.sol-quote svg { width: 2rem; height: 2rem; color: var(--brand-strong); }
.sol-quote blockquote { margin: 1rem 0 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; color: var(--primary); }
@media (min-width: 768px) { .sol-quote blockquote { font-size: 1.5rem; } }
.sol-quote figcaption { margin-top: 1rem; font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); }

.sol-features { margin-top: 2rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .sol-features { grid-template-columns: repeat(2, 1fr); } }
.sol-feature { display: flex; gap: 1rem; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--card); padding: 1.25rem; }
@media (min-width: 640px) { .sol-feature { padding: 1.5rem; } }
.sol-feature__icon { display: grid; place-items: center; flex-shrink: 0; height: 2.75rem; width: 2.75rem; border-radius: var(--radius-lg); background: var(--brand-soft); color: var(--brand-strong); }
.sol-feature__icon svg { width: 1.25rem; height: 1.25rem; }
.sol-feature__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--primary); margin: 0; }
.sol-feature__desc { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

.sol-shots-head { max-width: 48rem; margin-inline: auto; text-align: center; }
.sol-shots-head h2 { margin-top: 0.75rem; }
.sol-shots-head p { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }

.sol-slider { position: relative; margin-top: 2.5rem; }
.sol-slider__viewport { overflow: hidden; border-radius: var(--radius-2xl); }
.sol-slider__track { display: flex; transition: transform .35s ease; }
.sol-slider__slide { min-width: 0; flex: 0 0 100%; padding-inline: 0.5rem; }
@media (min-width: 768px) { .sol-slider__slide { flex: 0 0 50%; } }
.sol-slider__card { overflow: hidden; border-radius: var(--radius-2xl); border: 1px solid var(--border); background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.sol-slider__card img { aspect-ratio: 16/10; width: 100%; background: var(--muted); object-fit: cover; object-position: top; }
.sol-slider__caption { border-top: 1px solid var(--border); background: color-mix(in srgb, var(--muted) 30%, transparent); padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--muted-foreground); }
.sol-slider__nav {
  position: absolute; top: 50%; z-index: 10; display: grid; place-items: center;
  height: 2.5rem; width: 2.5rem; border-radius: 50%; transform: translateY(-50%);
  border: 1px solid var(--border); background: color-mix(in srgb, var(--card) 90%, transparent);
  color: var(--primary); box-shadow: 0 4px 12px rgba(0,0,0,.12); backdrop-filter: blur(4px);
  cursor: pointer; transition: background-color .15s ease;
}
.sol-slider__nav:hover { background: var(--card); }
.sol-slider__nav svg { width: 1.25rem; height: 1.25rem; }
.sol-slider__nav--prev { left: 0.5rem; }
.sol-slider__nav--next { right: 0.5rem; }
@media (min-width: 768px) { .sol-slider__nav--prev { left: 1rem; } .sol-slider__nav--next { right: 1rem; } }
.sol-slider__dots { margin-top: 1.25rem; display: flex; justify-content: center; gap: 0.5rem; }
.sol-slider__dot { height: 0.5rem; width: 0.5rem; border-radius: 999px; background: var(--border); border: 0; padding: 0; cursor: pointer; transition: width .2s ease, background-color .2s ease; }
.sol-slider__dot.is-active { width: 1.5rem; background: var(--brand-strong); }

.sol-benefits { margin-top: 2rem; display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sol-benefits { grid-template-columns: repeat(2, 1fr); } }
.sol-benefit { display: flex; align-items: flex-start; gap: 0.75rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card); padding: 1rem; font-size: 0.875rem; }
.sol-benefit svg { margin-top: 0.125rem; width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--brand-strong); }

.sol-usecases { margin-top: 2rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .sol-usecases { grid-template-columns: repeat(3, 1fr); } }
.sol-usecase { border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--card); padding: 1.5rem; }
.sol-usecase h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--primary); margin: 0; }
.sol-usecase p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

.sol-cta-box { border-radius: var(--radius-2xl); background: var(--primary); padding: 2rem; text-align: center; color: var(--primary-foreground); }
@media (min-width: 768px) { .sol-cta-box { padding: 3rem; } }
.sol-cta-box h2 { font-size: 1.5rem; font-weight: 700; }
@media (min-width: 640px) { .sol-cta-box h2 { font-size: 1.875rem; } }
.sol-cta-box p { max-width: 36rem; margin: 0.75rem auto 0; font-size: 0.875rem; opacity: 0.8; }
.sol-cta-box__actions { margin-top: 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; }
@media (min-width: 640px) { .sol-cta-box__actions { flex-direction: row; } }
.sol-cta-box .btn-outline { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.sol-cta-box .btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

/* ---------- Archive Câu chuyện khách hàng ---------- */
.stories-hero { position: relative; overflow: hidden; background: var(--primary); color: var(--primary-foreground); }
.stories-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.25; display: none; }
@media (min-width: 768px) { .stories-hero__bg { display: block; } }
.stories-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to right, var(--primary), color-mix(in srgb, var(--primary) 90%, transparent), color-mix(in srgb, var(--primary) 40%, transparent)); }
.stories-hero__inner { position: relative; padding-block: 3.5rem; }
@media (min-width: 768px) { .stories-hero__inner { padding-block: 5rem; } }
.stories-hero__title { margin-top: 0.75rem; max-width: 48rem; font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; line-height: 1.2; }
@media (min-width: 640px) { .stories-hero__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .stories-hero__title { font-size: 3rem; } }
.stories-hero__desc { margin-top: 1rem; max-width: 36rem; font-size: 0.875rem; color: rgba(255,255,255,.8); }
@media (min-width: 640px) { .stories-hero__desc { font-size: 1rem; } }
.stories-hero__stats { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 48rem; }
@media (min-width: 640px) { .stories-hero__stats { grid-template-columns: repeat(4, 1fr); } }
.stories-hero__stat { border-radius: var(--radius-xl); border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.1); padding: 1rem; backdrop-filter: blur(4px); }
.stories-hero__stat dt { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.stories-hero__stat dd { margin-top: 0.25rem; font-size: 0.75rem; color: rgba(255,255,255,.75); }

.stories-logos { border-bottom: 1px solid var(--border); background: var(--background); }
.stories-logos__inner { padding-block: 2rem; }
.stories-logos p { text-align: center; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); }
.stories-logos ul { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 1rem; list-style: none; padding: 0; }
@media (min-width: 640px) { .stories-logos ul { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .stories-logos ul { grid-template-columns: repeat(7, 1fr); } }
.stories-logos li { display: flex; align-items: center; justify-content: center; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--card); padding: 0.75rem; }
.stories-logos img { height: 3rem; width: auto; object-fit: contain; }

.story-featured { display: grid; overflow: hidden; border-radius: var(--radius-2xl); border: 1px solid var(--border); background: var(--card); }
@media (min-width: 1024px) { .story-featured { grid-template-columns: repeat(2, 1fr); } }
.story-featured__img { height: 14rem; width: 100%; object-fit: cover; }
@media (min-width: 640px) { .story-featured__img { height: 18rem; } }
@media (min-width: 1024px) { .story-featured__img { height: 100%; } }
.story-featured__body { padding: 1.5rem; }
@media (min-width: 640px) { .story-featured__body { padding: 2rem; } }
.story-featured__meta { display: flex; align-items: center; gap: 0.75rem; }
.story-featured__logo { height: 3rem; width: 3rem; flex-shrink: 0; object-fit: contain; }
.story-featured__industry { font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.story-featured__sub { font-size: 0.75rem; color: var(--muted-foreground); }
.story-featured h2 { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--primary); }
@media (min-width: 640px) { .story-featured h2 { font-size: 1.875rem; } }
.story-featured h2 a { color: inherit; }
.story-featured__quote { margin-top: 1rem; display: flex; gap: 0.5rem; font-size: 0.9375rem; font-style: italic; color: color-mix(in srgb, var(--foreground) 80%, transparent); }
.story-featured__quote svg { margin-top: 0.25rem; width: 1rem; height: 1rem; flex-shrink: 0; color: var(--brand-strong); }
.story-featured__metrics { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.story-featured__metrics dd { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--brand-strong); }
.story-featured__metrics dt { margin-top: 0.25rem; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }
.story-featured__metric { border-radius: var(--radius-xl); background: color-mix(in srgb, var(--brand-soft) 50%, transparent); padding: 0.75rem; text-align: center; }

.story-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--card); transition: box-shadow .2s ease, border-color .2s ease; }
.story-card:hover { border-color: var(--brand); box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.story-card__media { position: relative; }
.story-card__media img.story-card__cover { height: 10rem; width: 100%; object-fit: cover; }
.story-card__tag { position: absolute; left: 0.75rem; top: 0.75rem; border-radius: 999px; background: rgba(255,255,255,.9); padding: 0.25rem 0.625rem; font-size: 0.6875rem; font-weight: 600; color: var(--brand-strong); backdrop-filter: blur(4px); }
.story-card__logo { position: absolute; bottom: -1.5rem; right: 1rem; height: 3.5rem; width: 3.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--background); object-fit: contain; padding: 0.5rem; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.story-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; padding-top: 2rem; }
.story-card__body h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--primary); }
.story-card__body h3 a { color: inherit; }
.story-card:hover h3 { color: var(--brand-strong); }
.story-card__sub { margin-top: 0.5rem; font-size: 0.75rem; color: var(--muted-foreground); }
.story-card__metrics { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; border-radius: var(--radius-xl); background: color-mix(in srgb, var(--brand-soft) 40%, transparent); padding: 0.75rem; }
.story-card__metrics dd { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--brand-strong); text-align: center; }
.story-card__metrics dt { margin-top: 0.125rem; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); text-align: center; line-height: 1.2; }
.story-card__link { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; font-weight: 600; color: var(--brand-strong); }
.story-card__link:hover { text-decoration: underline; }

/* ---------- Modal (Đăng ký tư vấn) ---------- */
.medx-modal { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 1rem; }
.medx-modal.is-open { display: flex; }
.medx-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.medx-modal__panel { position: relative; background: var(--background); border-radius: var(--radius-xl); padding: 2rem; max-width: 36rem; width: 100%; max-height: 90vh; overflow-y: auto; }
.medx-modal__close { position: absolute; top: 1rem; right: 1rem; background: none; border: 0; cursor: pointer; }

/* ---------- Trang Kiến thức (archive-kien_thuc) — khớp bản React ---------- */
.page-template-archive-kien_thuc-php .eyebrow {
  display: inline-block;
  background: var(--brand-soft);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}
.page-template-archive-kien_thuc-php .card[data-pillar="1"] {
  border-width: 2px;
  border-color: color-mix(in srgb, var(--brand) 30%, transparent);
}
.page-template-archive-kien_thuc-php .card[data-pillar="1"]:hover {
  border-color: var(--brand);
}
.page-template-archive-kien_thuc-php .tabs-list {
  border-bottom: 0;
  flex-wrap: wrap;
}
.page-template-archive-kien_thuc-php .tabs-trigger {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted-foreground);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.page-template-archive-kien_thuc-php .tabs-trigger.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-foreground);
}
