@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap");

/* ==========================================================================
   1. RESET & LAYOUT KHUNG CHÍNH (#app)
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.5;
  background: #ffffff no-repeat center center;
}

a {
  color: #f4f45a;
  text-decoration: none;
  display: block;
}

ul li {
  list-style: none;
}

.clearfix::after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#container {
  flex-grow: 1;
}

/* ==========================================================================
   2. HEADER
   ========================================================================== */
#header {
  margin-bottom: 10px;
  background: #8cd0cf no-repeat center bottom;
  border-bottom: 1px solid #bc3555;
  display: flex;
  align-items: center;
  padding: 10px;
}

#header .hBox {
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#header .logo img {
  display: block;
  width: 330px;
  padding: 15px;
}

#header .hIm02 {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

#header .hIm02 a {
  background-color: #ffffff;
  border-radius: 35px;
}

#header .hIm02 img {
  display: block;
}

/* ==========================================================================
   3. TRANG CHỦ: LINK TỐC ĐỘ CAO (#container) & BANNER (#containerlow)
   ========================================================================== */
.sjbdmap {
  display: none;
}

.pcbdmap {
  display: block;
}

#main {
  padding: 22px 13px 0 20px;
  width: 1000px;
  max-width: 100%;
  margin: 0 auto 10px;
  position: relative;
  border: 1px solid #671623;
  background-color: #8cd0cf;
}

#main h2 {
  margin-bottom: 17px;
  text-align: center;
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
}

/* Cột trái: Danh sách link tốc độ cao */
#main #conts {
  width: 579px;
  float: left;
  position: relative;
  padding-top: 60px;
}

#main #conts::before {
  content: "";
  width: 1px;
  height: 410px;
  position: absolute;
  right: -31px;
  top: 49px;
  border-right: 1px dotted #671623;
}

#conts .linkUl {
  margin-bottom: 10px;
}

#conts .linkUl li {
  margin-bottom: 35px;
  overflow: hidden;
}

#conts .linkUl li span {
  margin: 1px 10px 0 0;
  padding: 0 3px;
  line-height: 34px;
  float: left;
  width: 294px;
  color: #f9f95d;
  font-size: 13px;
  background-color: #5fa78e;
  border: 1px solid #671623;
  text-align: center;
}

#conts .linkUl li .txt {
  width: 102px;
}

#conts .linkUl li img {
  margin: 11px 9px 0 2px;
  display: block;
  float: left;
}

#conts .linkUl li a {
  width: 123px;
  display: block;
  float: right;
  color: #fefe5e;
  font-size: 16px;
  line-height: 38px;
  text-align: center;
  background-color: #5fa78e;
  border: 1px solid #671623;
}

#conts .linkUl li a:hover {
  color: #ed1b1c;
  background-color: #fefe5e;
  font-weight: bold;
}

#main #conts .refresh {
  margin: 0 auto;
  width: 110px;
}

#main #conts .refresh a {
  color: #f4f45a;
  font-size: 17px;
  line-height: 38px;
  text-align: center;
  font-weight: bold;
  display: block;
  margin-bottom: 15px;
  background: #5fa78e;
  border-radius: 3px;
}

#main #conts .refresh a:hover {
  color: #ed1b1c;
  background: #fefe5e;
  cursor: pointer;
}

/* Cột phải: Tải App */
#main #sideBar {
  padding-top: 55px;
  width: 338px;
  float: right;
  position: relative;
}

#main #sideBar h2 {
  margin-bottom: 17px;
  text-align: center;
}

#main #sideBar .inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.img-download-app img {
  width: 280px;
  height: auto;
}

.link-download-app {
  padding: 0;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 10px;
}

.link-download-app .content {
  position: relative;
  background-color: #8cd0cf;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  z-index: 2;
}

/* Carousel Banner PC */
#mainlow {
  width: 1000px;
  max-width: 100%;
  margin: 0 auto 10px;
  position: relative;
  border: 1px solid #671623;
  background-color: #8cd0cf;
  overflow: hidden;
}

