/**
 * Page layout
 *
 * Inner pages built with UX Builder use rows with a custom width of 790px
 * (inline style="max-width:790px"), which looks narrow inside the 1400px
 * container. Widen them to 960px: balanced against the ~1340px banners while
 * keeping body text lines readable.
 */
.row[style*="max-width:790px"] {
  max-width: 960px !important;
}

/* Home: "Quick facts" labels (Customizer sets 24px desktop / 20px mobile, 195px/179px wide) */
.home2 .tieude24 {
  font-size: 18px;
  line-height: 26px;
}

/* Wider labels on desktop so lines wrap less (mobile keeps icon + text side by side) */
@media (min-width: 850px) {
  .home2 .tieude24,
  .home2 .tieude24.cosub {
    width: 250px;
  }
}

/* Home: more breathing room between "Quick facts" and "News" */
.home2 .row.News {
  padding-top: 48px;
}

@media (min-width: 850px) {
  .home2 .row.News {
    padding-top: 88px;
  }
}

/* ---------- News cards (home "News" slider + related news under posts) ---------- */
/* Room inside each slide so Flickity's overflow:hidden doesn't clip the shadow */
:is(.blockspone-home, .engement-new) .post-item > .col-inner {
  padding: 12px 0 28px;
}

:is(.blockspone-home, .engement-new) .post-item .box-blog-post {
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 49, 80, 0.05), 0 8px 24px rgba(0, 49, 80, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

:is(.blockspone-home, .engement-new) .post-item .box-blog-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 6px rgba(0, 49, 80, 0.06), 0 14px 32px rgba(0, 49, 80, 0.12);
}

:is(.blockspone-home, .engement-new) .post-item .box-image img {
  border-radius: 0;
}

:is(.blockspone-home, .engement-new) .post-item .box-text {
  padding: 18px 20px 20px;
}

@media (prefers-reduced-motion: reduce) {
  :is(.blockspone-home, .engement-new) .post-item .box-blog-post {
    transition: none;
  }

  :is(.blockspone-home, .engement-new) .post-item .box-blog-post:hover {
    transform: none;
  }
}

/* Home: more space between the "Quick facts" title and its items */
.home2 .row:not(.News) > .col > .col-inner > .tieude-home1 {
  margin-bottom: 16px;
}

@media (min-width: 850px) {
  .home2 .row:not(.News) > .col > .col-inner > .tieude-home1 {
    margin-bottom: 24px;
  }
}

