/* ==========================================================================
   8XBET — main stylesheet
   Hand-authored. Layout, scale and colour values mirror the original design.

   Contents
   1.  Design tokens
   2.  Reset & base elements
   3.  Layout primitives (container / row / col)
   4.  Utilities & responsive visibility
   5.  Buttons
   6.  Header
   7.  Off-canvas mobile menu
   8.  Section titles
   9.  Article content (figures, lists, tables)
   10. Blog post grid ("TIN TỨC")
   11. Footer
   12. Back-to-top
   13. Responsive
   ========================================================================== */


/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
  --primary-color:   #446084;
  --secondary-color: #d26e4b;
  --success-color:   #7a9c59;
  --alert-color:     #b20000;

  --heading-color:   #4ea3ed;
  --body-color:      #000000;
  --link-color:      #277be1;
  --link-color-hover:#111111;

  --nav-link-color:        #1a6db6;
  --nav-link-color-active: #000000;

  --page-bg:         #fafafa;
  --content-bg:      #ffffff;
  --header-bg:       rgba(255, 255, 255, .9);
  --header-bottom-bg:#f1f1f1;
  --footer-bar-bg:   #5b5b5b;

  --rule-color:      rgba(0, 0, 0, .1);
  --table-rule:      #ececec;

  --container-width: 1270px;
  --gutter:          15px;
  --header-height:   90px;
  --header-height-stuck: 70px;
  --drawer-width:    300px;

  --body-font: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}


/* ==========================================================================
   2. Reset & base elements
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background-color: var(--page-bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 100%;              /* 16px */
  font-weight: 400;
  line-height: 1.6;             /* 25.6px */
  color: var(--body-color);
  background-color: var(--content-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#wrapper,
#main { background-color: var(--content-bg); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-family: var(--body-font);
  font-weight: 700;
  line-height: 1.3;
  color: var(--heading-color);
}

h1 { font-size: 1.7em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.25em; line-height: 1.6; }
h4 { font-size: 1.125em; line-height: 1.6; }
h5 { font-size: 1em;     line-height: 1.6; }
h6 { font-size: .85em;   line-height: 1.6; }

p { margin: 0 0 1.3em; }

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color .2s ease-out;
}
a:hover { color: var(--link-color-hover); }

strong, b { font-weight: 700; }
em { font-style: italic; }

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

