/* =========================================================
   BTH Global CSS
   Source: backup-additional-css-bth-current.txt.css
   Load toàn site
========================================================= */

.absolute-footer {
    display: none;
}


/* =========================================================
   BTH Additional CSS - Clean Optimized Version
   DĂ¹ng cho: Flatsome header, homepage, trang nguyĂªn tá»‘,
   trang /nguyen-to/, trang nhĂ³m nguyĂªn tá»‘, tĂ i liá»‡u há»c táº­p,
   author box, sitemap, báº£ng tuáº§n hoĂ n tÆ°Æ¡ng tĂ¡c.
========================================================= */
/* ===== Sidebar Tag Cloud - Báº£ng tuáº§n hoĂ n hoĂ¡ há»c ===== */

.widget_tag_cloud .tagcloud,
.widget .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.widget_tag_cloud .tagcloud a,
.widget .tagcloud a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  margin: 0 !important;

  font-size: 13px !important;
  line-height: 1.3;
  font-weight: 600;
  text-decoration: none !important;

  color: #46507a !important;
  background: linear-gradient(135deg, #f7f8ff 0%, #eef2ff 100%);
  border: 1px solid rgba(93, 106, 170, 0.18);
  border-radius: 999px;

  box-shadow: 0 2px 8px rgba(64, 76, 130, 0.06);
  transition: all 0.22s ease;
}

/* Hover */
.widget_tag_cloud .tagcloud a:hover,
.widget .tagcloud a:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #6c63ff 0%, #ec6aa4 100%);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(108, 99, 255, 0.22);
}