/* ==========================================================================
   4. FOOTER CHUNG (#footer)
   ========================================================================== */
#footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  clear: both;
  background-color: #8cd0cf;
  border-top: 1px solid #bc3555;
}

#footer .fBox {
  width: 1000px;
  max-width: 100%;
  padding: 12px 10px;
}

#footer p {
  margin-top: 7px;
  color: #671623;
  font-size: 16px;
  line-height: 1.8;
}

/* ==========================================================================
   5. RESPONSIVE TABLET & MOBILE (ĐẢO BANNER LÊN TRÊN KHÔNG CẦN #container2)
   ========================================================================== */
@media screen and (max-width: 1023.98px) {
  #container {
    width: 100%;
    padding: 0 10px;
  }

  #header .logo img {
    width: 250px;
  }

  #main #conts,
  #main #sideBar {
    width: 100%;
    float: none;
  }

  #main #conts::before,
  #main #sideBar h2,
  .img-download-app {
    display: none;
  }

  #main #sideBar {
    padding: 0 0 20px;
  }

  #conts .linkUl li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
  }

  #conts .linkUl li span {
    width: 50%;
    padding: 7px;
    font-size: 16px;
  }

  #conts .linkUl li .txt,
  #conts .linkUl li a {
    width: 22%;
  }

  .link-download-app {
    margin-top: 0;
    width: 100%;
  }
}

@media screen and (max-width: 767.98px) {
  /* Thứ tự hiển thị trên điện thoại: Header -> Banner -> Link tốc độ cao -> Social -> Footer */
  #header {
    order: -1;
    padding: 5px 0;
  }

  .sjbdmap {
    display: block;
    order: 2;
    margin-bottom: 8px;
  }

  #container {
    display: block;
    order: 3;
  }

  #containerlow {
    display: none;
  }

  #container-social {
    order: 4;
  }

  #footer {
    order: 5;
  }

  /* Tinh chỉnh kích thước trên màn hình nhỏ */
  #header .hBox {
    margin: 0;
    padding: 0 10px;
  }

  #header .logo {
    width: 45%;
  }

  #header .logo img {
    width: 100%;
    padding: 6px;
  }

  #header .hIm02 a,
  #header .hIm02 a img {
    width: 85%;
    background-color: transparent;
    display: flex;
    justify-content: flex-end;
  }

  #main #conts {
    padding-top: 24px;
  }

  #conts h2 img {
    width: 320px;
    max-width: 90vw;
    height: auto;
  }

  #conts .linkUl li span,
  #conts .linkUl li a {
    font-size: 14px;
    padding: 0;
    height: 37px;
    line-height: 35px;
  }

  #main-social {
    width: 100%;
    padding: 4px 0;
  }

  .social-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 6px;
    padding: 0;
    margin: 0;
  }

  .social-item {
    width: 30%;
    padding: 8px 4px;
    text-align: center;
  }

  .social-item img {
    width: 28px;
    height: 28px;
    margin: 0 auto 4px;
  }

  .social-item span {
    font-size: 11px;
    line-height: 1.3;
    white-space: normal;
  }
}

#banner-pc-list {
  /* Điều chỉnh padding để các banner không bị dính vào border của #mainlow */
  padding: 10px 10px 20px 10px;
  background-color: #8cd0cf; /* Có thể đặt nền trắng cho riêng khu vực banner */
}

#banner-pc-list h2 {
  /* Ép h2 có chiều rộng bằng nội dung và căn giữa */
  width: fit-content;
  margin: 0 auto 15px;
  display: block;

  /* Căn ảnh tiêu đề */
  text-align: center;
  padding-top: -200px;
}
#banner-pc-list h2 img {
  display: block;
}