figure { margin: 0 0 1em; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul, ol { margin: 0 0 1.3em; padding: 0; }
ul { list-style: disc outside; }
ol { list-style: decimal outside; }
li { margin: 0 0 .6em 1.3em; }

table {
  width: 100%;
  margin-bottom: 1em;
  border-collapse: separate;
  border-spacing: 0;
}

/* Keyboard-only skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 15px 23px;
  background: #ddd;
  color: #444;
}
.skip-link:focus { left: 5px; top: 5px; }

[hidden] { display: none !important; }


/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

.col {
  position: relative;
  width: 100%;
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 var(--gutter) 30px;
}

#content { padding: 30px 0; }

.col-inner { position: relative; width: 100%; }

/* A column already supplies the 15px gutter, so containers and full-width
   columns nested inside one must not add a second helping. */
.col-inner .container { padding-left: 0; padding-right: 0; }
.col-inner .row > .col.large-12 { padding-left: 0; padding-right: 0; }

/* Tighter gutters used by the post grid */
.row-small { margin-left: -10px; margin-right: -10px; max-width: 100%; }
.row-small > .col { padding: 0 9.8px 19.6px; }

/* Column widths — desktop ("large") */
@media (min-width: 850px) {
  .col.large-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
  .col.large-2  { flex: 0 0 16.6666%; max-width: 16.6666%; }
  .col.large-3  { flex: 0 0 25%;      max-width: 25%; }
  .col.large-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col.large-6  { flex: 0 0 50%;      max-width: 50%; }
  .col.large-8  { flex: 0 0 66.6666%; max-width: 66.6666%; }
  .col.large-9  { flex: 0 0 75%;      max-width: 75%; }
  .col.large-12 { flex: 0 0 100%;     max-width: 100%; }
}


/* ==========================================================================
   4. Utilities & responsive visibility
   ========================================================================== */

.text-center { text-align: center; }
.brand       { text-transform: none !important; }
.is-small    { font-size: 90%; }
.is-xsmall   { font-size: 70%; }
.is-white    { color: #fff; }

.fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.clearfix::after { content: ""; display: table; clear: both; }

/* Horizontal rules */
.is-divider {
  display: block;
  height: 2px;
  width: 30px;
  margin: .45em auto;
  background-color: var(--rule-color);
}
.is-divider.divider.clearfix {
  width: 100%;
  max-width: 100%;
  height: 1px;
  margin: 0;
}

.top-divider {
  width: 100%;
  height: 1px;
  border-top: 1px solid currentColor;
  opacity: .1;
}

.gap-element { display: block; height: 80px; }

/* Breakpoint helpers — "medium" is the 849px tablet cut, matching the source */
.show-for-medium { display: none !important; }

@media (max-width: 849px) {
  .hide-for-medium { display: none !important; }
  .show-for-medium { display: block !important; }
  .nav.show-for-medium { display: flex !important; }
}


/* ==========================================================================
   5. Buttons
   ========================================================================== */

.button {
  display: inline-block;
  margin: 0;
  padding: 0 1.2em;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 0;
  font-weight: 700;
  line-height: 2.4em;
  min-height: 2.5em;
  letter-spacing: .03em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s ease-out, color .2s ease-out, transform .2s ease-out;
}

.button.is-medium { font-size: 13.2px; }

.button.secondary {
  background-color: var(--secondary-color);
  color: #fff;
  border-radius: 10px;
}
.button.secondary:hover {
  background-color: #c05f3d;
  color: #fff;
}

/* -- Header CTA pills: blue gradient with light accent bars above/below -- */
.button.cta {
  position: relative;
  border: 0;
  border-radius: 999px;
  padding: 0 1.9em;
  background: linear-gradient(180deg, #2f86e8 0%, #1257c4 55%, #0b3f9e 100%);
  color: #fff;
  letter-spacing: .05em;
  box-shadow: 0 4px 12px rgba(11, 63, 158, .32);
}
.button.cta::before,
.button.cta::after {
  content: "";
  position: absolute;
  left: 0;
  width: 42%;
  height: 3px;
  border-radius: 3px;
  background: #3d93f0;
  will-change: transform, opacity;
}

/* The two bars sweep in opposite directions and fade at each end, so the pair
   reads as one light circling the pill and the loop has no visible reset. */
.button.cta::before {
  top: -7px;
  animation: cta-sweep-top 2.8s linear infinite;
}
.button.cta::after {
  bottom: -7px;
  animation: cta-sweep-bottom 2.8s linear infinite;
}

/* 138% of the bar's own width == the remaining 58% of the button */
@keyframes cta-sweep-top {
  0%   { transform: translateX(0);    opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: translateX(138%); opacity: 0; }
}
@keyframes cta-sweep-bottom {
  0%   { transform: translateX(138%); opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: translateX(0);    opacity: 0; }
}

/* In-article CTA sits in a paragraph, so reserve room for the sweeping bars */
.cta-wrap {
  margin-top: 1.9em;
  margin-bottom: 1.9em;
}
.cta-wrap .button.cta { padding: 0 2.2em; }

.button.cta:hover {
  background: linear-gradient(180deg, #3d93f0 0%, #1a66d8 55%, #0d4ab4 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 63, 158, .42);
}
.button.cta:active { transform: translateY(1px); }

.button.plain {
  border-color: transparent;
  background: transparent;
}
.button.is-outline {
  background: transparent;
  border-width: 1.6px;
  border-style: solid;
}
.button.circle { border-radius: 999px; }


/* ==========================================================================
   6. Header
   ========================================================================== */

#header {
  position: relative;
  z-index: 1001;
}

.header-wrapper {
  position: relative;
  width: 100%;
}

.header-main {
  position: relative;
  height: var(--header-height);
  transition: height .3s ease-out;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-bg-container { z-index: -1; }
.header-bg-color     { background-color: var(--header-bg); }

/* -- Logo -- */
#logo {
  flex: 0 0 auto;
  width: 150px;
  margin-right: 30px;
  line-height: 1;
}
#logo a { display: block; }
#logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--header-height);
  object-fit: contain;
  transition: max-height .3s ease-out;
}

/* -- Nav lists -- */
.header-col-left  { flex: 1 1 auto; min-width: 0; }
.header-col-right { flex: 0 0 auto; margin-left: auto; }

.nav {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav > li { margin: 0 9px; }
.nav-left    { justify-content: flex-start; }
.nav-right   { justify-content: flex-end; }
.nav-center  { justify-content: center; }
.nav > li:first-child { margin-left: 0; }
.nav > li:last-child  { margin-right: 0; }

.header-nav-main > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: .01em;
  text-transform: none;
  white-space: nowrap;
  color: var(--nav-link-color);
}
.header-nav-main > li > a:hover,
.header-nav-main > li.active > a,
.header-nav-main > li.current-menu-item > a {
  color: var(--nav-link-color-active);
}

/* Buttons living inside the nav must not inherit the nav link colour */
.header-nav-main > li.html { display: flex; align-items: center; }
.header-button { line-height: 1; }

/* -- Mobile hamburger -- */
.mobile-nav { list-style: none; }
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--body-color);
}

