/*
Theme Name: Configurable Multi-brand Pipeline
Author: Codex
Description: Configurable WordPress pipeline theme with per-site brand, domain, logo, hero, favicon, footer and floating GIF settings.
Version: 1.6.0
Text Domain: hb88-reference
*/

:root {
  --hb-green: #067504;
  --hb-green-bright: #089301;
  --hb-green-dark: #026811;
  --hb-topbar: #066601;
  --hb-yellow: #f6f641;
  --hb-link: #fbb246;
  --hb-red: #a50707;
  --hb-blue: #084e8b;
  --hb-white: #fff;
  --hb-container: 1070px;
  --hb-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #000; }
body {
  margin: 0;
  color: var(--hb-white);
  background: var(--hb-green);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  padding-bottom: 68px;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--hb-link); text-decoration: none; }
a:hover { color: #ffd173; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.25em 1.25em; }
h1, h2, h3, h4, h5, h6 {
  color: var(--hb-yellow);
  font-weight: 700;
  line-height: 1.28;
  margin: 0 0 .72em;
}
h1 { font-size: clamp(24px, 3vw, 34px); }
h2 { font-size: clamp(22px, 2.4vw, 29px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
h4 { font-size: 19px; }
h5 { font-size: 17px; }
blockquote {
  margin: 1.2em 0;
  border-left: 3px solid var(--hb-red);
  padding: 0 0 0 28px;
  font-size: 17px;
  font-style: italic;
}
.container { width: min(calc(100% - 30px), var(--hb-container)); margin-inline: auto; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}
.screen-reader-text:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  left: 12px;
  top: 12px;
  z-index: 100000;
  background: #fff;
  color: #111;
  padding: 12px 18px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .13);
}
.header-top { height: 30px; background: var(--hb-topbar); }
.header-top .container { height: 100%; display: flex; justify-content: flex-end; align-items: center; }
.top-links { display: flex; gap: 0; margin: 0; list-style: none; font-size: 12px; }
.top-links li + li::before { content: "|"; color: rgba(255, 255, 255, .45); padding: 0 12px; }
.top-links a { color: #fff; }
.header-main { height: 90px; background: var(--hb-green-bright); }
.header-main .container { height: 100%; display: flex; align-items: center; gap: 30px; }
.site-logo {
  flex: 0 0 200px;
  height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.site-logo img { display: block; width: auto; max-width: 184px; height: 53px; object-fit: contain; }
.site-logo-domain {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  justify-content: center;
  padding: 1px 10px;
  border: 1px solid rgba(246, 246, 65, .8);
  border-radius: 12px;
  background: rgba(0, 69, 20, .48);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .15px;
}
.main-nav { flex: 1; }
.main-nav ul { display: flex; align-items: center; gap: 32px; margin: 0; list-style: none; }
.main-nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .is-current { color: #69e113; }
.main-nav .home-pill {
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 20px;
  padding: 3px 13px;
}
.header-actions { display: flex; gap: 16px; margin-left: auto; }
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  height: 38px;
  padding: 0 20px;
  border-radius: 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
}
.action-button:hover { color: #fff; filter: brightness(1.08); }
.action-register { background: var(--hb-red); }
.action-login { background: var(--hb-blue); }
.mobile-menu-toggle { display: none; }
.mobile-nav-panel { display: none; }

/* Shared content system mirroring the reference builder output */
.site-main { min-height: 520px; }
.entry-content { color: #fff; }
.section { position: relative; width: 100%; }
.section-bg { position: absolute; inset: 0; overflow: hidden; }
.section-content { position: relative; z-index: 1; }
.row {
  width: min(calc(100% - 30px), var(--hb-container));
  margin-inline: auto;
  display: flex;
  flex-flow: row wrap;
}
.row.row-collapse { width: min(100%, 1040px); }
.col { width: 100%; min-height: 1px; padding: 0 15px 30px; position: relative; }
.pb-0 { padding-bottom: 0 !important; }
.col-inner { width: 100%; position: relative; }
.text-center { text-align: center; }
.img, .img-inner { position: relative; }
.img img { width: 100%; }
.aligncenter, .wp-caption.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; text-align: center; }
.wp-caption-text { color: rgba(255, 255, 255, .75); font-size: 14px; font-style: italic; margin-top: 6px; }
.section-title-container { margin: 24px auto 18px; text-align: center; }
.section-title { display: flex; align-items: center; gap: 18px; justify-content: center; text-transform: uppercase; }
.section-title b { display: block; height: 1px; flex: 1; max-width: 150px; background: rgba(246, 246, 65, .28); }
.section-title-main { display: inline-block; }
.text > *:last-child, .col-inner > *:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.entry-content td, .entry-content th { border: 1px solid rgba(255, 255, 255, .28); padding: 10px; }

/* Home */
.home-hero { width: 100%; background: #d90d00; overflow: hidden; }
.home-hero img { width: 100%; max-height: 372px; object-fit: cover; }
.home-focus-intro { padding: 28px 0 24px; background: #fff; color: #173d19; text-align: center; }
.home-focus-intro h1 { margin: 0 auto 10px; color: var(--hb-green-dark); font-size: clamp(25px, 3vw, 38px); line-height: 1.2; text-transform: none; }
.home-focus-intro p { max-width: 920px; margin: 0 auto; color: #33493a; font-size: 17px; line-height: 1.7; }
.domain-watermark,
.article-content .article-image-frame {
  position: relative;
  overflow: hidden;
}
.domain-watermark::after,
.article-content .article-image-frame[data-domain]::after {
  content: attr(data-brand) "\A" attr(data-domain);
  position: absolute;
  right: 1.8%;
  bottom: 2.2%;
  z-index: 3;
  min-width: clamp(96px, 19%, 210px);
  padding: clamp(4px, .7vw, 9px) clamp(7px, 1vw, 14px);
  border: 1px solid #ffe92e;
  border-radius: 9px;
  background: #05250e;
  color: #fff;
  font-size: clamp(9px, 1.2vw, 17px);
  font-weight: 800;
  line-height: 1.2;
  white-space: pre;
  text-align: left;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.article-content .article-image-frame {
  display: block;
  width: 100%;
  margin: 16px auto;
}
.article-content .article-image-frame img {
  display: block;
  width: 100%;
  margin: 0;
}
.article-featured.domain-watermark::after,
.article-content .article-image-frame[data-domain]::after {
  right: 0;
  bottom: 0;
  width: clamp(130px, 24%, 285px);
  min-width: 0;
  min-height: clamp(48px, 12%, 95px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: clamp(7px, 1vw, 14px);
}
.post-card-image.domain-watermark::after {
  right: 0;
  bottom: 0;
  min-width: clamp(76px, 25%, 112px);
  min-height: 30px;
  padding: 4px 7px;
  font-size: clamp(8px, 1vw, 11px);
}
.domain-watermark-bottom-left::after {
  content: attr(data-domain);
  left: 0;
  right: auto;
  bottom: 0;
  min-width: 132px;
  border-width: 1px 1px 0 0;
  border-radius: 0 8px 0 0;
  background: rgba(92, 18, 2, .97);
  color: #fff;
  font-size: clamp(11px, 1.3vw, 18px);
  text-align: center;
}
.domain-watermark-small::after {
  content: attr(data-brand);
  right: 1px;
  bottom: 1px;
  min-width: 0;
  padding: 2px 3px;
  border-radius: 3px;
  font-size: 7px;
  line-height: 1;
}
.home-content { width: 100%; }
.home-content > .section > .section-content > .img:first-of-type { display: none; }
.home-content > .section > .section-content > .row:first-of-type { padding-top: 4px; }
.home-content h1.section-title { font-size: clamp(23px, 2.6vw, 30px); }
.home-content .noidung > .col-inner {
  height: 800px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 2px solid var(--hb-yellow);
  padding: 14px 16px 22px;
  scrollbar-color: #8a8a8a #fff;
}
.home-content .large-columns-3 > .col { width: 33.333%; }
.box-blog-post { height: 100%; text-align: center; }
.box-image { overflow: hidden; background: rgba(255, 255, 255, .08); }
.home-content .box-image[data-domain] { position: relative; }
.home-content .box-image[data-domain]::after {
  content: attr(data-brand) "\A" attr(data-domain);
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  min-width: 88px;
  padding: 3px 7px;
  border: 1px solid #ffe92e;
  border-width: 1px 0 0 1px;
  border-radius: 7px 0 0;
  background: #05250e;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.15;
  white-space: pre;
  text-align: left;
  pointer-events: none;
}
/* Article and card images now contain one watermark rendered from the original ZIP source. */
.article-featured.domain-watermark::after,
.article-content .article-image-frame[data-domain]::after,
.post-card-image.domain-watermark::after,
.sidebar-thumb.domain-watermark::after,
.home-content .box-image[data-domain]::after {
  content: none;
  display: none;
}
.image-cover { height: 0; position: relative; overflow: hidden; }
.image-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.box-blog-post:hover .image-cover img { transform: scale(1.035); }
.box-text { padding: 12px 8px 18px; }
.box-text h5 { margin-bottom: 10px; }
.box-text p { font-size: 14px; color: rgba(255, 255, 255, .9); }

/* Four independently configurable official partners */
.pipeline-partners {
  width: 100%;
  padding: 30px 0 36px;
  background: linear-gradient(180deg, #087b06 0%, #067504 100%);
}
.pipeline-partners-title {
  display: grid;
  grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
  align-items: center;
  gap: 24px;
  margin: 0 0 26px;
  color: #fff600;
  font-size: clamp(21px, 2.3vw, 31px);
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}
.pipeline-partners-title span { height: 2px; background: rgba(246, 246, 65, .38); }
.pipeline-partners-title strong { font: inherit; }
.pipeline-partner-carousel { position: relative; }
.pipeline-partner-viewport { width: 100%; overflow: hidden; }
.pipeline-partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.pipeline-partners.is-carousel .pipeline-partner-grid {
  display: flex;
  transform: translateX(0);
  transition: transform .5s ease;
  will-change: transform;
}
.pipeline-partner-card {
  display: flex;
  min-width: 0;
  min-height: 142px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
  border: 2px solid #e8c86b;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pipeline-partners.is-carousel .pipeline-partner-card {
  flex: 0 0 calc((100% - 54px) / 4);
}
.pipeline-partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .26);
}
.pipeline-partner-card img {
  width: 100%;
  height: 94px;
  object-fit: contain;
}
.pipeline-partner-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  padding: 0 0 4px;
  transform: translateY(-50%);
  border: 2px solid #f2d56f;
  border-radius: 50%;
  background: rgba(2, 65, 8, .94);
  color: #fff600;
  font-size: 32px;
  line-height: 34px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .24);
}
.pipeline-partner-control:hover,
.pipeline-partner-control:focus-visible { background: #034e0b; color: #fff; }
.pipeline-partner-prev { left: -16px; }
.pipeline-partner-next { right: -16px; }

/* Archive */
.archive-wrap { padding: 30px 0 48px; }
.archive-header { text-align: center; margin-bottom: 50px; padding-inline: 15px; }
.archive-header h1 { text-transform: uppercase; font-size: 18.4px; margin-bottom: 9px; }
.archive-description { width: 100%; max-width: none; margin-inline: auto; }
.post-grid {
  width: 83.333%;
  margin-inline: auto;
  padding-inline: 15px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 30px;
}
.post-card { text-align: center; }
.post-card-image { display: block; aspect-ratio: 16/9; overflow: hidden; background: rgba(255, 255, 255, .08); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.post-card h2 { font-size: 16.56px; margin: 10px 10px 6px; }
.post-card h2 a { color: var(--hb-yellow); }
.post-card p { color: rgba(255, 255, 255, .9); font-size: 14px; padding-inline: 10px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination .page-numbers { background: rgba(0, 0, 0, .22); color: #fff; padding: 7px 12px; border-radius: 4px; }
.pagination .current { background: var(--hb-yellow); color: #075d05; }

/* Single and pages */
.single-wrap, .page-wrap { padding: 30px 0 54px; }
.single-layout {
  width: min(calc(100% - 30px), 1100px);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 0;
  align-items: start;
}
.article-main, .sidebar { min-width: 0; padding-inline: 30px; }
.article-header { text-align: center; margin-bottom: 24px; padding-inline: 24px; }
.article-header h1 { font-size: 27.2px; margin-bottom: 13.6px; }
.article-category {
  color: rgba(246, 246, 65, .82);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.05;
  margin-bottom: 5.6px;
}
.article-divider { width: 30px; height: 3px; margin: 16px auto; background: rgba(0, 0, 0, .1); }
.article-meta { color: rgba(255, 255, 255, .75); font-size: 12px; line-height: 1.2; text-transform: uppercase; }
.article-featured { margin-bottom: 24px; }
.article-featured img { width: 100%; }
.article-content img { margin: 16px auto; }
.article-content > p:first-of-type { font-size: 17px; }
.article-content .ez-toc-container,
.article-content nav[aria-label*="Table"],
.article-content nav[aria-label*="Mục"] {
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(246, 246, 65, .38);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.sidebar-title { font-size: 24px; }
.sidebar-list { margin: 0; list-style: none; }
.sidebar-list li { border-bottom: 1px solid rgba(255, 255, 255, .14); padding: 10px 0; }
.sidebar-list a { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; color: var(--hb-link); }
.sidebar-thumb { aspect-ratio: 1; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.page-article { max-width: 900px; margin-inline: auto; }

/* Footer */
.site-footer { position: relative; color: #fff; background: #07170f; overflow: hidden; }
.footer-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.footer-overlay { position: absolute; inset: 0; background: rgba(0, 22, 9, .56); }
.footer-content { position: relative; z-index: 1; padding: 34px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; }
.footer-brand { text-align: center; }
.footer-logo-lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; margin: 0 auto 14px; }
.footer-logo { display: block; width: min(100%, 280px); height: 92px; object-fit: contain; }
.footer-logo-domain {
  display: inline-block;
  padding: 3px 13px;
  border: 1px solid rgba(246, 246, 65, .8);
  border-radius: 14px;
  color: #fff;
  background: rgba(0, 55, 17, .64);
  font-size: 13px;
  font-weight: 800;
}
.footer-title { text-transform: uppercase; font-size: 22px; }
.footer-info ul { margin-left: 20px; }
.footer-info li { margin-bottom: 8px; }
.footer-copyright { text-align: center; font-size: 13px; color: rgba(255, 255, 255, .82); margin-top: 14px; }

/* Four independently configured bottom GIF ads */
body { padding-bottom: 62px; }
.floating-gif-bar {
  position: fixed;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(calc(100% - 32px), 1500px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #06190e;
  border: 1px solid var(--hb-yellow);
  box-shadow: var(--hb-shadow);
}
.floating-gif-link { display: block; min-width: 0; overflow: hidden; background: #fff; }
.floating-gif-link img { display: block; width: 100%; height: auto; object-fit: contain; }
.floating-gif-close {
  position: absolute;
  right: -1px;
  top: -27px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #111;
  border-radius: 50%;
  background: rgba(6, 117, 4, .95);
  color: #111;
  font-size: 18px;
  line-height: 21px;
  cursor: pointer;
}
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 1001;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .75);
  color: #fff;
  background: rgba(0, 70, 15, .78);
  cursor: pointer;
}

@media (min-width: 850px) {
  .large-6, .medium-6 { width: 50%; }
  .large-4 { width: 33.333%; }
  .large-8 { width: 66.666%; }
}

@media (min-width: 850px) and (max-width: 1100px) {
  .header-top, .main-nav { display: none; }
  .header-main { height: 125px; }
  .header-main .container { height: 70px; justify-content: center; position: relative; padding-bottom: 50px; }
  .site-logo { flex: none; width: 165px; height: 70px; gap: 1px; position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
  .site-logo img { width: auto; max-width: 154px; height: 46px; object-fit: contain; }
  .site-logo-domain { min-height: 16px; padding: 1px 8px; font-size: 10px; }
  .mobile-menu-toggle { display: block; position: absolute; left: 0; top: 18px; width: 32px; height: 32px; border: 0; border-radius: 4px; background: var(--hb-red); color: #fff; font-size: 20px; line-height: 30px; cursor: pointer; }
  .header-actions { position: absolute; top: 70px; left: 0; width: 100%; height: 55px; margin: 0; justify-content: center; align-items: center; gap: 12px; background: var(--hb-green-dark); }
  .action-button { min-width: 120px; height: 34px; padding: 0 14px; font-size: 13px; }
  .mobile-nav-panel { position: absolute; left: 0; right: 0; top: 70px; z-index: 5; display: none; background: #055d08; padding: 57px 18px 14px; box-shadow: 0 10px 20px rgba(0, 0, 0, .25); }
  .mobile-nav-panel.is-open { display: block; }
  .mobile-nav-panel ul { margin: 0; list-style: none; }
  .mobile-nav-panel li { border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .mobile-nav-panel a { display: block; color: #fff; font-weight: 700; padding: 11px 4px; }
}

@media (max-width: 849px) {
  body { padding-bottom: 64px; }
  body.admin-bar .site-header { top: 46px; }
  .header-top, .main-nav { display: none; }
  .header-main { height: 125px; background: var(--hb-green-bright); }
  .header-main .container {
    height: 70px;
    justify-content: center;
    position: relative;
    padding-bottom: 50px;
  }
  .site-logo { flex: none; width: 165px; height: 70px; gap: 1px; position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
  .site-logo img { width: auto; max-width: 154px; height: 46px; object-fit: contain; }
  .site-logo-domain { min-height: 16px; padding: 1px 8px; font-size: 10px; }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    left: 0;
    top: 18px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 4px;
    background: var(--hb-red);
    color: #fff;
    font-size: 20px;
    line-height: 30px;
    cursor: pointer;
  }
  .header-actions {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: 55px;
    margin: 0;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: var(--hb-green-dark);
  }
  .action-button { min-width: 120px; height: 34px; padding: 0 14px; font-size: 13px; }
  .mobile-nav-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    z-index: 5;
    display: none;
    background: #055d08;
    padding: 57px 18px 14px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
  }
  .mobile-nav-panel.is-open { display: block; }
  .mobile-nav-panel ul { margin: 0; list-style: none; }
  .mobile-nav-panel li { border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .mobile-nav-panel a { display: block; color: #fff; font-weight: 700; padding: 11px 4px; }
  .home-hero img { max-height: none; }
  .pipeline-partners { padding: 24px 0 28px; }
  .pipeline-partners-title { grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr); gap: 14px; margin-bottom: 20px; }
  .pipeline-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pipeline-partners.is-carousel .pipeline-partner-card { flex-basis: calc((100% - 14px) / 2); }
  .pipeline-partner-card { min-height: 116px; padding: 14px; }
  .pipeline-partner-card img { height: 76px; }
  .pipeline-partner-control { width: 36px; height: 36px; padding-bottom: 3px; font-size: 27px; line-height: 29px; }
  .pipeline-partner-prev { left: -10px; }
  .pipeline-partner-next { right: -10px; }
  .home-content .large-columns-3 > .col { width: 100%; }
  .single-layout { grid-template-columns: minmax(0, 1fr); }
  .article-main, .sidebar { padding-inline: 0; }
  .sidebar { margin-top: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-info { text-align: left; }
  .floating-gif-bar {
    bottom: 0;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
    border-right: 0;
  }
  .floating-gif-close { top: -24px; right: 4px; }
  .back-to-top { display: none; }
}

@media (max-width: 549px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 30px); }
  .row { width: 100%; }
  .home-content > .section { padding-top: 0 !important; }
  .home-content .section-title-container { width: 100%; margin-top: 0; margin-bottom: 24px; }
  .home-content h1.section-title { font-size: 22.4px; margin-bottom: 11.2px; }
  .home-content .col-inner > .row { width: calc(100% + 30px); margin-inline: -15px; }
  .home-content blockquote { font-size: 19.2px; line-height: 1.6; padding: 0 24px 0 36px; }
  .home-content blockquote p { margin-bottom: 1.3em; }
  .home-content .noidung > .col-inner { height: 800px; padding: 12px 10px 18px; }
  .pipeline-partners { padding: 20px 0 24px; }
  .pipeline-partners-title { display: block; font-size: 19px; margin-bottom: 18px; }
  .pipeline-partners-title span { display: none; }
  .pipeline-partner-grid { gap: 10px; }
  .pipeline-partners.is-carousel .pipeline-partner-card { flex-basis: calc((100% - 10px) / 2); }
  .pipeline-partner-card { min-height: 94px; padding: 10px; border-radius: 12px; }
  .pipeline-partner-card img { height: 62px; }
  .pipeline-partner-control { width: 32px; height: 32px; font-size: 24px; line-height: 25px; }
  .pipeline-partner-prev { left: -7px; }
  .pipeline-partner-next { right: -7px; }
  .archive-wrap { padding-top: 30px; }
  .archive-wrap > .container { width: 100%; }
  .archive-header { margin-bottom: 0; padding: 0 15px 30px; }
  .archive-header h1 { font-size: 16px; margin-bottom: 8px; }
  .archive-description p { margin-bottom: 20.8px; }
  .post-grid { width: calc(100% - 30px); padding-inline: 0; grid-template-columns: 1fr; gap: 28px; }
  .single-wrap { padding-top: 30px; }
  .page-wrap { padding-top: 26px; }
  .article-header h1 { font-size: 22.4px; line-height: 1.3; margin-bottom: 11.2px; }
  .section-title { gap: 10px; }
  .section-title b { max-width: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .pipeline-partners.is-carousel .pipeline-partner-grid,
  .pipeline-partner-card { transition: none; }
}