/* ---------- Home: "Check your eligibility" call to action ---------- */
.button.validate-button-eligibility {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 68px;
  padding: 16px 28px !important; /* Flatsome zeroes the side padding of .button.expand */
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(100deg, #003150 0%, #004a73 50%, #00759a 100%);
  background-size: 160% 100%;
  background-position: 0 0;
  box-shadow: 0 6px 18px rgba(0, 49, 80, 0.22);
  color: #fff !important;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.4s ease;
}

.button.validate-button-eligibility > span {
  position: relative;
  z-index: 1;
}

/* Arrow in a circle */
.button.validate-button-eligibility > i {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 20px;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

/* Light sweep on hover */
.button.validate-button-eligibility::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.button.validate-button-eligibility:hover,
.button.validate-button-eligibility:focus-visible {
  background-position: 100% 0;
  box-shadow: 0 12px 28px rgba(0, 49, 80, 0.3);
  transform: translateY(-2px);
}

.button.validate-button-eligibility:hover::after {
  transform: translateX(120%);
}

.button.validate-button-eligibility:hover > i,
.button.validate-button-eligibility:focus-visible > i {
  background: #fff;
  color: #003150;
  transform: translateX(4px);
}

.button.validate-button-eligibility:focus-visible {
  outline: 3px solid #19b2d6;
  outline-offset: 3px;
}

/* Mobile: text left, arrow stays on the same line at the right */
@media (max-width: 549px) {
  .button.validate-button-eligibility {
    justify-content: space-between;
    gap: 14px;
    min-height: 0;
    padding: 16px 16px 16px 20px !important;
    font-size: 16px;
    text-align: left;
  }

  .button.validate-button-eligibility > i {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button.validate-button-eligibility,
  .button.validate-button-eligibility > i,
  .button.validate-button-eligibility::after {
    transition: none;
  }

  .button.validate-button-eligibility:hover,
  .button.validate-button-eligibility:hover > i {
    transform: none;
  }
}

/* Narrower CTA on tablet/desktop (Flatsome .expand forces max-width/width 100% !important) */
@media (min-width: 550px) {
  .button.validate-button-eligibility {
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Mobile/tablet: "Quick facts" labels use the full width next to the icon
   (Customizer fixes them at 195px/179px with an 84px min-height) */
@media (max-width: 849px) {
  .home2 .tieude24,
  .home2 .tieude24.cosub {
    width: auto;
    min-height: 0;
  }
}

/* ---------- Contact page (VI: page-id-10435, EN: page-id-304) ---------- */
:is(.page-id-10435, .page-id-304) #content > .section:first-of-type .row {
  max-width: 1120px;
  align-items: stretch;
}

/* Info column: navy card (desktop row: first column; mobile row: last column) */
:is(.page-id-10435, .page-id-304) #content > .section:first-of-type :is(.row.hide-for-small > .col:first-child, .row.show-for-small > .col:last-child) > .col-inner {
  position: relative;
  height: 100%;
  padding: 44px 40px 56px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(25, 110, 160, 0.35) 0%, rgba(25, 110, 160, 0) 55%),
    linear-gradient(160deg, #003a5e 0%, #003150 55%, #00263f 100%);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 49, 80, 0.16), 0 4px 12px rgba(0, 49, 80, 0.08);
}

/* Brand corner triangle with the white star (same 171:470 shape as the footer's Vector-11.svg) */
:is(.page-id-10435, .page-id-304) #content > .section:first-of-type :is(.row.hide-for-small > .col:first-child, .row.show-for-small > .col:last-child) > .col-inner::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 109px;   /* 300 * 171 / 470 */
  height: 300px;
  background: url("../img/triangle-star.svg") no-repeat right bottom / contain;
  pointer-events: none;
}

@media (max-width: 549px) {
  :is(.page-id-10435, .page-id-304) #content > .section:first-of-type :is(.row.hide-for-small > .col:first-child, .row.show-for-small > .col:last-child) > .col-inner::after {
    width: 80px;  /* 220 * 171 / 470 */
    height: 220px;
  }
}

:is(.page-id-10435, .page-id-304) #content > .section:first-of-type :is(.row.hide-for-small > .col:first-child, .row.show-for-small > .col:last-child) :is(h1, h2, h3, .tieude36) {
  margin-bottom: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.25;
}

:is(.page-id-10435, .page-id-304) #content > .section:first-of-type :is(.row.hide-for-small > .col:first-child, .row.show-for-small > .col:last-child) .gap-element {
  padding-top: 20px !important;
}

:is(.page-id-10435, .page-id-304) #content > .section:first-of-type :is(.row.hide-for-small > .col:first-child, .row.show-for-small > .col:last-child) p {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.6;
}

/* Office name is coloured inline (#00759a) - too dark on navy */
:is(.page-id-10435, .page-id-304) #content > .section:first-of-type :is(.row.hide-for-small > .col:first-child, .row.show-for-small > .col:last-child) p span[style*="color"] {
  color: #8fdcf0 !important;
  font-size: 17px;
}

:is(.page-id-10435, .page-id-304) #content > .section:first-of-type :is(.row.hide-for-small > .col:first-child, .row.show-for-small > .col:last-child) a:not(.button) {
  color: #fff;
}

:is(.page-id-10435, .page-id-304) #content > .section:first-of-type .social-icons {
  margin-top: 8px;
}

/* Social icons: no outline circle, larger glyphs, 44px tap target */
:is(.page-id-10435, .page-id-304) #content > .section:first-of-type .social-icons .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 4px 0 0;
  padding: 0;
  color: #fff !important;
  font-size: 24px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

:is(.page-id-10435, .page-id-304) #content > .section:first-of-type .social-icons .button i {
  font-size: 24px;
}

:is(.page-id-10435, .page-id-304) #content > .section:first-of-type .social-icons .button:first-child {
  margin-left: -10px;
}

:is(.page-id-10435, .page-id-304) #content > .section:first-of-type .social-icons .button:hover {
  color: #8fdcf0 !important;
}