.header-col-mobile-left,
.header-col-mobile-right { flex: 1 1 0; }
.header-col-mobile-right { display: flex; justify-content: flex-end; }

/* -- Secondary bar (mobile CTA buttons) -- */
.header-bottom {
  min-height: 55px;
  background-color: var(--header-bottom-bg);
}
.header-bottom .container {
  display: flex;
  align-items: center;
  min-height: 55px;
}
.header-bottom-nav { width: 100%; }
.header-bottom-nav > li { margin: 0 7px; }

.header-bottom-nav > li > a {
  display: flex;
  align-items: center;
  min-height: 55px;
  padding: 0 2px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--nav-link-color);
}
.header-bottom-nav > li > a:hover,
.header-bottom-nav > li.current-menu-item > a { color: var(--nav-link-color-active); }


/* -- Sticky state -- */
#header.stuck .header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
  animation: header-jump .3s ease-out;
}
#header.stuck .header-main { height: var(--header-height-stuck); }
#header.stuck #logo img    { max-height: var(--header-height-stuck); }
#header.stuck .header-bg-color { background-color: #fff; }

@keyframes header-jump {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* Hold the accent bars still, centred, for reduced-motion visitors */
  .button.cta::before,
  .button.cta::after {
    animation: none;
    left: 50%;
    width: 62%;
    opacity: 1;
    transform: translateX(-50%);
  }
  #header.stuck .header-wrapper { animation: none; }
  .header-main, #logo img { transition: none; }
}


/* ==========================================================================
   7. Off-canvas mobile menu
   ========================================================================== */

.off-canvas-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  transition: opacity .25s ease-out;
}
.off-canvas-overlay.is-open { opacity: 1; }

.mobile-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 1060;
  width: var(--drawer-width);
  max-width: 85vw;
  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: transform .25s ease-out;
}
.off-canvas-left { left: 0; transform: translateX(-100%); }
.off-canvas-left.is-open { transform: translateX(0); }

.sidebar-menu { padding: 20px 0; }

.off-canvas-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 10px 10px auto;
  color: var(--body-color);
}

.nav-sidebar {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-sidebar > li { margin: 0; }
.nav-sidebar > li > a {
  display: block;
  padding: .8em 20px;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--nav-link-color);
}
.nav-sidebar > li > a:hover,
.nav-sidebar > li.current-menu-item > a { color: var(--nav-link-color-active); }

body.menu-open { overflow: hidden; }


/* ==========================================================================
   8. Section titles
   ========================================================================== */

.section { position: relative; }
.section-content { position: relative; }

.section-main {
  padding: 30px 0;
  padding-left: 0;
  padding-right: 0;
  background-color: var(--content-bg);
}