.double-banner-group {
  display: flex !important;
  gap: 10px; /* Khoảng cách giữa 2 banner */
  justify-content: space-between; /* Đẩy 2 banner ra hai phía */
  align-items: flex-start;
  /* Xóa padding: 0 100px; để nó chiếm toàn bộ chiều rộng có sẵn */
  padding: 0;
}

.banner-item {
  /* Tính toán chia đều chiều rộng cho 2 cột */
  flex-basis: calc(60% - 7.5px);

  /* Đảm bảo không có margin dọc không cần thiết */
  margin-bottom: 0;

  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.banner-item img {
  display: block;
  width: 100%;
  height: auto;
}

#tripleBannerCarousel .carousel-control-prev,
#tripleBannerCarousel .carousel-control-next {
  width: 30px;
  height: 30px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  opacity: 0.7;
}

#container-social {
  /* Đảm bảo khối này không có padding top không cần thiết */
  padding: 0;
}

#main-social {
  width: 1000px !important;
  max-width: 100%;
  margin: 10px auto 10px;
  position: relative;

  border: 1px solid #671623 !important;
  background-color: #8cd0cf;

  box-sizing: border-box;
  overflow: hidden;
  padding: 22px 13px 22px 20px;
}

#main-social h2 {
  width: fit-content;
  margin: 0 auto 20px auto;
  padding: 0;
  display: block;
  text-align: center;
  border-bottom: 1px dotted #671623;
  padding-bottom: 10px;
}
#main-social h2 img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Khối liên kết */
.social-links-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
}