/* Right column: white form card */
:is(.page-id-10435, .page-id-304) #content > .section:first-of-type .row.hide-for-small > .col:last-child > .col-inner {
  height: 100%;
}

:is(.page-id-10435, .page-id-304) .contact-us {
  height: 100%;
  padding: 40px 36px;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 49, 80, 0.05), 0 12px 32px rgba(0, 49, 80, 0.08);
}

:is(.page-id-10435, .page-id-304) .contact-us input:not([type="submit"]),
:is(.page-id-10435, .page-id-304) .contact-us textarea {
  height: 48px;
  margin-bottom: 4px;
  padding: 0 16px;
  color: #000;
  font-size: 15px;
  background: #f7f9fb;
  border: 1px solid #d5dde5;
  border-radius: 10px;
  box-shadow: none;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

:is(.page-id-10435, .page-id-304) .contact-us textarea {
  height: 150px;
  padding: 12px 16px;
}

:is(.page-id-10435, .page-id-304) .contact-us input::placeholder,
:is(.page-id-10435, .page-id-304) .contact-us textarea::placeholder {
  color: #5a6470;
}

:is(.page-id-10435, .page-id-304) .contact-us input:not([type="submit"]):focus,
:is(.page-id-10435, .page-id-304) .contact-us textarea:focus {
  background: #fff;
  border-color: #00759a;
  box-shadow: 0 0 0 3px rgba(0, 117, 154, 0.15);
  outline: none;
}

:is(.page-id-10435, .page-id-304) .contact-us input[type="submit"] {
  height: 52px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(100deg, #003150 0%, #004a73 50%, #00759a 100%);
  background-size: 160% 100%;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 49, 80, 0.22);
  transition: background-position 0.4s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

:is(.page-id-10435, .page-id-304) .contact-us input[type="submit"]:hover {
  background-position: 100% 0;
  box-shadow: 0 10px 24px rgba(0, 49, 80, 0.3);
  transform: translateY(-1px);
}

@media (max-width: 849px) {
  :is(.page-id-10435, .page-id-304) #content > .section:first-of-type :is(.row.hide-for-small > .col:first-child, .row.show-for-small > .col:last-child) > .col-inner {
    padding: 32px 24px 48px;
  }

  :is(.page-id-10435, .page-id-304) .contact-us {
    padding: 28px 20px;
  }
}

/* ---------- FAQ accordions (.accordion.frequentyask, 6 FAQ pages EN/VI) ---------- */
.accordion.frequentyask .accordion-item,
.accordion.frequentyask .accordion-item:nth-child(odd),
.accordion.frequentyask .accordion-item:nth-child(even) {
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid #e3e9ef;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 49, 80, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.accordion.frequentyask .accordion-item:hover {
  border-color: #c9d8e3;
  box-shadow: 0 6px 18px rgba(0, 49, 80, 0.07);
}

.accordion.frequentyask .accordion-item:has(> .accordion-title.active) {
  border-color: #00759a;
  box-shadow: inset 3px 0 0 #00759a, 0 8px 22px rgba(0, 49, 80, 0.08);
}

/* Question */
.accordion.frequentyask .accordion-item .accordion-title {
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 18px 64px 18px 22px;
  color: #003150;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  border: 0;
  transition: background-color 0.2s, color 0.2s;
}

.accordion.frequentyask .accordion-item .accordion-title:hover {
  background: #f3f9fc;
}

.accordion.frequentyask .accordion-item .accordion-title.active {
  color: #00759a;
  background: #f3f9fc;
}

/* +/- icon drawn in CSS (replaces cong.svg / tru.svg) */
.accordion.frequentyask .accordion-item .toggle {
  top: 50%;
  right: 18px;
  left: auto;
  width: 32px;
  height: 32px;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: #e6f3f8;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background-color 0.2s;
}

/* Customizer sizes this icon 18x18 (and again for .active): fill the circle instead */
.accordion.frequentyask .accordion-item .toggle .icon-angle-down {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  background: none !important;
}

.accordion.frequentyask .accordion-item .toggle .icon-angle-down::before,
.accordion.frequentyask .accordion-item .toggle .icon-angle-down::after {
  content: "";
  display: block !important;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: #003150;
  border-radius: 2px;
  transition: transform 0.25s ease, background-color 0.2s;
}

.accordion.frequentyask .accordion-item .toggle .icon-angle-down::after {
  transform: rotate(90deg);
}

.accordion.frequentyask .accordion-item .active .toggle {
  background: #003150;
}

.accordion.frequentyask .accordion-item .active .toggle .icon-angle-down::before,
.accordion.frequentyask .accordion-item .active .toggle .icon-angle-down::after {
  background: #fff;
}

.accordion.frequentyask .accordion-item .active .toggle .icon-angle-down::after {
  transform: rotate(0deg);
}

/* Flatsome rotates the toggle when active; keep our circle upright */
.accordion.frequentyask .accordion-item .active .toggle i {
  transform: none;
}

/* Answer */
.accordion.frequentyask .accordion-item .accordion-inner {
  padding: 4px 22px 22px;
  color: #000;
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 549px) {
  .accordion.frequentyask .accordion-item .accordion-title {
    padding: 16px 56px 16px 16px;
    font-size: 16px;
  }

  .accordion.frequentyask .accordion-item .toggle {
    right: 14px;
  }

  .accordion.frequentyask .accordion-item .accordion-inner {
    padding: 4px 16px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .accordion.frequentyask .accordion-item .toggle .icon-angle-down::before,
  .accordion.frequentyask .accordion-item .toggle .icon-angle-down::after {
    transition: none;
  }
}

/* Contact form: clear spacing between fields */
:is(.page-id-10435, .page-id-304) .contact-us .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 14px;
}

:is(.page-id-10435, .page-id-304) .contact-us input:not([type="submit"]),
:is(.page-id-10435, .page-id-304) .contact-us textarea {
  margin-bottom: 0;
}

/* ---------- Footer (inner pages): full width, taller ---------- */
#footer {
  padding-bottom: 0;
}