.section-title-container {
  display: flow-root;
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.section-title b {
  display: block;
  flex: 1 1 0;
  height: 2px;
  background-color: currentColor;
  opacity: .1;
}
.section-title-main {
  display: block;
  margin: 0 15px;
}

/* Centred variant — flanking rules, used by the H1 */
.section-title-center .section-title-main { text-align: center; }

/* Bold variant — left aligned with a short underline, used by "TIN TỨC" */
.section-title-bold b { display: none; }
.section-title-bold {
  justify-content: flex-start;
  margin-bottom: .5em;
}
.section-title-bold .section-title-main {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: .3em .8em;
  line-height: 1.4;
  border-bottom: 2px solid var(--rule-color);
}

.icon-angle-down {
  width: 16px;
  height: 16px;
  margin-right: .5em;
  opacity: .6;
  flex: 0 0 auto;
}

/* Hero banner */
.banner-img { width: 100%; margin-bottom: 1em; }
.banner-img img { display: block; width: 100%; height: auto; }


.read-more {
  margin: -.4em 0 1.6em;
  padding: .55em .9em;
  border-left: 3px solid var(--heading-color);
  background: #f4f8fd;
  font-size: .925em;
}
.read-more a { font-weight: 700; }

.meta-updated {
  margin: -.4em 0 1.6em;
  font-size: .875em;
  color: #666;
}

/* --- Breadcrumbs (sub-pages) --- */
.breadcrumb {
  margin: 0 0 1em;
  padding: 0;
  font-size: .875em;
  color: #666;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before {
  content: "›";
  margin: 0 .5em;
  color: #999;
}
.breadcrumb a { color: var(--link-color); }
.breadcrumb [aria-current="page"] { color: #666; }


/* ==========================================================================
   9. Article content
   ========================================================================== */

.entry-content ul,
.entry-content ol { margin: 0 0 1.3em; }
.entry-content li { margin: 0 0 .6em 1.3em; }

/* -- Captioned figures -- */
.wp-caption {
  max-width: 100%;
  margin-bottom: 2em;
}
.wp-caption img { display: block; width: 100%; height: auto; }
.wp-caption-text {
  margin: 0;
  padding: 5.76px;
  background-color: rgba(0, 0, 0, .05);
  font-size: .9em;
  line-height: 1.6;
  text-align: center;
  color: var(--body-color);
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* -- Tables -- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1em;
}
.table-scroll table { margin-bottom: 0; }

table td {
  padding: 7.2px 7.2px 7.2px 0;
  border-bottom: 1px solid var(--table-rule);
  font-size: .9em;
  line-height: 1.3;
  color: #666;
  text-align: left;
  vertical-align: top;
}

table th {
  padding: 9px 12px 9px 0;
  border-bottom: 2px solid var(--primary-color);
  font-size: .9em;
  line-height: 1.3;
  font-weight: 700;
  color: var(--primary-color);
  text-align: left;
  vertical-align: bottom;
}
table thead th:not(:first-child),
table tbody td:not(:first-child) { padding-left: 12px; }
table tbody tr:nth-child(even) td { background-color: rgba(68, 96, 132, .035); }
table tbody tr:last-child td { border-bottom: 0; }

/* -- Opening paragraph -- */
.lead {
  font-size: 1.06em;
  line-height: 1.65;
}

/* -- Callout blocks (formulas, the 18+ notice) -- */
.note {
  margin: 0 0 1.3em;
  padding: 14px 18px;
  border-left: 3px solid var(--primary-color);
  background-color: rgba(68, 96, 132, .05);
}
.note > p { margin: 0; }
.note > p + p { margin-top: .7em; }
.note-age {
  border-left-color: var(--secondary-color);
  background-color: rgba(210, 110, 75, .07);
}

/* -- Numbered walkthroughs -- */
ol.steps {
  margin: 0 0 1.3em;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
ol.steps > li {
  position: relative;
  margin: 0 0 .7em;
  padding-left: 38px;
  counter-increment: step;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .15em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: .82em;
  font-weight: 700;
  line-height: 1;
}

/* -- Larger call-to-action button -- */
.button.is-large { font-size: 1.15em; }
.entry-content p.text-center { margin-bottom: 1.6em; }


/* ==========================================================================
   10. Blog post grid — "TIN TỨC"
   ========================================================================== */

.large-columns-4 > .col { flex: 0 0 25%; max-width: 25%; }

.box { position: relative; }

.box-image { position: relative; overflow: hidden; }

.image-cover {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;             /* 16:9 */
}
.image-cover a { display: block; }
.image-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease-out, opacity .3s ease-out;
}
.box.has-hover:hover .image-cover img { transform: scale(1.06); }

.box-text {
  padding: .7em 10px 1.4em;
  font-size: .9em;                  /* 14.4px */
}

.post-title {
  margin: .1em 0;
  line-height: 1.4;
}
.post-title.is-large { font-size: 1.15em; }
.post-title a { color: var(--heading-color); }
.post-title a:hover { color: var(--link-color-hover); }

.from_the_blog_excerpt {
  margin: .1em 0;
  color: var(--body-color);
  line-height: 1.6;
}

/* Date badge */
.badge {
  position: absolute;
  top: 1.333em;
  left: 0;
  display: table;
  width: 2.8em;
  height: 2.8em;
  margin-left: -.4em;
  font-size: 16px;
  z-index: 2;
}
.badge-inner {
  display: table-cell;
  vertical-align: middle;
  width: 100%;
  height: 100%;
  padding: 2px;
  background-color: #fff;
  color: var(--primary-color);
  font-weight: 700;
  line-height: .85;
  text-align: center;
}
.badge-outline .badge-inner { border: 2px solid var(--primary-color); }

.post-date-day   { font-size: 1em; }
.post-date-month { font-size: .7em; }


/* ==========================================================================
   11. Footer
   ========================================================================== */

.footer-wrapper {
  background-color: #f4f6f9;
  border-top: 1px solid rgba(0, 0, 0, .07);
  color: #4a4a4a;
}

.footer-section { padding: 48px 0 0; }

#footer h5 {
  margin: 0 0 1.1em;
  font-size: .8em;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-color);
}