.social-item {
  flex-basis: 33%; /* Chia đều 3 cột */
  text-align: center;
  padding: 15px 10px;
  border-radius: 8px;
  background-color: #5fa78e;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}

.social-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.social-item img {
  width: 70px; /* Tăng kích thước icon lên một chút */
  height: 70px;
  margin-bottom: 8px;
  border-radius: 50%;
  border: 3px solid #ff0; /* Đường viền vàng nổi bật xung quanh icon */
  background-color: #fff; /* Nền trắng cho icon để nổi bật hơn */
  object-fit: cover; /* Dùng 'cover' hoặc 'contain'. 'cover' sẽ lấp đầy 70x70px */
  transition: transform 0.3s;
}

.social-item:hover {
  background-color: #ff0000;
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Định kiểu chữ bên dưới icon */
.social-item span {
  display: block;
  font-size: 16px;
  font-weight: 700; /* Chữ đậm hơn */
  color: #fefd5f;
  text-shadow: 1px 1px 2px #000000; /* Đổ bóng chữ nhẹ */
  margin-top: 5px;
}

/* Footer SEO Links */
.footer-seo-links {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dotted #671623;
}

.footer-seo-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.footer-seo-links ul li {
  display: inline-flex;
  align-items: center;
  padding: 0 14px; /* Khoảng cách 2 bên chữ bằng nhau tuyệt đối */
  border-right: 1px solid rgba(103, 22, 35, 0.5); /* Dùng viền phải thay cho dấu | */
  line-height: 1;
}

/* Bỏ đường kẻ ở mục cuối cùng */
.footer-seo-links ul li:last-child {
  border-right: none;
}

.footer-seo-links ul li a {
  color: #671623;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 2px 0;
  line-height: 1.2;
}

.footer-seo-links ul li a:hover {
  color: #ed1b1c;
  text-decoration: underline;
}

/* Mobile */
@media screen and (max-width: 767.98px) {
  .footer-seo-links ul {
    gap: 8px;
  }
  .footer-seo-links ul li {
    padding: 0;
    border-right: none;
  }
  .footer-seo-links ul li a {
    font-size: 13px;
    padding: 4px 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(254, 143, 33, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(254, 143, 33, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(254, 143, 33, 0);
  }
}

/* ================= SUBPAGES (SEO PAGES) ================= */
.subpage-container {
  width: 100%;
  padding: 0 10px;
  flex-grow: 1;
}

.subpage-box {
  width: 1000px;
  max-width: 100%;
  margin: 0 auto 15px;
  background-color: #8cd0cf;
  border: 1px solid #671623;
  padding: 25px 30px;
  color: #2b090e;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #671623;
  color: #671623;
}

.breadcrumb-nav a {
  display: inline;
  color: #671623;
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: #ed1b1c;
  text-decoration: underline;
}

.seo-article h1 {
  font-size: 28px;
  font-weight: 800;
  color: #671623;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.seo-article .subtitle {
  font-size: 16px;
  font-weight: 700;
  color: #5fa78e;
  background-color: #ffffff;
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid #671623;
  margin-bottom: 20px;
}

.seo-article h2 {
  font-size: 20px;
  font-weight: 700;
  color: #671623;
  margin-top: 24px;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid #671623;
  line-height: 1.4;
}

.seo-article p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
  color: #1f1f1f;
  text-align: justify;
}

.seo-article h3 {
  font-size: 17px;
  font-weight: 700;
  color: #2b090e;
  margin-top: 18px;
  margin-bottom: 10px;
}

.seo-article ul {
  margin: 0 0 16px 22px;
  padding: 0;
}

.seo-article ul li {
  list-style-type: disc;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 8px;
  color: #1f1f1f;
}

.seo-article code {
  background-color: rgba(255, 255, 255, 0.65);
  color: #671623;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
}

.seo-article ol.step-list {
  margin: 0 0 18px 22px;
  padding: 0;
}

.seo-article ol.step-list li {
  list-style-type: decimal;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 10px;
  color: #1f1f1f;
}

.seo-article strong {
  color: #671623;
}

.back-home-wrap {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dotted #671623;
  text-align: center;
}

.btn-back-home {
  display: inline-block;
  background-color: #5fa78e;
  color: #fefe5e;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 24px;
  border: 1px solid #671623;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.btn-back-home:hover {
  background-color: #fefe5e;
  color: #ed1b1c;
  text-decoration: none;
}

@media screen and (max-width: 767.98px) {
  .subpage-box {
    padding: 18px 15px;
  }
  .seo-article h1 {
    font-size: 22px;
  }
  .seo-article h2 {
    font-size: 17px;
  }
  .seo-article p {
    font-size: 14px;
    text-align: left;
  }
}

/* 7 Chuyên mục dưới nút TẢI LẠI - Kiểu hiển thị hệt Footer */
.category-seo-links {
  margin-top: 8px;
  margin-bottom: 14px;
  padding-top: 12px;
  border-top: 1px dotted #671623;
}

.category-seo-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 0;
  margin: 0;
  padding: 0;
}

.category-seo-links ul li {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid rgba(103, 22, 35, 0.5);
  line-height: 1;
}

.category-seo-links ul li:last-child {
  border-right: none;
}

.category-seo-links ul li a {
  color: #671623;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 2px 0;
  line-height: 1.2;
}

.category-seo-links ul li a:hover {
  color: #ed1b1c;
  text-decoration: underline;
}

/* Mobile */
@media screen and (max-width: 767.98px) {
  .category-seo-links {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-top: 10px;
  }
  .category-seo-links ul {
    gap: 6px;
  }
  .category-seo-links ul li {
    padding: 0;
    border-right: none;
  }
  .category-seo-links ul li a {
    font-size: 13px;
    padding: 4px 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
  }
}

/* 2 mục Hướng dẫn & Tin tức ngay dưới tiêu đề Kết nối mạng xã hội */
.social-sub-links {
  margin: -10px auto 18px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #671623;
  text-align: center;
}

.social-sub-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.social-sub-links ul li {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-right: 1px solid rgba(103, 22, 35, 0.5);
  line-height: 1;
}

.social-sub-links ul li:last-child {
  border-right: none;
}

.social-sub-links ul li a {
  color: #671623;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 2px 0;
  line-height: 1.2;
}

.social-sub-links ul li a:hover {
  color: #ed1b1c;
  text-decoration: underline;
}

@media screen and (max-width: 767.98px) {
  .social-sub-links {
    margin: -8px auto 12px;
    padding-bottom: 8px;
  }
  .social-sub-links ul li {
    padding: 0 12px;
  }
  .social-sub-links ul li a {
    font-size: 14px;
  }
}

/* Khung trang con & bài viết */
.subpage-container {
  flex-grow: 1;
  width: 100%;
  padding: 15px 10px 25px;
}

.subpage-box {
  max-width: 1000px;
  margin: 0 auto;
  background-color: #8cd0cf;
  border: 1px solid #671623;
  padding: 20px 25px 30px;
}

.breadcrumb-nav {
  font-size: 14px;
  color: #671623;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #671623;
}

.breadcrumb-nav a {
  display: inline;
  color: #671623;
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: #ed1b1c;
  text-decoration: underline;
}

.seo-article h1 {
  font-size: 26px;
  font-weight: 700;
  color: #671623;
  margin-bottom: 14px;
  line-height: 1.3;
  text-transform: capitalize;
}

.seo-article p {
  font-size: 15px;
  line-height: 1.75;
  color: #1f1f1f;
  margin-bottom: 16px;
}

/* Khoảng trống dành cho việc bổ sung bài viết sau */
.article-feed-placeholder {
  min-height: 220px;
  margin: 20px 0 24px;
  padding: 16px;
  border: 1px dashed rgba(103, 22, 35, 0.45);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.2);
}

.back-home-wrap {
  margin-top: 20px;
}

.btn-back-home {
  display: inline-block;
  padding: 10px 18px;
  background-color: #5fa78e;
  color: #fefe5e;
  border: 1px solid #671623;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.btn-back-home:hover {
  background-color: #fefe5e;
  color: #ed1b1c;
}

@media screen and (max-width: 767.98px) {
  .subpage-box {
    padding: 15px 14px 20px;
  }

  .seo-article h1 {
    font-size: 21px;
  }

  .article-feed-placeholder {
    min-height: 160px;
  }
}

/* =========================================================
   TỐI ƯU GIAO DIỆN ĐỌC BÀI VIẾT TRÊN ĐIỆN THOẠI (TRANG CON)
   ========================================================= */
@media screen and (max-width: 767.98px) {
  html,
  body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  #app {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .subpage-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 8px 24px !important;
    box-sizing: border-box !important;
  }

  .subpage-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 16px 14px 24px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
  }

  .seo-article {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  /* Ép tất cả thẻ chữ tự xuống dòng, không bao giờ bị cắt mất chữ 2 bên */
  .seo-article h1,
  .seo-article h2,
  .seo-article h3,
  .seo-article p,
  .seo-article li,
  .seo-article span,
  .seo-article strong,
  .breadcrumb-nav {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
  }

  /* Sửa lỗi link trong bài viết bị display:block làm vỡ dòng */
  .seo-article p a,
  .seo-article li a,
  .breadcrumb-nav a {
    display: inline !important;
    white-space: normal !important;
  }

  .breadcrumb-nav {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
  }

  .seo-article h1 {
    font-size: 21px !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
    text-align: left !important;
  }

  .seo-article .subtitle {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
  }

  .seo-article h2 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
    height: auto !important;
    background: none !important;
  }

  .seo-article h3 {
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin-top: 14px !important;
    margin-bottom: 8px !important;
  }

  .seo-article p,
  .seo-article ul li,
  .seo-article ol.step-list li {
    font-size: 16px !important;
    line-height: 1.75 !important;
    margin-bottom: 12px !important;
    text-align: left !important;
  }

  .seo-article ul,
  .seo-article ol.step-list {
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 16px 20px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .seo-article code {
    white-space: normal !important;
    word-break: break-all !important;
    font-size: 14px !important;
  }
}