#footer > .section {
  margin-top: 56px;
  padding-top: 72px !important;    /* UX Builder sets section padding inline */
  padding-bottom: 40px !important;
  overflow: hidden;
}

@media (max-width: 549px) {
  #footer > .section {
    margin-top: 40px;
    padding-top: 48px !important;
    padding-bottom: 28px !important;
  }
}

/* Contact page: more vertical room around the two cards */
:is(.page-id-10435, .page-id-304) #content > .section:first-of-type {
  padding-top: 48px !important;
  padding-bottom: 96px !important;
}

@media (max-width: 549px) {
  :is(.page-id-10435, .page-id-304) #content > .section:first-of-type {
    padding-top: 24px !important;
    padding-bottom: 48px !important;
  }
}

/* The home page keeps its own footer (.footer-home in the page content; the Customizer
   hides #footer there with .home #footer{display:none}). The #footer styles above
   therefore apply to every other page. */

/* ---------- Share buttons ([msx_ux]) ---------- */
.aav-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0;
}

.aav-share__label {
  margin-right: 6px;
  color: #000;
  font-size: 16px;
  font-weight: 600;
}

.aav-share__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  color: #fff !important;
  font-size: 18px;
  text-decoration: none !important;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.aav-share__btn:hover,
.aav-share__btn:focus-visible {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  filter: brightness(1.08);
}

.aav-share__btn:focus-visible {
  outline: 3px solid #19b2d6;
  outline-offset: 2px;
}