/* -- Link columns -- */
.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li { margin: 0 0 .6em; }
.footer-links a {
  font-size: .9em;
  line-height: 1.45;
  color: #4a4a4a;
}
.footer-links a:hover { color: var(--nav-link-color); }

/* -- Brand column -- */
.footer-about p {
  margin: 0 0 1.1em;
  font-size: .875em;
  line-height: 1.65;
  color: #4a4a4a;
}
.footer-logo {
  display: block;
  width: 150px;
  margin-bottom: 1.1em;
}
.footer-logo img { display: block; width: 100%; height: auto; }

/* -- Contact strip under the columns -- */
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px 26px;
  margin-top: 12px;
  padding-top: 20px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(0, 0, 0, .08);
  font-size: .85em;
  color: #5a5a5a;
}
.footer-contact .fc-item strong { color: #333; font-weight: 700; }
.footer-contact a { color: #4a4a4a; }
.footer-contact a:hover { color: var(--nav-link-color); }
/* DMCA badge sits under the social icons. Artwork is 150x75 (2:1); render at
   half size and reserve the box so the external image cannot shift the column. */
.footer-about .dmca-badge { display: block; width: 96px; margin-top: 18px; line-height: 0; }
.dmca-badge img { width: 96px; height: 48px; opacity: .85; }
.dmca-badge:hover img { opacity: 1; }

/* -- Social icons -- */
.social-icons {
  display: inline-flex;
  flex-wrap: wrap;
  font-size: 70%;
}
.social-icons a.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5em;
  min-height: 2.5em;
  margin: 0 .3em .5em 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background-color: #2c3440;
  color: #fff;
  font-size: .97em;
  line-height: 1;
  transition: background-color .2s ease-out;
}
.social-icons a.icon:hover { background-color: var(--nav-link-color); color: #fff; }
.social-icons a.icon svg { width: 1.2em; height: 1.2em; }

/* -- Copyright bar -- */
.absolute-footer {
  padding: 14px 0 16px;
  background-color: var(--footer-bar-bg);
  color: rgba(255, 255, 255, .65);
  font-size: .85em;
}
.absolute-footer.text-center { text-align: center; }
.absolute-footer a { color: rgba(255, 255, 255, .85); }
.copyright-footer { margin: 0; padding: 0; }


/* ==========================================================================
   12. Back-to-top
   ========================================================================== */

/* Compound selector so the outline survives .button.plain's transparent border. */
.back-to-top.button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 21;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38.8px;
  height: 38.8px;
  min-height: 38.8px;
  padding: 0;
  border: 2px solid #000;
  border-radius: 999px;
  background: transparent;
  color: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease-out, visibility .3s ease-out, background-color .2s;
}
.back-to-top.active { opacity: 1; visibility: visible; }
.back-to-top.button:hover { background-color: #000; color: #fff; }


/* ==========================================================================
   13. Responsive
   ========================================================================== */

/* --- Tablet and below (Flatsome "medium") --- */
@media (max-width: 849px) {

  /* Logo centres, hamburger sits left */
  .header-inner { justify-content: space-between; }

  #logo {
    order: 2;
    width: 150px;
    margin: 0;
    text-align: center;
  }
  .header-col-mobile-left  { order: 1; }
  .header-col-mobile-right { order: 3; }

  .medium-columns-1 > .col { flex: 0 0 100%; max-width: 100%; }

  .col.medium-6 { flex: 0 0 50%;      max-width: 50%; }
  .col.medium-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }

  .wp-caption { width: 100% !important; }

  .gap-element { height: 40px; }
}

