/* Trang chi tiết khoá + trang Chuyên khoa: chỗ hoà Flatsome (row/col) với CSS của designer. Không đổi giao diện của designer. */

/* Flatsome in `.container {max-width: 1270px}`: đầu trang trả về 1320px của designer (đệm 24px do style.css, 16px do mobile.css). */
.page-hero .container {
  max-width: 1320px;
}

/* Hàng chứa nội dung: khung 1320px, đệm 24px (mobile 16px) như .container của designer. */
.row.row-collapse.timona-khoa-hang {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}
@media (max-width: 767px) {
  .row.row-collapse.timona-khoa-hang {
    padding: 0 16px;
  }
}
.row.row-collapse.timona-khoa-hang > .col {
  flex: none;
  max-width: none;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
}

/* Hai cột nội dung + cột bên: lưới của designer (.layout-with-sidebar: 1fr + 340px). Cột bên giãn hết chiều cao hàng
   để phần tử dính (col-inner) có chỗ trượt theo cuộn. */
.row.row-collapse.layout-with-sidebar {
  align-items: stretch;
}
.row.row-collapse.layout-with-sidebar > .col {
  width: auto;
}
/* Các khối trong cột nội dung cách nhau 24px như .main-col của designer. */
.layout-with-sidebar > .col:first-child > .col-inner > * + * {
  margin-top: 24px;
}

/* Cột nội dung dùng ảnh/đoạn văn của Flatsome: đệm đầu mục "KHÓA HỌC LIÊN QUAN" 50px như .page-section của designer
   (ID của section Flatsome đặt padding 0 nên đệm đặt ở .section-content). */
.timona-khoa-lien-quan > .section-content {
  padding: 50px 0;
}
@media (max-width: 767px) {
  .timona-khoa-lien-quan > .section-content {
    padding: 50px 0 36px;
  }
}

/* Flatsome đặt lề dưới cho h2-h6, p, ul, ol, li và đậm 500 cho tiêu đề: trả về như designer trong các thẻ của trang khoá. */
.feature-tile h3,
.feature-tile p,
.curriculum-head h3,
.curriculum-head p,
.offer-banner p,
.faq-answer,
.table-note {
  margin-bottom: 0;
}
.check-list,
.career-ladder {
  margin-left: 0;
  list-style: none;
}
.career-ladder {
  margin-bottom: 0;
}
.col-inner .check-list li,
.col-inner .career-ladder li {
  margin-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.curriculum-head h3,
.offer-banner h3,
.review-card-title,
.course-card-body h3 {
  font-weight: 700;
}
.faq-question-btn {
  line-height: normal;
  letter-spacing: normal;
  margin-bottom: 0;
  text-transform: none;
}
body.timona-khung .curriculum-col h4 {
  letter-spacing: 0.6px;
}
/* Flatsome đệm .gallery-item 0 15px 30px (dùng chung luật với .col): trả về 0 như designer, cả ảnh trong cột chương trình. */
.gallery-grid .gallery-item,
.curriculum-col .gallery-item {
  padding: 0;
}

/* Tiêu đề hàng đầu mục (KHÓA HỌC LIÊN QUAN…): Flatsome đặt line-height 1.3, lề dưới và cho h2 giãn hết hàng. */
.section-header-row .section-title-h2 {
  margin-bottom: 0;
  flex: none;
  width: auto;
}
@media (min-width: 768px) {
  .section-header-row .section-title-h2 {
    line-height: 1.6;
  }
}
.page-hero-lead {
  margin-bottom: 0;
}

/* Trang Chuyên khoa: các mục cách nhau 50px (page-section của designer); neo có chừa chỗ cho thanh đầu trang dính. */
.timona-khoa-muc > .section-content {
  padding: 0 0 50px;
}
@media (max-width: 767px) {
  .timona-khoa-muc > .section-content {
    padding: 0 0 36px;
  }
}
.timona-tieu-de-muc {
  scroll-margin-top: 110px;
}
.timona-tieu-de-muc .timona-luoi-phu {
  font-size: 15px;
  color: var(--color-text-muted);
}

/* Neo cuộn trên máy tính: mục đích dừng dưới header dính (≤ 140px) để mục lục ngang tô đúng mục vừa bấm. */
@media (min-width: 993px) {
  .timona-tieu-de-muc,
  .timona-luoi-khoa-hoc[id],
  .timona-bang-so-sanh-khoa[id] {
    scroll-margin-top: 100px;
  }
}

/* timona_doan_van: designer đặt tay khoảng cách từng chỗ; hai ô chọn "Cách trên" (đoạn thường) và "Cách dưới" (dẫn nhập). */
.content-card .prose.timona-cach-tren-0 {
  margin-top: 0;
}
.content-card .prose.timona-cach-tren-18 {
  margin-top: 18px;
}
.content-card .prose.timona-cach-tren-20 {
  margin-top: 20px;
}
.section-lead.timona-dan-nhap {
  margin: 0 0 18px;
}
.section-lead.timona-dan-nhap.timona-cach-duoi-12 {
  margin-bottom: 12px;
}
.section-lead.timona-dan-nhap.timona-cach-duoi-6 {
  margin-bottom: 6px;
}

/* Nhóm thứ hai trở đi trong một cột của cấp độ (designer: h4 style="margin-top:18px"). */
.curriculum-col h4.timona-nhom-sau {
  margin-top: 18px;
}
/* Danh sách đứng thẳng trong khung chữ + ảnh (designer: ul style="margin:0"). */
.media-split > .check-list.timona-het-le {
  margin: 0;
}
/* Khung chữ + ảnh: khoảng cách trên đặt bằng ô chọn (designer đặt tay 8px / 10px). */
.media-split.timona-cach-tren-8 {
  margin-top: 8px;
}
.media-split.timona-cach-tren-10 {
  margin-top: 10px;
}
/* Thẻ trích dẫn đứng dưới lưới lý do: cách 20px (designer). */
.testimonial-card.timona-trich-dan {
  margin-top: 20px;
}
/* Flatsome đặt lề cho figure/figcaption/bảng: trả về như designer trong thẻ trang khoá. */
.prose figure {
  margin: 0;
}
.table-scroll .data-table {
  margin-bottom: 0;
}
/* Bảng trong thẻ nội dung: Flatsome thu cỡ chữ, ép line-height 1.3 và thêm viền cho th/td. */
.content-card .data-table th,
.content-card .data-table td {
  line-height: 1.6;
}
.content-card .data-table td {
  font-size: 15.5px;
  border-top: 0;
}
.content-card .data-table th {
  border-bottom: 0;
}
.feature-tile.is-flat > p:last-child {
  margin-bottom: 0;
}
.feature-grid.timona-cach-tren-12 {
  margin-top: 12px;
}
/* Thẻ giảng viên: liên kết xanh đậm như designer. */
.feature-tile.is-flat p a {
  color: var(--color-accent-blue);
  font-weight: 700;
}
.testimonial-card.timona-trich-dan p {
  margin-bottom: 0;
}