.aav-share--facebook { background: #1877f2; }
.aav-share--x        { background: #000; }
.aav-share--linkedin { background: #0a66c2; }
.aav-share--whatsapp { background: #128c7e; }
.aav-share--telegram { background: #229ed9; }
.aav-share--email    { background: #5a6470; }
.aav-share--copy     { background: #003150; }
.aav-share--copy.is-copied { background: #00759a; }

.aav-share__toast {
  text-transform: none;
  letter-spacing: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 4px 10px;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  background: #003150;
  border-radius: 6px;
  transform: translateX(-50%);
  pointer-events: none;
}

.aav-share__toast:empty {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .aav-share__btn {
    transition: none;
  }

  .aav-share__btn:hover {
    transform: none;
  }
}

/* Reset Flatsome's default <button> sizing on the copy-link button */
button.aav-share__btn {
  flex: none;
  min-width: 0;
  min-height: 0;
  line-height: 1;
}

/* ---------- Footer columns: balanced grid ---------- */
#footer > .section .tieudefootrt {
  margin-bottom: 16px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  line-height: 32px;
}

#footer > .section :is(.mtfooter, .motafooter) {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 26px;
}

/* Spacing comes from the heading margin; the blocks' own gaps differ per language */
#footer > .section .row:first-child .gap-element {
  display: none !important; /* overrides the inline style="display:block" */
}

@media (min-width: 850px) {
  /* Three columns spread across the row; contact details never wrap */
  #footer > .section .row:first-child {
    display: grid;
    grid-template-columns: minmax(0, 520px) max-content max-content;
    justify-content: space-between;
    column-gap: 48px;
    max-width: 1400px;
  }

  #footer > .section .row:first-child > .col {
    width: auto;
    max-width: none;
    flex-basis: auto;
    padding: 0 15px 24px;
  }

  #footer > .section .row:first-child > .col:not(:first-child) :is(.mtfooter, .motafooter) {
    white-space: nowrap;
  }

  /* Third column has no heading: line its text up with the second column's text */
  #footer > .section .row:first-child > .col:last-child .col-inner {
    padding-top: 48px;
  }
}

/* ---------- Footers: no copyright line, no horizontal rule ---------- */
/* Inner pages (#footer block): the copyright row carries the rule (.duong-line) */
#footer .row.duong-line {
  display: none !important;
}

/* Home (.footer-home): the copyright row follows the columns row, which draws the rule */
.footer-home .row.duongduoi ~ .row {
  display: none !important;
}

.footer-home .row.duongduoi {
  border-bottom: 0 !important;
}

/* ---------- Text selection in brand Teal ---------- */
::selection {
  color: #fff;
  background: #00759a;
}

/* ---------- Body copy line height (~24px at 16px) ---------- */
#main :is(p, li, dd, blockquote) {
  line-height: 1.5;
}

/* ---------- H1 structure (see the_content filter in functions.php) ---------- */
/* Banner title promoted from <div> to <h1>: keep the banner look (white), beating the
   navy content-H1 rules such as .page-template-page-blank .noidung h1 */
h1.tieude32,
.noidung h1.tieude32,
.page-template-page-blank .noidung h1.tieude32,
.dark h1.tieude32 {
  margin: 0;
  color: #fff;
}

