

/* ============================================
   TDB HANOI - GTRANSLATE HEADER
   FINAL DESIGN - 2026
   ============================================ */

/* 1. MAIN SWITCHER */
header .gt_float_switcher,
header .switcher,
header .gt_switcher {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative !important;
    top: 5px !important;
    overflow: visible !important;
    z-index: 9999 !important;
}

/* 2. SELECTED LANGUAGE BACKGROUND */
header .gt_float_switcher .gt-selected,
header .gt_float_switcher .gt-selected .gt-current-lang,
header .switcher .selected,
header .switcher .selected a,
header .gt_switcher .gt_selected,
header .gt_switcher .gt_selected a {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 3. SELECTED LANGUAGE FONT */
header .gt_float_switcher .gt-selected,
header .gt_float_switcher .gt-selected *,
header .switcher .selected a,
header .switcher .selected a *,
header .gt_switcher .gt_selected a,
header .gt_switcher .gt_selected a * {
    font-family: 'Roboto', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/* 4. FLAG SIZE */
header .gt_float_switcher img,
header .switcher img,
header .gt_switcher img {
    width: 23px !important;
    max-width: 23px !important;
    height: auto !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

/* 5. SELECTED LANGUAGE SPACING */
header .gt_float_switcher .gt-selected .gt-current-lang,
header .switcher .selected a,
header .gt_switcher .gt_selected a {
    padding: 6px 8px !important;
}

/* 6. HIDE DEFAULT FLOAT ARROW */
header .gt_float_switcher
.gt-selected .gt-current-lang
.gt_float_switcher-arrow {
    display: none !important;
}

/* 7. CUSTOM DOWN ARROW */
header .gt_float_switcher
.gt-selected .gt-current-lang::after {
    content: "" !important;
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 2px solid #FFFFFF !important;
    border-bottom: 2px solid #FFFFFF !important;
    transform: rotate(45deg) !important;
    margin-left: 12px !important;
    margin-bottom: 4px !important;
    vertical-align: middle !important;
}

/* 8. CLASSIC SWITCHER ARROW */
header .switcher .selected a:after,
header .gt_switcher .gt_selected a:after {
    transform: rotate(180deg) !important;
}

/* 9. DROPDOWN POSITION AND WIDTH */
header .gt_float_switcher .gt_options,
header .switcher .option,
header .gt_switcher .gt_option {
    position: absolute !important;
    top: 100% !important;
    bottom: auto !important;
    left: auto !important;
    right: 0 !important;

    width: 150px !important;
    min-width: 150px !important;
    max-width: none !important;

    box-sizing: border-box !important;
    margin-top: 6px !important;

    max-height: 320px !important;
    overflow-y: auto !important;
    z-index: 99999 !important;
}

/* 10. DROPDOWN BACKGROUND */
header .gt_float_switcher .gt_options,
header .switcher .option,
header .gt_switcher .gt_option {
    background: #FFFFFF !important;
    border: none !important;
    border-radius: 6px !important;
    box-shadow: 0 5px 18px
        rgba(0, 0, 0, 0.18) !important;
}

/* 11. DROPDOWN FONT */
header .gt_float_switcher .gt_options a,
header .switcher .option a,
header .gt_switcher .gt_option a {
    font-family: 'Oswald', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #222222 !important;

    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;

    display: flex !important;
    align-items: center !important;
    gap: 8px !important;

    text-decoration: none !important;
}

/* 12. DROPDOWN HOVER */
header .gt_float_switcher .gt_options a:hover,
header .switcher .option a:hover,
header .gt_switcher .gt_option a:hover {
    background: #F0F4F8 !important;
    color: #222222 !important;
}

/* 13. DROPDOWN FLAGS */
header .gt_float_switcher .gt_options img,
header .switcher .option img,
header .gt_switcher .gt_option img {
    width: 25px !important;
    max-width: 25px !important;
    height: auto !important;
    flex-shrink: 0 !important;
}

/* 14. MOBILE RESPONSIVE */
@media (max-width: 767px) {
    header .gt_float_switcher,
    header .switcher,
    header .gt_switcher {
        max-width: 100%;
    }

    header .gt_float_switcher .gt_options,
    header .switcher .option,
    header .gt_switcher .gt_option {
        width: 150px !important;
        min-width: 150px !important;
        right: 0 !important;
        left: auto !important;
    }
}

/* ============================================
   END - TDB GTRANSLATE
   ============================================ */

/* =========================================
   TDB HANOI - BLOG TYPOGRAPHY 2026
   Applies to single blog posts only
   Desktop / Tablet / Mobile
   ========================================= */

/* 1. MAIN ARTICLE CONTENT */

body.single-post :is(
  .entry-content,
  .post-content,
  .elementor-widget-theme-post-content
) {
  font-size: 17px;
  line-height: 1.8;
  color: #374151;
}

/* 2. H1 - ARTICLE TITLE */

body.single-post :is(
  h1.entry-title,
  .entry-header h1,
  .elementor-widget-theme-post-title h1
) {
  font-size: 32px !important;
  line-height: 1.3 !important;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 24px;
  overflow-wrap: break-word;
}

/* 3. H2 - MAIN SECTIONS */

body.single-post :is(
  .entry-content,
  .post-content,
  .elementor-widget-theme-post-content
) h2 {
  font-size: 27px !important;
  line-height: 1.35 !important;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 16px;
  color: #172b4d;
}

/* 4. H3 - SUBSECTIONS */

body.single-post :is(
  .entry-content,
  .post-content,
  .elementor-widget-theme-post-content
) h3 {
  font-size: 21px !important;
  line-height: 1.4 !important;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 12px;
  color: #172b4d;
}

/* 5. H4 */

body.single-post :is(
  .entry-content,
  .post-content,
  .elementor-widget-theme-post-content
) h4 {
  font-size: 18px !important;
  line-height: 1.45 !important;
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 10px;
}

/* 6. PARAGRAPHS */

body.single-post :is(
  .entry-content,
  .post-content,
  .elementor-widget-theme-post-content
) p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* 7. LISTS */

body.single-post :is(
  .entry-content,
  .post-content,
  .elementor-widget-theme-post-content
) li {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 8px;
}

/* 8. ARTICLE IMAGES */

body.single-post :is(
  .entry-content,
  .post-content,
  .elementor-widget-theme-post-content
) img {
  max-width: 100%;
  height: auto;
}

/* 9. TABLET */

@media (max-width: 1024px) {

  body.single-post :is(
    h1.entry-title,
    .entry-header h1,
    .elementor-widget-theme-post-title h1
  ) {
    font-size: 32px !important;
  }

  body.single-post :is(
    .entry-content,
    .post-content,
    .elementor-widget-theme-post-content
  ) h2 {
    font-size: 25px !important;
  }

}

/* 10. MOBILE */

@media (max-width: 767px) {

  body.single-post :is(
    h1.entry-title,
    .entry-header h1,
    .elementor-widget-theme-post-title h1
  ) {
    font-size: 28px !important;
    line-height: 1.3 !important;
  }

  body.single-post :is(
    .entry-content,
    .post-content,
    .elementor-widget-theme-post-content
  ) h2 {
    font-size: 23px !important;
    margin-top: 30px;
    margin-bottom: 14px;
  }

  body.single-post :is(
    .entry-content,
    .post-content,
    .elementor-widget-theme-post-content
  ) h3 {
    font-size: 19px !important;
    margin-top: 24px;
    margin-bottom: 10px;
  }

  body.single-post :is(
    .entry-content,
    .post-content,
    .elementor-widget-theme-post-content
  ) h4 {
    font-size: 17px !important;
  }

  body.single-post :is(
    .entry-content,
    .post-content,
    .elementor-widget-theme-post-content
  ) p,
  body.single-post :is(
    .entry-content,
    .post-content,
    .elementor-widget-theme-post-content
  ) li {
    font-size: 16px;
    line-height: 1.75;
  }

}

/* =========================================
   TDB HANOI - TRANSPARENT BLOG HEADER
   Only for single blog posts
   ========================================= */

/* TDB HANOI - BLOG H1 FONT SIZE */

body.single-post h1.entry-title,
body.single-post .entry-header h1,
body.single-post .entry-content h1,
body.single-post .elementor-widget-theme-post-title h1 {
    font-size: 42px !important;
    line-height: 1.3 !important;
}

/* Tablet */
@media (max-width: 1024px) {
    body.single-post h1.entry-title,
    body.single-post .entry-header h1,
    body.single-post .entry-content h1,
    body.single-post .elementor-widget-theme-post-title h1 {
        font-size: 34px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body.single-post h1.entry-title,
    body.single-post .entry-header h1,
    body.single-post .entry-content h1,
    body.single-post .elementor-widget-theme-post-title h1 {
        font-size: 28px !important;
    }
}


/* TDB: keep the native article title visible in its banner. */
.single-post .ast-single-entry-banner[data-post-type="post"] .entry-title {
  display: block;
  line-height: 1.25;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-stretch: normal;
  letter-spacing: normal;
  word-spacing: normal;
  transform: none;
  overflow-wrap: anywhere;
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  .single-post .ast-single-entry-banner[data-post-type="post"] {
    padding-top: 160px;
    padding-right: 24px;
    padding-bottom: 40px;
    padding-left: 24px;
  }
}

/* TDB: centered article banner with 150px desktop side insets. */
@media (min-width: 1025px) {
  .single-post .ast-single-entry-banner[data-post-type="post"] {
    padding-left: 0;
    padding-right: 0;
  }
  .single-post .ast-single-entry-banner[data-post-type="post"] > .ast-container {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding-left: 150px;
    padding-right: 150px;
  }
}
.single-post .ast-single-entry-banner[data-post-type="post"] .entry-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* TDB: natural-width, readable typography for all heading levels. */
body h1, body h2, body h3, body h4, body h5, body h6,
body :is(h1, h2, h3, h4, h5, h6) :is(a, span, strong, em) {
  font-family: "Oswald", sans-serif !important;
  font-stretch: normal !important;
  font-variation-settings: normal !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
}

/* TDB: 50px between the article banner and content. */
body.single-post .ast-single-entry-banner + #content {
  padding-top: 50px !important;
}