/* --- Phone (Flatsome "small") --- */
@media (max-width: 549px) {

  :root { --header-height: 70px; }

  #logo { width: 124px; }

  h1 { font-size: 1.4em; }
  h2 { font-size: 1.2em; }
  h3 { font-size: 1em; }

  .small-columns-1 > .col { flex: 0 0 100%; max-width: 100%; }

  .col.small-12 { flex: 0 0 100%; max-width: 100%; }
  .col.small-6  { flex: 0 0 50%;  max-width: 50%; }

  /* Link columns pair up so the footer is not two screens tall */
  .footer-links a { font-size: .85em; }
  .footer-contact { gap: 8px 18px; }
  /* Post cards drop a step in scale and tighten their leading */
  .box-text { font-size: .85em; }
  .post-title { line-height: 1.3; }
  .post-title.is-large { font-size: 1em; }
}

/* --- Narrow desktop: the 8-item nav needs ~1265px at full size ---
   1151-1289px  compact it (smaller type, tighter gaps, smaller logo)
   <=1150px     give up and fall back to the hamburger drawer          */

@media (min-width: 1151px) and (max-width: 1289px) {
  #logo { width: 132px; margin-right: 18px; }
  .header-nav-main > li { margin: 0 6px; }
  .header-nav-main > li > a { font-size: 13px; }
  .button.is-medium { font-size: 12.5px; }
}

@media (max-width: 1150px) {
  .header-col-left.hide-for-medium,
  .header-col-right.hide-for-medium { display: none !important; }

  .header-col-mobile-left.show-for-medium,
  .header-col-mobile-right.show-for-medium,
  #wide-nav.show-for-medium { display: block !important; }

  .header-inner { justify-content: space-between; }
  #logo { order: 2; margin: 0; text-align: center; }   /* width comes from the base + phone rules above */
  .header-col-mobile-left  { order: 1; }
  .header-col-mobile-right { order: 3; }
}


/* ==========================================================================
   14. Sticky promo banner
   ========================================================================== */

.promo-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 22;
  display: flex;
  justify-content: center;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
  transform: translateY(0);
  transition: transform .3s ease-out, opacity .3s ease-out;
}

.promo-banner[hidden] { display: none; }

.promo-banner-inner {
  position: relative;
  width: 100%;
  max-width: 728px;
  line-height: 0;
}

.promo-banner-link { display: block; }

.promo-banner-link img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

.promo-banner-close {
  position: absolute;
  top: -10px;
  right: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #000;
  color: #fff;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}

.promo-banner-close:hover { background: var(--alert-color); transform: scale(1.08); }
.promo-banner-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* The small tab that brings the banner back */
.promo-banner-reopen {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 22;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--alert-color);
  color: #fff;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  transition: background-color .2s, transform .2s;
}

.promo-banner-reopen[hidden] { display: none; }
.promo-banner-reopen:hover { background: #8f0000; transform: translateY(-2px); }
.promo-banner-reopen:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.promo-banner-reopen svg { flex: none; }

/* Keep the back-to-top arrow clear of the banner */
.promo-banner-open .back-to-top.button { bottom: 122px; }

@media (max-width: 549px) {
  .promo-banner { padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .promo-banner-close { top: -8px; right: -6px; width: 26px; height: 26px; }
  .promo-banner-reopen { left: 12px; bottom: 12px; padding: 8px 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .promo-banner,
  .promo-banner-close,
  .promo-banner-reopen { transition: none; }
}


/* ==========================================================================
   15. Header text case — sentence case, e.g. "Thể Thao", not "THỂ THAO"
   ========================================================================== */

.header .header-button .button,
.header-bottom-nav > li > a,
.nav-sidebar > li > a {
  text-transform: none;
  letter-spacing: .01em;
}