/* =========================================================
   KHỐI GIẢI ĐÁP NHANH DƯỚI KẾT NỐI MẠNG XÃ HỘI
   ========================================================= */
.quick-faq-box {
  margin-top: 20px;
  padding: 16px 18px;
  background-color: rgba(255, 255, 255, 0.35);
  border: 1px solid #671623;
  border-radius: 8px;
  text-align: left;
}

.quick-faq-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #671623;
  line-height: 1.4;
}

.quick-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-faq-item {
  background-color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(103, 22, 35, 0.35);
  border-radius: 6px;
  overflow: hidden;
}

.quick-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #671623;
  line-height: 1.45;
  user-select: none;
}

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

.quick-faq-item summary:hover {
  color: #ed1b1c;
  background-color: rgba(255, 255, 255, 0.9);
}

.quick-faq-answer {
  padding: 10px 14px 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #1f1f1f;
  border-top: 1px dashed rgba(103, 22, 35, 0.25);
}

.quick-faq-answer a {
  display: inline;
  color: #ed1b1c;
  font-weight: 700;
  text-decoration: underline;
}

@media screen and (max-width: 767.98px) {
  .quick-faq-box {
    margin-top: 16px;
    padding: 14px 12px;
  }

  .quick-faq-title {
    font-size: 17px;
  }

  .quick-faq-item summary {
    font-size: 15px;
    padding: 11px 12px;
  }

  .quick-faq-answer {
    font-size: 15px;
    line-height: 1.7;
    padding: 10px 12px 12px;
  }
}

