/* ==========================================================================
   bj88la.com — site stylesheet
   Replaces the missing Flatsome theme CSS (/wp-content/... was never mirrored).
   Targets the original Flatsome/WordPress class names used in public/*.html.
   Self-contained: system font stack, no external fonts/icons, no build step.
   Breakpoints (Flatsome): small < 550px, medium 550–849px, large >= 850px.
   ========================================================================== */

:root {
  --c-bg: #f4f4f4;
  --c-surface: #ffffff;
  --c-text: #333333;
  --c-muted: #6b6b6b;
  --c-heading: #da3131;
  --c-link: #b20000;
  --c-link-hover: #e87777;
  --c-accent: #e88f02;
  --c-accent-dark: #9f5403;
  --c-secondary: #4e4c41;
  --c-header: #0a0a0a;
  --c-subnav: #c1c1c1;
  --c-footer: #252525;
  --c-footer-bottom: #0a0a0a;
  --c-line: #e2e2e2;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .08);
  --container: 1250px;
  --font: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--c-footer-bottom); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; border: 0; }
a { color: var(--c-link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-link-hover); }
a.plain { color: inherit; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }
b, strong { font-weight: 700; }
small, .small { font-size: .85em; }
blockquote {
  margin: 0 0 1.2em;
  padding: .8em 1.2em;
  border-left: 4px solid var(--c-accent);
  background: #fff8ec;
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 1.5em 0; }

h1, h2, h3, h4, h5, h6 {
  color: var(--c-heading);
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.3;
  margin: 1.4em 0 .6em;
}
h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }
h5, h6 { font-size: 1rem; }
@media (max-width: 549px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }
}