/* Active/focus accessibility */
.widget_tag_cloud .tagcloud a:focus,
.widget .tagcloud a:focus {
  outline: none;
  color: #ffffff !important;
  background: linear-gradient(135deg, #6c63ff 0%, #ec6aa4 100%);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.16);
}

/* Sidebar widget title Ä‘áº¹p hÆ¡n */
.widget_tag_cloud .widget-title,
.widget .widget-title {
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 700;
  color: #24304f;
}

/* Náº¿u Flatsome tá»± thĂªm uppercase cho title */
.widget_tag_cloud .widget-title span,
.widget .widget-title span {
  text-transform: none;
}

/* Mobile: tag gá»n hÆ¡n */
@media (max-width: 549px) {
  .widget_tag_cloud .tagcloud,
  .widget .tagcloud {
    gap: 7px;
  }

  .widget_tag_cloud .tagcloud a,
  .widget .tagcloud a {
    padding: 6px 10px;
    font-size: 12.5px !important;
  }
}
/* ===== BTH Global Tokens ===== */
:root {
  --bth-font-main:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    "Liberation Sans",
    sans-serif;
  --bth-teal: #1f8f94;
  --bth-teal-dark: #0f666a;
  --bth-teal-soft: #a8dfe0;
  --bth-pink: #f6a9bd;
  --bth-yellow: #ffd51e;
  --bth-purple: #bba8ee;
  --bth-ink: #073b46;
  --bth-muted: #607580;
  --bth-line: #d7ecec;
  --bth-bg: #f7fbfb;
  --bth-white: #ffffff;
  --bth-shadow: 0 18px 45px rgba(14, 84, 88, .10);
  --bth-radius: 28px;
}

/* =========================================================
   0. Font Stability + Performance
   DĂ¹ng system font, khĂ´ng táº£i font ngoĂ i, á»•n Ä‘á»‹nh tiáº¿ng Viá»‡t.
========================================================= */
.bth-post-breadcrumb-holder-v5,
.bth-post-breadcrumb-holder-v5 *,
.bth-home-v3,
.bth-home-v3 *,
.bth-element-overview,
.bth-element-overview *,
.bth-elements-directory,
.bth-elements-directory *,
.bth-element-content,
.bth-element-content *,
.bth-type-landing,
.bth-type-landing *,
.bth-periodic-wrap,
.bth-periodic-wrap *,
.bth-lr-page,
.bth-lr-page *,
.bth-learning-intro,
.bth-learning-intro *,
.bth-author-box-card,
.bth-author-box-card *,
.bth-html-sitemap,
.bth-html-sitemap * {
  font-family: var(--bth-font-main) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   1. Header Flatsome
========================================================= */
#header,
.header,
.header-wrapper {
  background: linear-gradient(180deg, #f3fffe 0%, #ffffff 100%) !important;
  border-bottom: 1px solid #d7f3f1 !important;
  box-shadow: 0 8px 24px rgba(12, 74, 85, .06) !important;
}

.header-main {
  min-height: 82px !important;
}

.header-main .container {
  max-width: 1200px !important;
  background: #ffffff !important;
  border: 1px solid #d7f3f1 !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 35px rgba(12, 74, 85, .08) !important;
  padding: 8px 18px !important;
  margin-top: 12px !important;
  margin-bottom: 12px !important;
}

.header-logo img,
.logo img {
  border-radius: 18px !important;
  box-shadow: 0 8px 20px rgba(12, 74, 85, .12) !important;
}

.header-nav > li > a,
.nav > li > a,
.nav-line-bottom > li > a {
  color: #0b4a55 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: .2px !important;
  text-transform: none !important;
  padding: 10px 14px !important;
  border-radius: 999px !important;
  transition: all .25s ease !important;
}

.header-nav > li > a:hover,
.nav > li > a:hover,
.nav-line-bottom > li > a:hover,
.header-nav > li.active > a,
.nav > li.active > a,
.current-menu-item > a,
.current_page_item > a {
  color: #ffffff !important;
  background: #159895 !important;
}

.nav-line-bottom > li > a:before,
.nav-line-bottom > li > a:after {
  display: none !important;
}

.header-search a,
.search-icon,
.icon-search {
  color: #0b4a55 !important;
  transition: all .25s ease !important;
}

.header-search a:hover,
.search-icon:hover,
.icon-search:hover {
  color: #159895 !important;
}

.nav-dropdown,
.sub-menu {
  border-radius: 18px !important;
  border: 1px solid #d7f3f1 !important;
  box-shadow: 0 16px 35px rgba(12, 74, 85, .12) !important;
  overflow: hidden !important;
}

.nav-dropdown li a,
.sub-menu li a {
  color: #0b4a55 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 11px 16px !important;
}

.nav-dropdown li a:hover,
.sub-menu li a:hover {
  color: #ffffff !important;
  background: #159895 !important;
}

@media (max-width: 849px) {
  #header,
  .header,
  .header-wrapper {
    background: #ffffff !important;
    border-bottom: 1px solid #d7f3f1 !important;
    box-shadow: 0 4px 16px rgba(12, 74, 85, .06) !important;
  }

  .header-main {
    min-height: 62px !important;
  }

  .header-main .container {
    max-width: 100% !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 6px 14px !important;
    margin: 0 !important;
  }

  .header-logo img,
  .logo img {
    max-height: 46px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(12, 74, 85, .10) !important;
  }

  .header-nav,
  .nav-left,
  .nav-right {
    gap: 6px !important;
  }

  .header-nav > li > a,
  .nav > li > a,
  .nav-line-bottom > li > a {
    font-size: 13px !important;
    padding: 7px 9px !important;
    border-radius: 10px !important;
  }

  .mobile-nav .icon-menu,
  .header-button .icon-menu,
  .icon-menu,
  .header-search a,
  .search-icon,
  .icon-search {
    color: #0b4a55 !important;
  }

  .header-search a,
  .search-icon,
  .icon-search {
    font-size: 20px !important;
  }

  .off-canvas,
  .mfp-content,
  .mobile-sidebar,
  .nav-sidebar {
    background: #f3fffe !important;
  }

  .nav-sidebar li a,
  .mobile-sidebar li a,
  .off-canvas .nav > li > a {
    color: #0b4a55 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid #d7f3f1 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .nav-sidebar li a:hover,
  .mobile-sidebar li a:hover,
  .off-canvas .nav > li > a:hover {
    color: #159895 !important;
    background: #e9fbfa !important;
  }

  .nav-sidebar .sub-menu,
  .mobile-sidebar .sub-menu,
  .off-canvas .sub-menu {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .nav-sidebar .sub-menu li a,
  .mobile-sidebar .sub-menu li a,
  .off-canvas .sub-menu li a {
    font-size: 15px !important;
    font-weight: 600 !important;
    padding-left: 30px !important;
    color: #356b73 !important;
  }
}

@media (max-width: 480px) {
  .header-main { min-height: 58px !important; }
  .header-main .container { padding-left: 10px !important; padding-right: 10px !important; }
  .header-logo img, .logo img { max-height: 42px !important; }
  .header-search a, .search-icon, .icon-search { font-size: 18px !important; }
}


/* =========================================================
   7. Mass display: nguyĂªn tá»­ khá»‘i chuáº©n + lĂ m trĂ²n
========================================================= */
.bth-mass-pair,
.bth-home-v3 .mass,
.bth-home-v3 .fe-mass,
.bth-element-overview .bth-el-mass,
.bth-element-overview .bth-el-fact-mass strong,
.bth-elements-directory .bth-ed-mass,
.bth-content-mass-cell,
.bth-memory-mass strong {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  line-height: 1.12 !important;
  flex-wrap: wrap !important;
}

.bth-mass-single,
.bth-mass-exact,
.bth-home-v3 .mass-exact,
.bth-home-v3 .fe-mass .mass-exact,
.bth-memory-mass .bth-mass-exact {
  display: inline-block !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

.bth-mass-round,
.bth-home-v3 .mass-round,
.bth-home-v3 .fe-mass .mass-round,
.bth-memory-mass .bth-mass-round {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .90) !important;
  border: 1px solid rgba(15, 118, 110, .18) !important;
  color: #0f766e !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -.01em !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

.bth-element-overview .bth-el-card .bth-el-mass {
  font-size: 22px !important;
}

.bth-element-overview .bth-el-fact-mass strong .bth-mass-round,
.bth-content-mass-cell .bth-mass-round,
.bth-memory-mass .bth-mass-round {
  background: #ecfeff !important;
  border-color: #bae6fd !important;
  color: #0e7490 !important;
}

.bth-elements-directory .bth-ed-mass .bth-mass-round,
.bth-home-v3 .bth-common-card .mass-round {
  font-size: 10px !important;
  padding: 2px 6px !important;
}

.bth-home-v3 .bth-common-card .mass {
  font-size: 12px !important;
  color: #475569 !important;
}

@media (max-width: 767px) {
  .bth-element-overview .bth-el-card .bth-el-mass { font-size: 20px !important; }

  .bth-mass-round,
  .bth-home-v3 .mass-round,
  .bth-home-v3 .fe-mass .mass-round,
  .bth-memory-mass .bth-mass-round {
    font-size: 10px !important;
    padding: 2px 6px !important;
  }

  .bth-element-overview .bth-el-fact-mass strong {
    font-size: 22px !important;
  }
}


/* ===== Anchor text mĂ u há»“ng cho Page, Post, UX Builder, Shortcode ===== */

.single-post .entry-content a,
.single-post .article-inner a,
.single-post .post-content a,
.page .entry-content a,
.page .page-content a,
.page .text-inner a,
.page .text a,
.page .col-inner a,
.page .ux_text a,
.page .html a,
.page [class*="shortcode"] a,
.single-post [class*="shortcode"] a {
  color: #db2777 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-color: #f9a8d4 !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
}

/* Hover anchor */
.single-post .entry-content a:hover,
.single-post .article-inner a:hover,
.single-post .post-content a:hover,
.page .entry-content a:hover,
.page .page-content a:hover,
.page .text-inner a:hover,
.page .text a:hover,
.page .col-inner a:hover,
.page .ux_text a:hover,
.page .html a:hover,
.page [class*="shortcode"] a:hover,
.single-post [class*="shortcode"] a:hover {
  color: #be185d !important;
  text-decoration-color: #be185d !important;
}


/* =========================================================
   BTH - Hotfix CSS v2.1
   Fix lỗi font, lỗi mũi tên, lỗi anchor underline ăn vào block custom
   Dán cuối Additional CSS
========================================================= */

/* 1. Font ổn định cho toàn bộ block custom */
:root {
  --bth-font-main:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    "Liberation Sans",
    sans-serif;
}

.bth-home-v3,
.bth-home-v3 *,
.bth-learning-card,
.bth-learning-card *,
.bth-lr-page,
.bth-lr-page *,
.bth-learning-intro,
.bth-learning-intro *,
.bth-periodic-wrap,
.bth-periodic-wrap *,
.bth-element-overview,
.bth-element-overview *,
.bth-elements-directory,
.bth-elements-directory *,
.bth-type-landing,
.bth-type-landing *,
.bth-author-box-card,
.bth-author-box-card * {
  font-family: var(--bth-font-main) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* 2. Chặn CSS anchor global làm hỏng block Góc học tập trang chủ */
.bth-home-v3 .bth-learning-card a,
.bth-home-v3 .bth-learning-card a:link,
.bth-home-v3 .bth-learning-card a:visited,
.bth-home-v3 .bth-learning-card a:hover,
.bth-home-v3 .bth-learning-card a:focus {
  text-decoration: none !important;
  background-image: none !important;
  box-shadow: none;
}

.bth-home-v3 .bth-learning-item,
.bth-home-v3 .bth-learning-item:link,
.bth-home-v3 .bth-learning-item:visited {
  color: inherit !important;
  text-decoration: none !important;
}

.bth-home-v3 .bth-learning-item strong,
.bth-home-v3 .bth-learning-item small,
.bth-home-v3 .bth-learning-classes a,
.bth-home-v3 .bth-learning-cta a {
  text-decoration: none !important;
  text-decoration-color: transparent !important;
  text-decoration-thickness: 0 !important;
  text-underline-offset: 0 !important;
  background-image: none !important;
}


/* 3. Style lại text trong card học tập cho sạch */
.bth-home-v3 .bth-learning-item strong {
  color: #0f4c5c !important;
  font-size: 14.5px !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
}

.bth-home-v3 .bth-learning-item small {
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.28 !important;
  font-weight: 700 !important;
}

.bth-home-v3 .bth-learning-classes a {
  color: #db2777 !important;
  font-weight: 800 !important;
}

.bth-home-v3 .bth-learning-classes a:hover {
  color: #be185d !important;
}


/* 4. Fix button CTA bị gạch chân + lỗi mũi tên */
.bth-home-v3 .bth-learning-cta a,
.bth-home-v3 .bth-learning-cta a:link,
.bth-home-v3 .bth-learning-cta a:visited {
  color: #ffffff !important;
  text-decoration: none !important;
  background: #159895 !important;
  font-weight: 800 !important;
}

.bth-home-v3 .bth-learning-cta a:hover,
.bth-home-v3 .bth-learning-cta a:focus {
  color: #ffffff !important;
  text-decoration: none !important;
  background: #0f766e !important;
}

/* Dùng unicode escape để tránh lỗi encoding â†’ */
.bth-home-v3 .bth-learning-cta a::after {
  content: " \2192" !important;
  margin-left: 5px;
}


/* 5. Fix tương tự cho shortcode [bth_learning_intro] trong bài post */
.bth-learning-intro a,
.bth-learning-intro a:link,
.bth-learning-intro a:visited,
.bth-learning-intro a:hover,
.bth-learning-intro a:focus {
  text-decoration: none !important;
  background-image: none !important;
}

.bth-learning-intro-button,
.bth-learning-intro-button:link,
.bth-learning-intro-button:visited,
.bth-learning-intro-button:hover,
.bth-learning-intro-button:focus {
  color: #ffffff !important;
  text-decoration: none !important;
}

.bth-learning-intro-button::after {
  content: " \2192" !important;
  margin-left: 5px;
}


/* 6. Fix tương tự cho trang tài liệu học tập */
.bth-lr-page a,
.bth-lr-page a:link,
.bth-lr-page a:visited,
.bth-lr-page a:hover,
.bth-lr-page a:focus {
  text-decoration: none !important;
  background-image: none !important;
}

.bth-lr-page .bth-lr-button::after {
  content: " \2192" !important;
  margin-left: 4px;
}


/* 7. Chặn các font-weight lẻ gây lỗi render trên một số thiết bị */
.bth-home-v3 .bth-learning-card,
.bth-home-v3 .bth-learning-card *,
.bth-learning-intro,
.bth-learning-intro *,
.bth-lr-page,
.bth-lr-page * {
  font-synthesis-weight: none;
}


/* =========================================================
   BTH - Force System Font For Header/Menu
   Mục tiêu: bỏ ảnh hưởng font tuỳ biến ở menu, ổn định tiếng Việt.
   Thêm ở CUỐI Additional CSS.
========================================================= */

#header,
#header *,
.header,
.header *,
.header-wrapper,
.header-wrapper *,
.header-main,
.header-main *,
.header-nav,
.header-nav *,
.nav,
.nav *,
.nav-dropdown,
.nav-dropdown *,
.sub-menu,
.sub-menu *,
.mobile-sidebar,
.mobile-sidebar *,
.off-canvas,
.off-canvas *,
.nav-sidebar,
.nav-sidebar *,
.mfp-content,
.mfp-content * {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    "Liberation Sans",
    sans-serif !important;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#header .nav > li > a,
#header .header-nav > li > a,
.header-main .nav > li > a,
.header-main .header-nav > li > a,
.nav-dropdown li a,
.sub-menu li a,
.mobile-sidebar li a,
.off-canvas .nav > li > a,
.nav-sidebar li a {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    "Liberation Sans",
    sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}


/* =========================================================
   BTH - Fix Flatsome Icons After Force System Font
   Thêm ở CUỐI Additional CSS.
========================================================= */

#header i[class^="icon-"],
#header i[class*=" icon-"],
#header .icon-menu,
#header .icon-search,
#header .icon-angle-down,
#header .icon-angle-right,
#header .icon-angle-left,
#header .icon-shopping-cart,
#header .icon-user,
#header .icon-heart,
#header .icon-bars,
.header i[class^="icon-"],
.header i[class*=" icon-"],
.header .icon-menu,
.header .icon-search,
.header .icon-angle-down,
.header .icon-angle-right,
.header .icon-angle-left,
.header .icon-shopping-cart,
.header .icon-user,
.header .icon-heart,
.header .icon-bars,
.mobile-sidebar i[class^="icon-"],
.mobile-sidebar i[class*=" icon-"],
.off-canvas i[class^="icon-"],
.off-canvas i[class*=" icon-"],
.nav i[class^="icon-"],
.nav i[class*=" icon-"],
.nav-dropdown i[class^="icon-"],
.nav-dropdown i[class*=" icon-"] {
  font-family: "fl-icons" !important;
  font-style: normal !important;
  font-weight: normal !important;
  speak: never;
  display: inline-block;
  text-decoration: none !important;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