/* Ép lại cỡ chữ: Tiêu đề > Câu hỏi > Nội dung trả lời */
.faq-footer-heading {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #5b232c !important;
}

.faq-footer-list summary {
  position: relative;
  padding-left: 18px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #264642 !important;
}

/* Ký hiệu mở ra ở đầu mỗi câu hỏi */
.faq-footer-wrap {
  clear: both;
  padding: 10px 0 4px;
  text-align: left;
}
.faq-footer-heading {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #5b232c !important;
  margin: 0 0 6px !important;
  text-align: left !important;
}
.faq-footer-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px;
}
.faq-footer-list li {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px dotted rgba(103, 22, 35, 0.22) !important;
  text-align: left !important;
}
.faq-footer-list summary {
  display: list-item !important;
  position: static !important;
  text-align: left !important;
  cursor: pointer;
  padding: 5px 4px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #264642 !important;
}
.faq-footer-list summary::before {
  content: none !important;
}
.faq-footer-list summary:hover {
  color: #5b232c !important;
}
.faq-footer-list details > p {
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: #3a4c4b !important;
  padding: 3px 4px 7px 14px !important;
  margin: 0 !important;
  text-align: left !important;
}
.faq-footer-list details > p strong,
.faq-footer-list details > p a {
  font-size: 12px !important;
  display: inline !important;
  color: #7a1c1d;
  font-weight: 600;
  text-decoration: underline;
}

.after-about-extra .after-about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  align-items: start;
  text-align: left;
}

.after-about-extra .footer-col-info {
  grid-column: auto;
  padding-top: 0;
  border-top: none;
}

.after-about-extra .after-about-title {
  font-size: 13px;
  font-weight: 700;
  color: #5b232c;
  margin: 0 0 6px;
  text-transform: uppercase;
}

#footer .after-about-extra .after-about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}

#footer .after-about-extra .after-about-list li {
  margin: 0;
}

#footer .after-about-extra .after-about-list a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #264642;
  text-decoration: none;
  padding: 3px 0;
  border-bottom: 1px dotted rgba(103, 22, 35, 0.22);
  transition:
    color 0.15s ease,
    padding-left 0.15s ease;
}

#footer .after-about-extra .after-about-list a::before {
  content: "›";
  color: #5b232c;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

#footer .after-about-extra .after-about-list a:hover {
  color: #5b232c;
  padding-left: 3px;
}

#footer .after-about-extra .after-about-text {
  font-size: 12px;
  line-height: 1.55;
  color: #3a4c4b;
  margin: 0 0 6px;
}

#footer .after-about-extra .after-about-tags {
  font-size: 11.5px;
  color: #4a5c5b;
}