/* Former H1s in the content, now H2: keep their old H1 look */
.page-template-page-blank h2.aav-was-h1,
h2.aav-was-h1 {
  margin-bottom: 0.5em;
  padding-bottom: 0;
  color: var(--aav-heading, #003150);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  border-bottom: 0;
}

@media (max-width: 549px) {
  .page-template-page-blank h2.aav-was-h1,
  h2.aav-was-h1 {
    font-size: 26px;
  }
}

/* ---------- Single news post ---------- */
/* Title 1.8em; smaller gap between title and content (Flatsome: 1.5em header + 1.5em content padding) */
.single-post h1.entry-title {
  margin-bottom: 0;
  font-size: 1.8em;
  line-height: 1.3;
}

.single-post .entry-header-text {
  padding-bottom: 0.5em;
}

.single-post .entry-content.single-page {
  padding-top: 0.75em;
}

.single-post .aav-share {
  margin-top: 32px;
}

/* ---------- News category: featured post ---------- */
/* Was a pale grey rounded box with 24px padding: square, white, navy accent */
.bai-dau-tien-dm .col.post-item .col-inner {
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid #e3e9ef;
  border-top: 4px solid var(--aav-heading, #003150);
  border-radius: 0 !important;
  box-shadow: 0 10px 28px rgba(0, 49, 80, 0.10) !important;
}

.bai-dau-tien-dm .col.post-item .col-inner .box-image img {
  border-radius: 0 !important;
}

.bai-dau-tien-dm .box-text {
  padding: 24px 28px !important;
}

@media (max-width: 549px) {
  .bai-dau-tien-dm .box-text {
    padding: 18px 16px 20px !important;
  }

  .bai-dau-tien-dm .post-title a {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 549px) {
  /* 18. Home: tighter gap between "Related websites" and the footer columns */
  .footer-home .row.duongduoi {
    margin-top: -88px;
  }

  /* 19. Home news titles */
  .blockspone-home .post-title,
  .blockspone-home .post-title a {
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
  }

  .blockspone-home .post-title {
    height: auto;
  }

  /* 20. Contact page: space between the "Contact Us" heading and the form */
  :is(.page-id-10435, .page-id-304) .row.show-for-small .tieude-home1,
  :is(.page-id-10435, .page-id-304) .row.show-for-small .tieude36 {
    margin-bottom: 20px;
  }

  /* 23. Page banners: 15px from the screen edge, like the text. Normal columns already
     pad 15px; rows with zero column padding on mobile (.pdmb0, collapse) need a margin. */
  :is(.gdaas30, .gdaas40, .gdaas50, .gdaas60).banner {
    width: auto !important;
    margin-left: 0;
    margin-right: 0;
  }

  /* Any banner (gradient or older style) in a row whose columns have no padding on mobile:
     .pdmb0 rows (also banners placed straight in the row) and full-width / collapse rows.
     The home hero slider stays full width. */
  body:not(.home) #content :is(.pdmb0, .row-collapse, .row-full-width) .banner {
    width: auto !important;
    margin-left: 15px;
    margin-right: 15px;
  }

  /* A column placed straight inside another column (no row between) got the 15px padding
     twice: drop the inner one */
  #content .col-inner > .col {
    padding-left: 0;
    padding-right: 0;
  }

  /* Wide tables scroll sideways inside the 15px gutters instead of overflowing the screen */
  #content table.tablepress,
  #content .noidung table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---------- Home slider caption ---------- */
/* No box: plain white text with a soft shadow so it reads on the photo */
.home .slider-wrapper .slider-home-text {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.home .slider-wrapper .slider-home-text a {
  color: #fff !important;
  text-underline-offset: 6px;
}

/* ---------- Slider pagination: thin flat bars instead of round dots ---------- */
.flickity-page-dots .dot,
.nav-dots-small .flickity-page-dots .dot,
.row-slider .flickity-page-dots .dot,
.slider-nav-light .flickity-page-dots .dot {
  width: 28px;
  height: 4px;
  margin: 0 4px;
  border: 0 !important;
  border-radius: 2px;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.5);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.flickity-page-dots .dot.is-selected {
  width: 44px;
  background-color: #fff;
}

/* Sliders on a white background (e.g. home news): navy bars */
.row-slider .flickity-page-dots .dot,
.nav-dots-small .flickity-page-dots .dot {
  background-color: rgba(0, 49, 80, 0.25);
}

.row-slider .flickity-page-dots .dot.is-selected,
.nav-dots-small .flickity-page-dots .dot.is-selected {
  background-color: #003150;
}

@media (prefers-reduced-motion: reduce) {
  .flickity-page-dots .dot {
    transition: none;
  }
}


/* ---------- News post meta (date · category · author) ---------- */
.aav-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0 0 24px;
  padding-bottom: 16px;
  color: #5a6470;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid #e3e9ef;
}

.aav-post-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Small inline icons (calendar, folder, person) */
.aav-post-meta__item::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background-color: #00759a;
  -webkit-mask: var(--aav-icon) no-repeat center / contain;
  mask: var(--aav-icon) no-repeat center / contain;
}

.aav-post-meta__date {
  --aav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}

.aav-post-meta__cat {
  --aav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
}

.aav-post-meta__author {
  --aav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}

.aav-post-meta a {
  color: #00759a;
}

/* ---------- Content typed directly into a page (outside UX Builder rows) ----------
   e.g. a YouTube embed or paragraphs after the last section: they sat on #content with
   no container, flush to the screen edge. Give them the content width and 15px gutters. */
#content > :is(p, h1, h2, h3, h4, h5, h6, ul, ol, table, blockquote, figure, .wp-block-embed, .wp-block-image) {
  box-sizing: border-box;
  max-width: 1370px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

#content > :is(p, figure, .wp-block-embed) iframe {
  max-width: 100%;
}

/* Home hero slider: full width on desktop, 15px from the screen edge on mobile
   (same as the page banners) */
@media (max-width: 549px) {
  .home .slider-wrapper.gradien-top {
    margin-top: 15px;
    margin-left: 15px;
    margin-right: 15px;
  }
}