table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95em; display: block; overflow-x: auto; }
@media (min-width: 550px) { table { display: table; } }
th, td { border: 1px solid var(--c-line); padding: .6em .8em; text-align: left; vertical-align: top; }
th, thead td { background: #f7efe2; font-weight: 700; }
tr:nth-child(even) td { background: #fafafa; }

input, textarea, select, button { font: inherit; }

/* ---------- Accessibility ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto;
  top: 8px; left: 8px; z-index: 1000;
  padding: 10px 16px;
  background: #fff; color: #000;
  border-radius: 6px;
}

/* ---------- Helpers ---------- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.fill { position: absolute; inset: 0; }
.z-1 { z-index: 1; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; letter-spacing: .02em; }
.is-xsmall { font-size: .75em; }
.is-small { font-size: .85em; }
.is-large { font-size: 1.1em; }
.pull-left { float: left; }
.clearfix::after { content: ""; display: table; clear: both; }
.circle, .circle img { border-radius: 999px; }
.mr { margin-right: 15px; }
.pt-half { padding-top: 7px; }
.bt { border-top: 1px solid var(--c-line); }
.bb { border-bottom: 1px solid var(--c-line); }
.mfp-hide { display: none; }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
a:focus-visible, button:focus-visible, .button:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.text-shadow-5 { text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.text-center .is-divider, .text-center > .is-divider { margin-left: auto; margin-right: auto; }

.is-divider {
  height: 3px;
  width: 30px;
  max-width: 30px;
  margin: 1em 0;
  background: var(--c-accent);
  border-radius: 2px;
}
.is-divider.small { width: 20px; height: 2px; }
.is-divider.medium { width: 50px; }

/* visibility by breakpoint */
@media (max-width: 849px) { .hide-for-medium { display: none !important; } }
@media (min-width: 850px) { .show-for-medium { display: none !important; } }
@media (max-width: 549px) {
  .hide-for-small { display: none !important; }
  .medium-text-center { text-align: center; }
  .medium-text-center .pull-left { float: none; }
}
@media (max-width: 849px) {
  .medium-text-center { text-align: center; }
  .medium-text-center .pull-left { float: none; }
}

/* ---------- Layout: container / flex / grid ---------- */
#wrapper { position: relative; background: var(--c-bg); }
.container, .row { width: 100%; max-width: var(--container); margin-left: auto; margin-right: auto; }
.container { padding-left: 15px; padding-right: 15px; }
.row.row-large { max-width: 1280px; }
.row.row-collapse { max-width: 1220px; }
.full-width .row-full-width, .row-full-width { max-width: 100% !important; }

.flex-row { display: flex; flex-flow: row nowrap; align-items: center; justify-content: space-between; width: 100%; }
.flex-row.align-top { align-items: flex-start; }
.flex-col { max-height: 100%; }
.flex-grow { flex: 1 1 auto; min-width: 0; }
.flex-left { margin-right: auto; }
.flex-right { margin-left: auto; }
.flex { display: flex; }
.stack { display: flex; }
.stack-col { flex-direction: column; }
.justify-start { justify-content: flex-start; }

.row { display: flex; flex-flow: row wrap; }
.row .row, .col-inner > .row { margin-left: -15px; margin-right: -15px; width: auto; }
.row.align-center { justify-content: center; }
.row.align-equal > .col { display: flex; }
.row.align-equal > .col > .col-inner { width: 100%; }

.col { position: relative; width: 100%; padding: 0 15px 30px; margin: 0; }
.row-collapse > .col { padding: 0 !important; }
.row-large > .col { padding-left: 15px; padding-right: 15px; }
.col-inner { position: relative; width: 100%; background-size: cover; background-position: 50% 50%; }
.row-divided > .col + .col:not(.large-12) { border-left: 1px solid var(--c-line); }

/* small (all widths) */
.small-6  { flex-basis: 50%;  max-width: 50%; }
.small-12 { flex-basis: 100%; max-width: 100%; }
.small-columns-1 > .col { flex-basis: 100%; max-width: 100%; }

/* medium (>= 550px) */
@media (min-width: 550px) {
  .medium-3  { flex-basis: 25%;  max-width: 25%; }
  .medium-6  { flex-basis: 50%;  max-width: 50%; }
  .medium-12 { flex-basis: 100%; max-width: 100%; }
  .medium-columns-1 > .col { flex-basis: 100%; max-width: 100%; }
}
@media (min-width: 550px) and (max-width: 849px) {
  /* 4-up footer/link grids read better as 2-up on tablets */
  .medium-3 { flex-basis: 50%; max-width: 50%; }
}

/* large (>= 850px) */
@media (min-width: 850px) {
  .large-3  { flex-basis: 25%;  max-width: 25%; }
  .large-6  { flex-basis: 50%;  max-width: 50%; }
  .large-9  { flex-basis: 75%;  max-width: 75%; }
  .large-12 { flex-basis: 100%; max-width: 100%; }
  .large-columns-4 > .col { flex-basis: 25%; max-width: 25%; }
  .row-large > .col { padding-left: 30px; padding-right: 30px; }
  .row-large { padding-left: 0; padding-right: 0; }
}
@media (max-width: 849px) {
  .row-divided > .col + .col:not(.large-12) { border-left: 0; }
}

/* ---------- Header ---------- */
.header { position: relative; z-index: 30; width: 100%; }
.header.has-sticky { position: sticky; top: 0; }
.header-wrapper { position: relative; }
.header-bg-container { z-index: -1; }
.header-bg-color { background-color: rgba(10, 10, 10, .92); }

.header-main { position: relative; height: 90px; transition: height .25s; }
.header.stuck .header-main { height: 70px; }
.header-inner { height: 100%; gap: 15px; }
.header-main.nav-dark, .nav-dark a { color: #fff; }

#logo { width: auto; min-width: 135px; margin-right: 15px; }
#logo a { display: inline-flex; align-items: center; color: #fff; }
.logo-text {
  display: inline-block;
  font-size: 2rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: .02em;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
}
.logo-text span { color: var(--c-accent); }
.logo-text small { display: block; margin-top: 4px; font-size: .38em; font-style: normal; font-weight: 700; letter-spacing: .25em; color: #bdbdbd; }

@media (max-width: 849px) {
  .header-main { height: 70px; }
  .medium-logo-center #logo { order: 2; flex: 1 1 auto; text-align: center; margin: 0; min-width: 0; }
  .medium-logo-center #logo a { justify-content: center; }
  .medium-logo-center .flex-left { order: 1; flex: 0 0 48px; }
  .medium-logo-center .flex-right { order: 3; flex: 0 0 48px; }
  .logo-text { font-size: 1.6rem; }
}

.top-divider { border-top: 1px solid rgba(255, 255, 255, .08); }

/* generic nav */
.nav { display: flex; flex-flow: row wrap; align-items: center; list-style: none; margin: 0; padding: 0; width: 100%; }
.nav > li { position: relative; margin: 0; list-style: none; }
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }
.nav-center { justify-content: center; }
.nav-uppercase > li > a { text-transform: uppercase; letter-spacing: .02em; }
.nav > li > a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.header-nav-main { gap: 10px; }

/* login / register buttons */
.html.custom { display: flex; }
.auth-container-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 105px;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
  transition: filter .2s, transform .2s;
}
.auth-container-button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.auth-container-button-primary, .auth-container-button.auth-container-button-primary { background: var(--c-accent); color: #fff !important; }
.auth-container-button-secondary, .auth-container-button.auth-container-button-secondary { background: var(--c-secondary); color: #fff !important; }

/* hamburger */
.nav-icon > a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff; }
.icon-menu, .icon-menu::before, .icon-menu::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.icon-menu::before, .icon-menu::after { content: ""; position: absolute; left: 0; }
.icon-menu::before { top: -7px; }
.icon-menu::after { top: 7px; }

/* CSS-only replacements for the (missing) fl-icons font */
.icon-angle-down, .icon-angle-up, .icon-angle-left, .icon-angle-right {
  display: inline-block;
  width: .5em;
  height: .5em;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  vertical-align: middle;
}
.icon-angle-down { transform: rotate(45deg); margin: -.25em 0 0 .3em; }
.icon-angle-up { transform: rotate(-135deg); margin-top: .25em; }
.icon-angle-left { transform: rotate(135deg); margin-right: .3em; }
.icon-angle-right { transform: rotate(-45deg); margin-left: .3em; }

/* bottom (secondary) navigation */
.header-bottom { position: relative; min-height: 60px; display: flex; align-items: center; background: var(--c-subnav); }
.header-bottom > .flex-row { min-height: 60px; }
.header-bottom .hide-for-medium { width: 100%; }
.header-bottom-nav { justify-content: space-around; }
.header-bottom-nav > li { flex: 1 1 0; text-align: center; height: 100%; }
.header-bottom-nav.nav-divided > li + li > a::after {
  content: "";
  position: absolute;
  left: 0; top: 30%;
  height: 40%;
  border-left: 1px solid rgba(0, 0, 0, .15);
}
.header-bottom-nav > li > a {
  justify-content: center;
  width: 100%;
  padding: 19px 8px;
  line-height: 21px;
  font-size: .95rem;
  color: #0a0a0a;
}
.header-bottom-nav > li > a:hover,
.header-bottom-nav > li.active > a,
.header-bottom-nav > li.current-menu-item > a,
.header-bottom-nav > li.current-menu-ancestor > a,
.header-bottom-nav > li.current-menu-parent > a { color: var(--c-accent-dark); }

@media (max-width: 849px) {
  .header-bottom { min-height: 0; padding: 10px 0; }
  .header-bottom > .flex-row { min-height: 0; }
  .header-bottom .mobile-nav { gap: 10px; flex-wrap: nowrap; }
  .header-bottom .mobile-nav > li { flex: 1 1 0; }
  .header-bottom .mobile-nav .auth-container-button { width: 100%; min-width: 0; }
}

/* dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 40;
  min-width: 230px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  text-align: left;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  width: 12px; height: 12px;
  background: #fff;
  border-left: 1px solid var(--c-line);
  border-top: 1px solid var(--c-line);
  transform: translateX(-50%) rotate(45deg);
}
.has-dropdown:hover > .nav-dropdown,
.has-dropdown:focus-within > .nav-dropdown,
.has-dropdown.is-open > .nav-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown li { margin: 0; }
.nav-dropdown a { display: block; padding: 9px 20px; color: #333; font-weight: 500; }
.nav-dropdown a:hover { background: #fff4e3; color: var(--c-accent-dark); }

/* ---------- Mobile off-canvas menu (toggled by /site.js) ---------- */
.mobile-sidebar.mfp-hide { display: block; }
.mobile-sidebar {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 1001;
  width: 290px;
  max-width: 85vw;
  overflow-y: auto;
  background: #fff;
  box-shadow: 4px 0 30px rgba(0, 0, 0, .3);
  transform: translateX(-105%);
  transition: transform .3s ease;
}
.ux-body-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
body.menu-open { overflow: hidden; }
body.menu-open .mobile-sidebar { transform: translateX(0); }
body.menu-open .ux-body-overlay { opacity: 1; visibility: visible; }
.sidebar-menu { padding: 20px 0 40px; }
.sidebar-menu .mobile-menu-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px 15px;
  border-bottom: 1px solid var(--c-line);
  font-weight: 900; font-style: italic; font-size: 1.4rem; color: #0a0a0a;
}
.sidebar-menu .mobile-menu-title span { color: var(--c-accent); }
.mobile-menu-close {
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: #f1f1f1; color: #333;
  font-size: 1.4rem; line-height: 1;
  cursor: pointer;
}
.nav-vertical { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
.nav-sidebar > li { border-bottom: 1px solid #f0f0f0; }
.nav-sidebar > li > a { display: block; padding: 14px 20px; color: #222; }
.nav-sidebar > li > a:hover { color: var(--c-accent-dark); }
.nav-sidebar .children, .nav-sidebar .sub-menu { list-style: none; margin: 0; padding: 0 0 10px 20px; }
.nav-sidebar .children a { display: block; padding: 8px 20px; color: #555; font-weight: 500; text-transform: none; }

/* ---------- Main / sections ---------- */
#main { display: block; min-height: 50vh; background: var(--c-bg); }
.page-wrapper { padding-top: 30px; padding-bottom: 30px; }
.section { position: relative; display: flex; align-items: center; width: 100%; padding: 30px 0; min-height: auto; }
.section-bg { overflow: hidden; z-index: 0; background-size: cover; background-position: 50% 50%; }
.section-content { width: 100%; z-index: 1; }
.section.dark { background-color: #1d1d1d; }
.bg { opacity: 1; }

.dark, .dark p, .dark td, .dark li, .dark span, .dark strong, .dark b, .dark em { color: #f1f1f1; }
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 { color: #fff; }
.dark a { color: #ffd38a; }
.dark a:hover { color: #fff; }

.ux-shape-divider { position: absolute; left: 0; right: 0; top: 0; z-index: 1; overflow: hidden; pointer-events: none; line-height: 0; }
.ux-shape-divider svg { display: block; width: 100%; height: 150px; transform: rotate(180deg); }
.ux-shape-fill { fill: var(--c-bg); }
@media (max-width: 549px) { .ux-shape-divider svg { height: 60px; } }

.section-title-container { margin-bottom: 1.5em; }
.section-title { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0; font-size: 1.4rem; text-transform: uppercase; }
.section-title-bold-center { justify-content: center; gap: 15px; }
.section-title-bold-center b { flex: 1; height: 2px; opacity: .25; background: currentColor; }
.section-title-main { padding: 0 .5em; }

/* home: content blocks around the promo / sign-up text */
.home-khuyen-mai-bj88 > .col,
.home-dang-ky-bj88 > .col {
  height: auto !important;
  padding: 25px !important;
  margin: 0 15px 20px !important;
  max-width: calc(100% - 30px) !important;
  background: var(--c-surface);
  border: 2px solid #1a1a1a;
  border-radius: 20px;
}
.home-khuyen-mai-bj88 h2:first-child, .home-dang-ky-bj88 h2:first-child,
.home-khuyen-mai-bj88 h3:first-child, .home-dang-ky-bj88 h3:first-child { margin-top: 0; }
@media (max-width: 549px) {
  .home-khuyen-mai-bj88 > .col,
  .home-dang-ky-bj88 > .col { padding: 18px 16px !important; border-radius: 14px; }
}

/* ---------- Boxes / blog cards ---------- */
.box { position: relative; width: 100%; margin: 0 auto; }
.box-image { position: relative; margin: 0 auto; overflow: hidden; }
.box-text { position: relative; width: 100%; padding: 1em 0 .6em; font-size: .95em; }
.box-text p { margin-bottom: .4em; }
.box-blog-post {
  height: 100%;
  padding: 22px 20px 16px;
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--c-accent);
  transition: transform .2s, box-shadow .2s;
}
.box-blog-post:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0, 0, 0, .12); }
.box-blog-post .box-text { padding: 0; }
.post-item { display: flex; }
.post-item > .col-inner { display: flex; }
.post-title { margin: 0 0 .4em; font-size: 1.05rem; line-height: 1.4; color: #1a1a1a; }
.post-title a { color: #1a1a1a; }
.post-title a:hover { color: var(--c-link); }
.from_the_blog_excerpt { color: var(--c-muted); font-size: .92em; }
.box-blog-post .is-divider { margin: .7em auto; }

.img { position: relative; width: 100%; }
.img-inner { position: relative; overflow: hidden; }

/* icon boxes */
.icon-box { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.icon-box-img { margin: 0 auto; }
.icon-box-text { width: 100%; }

/* buttons */
.button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 2.5em;
  padding: 0 1.2em;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--c-accent);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); color: #fff; }
.button.is-outline { background: transparent; border-color: currentColor; color: inherit; }

/* ---------- Single post / page ---------- */
.blog-wrapper { padding-top: 30px; padding-bottom: 30px; }
.page-wrapper > .col, .blog-single > .row > .col { padding-bottom: 30px; }
.article-inner, .page-wrapper > #content, #content.large-12 > .entry-content {
  background: var(--c-surface);
}
.article-inner, .page-wrapper > #content {
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 549px) {
  .article-inner, .page-wrapper > #content { padding: 20px 16px; border-radius: 0; box-shadow: none; }
  .page-wrapper, .blog-wrapper { padding-top: 0; }
  .page-wrapper > .col, .blog-single > .row > .col { padding-left: 0; padding-right: 0; }
}
.entry-header { margin-bottom: 1.5em; }
.entry-header-text { padding: 0 0 .5em; }
.entry-category { margin: 0 0 .5em; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.entry-category a { color: var(--c-accent-dark); }
.entry-title { margin: 0 0 .3em; color: var(--c-heading); }
.entry-divider { margin: .8em 0; }
.entry-meta { color: var(--c-muted); font-size: .8rem; letter-spacing: .03em; }
.entry-meta a { color: var(--c-muted); }
.entry-meta a:hover { color: var(--c-link); }
.entry-meta time.updated { display: none; }
footer.entry-meta { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--c-line); font-size: .85rem; text-transform: none; }
.entry-image { margin-top: 1em; }
.badge.post-date { display: none; } /* belongs to the (missing) featured image */

.entry-content { font-size: 1.02rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { padding-bottom: .35em; border-bottom: 2px solid #f2e3cc; }
.entry-content img { border-radius: 8px; }
.entry-content iframe { width: 100%; border: 0; border-radius: 8px; }
.entry-content ul li::marker { color: var(--c-accent); }
/* WordPress inline "text-align: justify" leaves huge word gaps on narrow screens */
@media (max-width: 549px) {
  .entry-content [style*="justify"], .col-inner [style*="justify"] { text-align: left !important; }
}
.entry-content, .post-title, .widget li { overflow-wrap: anywhere; }
.single-page > p:last-child { margin-bottom: 0; }

.wp-caption { max-width: 100% !important; margin: 0 auto 1.4em; }
.wp-caption-text { margin-top: .5em; font-size: .85em; color: var(--c-muted); text-align: center; font-style: italic; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* table of contents (Easy TOC) */
#ez-toc-container {
  display: table;
  min-width: 260px;
  max-width: 100%;
  margin: 0 0 1.6em;
  padding: 14px 20px;
  background: #fbf7f0;
  border: 1px solid #ecdcc2;
  border-radius: var(--radius);
}
.ez-toc-title-container { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.ez-toc-title { margin: 0 !important; font-weight: 700; color: #1a1a1a; }
.ez-toc-title-toggle .ez-toc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 26px;
  border: 1px solid #ddd; border-radius: 4px;
  background: #fff; color: #555;
  font-size: 0;
}
.ez-toc-title-toggle .ez-toc-btn::before { content: ""; width: 7px; height: 7px; border: solid #555; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -3px; }
#ez-toc-container.toc-collapsed .ez-toc-btn::before { transform: rotate(-135deg); margin-top: 3px; }
.ez-toc-js-icon-con, .ez-toc-icon-toggle-span { display: none; }
#ez-toc-container nav { margin-top: 10px; }
#ez-toc-container.toc-collapsed nav { display: none; }
/* numbering itself comes from the page's inline #ez-toc-inline-css */
#ez-toc-container ul { margin: 0; padding-left: 0; list-style: none; }
#ez-toc-container ul ul { padding-left: 1.2em; margin-top: .3em; }
#ez-toc-container li { margin: .3em 0; }
#ez-toc-container nav ul li a::before { color: var(--c-accent-dark); font-weight: 700; }
#ez-toc-container a { color: #333; }
#ez-toc-container a:hover { color: var(--c-link); }
.eztoc-hide { display: none; }
.ez-toc-section { scroll-margin-top: 90px; }
.ez-toc-section-end { display: none; }

/* author box */
.author-box { margin-top: 2em; padding: 20px; background: #fafafa; border-radius: var(--radius); }
.blog-author-image img { width: 70px; height: 70px; border-radius: 50%; }
.author-name { margin: 0; color: #1a1a1a; }
.author-desc:empty { display: none; }

/* prev / next */
.navigation-post { margin-top: 2em; }
.next-prev-nav { align-items: stretch; gap: 0; }
.next-prev-nav .flex-col { flex: 1 1 50%; padding: 1em 0; }
.next-prev-nav .nav-next { text-align: right; }
.next-prev-nav .flex-col + .flex-col { border-left: 1px solid var(--c-line); padding-left: 1em; }
.next-prev-nav .nav-prev { padding-right: 1em; }
.next-prev-nav a { color: #222; font-weight: 600; }
.next-prev-nav a:hover { color: var(--c-link); }
@media (max-width: 549px) {
  .next-prev-nav { flex-direction: column; }
  .next-prev-nav .flex-col { flex-basis: auto; width: 100%; padding: .8em 0; }
  .next-prev-nav .flex-col + .flex-col { border-left: 0; border-top: 1px solid var(--c-line); padding-left: 0; }
  .next-prev-nav .nav-prev { padding-right: 0; }
  .next-prev-nav .nav-previous a::before { content: "‹ "; }
  .next-prev-nav .nav-next a::after { content: " ›"; }
}

/* sidebar */
.post-sidebar .is-sticky-column { position: sticky; top: 170px; }
.widget {
  margin-bottom: 30px;
  padding: 20px;
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.widget-title { display: block; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; color: #1a1a1a; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin: 0; padding: 8px 0; border-top: 1px solid #f0f0f0; font-size: .92rem; line-height: 1.45; }
.widget li:first-child { border-top: 0; }
.widget li a { color: #333; }
.widget li a:hover, .widget li.current_page_item > a { color: var(--c-link); }
@media (max-width: 849px) {
  .post-sidebar .is-sticky-column { position: static; }
  .large-9, .post-sidebar.large-3 { flex-basis: 100%; max-width: 100%; }
}

/* ---------- Footer ---------- */
.footer-wrapper { width: 100%; }
.footer-wrapper .section { background-color: var(--c-footer); padding: 45px 0 20px; }
.footer-wrapper h2 { margin: 0 0 .8em; font-size: 1.15rem; text-transform: uppercase; color: #fff; }
.footer-wrapper p { font-size: .92rem; line-height: 1.7; }
.footer-wrapper iframe { width: 100%; height: 200px; border: 0; border-radius: 8px; }

.ux-menu { width: 100%; }
.ux-menu-link { margin: 0; }
.ux-menu--divider-solid .ux-menu-link + .ux-menu-link { border-top: 1px solid rgba(255, 255, 255, .08); }
.ux-menu-link__link { display: flex; align-items: center; width: 100%; padding: 8px 0; color: #ddd !important; font-size: .92rem; }
.ux-menu-link__link:hover { color: var(--c-accent) !important; }
.ux-menu-link__text { flex: 1; }

.absolute-footer { padding: 18px 0; background: var(--c-footer-bottom); font-size: .85rem; color: #bbb; }
.absolute-footer .footer-primary { float: none; }
.copyright-footer { line-height: 1.8; }
.dmca-badge img { height: 24px; width: auto; margin-left: 6px; vertical-align: middle; }

.footer-logo-text { display: inline-block; margin-bottom: 1em; }
.footer-logo-text .logo-text { font-size: 2.2rem; }

/* back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 44px;
  height: 44px;
  min-height: 0;
  padding: 0;
  border: 2px solid var(--c-accent);
  border-radius: 50%;
  background: rgba(10, 10, 10, .85);
  color: var(--c-accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.back-to-top.active { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--c-accent); color: #fff; }

/* ---------- 404 ---------- */
.error-404 { padding: 60px 15px 80px; text-align: center; }
.error-404 .error-code { margin: 0; font-size: 6rem; line-height: 1; color: var(--c-accent); }
.error-404 h1 { margin: .4em 0 .4em; }
.error-404 p { color: var(--c-muted); }

/* ---------- Print ---------- */
@media print {
  .header, .footer-wrapper, .post-sidebar, .back-to-top, .mobile-sidebar, .ux-body-overlay, #ez-toc-container { display: none !important; }
  body, #main, #wrapper { background: #fff; }
  .article-inner, .page-wrapper > #content { box-shadow: none; padding: 0; }
}