/* 2 dòng cuối trùng màu nền */
#footer .after-about-extra .after-about-bg-match,
#footer .after-about-extra .after-about-bg-match a {
  font-size: 11px;
  line-height: 1.35;
  margin: 2px 0 0;
  color: #106d6a;
  background: transparent;
  text-decoration: none;
  pointer-events: auto;
}

@media (max-width: 767.98px) {
  .faq-footer-list {
    grid-template-columns: 1fr;
  }

  .after-about-extra {
    clear: both;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dotted rgba(103, 22, 35, 0.25);
    text-align: left;
  }

  .after-about-extra .after-about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
  }

  .after-about-extra .footer-col-info {
    grid-column: 1 / -1;
    padding-top: 8px;
    border-top: 1px dotted rgba(103, 22, 35, 0.25);
  }
  #footer .after-about-extra .after-about-list {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.quick-faq-title,
.faq-footer-heading {
  margin-top: 22px;
  margin-bottom: 8px;
}
#footer .after-about-extra .footer-about-logo {
  display: flex;
  justify-content: center;
  margin: 0 0 8px;
}

#footer .after-about-extra .footer-about-logo img {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 767.98px) {
  #footer .after-about-extra .footer-about-logo img {
    width: 120px;
  }
}

#footer .after-about-extra .after-about-text a {
  display: inline;
  color: #264642;
  font-weight: 500;
  text-decoration: none;
}

#footer .after-about-extra .after-about-text a:hover {
  color: #5b232c;
  text-decoration: underline;
}

/* =========================================================
   HÌNH ẢNH MINH HỌA & CHÚ THÍCH TRONG BÀI VIẾT (.seo-article)
   ========================================================= */
.seo-article figure,
.article-figure {
  width: 100%;
  max-width: 100%;
  margin: 18px auto 22px;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid #671623;
  border-radius: 8px;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.seo-article img,
.article-figure img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto;
  border-radius: 6px;
  object-fit: cover;
}

.seo-article figcaption,
.article-figure figcaption {
  margin-top: 8px;
  padding: 2px 6px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #5b232c;
  font-style: italic;
  font-weight: 500;
  text-align: center;
}

@media screen and (max-width: 767.98px) {
  .seo-article figure,
  .article-figure {
    margin: 14px auto 18px;
    padding: 6px;
    border-radius: 6px;
  }

  .seo-article figcaption,
  .article-figure figcaption {
    font-size: 12.5px;
    line-height: 1.45;
  }
}

/* =========================================================
   DANH SÁCH THẺ BÀI VIẾT TRONG TRANG CHUYÊN MỤC
   ========================================================= */
.article-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.article-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.65);
  border: 1px solid #671623;
  border-radius: 10px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 16px rgba(103, 22, 35, 0.14);
}

.article-card-thumb {
  flex: 0 0 240px;
  width: 240px;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(103, 22, 35, 0.25);
  display: block;
}

.article-card-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-thumb img {
  transform: scale(1.04);
}

.article-card-body {
  flex: 1;
  min-width: 0;
}

.seo-article .article-card-title {
  margin: 0 0 6px !important;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.35;
}

.seo-article .article-card-title a {
  color: #671623;
  text-decoration: none;
}

.seo-article .article-card-title a:hover {
  color: #9b1d30;
  text-decoration: underline;
}

.seo-article .article-card-desc {
  margin: 0 0 8px !important;
  font-size: 14px;
  line-height: 1.5;
  color: #2c3535;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-more {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #671623;
  text-decoration: none;
}

.article-card-more:hover {
  color: #9b1d30;
  text-decoration: underline;
}

@media screen and (max-width: 767.98px) {
  .article-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
  }

  .article-card-thumb {
    flex: none;
    width: 100%;
  }

  .seo-article .article-card-title {
    font-size: 16px !important;
  }
}
.related-articles {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed rgba(103, 22, 35, 0.35);
}
