/* Vạn Đạt Care — trang chủ.
   Giao diện bám theo mẫu tham khảo: font Roboto, màu đo trực tiếp từ ảnh mẫu.
   Các màu xanh đã sẫm nhẹ so với mẫu (mã gốc ghi bên cạnh) để chữ đạt độ tương phản 4.5:1
   theo WCAG AA; nút cam giữ màu mẫu, chữ trên nút màu xanh đậm. Người dùng chọn ngày 07/10/2026. */

:root {
  --navy: #142351;          /* tiêu đề */
  --blue: #147DB5;          /* nút, liên kết, tiêu đề phụ (mẫu: #168CCA) */
  --blue-nav: #227DB0;      /* thanh menu (mẫu: #2891CC) */
  --blue-box: #107CBD;      /* ô đăng ký tư vấn (mẫu: #1080C3) */
  --blue-dark: #0F6A9C;     /* liên kết trên nền xanh nhạt, nền kem */
  --orange: #F58220;        /* nút hành động chính, chữ trên nút dùng --navy */
  --orange-dark: #E57709;
  --orange-text: #B05508;   /* chữ cam trên nền sáng, ví dụ số hotline */
  --green: #02884F;         /* thẻ dịch vụ cột 1 (mẫu: #02A15E) */
  --teal: #068485;          /* thẻ dịch vụ cột 2 (mẫu: #068A8B) */
  --ocean: #017CAB;         /* thẻ dịch vụ cột 3 */
  --ice: #DFF2FB;           /* nền ảnh thẻ nhân sự */
  --gray-bg: #F2F2F2;       /* nền header */
  --text: #333333;
  --muted: #666666;
  --line: #E5E5E5;
  --dark-grad: linear-gradient(135deg, #1F5A93 0%, #19608A 55%, #136967 100%);
  --footer-grad: linear-gradient(135deg, #286AB1 0%, #11757D 100%);

  --font: "Roboto", Arial, Helvetica, sans-serif;
  --container: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

/* Biểu tượng: SVG nhúng thay cho font Font Awesome (tools/build.mjs). Giữ thẻ <i class="fa-...">
   và đúng kích thước, vị trí như font cũ: cao 1em, rộng theo tỉ lệ biểu tượng, phần dưới thò
   xuống dưới chân chữ 0.125em. SVG nằm trên dòng (inline) để thẻ <i> có chân chữ như một ký tự. */
i[class*="fa-"] {
  display: inline-block;
  height: 1em;
  font-style: normal;
  line-height: 1;
}

i[class*="fa-"] > svg {
  display: inline-block;
  width: auto;
  height: 1em;
  overflow: visible;
  vertical-align: -.125em;
  fill: currentColor;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Ô ẩn chống máy tự điền form: người dùng và trình đọc màn hình đều không thấy */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -50px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
}

.skip-link:focus {
  top: 8px;
}

.demo-bar {
  padding: 6px 12px;
  background: #142351;
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.center {
  text-align: center;
}

/* Nút */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: 0;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

/* Nút hơi lún xuống khi bấm, cho cảm giác đã nhận thao tác */
.btn:active {
  transform: translateY(1px) scale(.98);
}

.btn:disabled {
  opacity: .7;
  cursor: progress;
  transform: none;
}

.btn--blue {
  background: var(--blue);
}

.btn--blue:hover {
  background: #0F76AC;
}

.btn--orange {
  background: var(--orange);
  color: var(--navy);
}

.btn--orange:hover {
  background: var(--orange-dark);
}

.btn--sm {
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.btn--wide {
  min-width: 208px;
  padding: 15px 30px;
}

.btn--icon {
  padding: 10px 18px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* Tiêu đề khối */

.title {
  color: var(--navy);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
}

.title span {
  display: block;
  color: var(--blue);
}

.section-head {
  max-width: 860px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
}

.tag-outline {
  display: inline-block;
  padding: 4px 20px;
  border: 1px solid var(--navy);
  border-radius: 20px;
  color: var(--navy);
  font-size: 14px;
  text-transform: uppercase;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-top {
  background: var(--gray-bg);
}

.header-top__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.logo__mark {
  width: 52px;
  height: 52px;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

/* Cỡ chữ chọn để dòng chữ phụ dài bằng chữ "VẠN ĐẠT", giống file logo */
.logo__name {
  color: var(--navy);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .5px;
}

.logo__tag {
  margin-top: 5px;
  color: #168CCA; /* màu của logo, giữ đúng file logo, không theo --blue */
  font-size: 9.5px;
  font-weight: 500;
  white-space: nowrap;
}

.logo--white .logo__name,
.logo--white .logo__tag {
  color: #fff;
}

.search {
  position: relative;
  flex: 1;
  max-width: 455px;
}

.search input {
  width: 100%;
  height: 40px;
  padding: 0 46px 0 14px;
  border: 1px solid #DDDDDD;
  border-radius: 20px;
  background: #fff;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
}

.search button {
  position: absolute;
  top: 0;
  right: 4px;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 18px;
  cursor: pointer;
}

.hotline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-text);
  flex: none;
}

.hotline i {
  color: var(--orange);
  font-size: 26px;
}

.hotline span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.hotline small {
  font-size: 14px;
}

.hotline strong {
  font-size: 17px;
  font-weight: 500;
}

.header-top__buttons {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex: none;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: var(--blue-nav);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* Thanh menu xanh */

.main-nav {
  background: var(--blue-nav);
}

.main-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-nav__list {
  display: flex;
  flex-wrap: wrap;
}

.main-nav__list > li {
  position: relative;
}

.main-nav__list > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 11px 9px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav__list > li > a i {
  font-size: 10px;
}

.main-nav__list > li:first-child > a {
  padding-left: 0;
}

.main-nav__list > li > a:hover {
  color: #DFF2FB;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 250px;
  padding: 6px 0;
  background: #fff;
  border-top: 3px solid var(--orange);
  box-shadow: 0 8px 20px rgba(20, 35, 81, .15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sub-menu a {
  display: block;
  padding: 8px 18px;
  color: var(--text);
  font-size: 14px;
}

.sub-menu a:hover {
  background: var(--ice);
  color: var(--blue);
}

.flag {
  width: 30px;
  height: 20px;
}

/* Banner trượt */

.hero {
  position: relative;
  height: 430px;
  overflow: hidden;
  background: #0C4E87;
}

/* Mỗi slide có hai ảnh: --bg cắt ngang cho máy tính, --bg-sm gần vuông cho điện thoại.
   Trình duyệt chỉ tải ảnh đang dùng. */
.hero__slide {
  --hero-img: var(--bg);
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 70, 135, .82) 0%, rgba(9, 70, 135, .45) 55%, rgba(6, 60, 110, .7) 100%),
    var(--hero-img) center / cover no-repeat;
  opacity: 0;
  transition: opacity .8s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__content {
  padding-top: 52px;
  text-align: center;
  color: #fff;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 22px;
  border: 2px solid rgba(255, 255, 255, .65);
  border-radius: 10px;
  background: linear-gradient(90deg, var(--green), var(--teal));
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero__pill i {
  font-size: 16px;
}

.hero__title {
  max-width: 900px;
  margin: 16px auto 0;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.hero__sub {
  margin-top: 10px;
  font-size: 18px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 50px;
  height: 50px;
  border: 0;
  background: rgba(20, 35, 81, .55);
  color: #fff;
  font-size: 20px;
  transform: translateY(-50%);
  cursor: pointer;
}

.hero__arrow:hover {
  background: rgba(20, 35, 81, .8);
}

.hero__arrow--prev {
  left: max(16px, calc(50% - 600px));
}

.hero__arrow--next {
  right: max(16px, calc(50% - 600px));
}

/* Ô đăng ký tư vấn */

.booking {
  position: relative;
  z-index: 5;
  margin-top: -78px;
}

.booking__box {
  max-width: 650px;
  margin: 0 auto;
  padding: 16px 40px 18px;
  border-radius: 8px;
  background: var(--blue-box);
  box-shadow: 0 10px 25px rgba(16, 128, 195, .3);
  color: #fff;
}

.booking__title {
  margin-bottom: 12px;
  font-size: 21px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.booking__row {
  display: flex;
  gap: 12px;
}

.booking__row input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 15px;
}

.booking__row .btn {
  min-width: 172px;
}

.booking__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.booking__consent input {
  margin-top: 2px;
  accent-color: var(--orange);
}

.booking__consent a {
  text-decoration: underline;
}

.booking__msg {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
}

.booking__msg:empty {
  display: none;
}

.booking__msg.is-error {
  color: #FFE08A;
}

/* Giới thiệu */

.about {
  padding: 50px 0 70px;
}

.about__grid {
  display: grid;
  grid-template-columns: 550px minmax(0, 1fr);
  gap: 16px 15px;
  align-items: center;
}

.about__media {
  position: relative;
}

.about__media img {
  width: 100%;
  height: 395px;
  border-radius: 10px;
  object-fit: cover;
}

.about__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  transform: translate(-50%, -50%);
}

.about__content {
  padding-left: 16px;
}

.about__content .title {
  margin: 18px 0 16px;
}

.text {
  color: var(--muted);
  text-align: justify;
}

.text strong {
  color: var(--text);
}

.about__content .btn {
  margin-top: 22px;
}

/* Dịch vụ */

.services {
  padding: 20px 0 60px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 6px;
  color: #fff;
}

.service-card img {
  width: 100%;
  height: 203px;
  object-fit: cover;
}

.service-card__body {
  flex: 1;
  padding: 14px 16px 14px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.service-card p {
  margin-top: 8px;
  font-size: 15px;
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card__body a {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 24px;
  margin-top: 8px;
  font-size: 15px;
}

.service-card--green .service-card__body { background: var(--green); }
.service-card--teal .service-card__body { background: var(--teal); }
.service-card--blue .service-card__body { background: var(--ocean); }

/* Đội ngũ */

.team {
  padding: 40px 0 60px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 38px;
}

.member {
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(20, 35, 81, .08);
}

.member__photo {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 265px;
  background: var(--ice);
}

.member__photo svg {
  width: 150px;
  height: 175px;
  fill: #B8DDF0;
}

.member__body {
  padding: 18px 18px 20px;
}

.member__role {
  font-size: 13px;
}

.member__name {
  margin-top: 6px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
}

.member__desc {
  margin-top: 8px;
  color: var(--blue);
  font-size: 15px;
  line-height: 1.55;
}

/* Quy trình */

.process {
  padding: 40px 0 50px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 140px, rgba(120, 190, 255, .07) 140px 142px),
    var(--dark-grad);
  color: #fff;
}

.process__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 476px;
  gap: 30px;
  margin-bottom: 26px;
}

.process__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
}

.process__intro h3 {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  font-size: 17px;
  font-weight: 700;
}

.process__intro p {
  margin-top: 16px;
}

.process__slider {
  position: relative;
}

.process__viewport {
  position: relative;
  min-height: 420px;
}

.process__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s;
}

.process__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.process__image {
  margin-left: 350px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 0 0 6px rgba(9, 40, 80, .35);
}

.process__image img {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  object-fit: cover;
}

.process__card {
  position: absolute;
  top: 34px;
  left: 4px;
  z-index: 2;
  width: 457px;
  padding: 26px 20px 30px;
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.process__card h3 {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.process__card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 3px;
  background: var(--blue);
}

.process__card p {
  text-align: justify;
}

.process__card .btn {
  margin-top: 18px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  color: #fff;
  transform: translateY(-50%);
  cursor: pointer;
}

.slider-arrow--next {
  background: #fff;
  color: var(--navy);
}

.slider-arrow--prev {
  left: -52px;
}

.slider-arrow--next {
  right: -52px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* Chấm nhìn thấy 9px, vùng bấm 24px (viền trong suốt bao quanh) */
.slider-dots button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 7.5px solid transparent;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45) content-box;
  cursor: pointer;
}

.slider-dots button[aria-selected="true"] {
  background-color: #fff;
}

/* Câu chuyện và tin tức */

.posts {
  padding: 50px 0 0;
}

/* Đường kẻ cuối khối chỉ dài bằng phần nội dung, không tính lề của container */
.posts .container::after {
  content: "";
  display: block;
  margin-top: 40px;
  border-bottom: 1px solid var(--line);
}

.nowrap {
  white-space: nowrap;
}

.posts__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.posts__head p {
  margin-top: 6px;
  color: var(--muted);
}

.btn-more {
  flex: none;
  padding: 9px 18px;
  border: 1px solid #DDDDDD;
  border-radius: 3px;
  color: var(--muted);
  font-size: 13px;
}

.btn-more:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.posts__grid {
  display: grid;
  grid-template-columns: 480px 290px minmax(0, 1fr);
}

.posts__col {
  padding: 0 22px;
  border-left: 1px solid var(--line);
}

.post--featured {
  padding-right: 22px;
}

.post img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.post--featured img {
  height: 343px;
}

.post h3 {
  color: #222;
  font-weight: 500;
  line-height: 1.5;
}

.post h3 a:hover {
  color: var(--blue);
}

.post--featured h3 {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 700;
}

.post--featured p {
  margin-top: 8px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post--card + .post--card {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.post--card img {
  height: 150px;
}

.post--card h3 {
  margin-top: 12px;
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post--row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 14px;
  align-items: center;
  padding: 10px 0 18px;
}

.post--row + .post--row {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.post--row h3 {
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post--row img {
  height: 76px;
  border-radius: 6px;
}

/* Đối tác */

.partners {
  padding: 70px 0 60px;
}

.partners__list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.partners__list li {
  display: grid;
  place-items: center;
  height: 64px;
  border: 1px dashed #C9D6E2;
  border-radius: 4px;
  color: #5B6B7B;
  font-size: 13px;
}

/* Chân trang */

/* Đệm dưới lớn để khi cuộn hết trang, dòng cuối không bị các nút nổi che */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 44px 0 84px;
  background: var(--footer-grad);
  color: #fff;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -160px;
  width: 520px;
  height: 520px;
  border: 70px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
}

.site-footer .container {
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr .8fr;
  gap: 40px;
  margin-top: 34px;
}

.footer-company {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.footer-grid p {
  margin-top: 6px;
  font-size: 14px;
}

.footer-title {
  margin: 20px 0 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-grid > div > .footer-title:first-child {
  margin-top: 0;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-contact i {
  width: 18px;
  margin-top: 4px;
  text-align: center;
}

.footer-contact a,
.footer-bottom a {
  text-decoration: underline;
}

.footer-list li {
  margin-bottom: 8px;
  font-size: 14px;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #fff;
  border-radius: 50%;
  font-size: 14px;
}

.social .social__zalo {
  width: auto;
  padding: 0 10px;
  border-radius: 17px;
  font-size: 12px;
  font-weight: 700;
}

.footer-grid .footer-note {
  margin-top: 20px;
  opacity: .85;
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .3);
  font-size: 14px;
}

.footer-bottom ul {
  display: flex;
  gap: 28px;
}

.footer-bottom a {
  text-decoration: none;
}

/* Popup đăng ký tư vấn (giống popup trong mẫu: trái quảng cáo, phải form) */

.popup {
  width: min(800px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.popup[open] {
  animation: popup-in .25s ease-out;
}

.popup::backdrop {
  background: rgba(10, 25, 50, .6);
}

@keyframes popup-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

html.popup-open {
  overflow: hidden;
}

.popup__inner {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  min-height: 560px;
}

.popup__promo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 18px 20px 0;
  background: linear-gradient(180deg, #E4F4FC 0%, #BFE6F7 100%);
  text-align: center;
}

.popup__brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.popup__mark {
  width: 20px;
  height: 20px;
}

.popup__headline {
  margin-top: 16px;
  color: var(--navy);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.popup__headline span {
  display: block;
  color: var(--blue);
}

.popup__free {
  margin-top: 8px;
  color: var(--orange-text);
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
}

.popup__chips {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.popup__chips li {
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.popup__chips i {
  margin-right: 4px;
  color: #FFE08A;
}

.popup__promise {
  margin-top: 12px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.popup__photo {
  width: calc(100% + 40px);
  height: 170px;
  margin-top: auto;
  object-fit: cover;
}

.popup__body {
  position: relative;
  padding: 50px 40px 36px;
}

.popup__close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #888;
  border-radius: 50%;
  background: #fff;
  color: #555;
  font-size: 22px;
  cursor: pointer;
}

.popup__close:hover {
  border-color: var(--text);
  color: var(--text);
}

.popup__title {
  margin-bottom: 26px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.popup__field {
  margin-bottom: 16px;
}

.popup__field input,
.popup__field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #BBBBBB;
  border-radius: 2px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
}

.popup__field textarea {
  resize: vertical;
}

.popup__field [aria-invalid="true"] {
  border-color: #D93025;
}

.popup__error {
  margin-top: 4px;
  color: #D93025;
  font-size: 13px;
}

.popup__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
}

.popup__consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.popup__consent a {
  color: var(--blue);
  text-decoration: underline;
}

.popup__submit {
  width: 100%;
  margin-top: 22px;
  padding: 16px;
}

.popup__done {
  padding-top: 40px;
  text-align: center;
}

.popup__done > i {
  color: var(--green);
  font-size: 52px;
}

.popup__done h2 {
  margin: 14px 0 10px;
  color: var(--navy);
  font-size: 22px;
}

.popup__done a {
  color: var(--blue);
  font-weight: 700;
}

.popup__demo {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .popup__inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  /* Trên điện thoại chỉ giữ form để không phải cuộn trong popup */
  .popup__promo {
    display: none;
  }

  .popup__body {
    padding: 56px 20px 24px;
  }

  .popup__title {
    font-size: 18px;
  }
}

/* ===== Trang con (theo bố cục trang con của mẫu: nội dung trái, cột phụ phải) ===== */

.page {
  padding: 18px 0 60px;
}

.page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--blue);
}

.breadcrumb li + li::before {
  content: "»";
  margin-right: 6px;
  color: var(--blue);
}

.page-title {
  color: var(--navy);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
}

.page-lead {
  margin-top: 8px;
  color: var(--muted);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.page-meta i {
  margin-right: 5px;
}

.page-meta strong {
  color: var(--text);
}

/* Mục lục "Nội dung chính" */
.toc {
  margin: 18px 0 24px;
  border-radius: 4px;
  background: #EAF6FD;
}

.toc summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--navy);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary::after {
  content: "\f054";
  margin-left: auto;
  font-family: "Font Awesome 6 Free";
  font-size: 12px;
  font-weight: 900;
  transition: transform .2s ease;
}

.toc[open] summary::after {
  transform: rotate(90deg);
}

.toc__list {
  padding: 0 16px 14px 38px;
  list-style: decimal;
}

.toc__list ol {
  padding-left: 20px;
  list-style: disc;
}

.toc__list li {
  margin: 5px 0;
}

.toc__list a {
  color: var(--blue-dark);
}

.toc__list a:hover {
  text-decoration: underline;
}

/* Nội dung bài */
.article {
  font-size: 15px;
  line-height: 1.75;
}

.article p,
.article ul,
.article ol,
.article figure,
.article table,
.article .note {
  margin-top: 12px;
}

.article h2 {
  margin-top: 30px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  scroll-margin-top: 120px;
}

.article h3 {
  margin-top: 22px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  scroll-margin-top: 120px;
}

.article ul {
  padding-left: 22px;
  list-style: disc;
}

.article ol {
  padding-left: 22px;
  list-style: decimal;
}

.article li + li {
  margin-top: 6px;
}

.article a {
  color: var(--blue);
  text-decoration: underline;
}

.article figure img {
  width: 100%;
  max-height: 440px;
  border-radius: 6px;
  object-fit: cover;
}

.article figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  text-align: center;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.article th,
.article td {
  padding: 10px 12px;
  border: 1px solid #D5E3EC;
  text-align: left;
  vertical-align: top;
}

.article th {
  background: #EAF6FD;
  color: var(--navy);
}

.table-wrap {
  overflow-x: auto;
}

.note {
  padding: 14px 16px;
  border-left: 4px solid var(--orange);
  background: #FFF6EC;
}

.note--blue {
  border-left-color: var(--blue);
  background: #EAF6FD;
}

/* Cột phụ bên phải */
.sidebar {
  display: grid;
  gap: 32px;
}

.side-title {
  position: relative;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #CCCCCC;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.side-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 2px;
  background: var(--blue);
}

.side-links li {
  border-bottom: 1px solid var(--line);
}

.side-links a {
  position: relative;
  display: block;
  padding: 9px 0 9px 18px;
  font-size: 14px;
}

.side-links a::before {
  content: "»";
  position: absolute;
  left: 2px;
  color: var(--muted);
}

.side-links a:hover {
  color: var(--blue);
}

.side-post {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.side-post img {
  width: 92px;
  height: 64px;
  border-radius: 4px;
  object-fit: cover;
}

.side-post h3 {
  color: #222;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.side-post a:hover h3 {
  color: var(--blue);
}

.side-post time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* Khối "Đăng ký nhận tư vấn" */
.consult {
  overflow: hidden;
  border: 1px solid #CDE7F5;
  border-radius: 4px;
  background: #EAF6FD;
}

.consult__head {
  padding: 10px 14px;
  background: var(--blue);
  color: #fff;
  text-align: center;
}

.consult__head h2 {
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
}

.consult__head p {
  font-size: 13px;
}

.consult__form {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.consult__form input[type="text"],
.consult__form input[type="tel"],
.consult__form input[type="email"],
.consult__form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #D5E3EC;
  border-radius: 3px;
  background: #fff;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
}

.consult__form textarea {
  resize: vertical;
}

.consult__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.45;
}

.consult__consent input {
  flex: none;
  margin-top: 2px;
  accent-color: var(--blue);
}

.consult__consent a {
  color: var(--blue-dark);
  text-decoration: underline;
}

.consult__submit {
  justify-self: center;
  padding: 10px 28px;
  border-radius: 20px;
  font-size: 13px;
}

.consult__msg {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.consult__msg:empty {
  display: none;
}

.consult__msg.is-error {
  color: #D93025;
}

.consult__msg.is-ok {
  color: var(--green);
}

.consult--wide {
  margin-top: 40px;
}

.consult--wide .consult__form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 20px 24px;
}

.consult--wide textarea,
.consult--wide .consult__consent,
.consult--wide .consult__submit,
.consult--wide .consult__msg {
  grid-column: 1 / -1;
}

/* Trang danh sách (giống trang Chuyên khoa của mẫu) */
.list {
  margin-top: 10px;
}

.list-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 120px;
}

.list-item img {
  width: 100%;
  height: 160px;
  border-radius: 4px;
  object-fit: cover;
}

.list-item h2 {
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.list-item h2 a:hover {
  color: var(--blue);
}

.list-item p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.list-item ul {
  margin-top: 6px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  list-style: disc;
}

.list-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.list-item__meta a {
  color: var(--blue);
  font-weight: 500;
}

.list-item__tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  background: #FFF0E0;
  color: var(--orange-text);
  font-size: 12px;
}

.search-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 4px;
  background: #EAF6FD;
  font-size: 14px;
}

.search-note a {
  color: var(--blue);
  text-decoration: underline;
}

/* Các bước trong trang Quy trình */
.steps {
  counter-reset: step;
}

.article .steps {
  padding-left: 0;
  list-style: none;
}

.steps > li {
  position: relative;
  padding: 0 0 22px 66px;
}

.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.steps > li::after {
  content: "";
  position: absolute;
  top: 50px;
  bottom: 4px;
  left: 22px;
  width: 2px;
  background: #CDE7F5;
}

.steps > li:last-child::after {
  display: none;
}

.steps h3 {
  margin-top: 8px;
}

/* Câu hỏi thường gặp */
.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 14px 30px 14px 0;
  color: var(--navy);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 10px;
  right: 4px;
  color: var(--blue);
  font-size: 22px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  margin: 0 0 14px;
}

/* Liên hệ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.contact-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid #CDE7F5;
  border-radius: 6px;
  background: #fff;
}

.contact-card > i {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #EAF6FD;
  color: var(--blue);
  font-size: 18px;
}

.contact-card h2 {
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-card p {
  margin-top: 4px;
  font-size: 14px;
}

.contact-card a {
  color: var(--blue);
  font-weight: 500;
}

.map {
  width: 100%;
  height: 360px;
  margin-top: 24px;
  border: 0;
  border-radius: 6px;
}

.legal-box {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid #CDE7F5;
  border-radius: 6px;
  background: #F7FBFE;
}

.legal-box dl {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
  font-size: 14px;
}

.legal-box dt {
  color: var(--muted);
}

.legal-box dd {
  margin: 0;
  font-weight: 500;
}

/* Thẻ figure có lề trái phải 40px mặc định của trình duyệt: bỏ để ảnh rộng bằng cột chữ */
.article figure {
  margin: 18px 0 0;
}

/* Ô ghi chú dài chiếm cả dòng trong form đăng ký bản rộng */
.consult--wide .consult__full {
  grid-column: 1 / -1;
}

.page-note {
  margin-top: 14px;
}

.list-note {
  margin-top: 24px;
}

.contact-card--address {
  margin-top: 16px;
}

/* Trang 404 */
.not-found {
  max-width: 720px;
  padding-top: 30px;
  padding-bottom: 30px;
  text-align: center;
}

.not-found__code {
  color: var(--blue);
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
}

.not-found .page-title {
  margin-top: 10px;
}

.not-found__search {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 26px auto 0;
}

.not-found__search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #BBBBBB;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 15px;
}

.not-found__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.not-found__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #CDE7F5;
  border-radius: 4px;
  background: #EAF6FD;
  color: var(--navy);
  font-weight: 500;
}

.not-found__links a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.not-found__help {
  margin-top: 26px;
  color: var(--muted);
}

.not-found__help a {
  color: var(--blue);
  font-weight: 500;
}

/* Danh sách đường dẫn là thẻ ol: bỏ số thứ tự mặc định */
.breadcrumb {
  padding: 0;
  list-style: none;
}

/* Thẻ nhân sự đặt trong bài: giữ kiểu thẻ, không theo kiểu chữ của bài */
.team-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0 0;
}

.article .member p {
  margin-top: 0;
}

.article .member__name {
  margin-top: 6px;
  color: var(--navy);
  font-size: 19px;
}

.article .member__desc {
  margin-top: 8px;
}

.article .member__photo {
  height: 210px;
}

/* Tô sáng mục menu của trang đang xem */
.main-nav__list > li > a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--orange);
}

@media (max-width: 991px) {
  .page__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .main-nav__list > li > a[aria-current="page"] {
    box-shadow: none;
    color: #FFE08A;
  }
}

@media (max-width: 640px) {
  .page-title {
    font-size: 22px;
  }

  .list-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .list-item img {
    height: 190px;
  }

  .consult--wide .consult__form,
  .contact-cards,
  .legal-box dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-box dt {
    margin-top: 6px;
  }
}

/* Nút nổi: hai nút liên hệ sát góc dưới bên trái, nút chat sát góc dưới bên phải */

.float-left {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  gap: 10px;
}

.btn--float {
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 15px;
  text-transform: none;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .15);
}

.float-chat {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 6px 18px rgba(22, 140, 202, .4);
}

/* Màn hình vừa */

@media (max-width: 1199px) {
  .search {
    display: none;
  }

  .main-nav__list > li > a {
    padding: 11px 7px;
    font-size: 13px;
  }

  .about__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .posts__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .slider-arrow--prev { left: -8px; }
  .slider-arrow--next { right: -8px; }
}

/* Máy tính bảng */

@media (max-width: 991px) {
  .hotline,
  .header-top__buttons {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav__list {
    flex-direction: column;
  }

  .main-nav__list > li > a,
  .main-nav__list > li:first-child > a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    font-size: 14px;
  }

  .sub-menu {
    position: static;
    display: none;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }

  .main-nav__extra {
    display: none;
  }

  .about__grid,
  .process__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__content {
    padding-left: 0;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process__image {
    margin-left: 0;
  }

  .process__card {
    position: relative;
    top: 0;
    left: 0;
    width: auto;
    margin: 0 0 -10px;
  }

  .process__viewport {
    min-height: 0;
  }

  .process__image img {
    height: 300px;
  }

  .slider-arrow {
    top: auto;
    bottom: -52px;
    transform: none;
  }

  .slider-arrow--prev { left: 0; }
  .slider-arrow--next { right: 0; }

  .posts__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 26px;
  }

  .post--featured {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .posts__col:nth-child(2) {
    padding-left: 0;
    border-left: 0;
  }

  .partners__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Điện thoại */

@media (max-width: 640px) {
  .header-top__inner {
    min-height: 64px;
  }

  .logo__mark {
    width: 46px;
    height: 46px;
  }

  .logo__name {
    font-size: 30px;
  }

  .logo__tag {
    font-size: 9px;
  }

  .hero {
    height: 360px;
  }

  .hero__slide {
    --hero-img: var(--bg-sm, var(--bg));
  }

  .hero__content {
    padding-top: 36px;
  }

  .hero__pill {
    padding: 5px 14px;
    font-size: 15px;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__sub {
    font-size: 15px;
  }

  /* Trên điện thoại mũi tên đè lên chữ, banner vẫn tự chuyển ảnh */
  .hero__arrow {
    display: none;
  }

  .booking {
    margin-top: -60px;
  }

  .booking__box {
    padding: 16px;
  }

  .booking__title {
    font-size: 18px;
  }

  .booking__row {
    flex-direction: column;
  }

  /* Khi xếp dọc, flex: 1 làm ô nhập co lại, nên trả về chiều cao cố định */
  .booking__row input {
    flex: none;
  }

  .booking__row .btn {
    min-width: 0;
  }

  .title,
  .process__title {
    font-size: 23px;
  }

  .about__media img {
    height: 240px;
  }

  .service-grid,
  .team-grid,
  .posts__grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .posts__col {
    padding: 0;
    border-left: 0;
  }

  .posts__head {
    flex-direction: column;
  }

  .post--featured img {
    height: 220px;
  }

  .process__image img {
    height: 220px;
  }

  .partners__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Chừa chỗ cho thanh liên hệ ở đáy và nút chat nằm phía trên nó (đáy nút chat cách đáy màn hình 128px) */
  .site-footer {
    padding-bottom: 140px;
  }

  /* Hai nút nổi bên trái thành thanh liên hệ ở đáy màn hình */
  .float-left {
    left: 0;
    right: 0;
    bottom: 0;
    gap: 0;
  }

  .float-left .btn {
    flex: 1;
    padding: 14px 8px;
    border-radius: 0;
    box-shadow: none;
  }

  .float-chat {
    bottom: 76px;
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}

/* Điện thoại: liên kết đứng riêng có vùng chạm tối thiểu 24px (WCAG 2.2).
   Đệm trên dưới của phần tử inline nới rộng vùng bấm mà không làm xê dịch dòng chữ. */
@media (max-width: 640px) {
  .footer-list a,
  .footer-contact a,
  .footer-bottom a,
  .breadcrumb a,
  .legal-box a,
  .contact-card a,
  .list-item__meta a {
    padding-block: 5px;
  }

  .toc__list a,
  .list-item h2 a,
  .post h3 a {
    padding-block: 3px;
  }
}

/* Liên kết trong ô ghi chú và khung thông tin pháp lý: nền nhạt nên dùng xanh sẫm hơn để dễ đọc */
.note a,
.legal-box a {
  color: var(--blue-dark);
}
