/* =========================================================
   TREEBANK — Custom styles on top of Bootstrap 5
   Prefix: tb-*
   ========================================================= */

:root {
  /* Brand palette */
  --tb-green-700: #007033;       /* sub-header bg */
  --tb-green-600: #2a763d;       /* primary brand */
  --tb-green-500: #448255;
  --tb-green-400: #23aa4f;       /* progress bar */
  --tb-green-50:  #e6f0e2;       /* light accent bg */

  --tb-brown-700: #53412d;       /* heading subtitle */
  --tb-dark-900:  #002307;       /* darkest text */
  --tb-dark-800:  #005001;       /* dark green text */

  --tb-yellow-500: #faa328;
  --tb-yellow-600: #dd9934;

  --tb-gray-900: #111827;
  --tb-gray-800: #1f2937;
  --tb-gray-700: #374151;
  --tb-gray-500: #6b7280;
  --tb-gray-400: #9ca3af;
  --tb-gray-300: #d1d5db;
  --tb-gray-200: #e5e7eb;
  --tb-gray-100: #f3f4f6;
  --tb-gray-50:  #f9fafb;

  --tb-cream:    #fcfbfa;
  --tb-white:    #ffffff;

  /* Typography */
  --tb-font-sans: "Noto Sans", "Inter", "Helvetica Neue", Arial, sans-serif;
  --tb-font-display: "Noto Sans", "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --tb-container-max: 1200px;
  --tb-radius-card: 20px;
  --tb-radius-pill: 999px;

  /* Button border-radius — chỉnh 3 giá trị này để thay đổi toàn site */
  --tb-btn-radius-sm:  20px;  /* .btn-sm  */
  --tb-btn-radius-md:  30px;  /* mặc định */
  --tb-btn-radius-lg:  40px;  /* .btn-lg  */

  /* Shadow */
  --tb-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --tb-shadow-md: 0 4px 8px rgba(0,0,0,0.05);
  --tb-shadow-lg: 0 8px 24px rgba(0,0,0,0.08);

  /* Header heights */
  --tb-subheader-h: 48px;
  --tb-header-h: 82px;
}

/* -------------- Bootstrap overrides ---------------------- */

/* Button border-radius global */
.btn        { --bs-btn-border-radius: var(--tb-btn-radius-md); }
.btn-sm     { --bs-btn-border-radius: var(--tb-btn-radius-sm); }
.btn-lg     { --bs-btn-border-radius: var(--tb-btn-radius-lg); }

.btn-primary,
.btn-primary:focus {
  --bs-btn-bg: var(--tb-green-600);
  --bs-btn-border-color: var(--tb-green-600);
  --bs-btn-hover-bg: #1f5a2f;
  --bs-btn-hover-border-color: #1f5a2f;
  --bs-btn-active-bg: #1f5a2f;
  --bs-btn-active-border-color: #1f5a2f;
}
.btn-outline-primary {
  --bs-btn-color: var(--tb-green-600);
  --bs-btn-border-color: var(--tb-green-600);
  --bs-btn-hover-bg: var(--tb-green-600);
  --bs-btn-hover-border-color: var(--tb-green-600);
  --bs-btn-active-bg: var(--tb-green-600);
  --bs-btn-active-border-color: var(--tb-green-600);
}
a { color: var(--tb-green-600); text-decoration: none; }
a:hover { color: var(--tb-green-700); }

/* -------------- Base ------------------------------------- */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body { font-family: var(--tb-font-sans); color: var(--tb-gray-900); background: var(--tb-white); }

img { max-width: 100%; height: auto; }


/* =========================================================
   SUB-HEADER
   ========================================================= */
.tb-subheader {
  background: var(--tb-green-700);
  color: var(--tb-cream);
  font-size: 14px;
  padding: 14px 0;
}
.tb-subheader a { color: var(--tb-cream); }
.tb-subheader__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.tb-subheader__left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tb-subheader__right { display: flex; align-items: center; gap: 16px; }
.tb-subheader__item { display: inline-flex; align-items: center; gap: 6px; }
.tb-search-trigger {
  background: none; border: 0; cursor: pointer; padding: 0;
  color: rgba(255,255,255,0.88); font-size: 13px; font-weight: 400;
  font-family: var(--tb-font-sans);
  transition: color .15s;
}
.tb-search-trigger:hover { color: #fff; }
.tb-subheader__divider { width: 1px; height: 16px; background: rgba(229,229,229,0.4); display: inline-block; }
.tb-subheader__tagline { font-weight: 400; }
.tb-subheader__phone { font-weight: 400; }
@media (max-width: 767.98px) {
  .tb-subheader { padding: 6px 0; font-size: 12px; }
  .tb-subheader__left { display: none; }
  .tb-subheader__inner { justify-content: flex-end; }
  .tb-search-trigger span,
  .tb-lang-current { display: none; }
  .tb-subheader__right { gap: 10px; }
}

/* =========================================================
   HEADER MAIN
   ========================================================= */
.tb-header {
  background: var(--tb-white);
  box-shadow: var(--tb-shadow-md);
  padding: 5px 0;
  transition: box-shadow .25s ease;
}
.tb-header--sticky {
  position: relative;
  z-index: 1030;
}
.tb-header.is-fixed {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  animation: tbHeaderSlideDown .28s ease;
}
@keyframes tbHeaderSlideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
.tb-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* ── Search overlay (Shopify style) ──────────────────────── */
.tb-search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #fff;
  z-index: 1200;
  padding: 20px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  transform: translateY(-110%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.tb-search-overlay.is-open { transform: translateY(0); }
.tb-search-overlay__backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1199;
}
.tb-search-overlay__backdrop.is-open { display: block; }
.tb-search-form {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--tb-green-600);
  border-radius: 10px;
  padding: 10px 16px;
}
.tb-search-form svg { flex-shrink: 0; color: var(--tb-green-600); }
.tb-search-form input {
  flex: 1; border: 0; outline: 0;
  font-size: 16px; font-family: var(--tb-font-sans);
  color: var(--tb-gray-900);
  background: transparent;
}
.tb-search-form input::placeholder { color: var(--tb-gray-400); }
.tb-search-close {
  background: none; border: 0; cursor: pointer; padding: 4px;
  color: var(--tb-gray-500); border-radius: 6px;
  transition: color .15s, background .15s;
}
.tb-search-close:hover { color: var(--tb-gray-900); background: var(--tb-gray-100); }

/* ── Language switcher ───────────────────────────────────── */
.tb-lang-switcher { position: relative; }
.tb-lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 0;
  font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.88);
  font-family: var(--tb-font-sans);
}
.tb-lang-btn svg { transition: transform .2s; }
.tb-lang-btn[aria-expanded="true"] svg.tb-lang-chevron { transform: rotate(180deg); }
.tb-lang-dropdown {
  display: none;
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #fff; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
  border-top: 3px solid var(--tb-green-600);
  min-width: 130px; overflow: hidden;
  z-index: 1100;
}
.tb-lang-switcher.is-open .tb-lang-dropdown { display: block; }
.tb-lang-dropdown a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--tb-gray-700);
  transition: background .15s, color .15s;
}
.tb-lang-dropdown a:hover { background: var(--tb-green-50); color: var(--tb-green-600); }
.tb-lang-dropdown a.is-active { color: var(--tb-green-600); font-weight: 700; }
.tb-lang-dropdown a .tb-lang-flag { font-size: 16px; }
.tb-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.tb-logo { display: inline-flex; align-items: center; gap: 8px; }
.tb-logo img { width: 56px; height: 56px; object-fit: contain; }
@media (min-width: 992px) { .tb-logo img { width: 72px; height: 72px; } }

.tb-nav { display: none; }
.tb-nav__list { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tb-nav__list > li { position: relative; }
.tb-nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 12px 14px;
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  color: var(--tb-gray-800);
  border-radius: 6px;
  position: relative;
  transition: color .15s ease, background .15s ease;
}
.tb-nav__link:hover { color: var(--tb-green-600); }
.tb-nav__link.is-active { color: var(--tb-green-600); }
.tb-nav__link.is-active::after {
  content: "";
  position: absolute; bottom: 2px; left: 14px; right: 14px;
  height: 2px; border-radius: 1px;
  background: var(--tb-green-600);
}
.tb-nav__link svg { width: 12px; height: 12px; opacity: .6; }

/* ── Dropdown submenu ─────────────────────────────── */
.tb-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px); left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
  padding: 8px 0;
  z-index: 1050;
  border-top: 3px solid var(--tb-green-600);
}
.tb-nav__list > li:hover .tb-dropdown { display: block; }
.tb-dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  color: var(--tb-gray-700);
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.tb-dropdown a:hover {
  background: var(--tb-green-50);
  color: var(--tb-green-600);
  border-left-color: var(--tb-green-600);
}

.tb-header__cta { display: none; }
@media (min-width: 992px) {
  .tb-nav { display: block; flex: 1; }
  .tb-nav__list { justify-content: center; }
  .tb-header__cta { display: inline-flex; }
}

.tb-hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--tb-gray-200); border-radius: 8px;
  color: var(--tb-gray-800);
}
@media (min-width: 992px) { .tb-hamburger { display: none; } }

/* Mobile offcanvas nav */
.tb-offcanvas-body { padding: 0 !important; }
.tb-mobile-nav__list { list-style: none; padding: 0; margin: 0; }
.tb-mobile-nav__list li { border-bottom: 1px solid var(--tb-gray-100); }
.tb-mobile-nav__list a {
  display: block; padding: 16px 20px;
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  color: var(--tb-gray-800);
}
.tb-mobile-nav__list a:hover { background: var(--tb-green-50); color: var(--tb-green-600); }
.tb-mobile-nav__cta { padding: 20px; }

/* =========================================================
   HERO SWIPER
   ========================================================= */
.tb-hero-swiper {
  width: 100%;
  height: 380px;
}
@media (min-width: 576px)  { .tb-hero-swiper { height: 420px; } }
@media (min-width: 768px)  { .tb-hero-swiper { height: 490px; } }
@media (min-width: 992px)  { .tb-hero-swiper { height: 560px; } }
@media (min-width: 1200px) { .tb-hero-swiper { height: 635px; } }

.tb-slide {
  position: relative;
  overflow: hidden;
}
.tb-slide__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  transition: transform 6s ease;
}
.swiper-slide-active .tb-slide__bg { transform: scale(1); }

/* Gradient overlay */
.tb-slide__overlay {
  position: absolute; inset: 0;
  pointer-events: none;
}
.tb-slide__overlay--left {
  background: linear-gradient(90deg,
    rgba(0,35,7,0.78) 0%,
    rgba(0,35,7,0.45) 45%,
    transparent 70%);
}
.tb-slide__overlay--right {
  background: linear-gradient(270deg,
    rgba(0,35,7,0.78) 0%,
    rgba(0,35,7,0.45) 45%,
    transparent 70%);
}
@media (max-width: 767.98px) {
  .tb-slide__overlay--left,
  .tb-slide__overlay--right {
    background: linear-gradient(180deg,
      transparent 0%,
      rgba(0,35,7,0.82) 55%);
  }
}

/* Inner layout */
.tb-slide__inner {
  position: relative; z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
}
.tb-slide__content {
  max-width: 520px;
  color: #fff;
  padding: 40px 0;
}
.tb-slide--right .tb-slide__content {
  margin-left: auto;
}
@media (max-width: 767.98px) {
  .tb-slide__content {
    max-width: 100%;
    text-align: center;
    padding: 32px 0;
    margin-top: auto;
  }
  .tb-slide--right .tb-slide__content { margin-left: 0; }
  .tb-slide__inner { align-items: center; }
}

/* Text elements */
.tb-slide__eyebrow {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--tb-green-300, #6ee7a0);
  margin-bottom: 12px;
}
.tb-slide__heading {
  font-size: 22px; font-weight: 800; line-height: 1.2;
  text-transform: uppercase; margin-bottom: 12px;
  color: #fff;
}
.tb-text-highlight { color: var(--tb-green-400, #4ade80); }
@media (min-width: 576px)  { .tb-slide__heading { font-size: 24px; } }
@media (min-width: 768px)  { .tb-slide__heading { font-size: 32px; } }
@media (min-width: 992px)  { .tb-slide__heading { font-size: 36px; } }
@media (min-width: 1200px) { .tb-slide__heading { font-size: 40px; } }

.tb-slide__desc {
  font-size: 15px; line-height: 1.75;
  color: rgba(255,255,255,0.88);
  margin-bottom: 28px;
}
@media (min-width: 992px) { .tb-slide__desc { font-size: 17px; } }

.tb-slide__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
}
@media (max-width: 767.98px) {
  .tb-slide__actions { justify-content: center; }
}

/* Swiper UI overrides */
.tb-swiper-pagination { bottom: 20px !important; }
.tb-swiper-pagination .swiper-pagination-bullet {
  width: 10px; height: 10px;
  background: rgba(255,255,255,0.5);
  opacity: 1;
  transition: background .3s, transform .3s;
}
.tb-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--tb-green-400, #4ade80);
  transform: scale(1.3);
}
.tb-swiper-prev, .tb-swiper-next { display: none !important; }

/* =========================================================
   HERO (page-level hero for inner pages)
   ========================================================= */
.tb-hero {
  position: relative;
  min-height: 480px;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  display: flex; align-items: center;
  padding: 40px 0;
  color: var(--tb-dark-900);
}
.tb-hero--home {
  background-image: url("../img/hero-home.png");
  background-position: left center;
  min-height: 480px;
  padding: 32px 0;
}
.tb-hero--projects { background-image: url("../img/hero-projects.png"); min-height: 380px; }
.tb-hero--news { background-image: url("../img/hero-news.png"); min-height: 380px; }
.tb-hero--about { background-image: url("../img/bg-header-about.png"); min-height: clamp(280px, 32vw, 520px); }
.tb-hero__inner { width: 100%; }
.tb-hero__logo {
  max-width: 240px; width: 100%; height: auto; margin: 0 auto;
  display: block;
}
.tb-hero__tagline {
  font-family: var(--tb-font-display);
  font-weight: 500; font-size: 28px; line-height: 1.25;
  color: var(--tb-dark-900);
  text-align: left;
}
.tb-hero__tagline strong {
  font-weight: 700; color: var(--tb-dark-900);
}
@media (min-width: 768px) {
  .tb-hero__tagline { font-size: 36px; }
  .tb-hero__logo { max-width: 280px; }
}
@media (min-width: 992px) {
  .tb-hero--home { min-height: 720px; padding: 60px 0; }
  .tb-hero__tagline { font-size: 42px; }
  .tb-hero__logo { max-width: 320px; }
}
@media (min-width: 1200px) {
  .tb-hero--home { min-height: 800px; }
  .tb-hero__tagline { font-size: 48px; }
}

.tb-page-hero {
  display: flex; align-items: flex-end; justify-content: center;
  color: var(--tb-white);
  text-shadow: 0 1px 4px rgba(0,0,0,.25);
  padding: 80px 0 60px;
}
.tb-page-hero h1 {
  font-weight: 700; font-size: 36px; line-height: 1.1; text-transform: uppercase;
  color: var(--tb-white); margin: 0;
}
@media (min-width: 992px) { .tb-page-hero h1 { font-size: 56px; } }

@media (max-width: 768px) { 
  .tb-page-hero{
  padding: 0 30px;
  }
  .tb-hero--about {
    background-image: url(../img/bg-header-about.png);
    min-height: clamp(180px, 32vw, 520px);
}
}



/* =========================================================
   STATS STRIP
   ========================================================= */
.tb-stats {
  background: url("../img/stats-bg.png") center/cover no-repeat, var(--tb-green-600);
  padding: 16px 0;
  color: var(--tb-white);
}
.tb-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 768px) {
  .tb-stats { padding: 24px 0; }
  .tb-stats__grid { grid-template-columns: repeat(5, 1fr); gap: 24px; }
}
.tb-stat { text-align: center; padding: 6px 4px; }
.tb-stat__num {
  font-weight: 700; font-size: 24px; line-height: 1.1; color: var(--tb-white);
  letter-spacing: .5px;
}
@media (min-width: 768px) { .tb-stat__num { font-size: 32px; } }
@media (min-width: 992px) { .tb-stat__num { font-size: 44px; } }
.tb-stat__label { font-size: 11px; color: rgba(255,255,255,0.88); margin-top: 3px; text-transform: uppercase; letter-spacing: .5px; }
@media (min-width: 768px) { .tb-stat__label { font-size: 13px; } }

/* =========================================================
   SECTION HEADING — variants
   ========================================================= */
.tb-heading { display: inline-flex; flex-direction: column; gap: 8px; }
.tb-heading__eyebrow {
  font-size: 16px; font-weight: 500; text-transform: uppercase;
  color: var(--tb-brown-700); letter-spacing: .5px;
}
.tb-heading__title {
  display: inline-block;
  font-family: var(--tb-font-display);
  font-weight: 700; font-size: 28px; line-height: 1.05;
  text-transform: uppercase;
  color: var(--tb-green-600);
  align-self: flex-start;
}
.tb-heading__title strong { color: var(--tb-brown-700); font-weight: 800; }
@media (min-width: 768px) { .tb-heading__title { font-size: 36px; } }

/* Boxed variant — for the main About section ('CÔNG TY TREEBANK') */
.tb-heading--boxed .tb-heading__title {
  border: 1px solid var(--tb-green-600);
  padding: 10px 20px;
}

/* Centered variant */
.tb-heading--center { align-items: center; text-align: center; }
.tb-heading--center .tb-heading__eyebrow,
.tb-heading--center .tb-heading__title { align-self: center; }

/* Underlined variant — title has a green underline beneath */
.tb-heading--underline .tb-heading__title {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--tb-green-600);
}

/* Left-bar variant — green vertical bar to the left of title */
.tb-heading--bar { position: relative; padding-left: 16px; }
.tb-heading--bar::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 4px; height: calc(100% - 12px);
  background: var(--tb-green-600); border-radius: 2px;
}
.tb-heading--bar .tb-heading__title { padding: 0; border: 0; }

/* White variant — used over dark/colored sections */
.tb-heading--white .tb-heading__title { color: var(--tb-white); border-color: var(--tb-white); }
.tb-heading--white .tb-heading__eyebrow { color: rgba(255,255,255,0.85); }

.tb-section { padding: 60px 0; overflow: hidden; }
.tb-section--green { background: var(--tb-green-50); }
.tb-section--gray { background: var(--tb-gray-50); }
/* Bỏ overflow để position:sticky bên trong hoạt động */
.tb-section--sticky-host { overflow: visible; }

/* =========================================================
   ABOUT (TreeBank intro) — two col
   ========================================================= */
.tb-about__text p {
  font-size: 16px; line-height: 1.6; color: var(--tb-gray-800);
  margin-bottom: 16px;
}
.tb-about__text p strong { color: var(--tb-dark-900); }
.tb-about__circles {
  position: relative;
  padding-bottom: 80px;
  padding-left: 60px;
}
.tb-about__circle {
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}
.tb-about__circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-about__circle--main {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  margin-left: auto;
}
.tb-about__circle--sub {
  position: absolute;
  bottom: 0; left: 0;
  width: 48%;
  aspect-ratio: 1 / 1;
}
@media (max-width: 991.98px) {
  .tb-about__circles { padding-left: 40px; padding-bottom: 60px; }
  .tb-about__circle--main { max-width: 300px; }
}
@media (max-width: 575.98px) {
  .tb-about__circles { padding-left: 24px; padding-bottom: 48px; }
}

/* =========================================================
   CAMPAIGN CARDS (top picks)
   ========================================================= */
.tb-campaign {
  display: flex; flex-direction: column; gap: 16px;
  cursor: pointer;
}
.tb-campaign .tb-campaign__img {
  transition: transform .35s ease, box-shadow .35s ease;
}
.tb-campaign:hover .tb-campaign__img {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}
.tb-campaign__title {
  transition: color .2s;
}
.tb-campaign:hover .tb-campaign__title { color: var(--tb-green-700); }
.tb-campaign__img {
  border-radius: 16px;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  background-color: var(--tb-gray-200);
  aspect-ratio: 16 / 10;
}
.tb-campaign__eyebrow {
  font-size: 12px; font-weight: 700; color: var(--tb-gray-500);
  text-transform: uppercase; letter-spacing: 1px; margin: 0;
}
.tb-campaign__title {
  font-weight: 800; font-size: 18px; line-height: 1.2;
  color: var(--tb-dark-900); text-transform: uppercase;
  margin: 6px 0 10px;
  transition: color .2s;
}
.tb-campaign:hover .tb-campaign__title { color: var(--tb-green-600); }
.tb-campaign__desc {
  font-size: 14px; line-height: 1.6; color: var(--tb-gray-700); font-weight: 400;
}
.tb-campaign__desc strong { color: var(--tb-dark-900); font-weight: 700; }
@media (min-width: 992px) {
  .tb-campaign__title { font-size: 20px; }
}

/* =========================================================
   PROJECT CARDS (with progress + meta)
   ========================================================= */
/* ── Project Swiper — equal height slides ─────────────── */
.tb-project-swiper .swiper-wrapper { align-items: stretch; }
.tb-project-swiper .swiper-slide   { height: auto; display: flex; flex-shrink: 0; box-sizing: border-box; }
.tb-project-swiper .tb-project-card { width: 100%; min-width: 0; overflow: hidden; }

/* ── Project Swiper wrapper ───────────────────────────── */
.tb-project-swiper-wrap {
  position: relative;
  padding: 0 44px;
}
@media (max-width: 575.98px) { .tb-project-swiper-wrap { padding: 0; } }

.tb-proj-arrow {
  position: absolute; top: 38%; transform: translateY(-50%);
  width: 36px; height: 36px;
  background: #fff; border: 0; border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.14);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
  color: var(--tb-green-600);
  transition: background .15s, color .15s;
}
.tb-proj-arrow:hover { background: var(--tb-green-600); color: #fff; }
.tb-proj-prev { left: 0; }
.tb-proj-next { right: 0; }
@media (max-width: 575.98px) { .tb-proj-arrow { display: none; } }

/* ── Project card ─────────────────────────────────────── */
.tb-project-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex; flex-direction: column;
  height: 100%;
  transition: box-shadow .2s, transform .2s;
}
.tb-project-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  transform: translateY(-3px);
}
.tb-project-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--tb-gray-200) center/cover no-repeat;
  flex-shrink: 0;
  display: block;
  text-decoration: none;
}
.tb-project-card__title a {
  color: inherit; text-decoration: none;
}
.tb-project-card__title a:hover { color: var(--tb-green-600); }
.tb-project-card__progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(4px);
  padding: 10px 14px 12px;
}
.tb-project-card__progress-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 700; margin-bottom: 7px;
}
.tb-project-card__amount { color: var(--tb-green-600); }
.tb-project-card__percent { color: var(--tb-gray-500); font-weight: 500; }
.tb-project-card__bar {
  height: 5px; background: var(--tb-gray-200); border-radius: 3px; overflow: hidden;
}
.tb-project-card__bar > i {
  display: block; height: 100%;
  background: var(--tb-green-400); border-radius: 3px;
}
/* Khu vực (icon + tỉnh) */
.tb-project-card__region {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
  color: var(--tb-green-600); margin: 14px 14px 0;
}
.tb-project-card__region svg { flex-shrink: 0; }

.tb-project-card__title {
  font-weight: 700; font-size: 15px; line-height: 1.4;
  color: var(--tb-dark-900); margin: 6px 14px 8px;
  min-height: calc(1.4em * 2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2;
  word-break: break-word; overflow-wrap: break-word;
}
.tb-project-card__meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 0 14px 14px; margin-top: auto;
  color: var(--tb-gray-600);
}
.tb-project-card__count { color: var(--tb-yellow-500); font-weight: 700; }
.tb-project-card__label { color: var(--tb-gray-500); font-weight: 400; }
.tb-project-card__days  { color: var(--tb-gray-500); font-weight: 400; }
.tb-project-card__days .tb-project-card__count { color: var(--tb-gray-900); }

/* =========================================================
   NEWS LIST
   ========================================================= */
.tb-news-feature {
  display: flex; flex-direction: column; gap: 20px;
}
.tb-news-feature__media {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--tb-gray-200) center/cover no-repeat;
  transition: transform .35s ease;
}
.tb-news-feature:hover .tb-news-feature__media { transform: translateY(-4px); }
.tb-news-feature__title {
  font-weight: 700; font-size: 20px; line-height: 1.35; color: var(--tb-dark-900);
  transition: color .2s;
}
.tb-news-feature:hover .tb-news-feature__title { color: var(--tb-green-600); }
@media (min-width: 992px) { .tb-news-feature__title { font-size: 22px; } }
.tb-news-feature__excerpt {
  font-size: 14px; line-height: 1.6; color: var(--tb-gray-500);
}

.tb-news-item {
  display: flex; align-items: flex-start; gap: 14px;
  text-decoration: none; color: inherit;
  padding: 12px 0;
  border-bottom: 1px solid var(--tb-gray-100);
  transition: background .15s;
  overflow: hidden;
}
.tb-news-item:last-child { border-bottom: 0; }
.tb-news-item__thumb {
  flex: 0 0 96px; width: 96px; height: 72px;
  border-radius: 10px;
  background: var(--tb-gray-200) center/cover no-repeat;
  transition: transform .3s ease;
}
@media (max-width: 400px) {
  .tb-news-item__thumb { flex: 0 0 72px; width: 72px; height: 54px; }
}
.tb-news-item:hover .tb-news-item__thumb { transform: scale(1.04); }
.tb-news-item__body { min-width: 0; flex: 1; }
.tb-news-item__title {
  font-weight: 700; font-size: 14px; line-height: 1.4; color: var(--tb-dark-900);
  margin: 0 0 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2;
  transition: color .2s;
}
.tb-news-item:hover .tb-news-item__title { color: var(--tb-green-600); }
.tb-news-item__excerpt {
  font-size: 13px; line-height: 1.4; color: var(--tb-gray-400);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2;
}

/* =========================================================
   PARTNERS SWIPER
   ========================================================= */
.tb-partners-swiper {
  height: 188px; /* 2 rows × 90px + gap 8px */
  overflow: hidden;
}
.tb-partners-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  height: 90px;
}
@media (min-width: 768px) { .tb-partners-row { grid-template-columns: repeat(8, 1fr); gap: 8px; } }

.tb-partner-logo {
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 10px;
  padding: 14px 18px;
  transition: transform .25s, box-shadow .25s;
  overflow: hidden;
}
.tb-partner-logo:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.tb-partner-logo img {
  max-height: 52px; width: auto; max-width: 100%; object-fit: contain;
  opacity: 0.9;
  transition: opacity .3s;
}
.tb-partner-logo:hover img { opacity: 1; }

/* Legacy text-based (keep for fallback) */
.tb-partners__item span {
  font-weight: 700; color: var(--tb-gray-700); font-size: 13px;
  text-align: center; line-height: 1.2;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.tb-testimonial {
  padding: 24px 0; text-align: center;
}
.tb-testimonial__avatar {
  width: 106px; height: 106px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px;
  border: 4px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.tb-testimonial__name {
  font-weight: 700; font-size: 16px; color: var(--tb-green-600); margin: 0;
}
.tb-testimonial__role { font-size: 13px; color: var(--tb-gray-500); margin-top: 4px; }
.tb-testimonial__quote-wrap {
  position: relative;
  padding: 28px 52px 24px;
  max-width: 800px;
  margin: 0 auto;
}
.tb-testimonial__quote-mark {
  position: absolute; top: 0; font-size: 52px; line-height: 1; opacity: .18;
  color: var(--tb-green-600); font-family: Georgia, serif; font-weight: 700;
  user-select: none;
}
.tb-testimonial__quote-mark--left { left: 0; }
.tb-testimonial__quote-mark--right { right: 0; top: auto; bottom: 0; transform: rotate(180deg); }
.tb-testimonial__quote {
  font-style: italic; font-weight: 400; font-size: 15px; line-height: 1.8;
  color: var(--tb-gray-700);
  text-align: center;
  margin: 0;
}
@media (min-width: 768px) {
  .tb-testimonial { display: flex; align-items: center; gap: 16px; text-align: left; justify-content: center; }
  .tb-testimonial__person { flex: 0 0 160px; text-align: center; }
  .tb-testimonial__avatar { margin: 0 auto 12px; }
  .tb-testimonial__body { flex: 0 1 640px; }
  .tb-testimonial__quote { font-size: 16px; }
}

/* Testimonial dots */
.tb-testi-dots {
  display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 28px;
}
.tb-testi-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(42,118,61,0.22);
  transition: background .25s, transform .25s;
}
.tb-testi-dot.active {
  background: var(--tb-green-600);
  transform: scale(1.3);
}

/* =========================================================
   FOOTER
   ========================================================= */

/* ── Back to top ────────────────────────────────────────── */
.tb-back-top {
  position: fixed;
  bottom: 28px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%; border: 0;
  background: var(--tb-green-600);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(42,118,61,0.4);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
  z-index: 999;
}
.tb-back-top.is-visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.tb-back-top:hover { background: var(--tb-green-700); }
@media (max-width: 575.98px) {
  .tb-back-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}
.tb-footer {
  position: relative;
  background: url("../img/footer-bg.png") center/cover no-repeat, #0a3d1f;
  color: #fff;
  padding: 48px 0 24px;
}
/* Mép trên footer: phủ solid #0a3d1f đặc → khớp mép dưới partners strip,
   mờ dần xuống để lộ ảnh lá. 2 mép cùng #0a3d1f → không lộ đường cắt. */
.tb-footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 160px;
  background: linear-gradient(to bottom, #0a3d1f 0%, rgba(10, 61, 31, 0) 100%);
  pointer-events: none; z-index: 0;
}
.tb-footer > * { position: relative; z-index: 1; }
.tb-footer h4 {
  font-family: "Inter", sans-serif;
  font-weight: 700; font-size: 16px; text-transform: uppercase;
  color: #fff; margin: 0 0 20px;
}
.tb-footer__brand { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; }
.tb-footer__brand img { width: 60px; height: 72px; object-fit: contain; }
.tb-footer__brand-text { line-height: 1.1; }
.tb-footer__brand-text .name { font-weight: 700; font-size: 28px; color: #fff; display: block; }
.tb-footer__brand-text .tag { font-size: 14px; color: #fff; display: block; margin-top: 4px; }
.tb-footer__info {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 14px; color: #e5e7eb;
}
.tb-footer__info li { display: flex; gap: 8px; align-items: flex-start; }
.tb-footer__info a { color: #e5e7eb; }
.tb-footer__info a:hover { color: #fff; }
.tb-footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tb-footer__links a { color: #e5e7eb; font-size: 14px; }
.tb-footer__links a:hover { color: #fff; }
.tb-footer__newsletter p { color: #e5e7eb; font-size: 14px; margin: 0 0 16px; }
.tb-footer__form {
  display: flex; align-items: stretch; max-width: 320px;
}
.tb-footer__form input {
  flex: 1; min-width: 0;
  border: 0; padding: 8px 14px; font-size: 13px;
  background: var(--tb-cream); color: var(--tb-gray-800);
}
.tb-footer__form button {
  border: 0; padding: 8px 14px; font-size: 13px; font-weight: 700;
  background: var(--tb-green-600); color: #fff;
  cursor: pointer;
}
.tb-footer hr {
  border: 0; border-top: 1px solid rgba(255,255,255,0.18); margin: 32px 0 16px;
}
.tb-footer__bottom {
  display: flex; flex-direction: column; gap: 16px;
  font-size: 13px; color: #fff;
}
.tb-footer__bottom .socials { display: flex; gap: 12px; }
.tb-footer__bottom .socials a {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); color: #fff;
  transition: background .15s ease;
}
.tb-footer__bottom .socials a:hover { background: var(--tb-green-600); }
@media (min-width: 768px) {
  .tb-footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* =========================================================
   CAROUSEL ARROWS (custom)
   ========================================================= */
.tb-carousel-arrow {
  width: 32px; height: 42px; border-radius: 4px;
  background: var(--tb-green-600); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0;
  transition: background .15s ease;
}
.tb-carousel-arrow:hover { background: var(--tb-green-700); }
.tb-carousel-arrow:disabled { opacity: .4; cursor: not-allowed; }

/* =========================================================
   PROJECTS GRID — secondary card variant
   ========================================================= */
.tb-project-tile {
  background: #fff; border-radius: var(--tb-radius-card); overflow: hidden;
  box-shadow: var(--tb-shadow-md);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.tb-project-tile:hover { transform: translateY(-4px); box-shadow: var(--tb-shadow-lg); }
.tb-project-tile__media {
  aspect-ratio: 16 / 10;
  background: var(--tb-gray-200) center/cover no-repeat;
}
.tb-project-tile__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tb-project-tile__title {
  font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--tb-dark-900);
  margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2;
}
.tb-project-tile__desc {
  font-size: 14px; color: var(--tb-gray-700); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 3;
}
.tb-project-tile__progress { margin-top: auto; }
.tb-project-tile__bar { height: 8px; background: var(--tb-gray-200); border-radius: 4px; overflow: hidden; }
.tb-project-tile__bar > i { display: block; height: 100%; background: var(--tb-green-400); border-radius: 4px; }
.tb-project-tile__stats {
  display: flex; justify-content: space-between; font-size: 13px; color: var(--tb-gray-700);
  margin-top: 8px;
}
.tb-project-tile__stats strong { color: var(--tb-green-600); }

/* =========================================================
   STAFF / TEAM cards
   ========================================================= */
.tb-staff { text-align: center; }
.tb-staff__photo {
  aspect-ratio: 1 / 1; width: 100%; border-radius: var(--tb-radius-card);
  background: var(--tb-gray-200) center/cover no-repeat;
  margin-bottom: 16px;
}
.tb-staff--circle .tb-staff__photo {
  border-radius: 50%;
  width: 180px; height: 180px; max-width: 100%;
  margin-left: auto; margin-right: auto;
}
.tb-staff__name { font-weight: 700; font-size: 18px; color: var(--tb-dark-900); margin: 0; }
.tb-staff__role { font-size: 14px; color: var(--tb-gray-500); margin-top: 4px; }
.tb-staff__email { font-size: 13px; color: var(--tb-gray-400); margin-top: 2px; }

/* =========================================================
   REASON ROW (numbered, alternating image/text)
   ========================================================= */
.tb-reason-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--tb-shadow-md);
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .tb-reason-row { grid-template-columns: 1fr 1fr; }
}
.tb-reason-row__media {
  position: relative;
  min-height: 160px;
  background: var(--tb-gray-200) center/cover no-repeat;
  overflow: hidden;
}
.tb-reason-row__num {
  position: absolute;
  right: 16px; bottom: 0;
  font-family: var(--tb-font-display);
  font-weight: 900; font-size: 220px;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.9);
  pointer-events: none;
  user-select: none;
}
.tb-reason-row__body {
  padding: 24px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 12px;
  background: #fff;
}
@media (min-width: 768px) {
  .tb-reason-row__body { padding: 32px 40px; }
  .tb-reason-row__num { font-size: 280px; right: 24px; }
  /* Reverse row (text on left, image on right) */
  .tb-reason-row--reverse .tb-reason-row__media { order: 2; }
  .tb-reason-row--reverse .tb-reason-row__body { order: 1; }
  .tb-reason-row--reverse .tb-reason-row__num { left: 24px; right: auto; }
}
.tb-reason-row__title {
  font-weight: 700; font-size: 22px; line-height: 1.2;
  color: var(--tb-dark-900); margin: 0;
  text-transform: uppercase;
}
.tb-reason-row__desc {
  font-size: 15px; line-height: 1.6; color: var(--tb-gray-700); margin: 0;
}

/* Big primary reason (first row taller, larger title) */
.tb-reason-row--primary .tb-reason-row__title { font-size: 28px; }
@media (min-width: 992px) {
  .tb-reason-row--primary .tb-reason-row__title { font-size: 32px; }
}

/* =========================================================
   SUB-PAGE TABS (pill style)
   ========================================================= */
.tb-pill-tabs {
  display: inline-flex; gap: 0;
  background: #fff;
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--tb-shadow-md);
}
.tb-pill-tabs button {
  background: transparent; border: 0;
  padding: 10px 20px;
  font-weight: 500; font-size: 14px;
  color: var(--tb-gray-700);
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}
.tb-pill-tabs button.is-active {
  background: var(--tb-green-50); color: var(--tb-green-700); font-weight: 700;
}
.tb-pill-tabs button:hover:not(.is-active) {
  background: var(--tb-gray-50); color: var(--tb-green-600);
}

/* =========================================================
   TABS (project detail)
   ========================================================= */
.tb-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--tb-gray-200);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tb-tabs button {
  background: transparent; border: 0; padding: 14px 20px;
  font-weight: 700; font-size: 15px; color: var(--tb-gray-500);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.tb-tabs button.is-active {
  color: var(--tb-green-600); border-bottom-color: var(--tb-green-600);
}
.tb-tabs button:hover { color: var(--tb-green-600); }
.tb-tab-pane { display: none; }
.tb-tab-pane.is-active { display: block; }

/* Donation row */
.tb-donor-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--tb-gray-100);
}
.tb-donor-row__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px;
  background: var(--tb-green-50); color: var(--tb-green-600);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.tb-donor-row__info { flex: 1; min-width: 0; }
.tb-donor-row__name { font-weight: 700; font-size: 15px; color: var(--tb-dark-900); }
.tb-donor-row__msg { font-size: 13px; color: var(--tb-gray-500); }
.tb-donor-row__amount { font-weight: 700; color: var(--tb-green-600); font-size: 15px; }

/* =========================================================
   PAYMENT / DONATION forms
   ========================================================= */
.tb-form-card {
  background: #fff; border-radius: 16px; box-shadow: var(--tb-shadow-md);
  padding: 24px;
}
@media (min-width: 768px) { .tb-form-card { padding: 32px; } }
.tb-form-card h3 {
  font-weight: 700; font-size: 22px; color: var(--tb-dark-900); margin: 0 0 20px;
}

.tb-amount-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 576px) { .tb-amount-grid { grid-template-columns: repeat(3, 1fr); } }
.tb-amount-pill {
  background: var(--tb-gray-50); border: 1px solid var(--tb-gray-200); border-radius: 10px;
  padding: 14px 8px; font-weight: 700; font-size: 15px; color: var(--tb-gray-800);
  cursor: pointer; transition: all .15s ease;
  text-align: center;
}
.tb-amount-pill:hover { border-color: var(--tb-green-600); color: var(--tb-green-600); }
.tb-amount-pill.is-active {
  background: var(--tb-green-50); border-color: var(--tb-green-600); color: var(--tb-green-700);
}

.tb-payment-method {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border: 1px solid var(--tb-gray-200); border-radius: 10px;
  cursor: pointer;
  transition: all .15s ease;
}
.tb-payment-method:hover { border-color: var(--tb-green-600); }
.tb-payment-method.is-active { border-color: var(--tb-green-600); background: var(--tb-green-50); }
.tb-payment-method__icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--tb-white); border: 1px solid var(--tb-gray-200);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--tb-green-600);
}
.tb-payment-method__name { font-weight: 700; font-size: 15px; color: var(--tb-dark-900); }
.tb-payment-method__desc { font-size: 13px; color: var(--tb-gray-500); }

/* Steps */
.tb-steps {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.tb-step {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--tb-gray-500);
}
.tb-step__num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--tb-gray-100); color: var(--tb-gray-500);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.tb-step.is-active { color: var(--tb-green-600); font-weight: 700; }
.tb-step.is-active .tb-step__num { background: var(--tb-green-600); color: #fff; }
.tb-step.is-done .tb-step__num { background: var(--tb-green-400); color: #fff; }
.tb-step__sep { flex: 1; height: 2px; background: var(--tb-gray-200); min-width: 16px; max-width: 40px; }

/* =========================================================
   AOS-lite (simple CSS-only fade up)
   ========================================================= */
[data-aos] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-aos].is-in { opacity: 1; transform: none; }
[data-aos="fade-right"] { transform: translateX(-20px); }
[data-aos="fade-right"].is-in { transform: none; }
[data-aos="fade-left"] { transform: translateX(20px); }
[data-aos="fade-left"].is-in { transform: none; }
[data-aos="zoom-in"] { transform: scale(.95); }
[data-aos="zoom-in"].is-in { transform: none; }

/* =========================================================
   Utilities
   ========================================================= */
.tb-text-brand { color: var(--tb-green-600) !important; }
.tb-bg-brand { background: var(--tb-green-600) !important; color: #fff; }
.tb-divider { height: 1px; background: var(--tb-gray-200); border: 0; margin: 24px 0; }
.tb-uppercase { text-transform: uppercase; }
.tb-bold { font-weight: 700; }

/* =========================================================
   GIỚI THIỆU — Page switch bar
   ========================================================= */
.tb-page-switch-bar {
  background: #fff;
  border-bottom: 1px solid var(--tb-gray-100);
  padding: 0;
}
.tb-page-switch {
  display: inline-flex;
  border: 1px solid var(--tb-gray-200);
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0;
}
.tb-page-switch__item {
  display: block; padding: 10px 20px;
  font-size: 14px; font-weight: 600; text-align: center;
  color: var(--tb-gray-600);
  background: #fff;
  transition: background .15s, color .15s;
  border-right: 1px solid var(--tb-gray-200);
}
.tb-page-switch__item:last-child { border-right: 0; }
.tb-page-switch__item.is-active,
.tb-page-switch__item:hover {
  background: var(--tb-green-50); color: var(--tb-green-600);
}

/* =========================================================
   GIỚI THIỆU — Reason rows (zigzag)
   ========================================================= */
.tb-reason {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 768px) { .tb-reason { grid-template-columns: 1fr 1fr; } }

.tb-reason__img {
  position: relative;
  padding: 75px 0;
  height: 100%;
  min-height: 200px;
  background: var(--tb-gray-200) center/cover no-repeat;
  overflow: hidden;
}
.tb-reason__body { height: 100%; box-sizing: border-box; }


.tb-reason__body {
  padding: 32px 28px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
@media (min-width: 768px) { .tb-reason__body { padding: 48px 52px; } }

.tb-reason__title {
  font-weight: 700; font-size: 18px; line-height: 1.2;
  text-transform: uppercase; margin: 0;
}
@media (min-width: 992px) { .tb-reason__title { font-size: 22px; } }

.tb-reason__desc { font-size: 15px; line-height: 1.7; margin: 0; }

/* Body variants */
.tb-reason__body--light { background: #fff; }
.tb-reason__body--light .tb-reason__title { color: var(--tb-dark-900); }
.tb-reason__body--light .tb-reason__desc { color: var(--tb-gray-700); }

.tb-reason__body--gray {
  background: linear-gradient(160deg, #396648 0%, #448255 100%);
}
.tb-reason__body--gray .tb-reason__title { color: #fff; }
.tb-reason__body--gray .tb-reason__desc { color: rgba(255,255,255,0.88); }

.tb-reason__body--green {
  background: linear-gradient(160deg, #396648 0%, #448255 100%);
}
.tb-reason__body--green .tb-reason__title { color: #fff; }
.tb-reason__body--green .tb-reason__desc { color: rgba(255,255,255,0.88); }

@media (min-width: 768px) {
  .tb-reason--reverse .tb-reason__img { order: 2; }
  .tb-reason--reverse .tb-reason__body { order: 1; }
}

/* =========================================================
   GIỚI THIỆU — Vietnam map + pins
   ========================================================= */
.tb-vn-map {
  position: relative;
  width: 100%; max-width: 420px;
  margin: 0 auto;
  height: 100%; min-height: 360px;
  display: flex; align-items: center; justify-content: center;
}
.tb-vn-map__img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  max-height: 600px;
}
.tb-vn-map__pin {
  position: absolute; transform: translate(-50%, -100%);
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; color: var(--tb-dark-900);
  white-space: nowrap; pointer-events: none;
}
.tb-vn-map__pin::before {
  content: ""; display: inline-block;
  width: 10px; height: 10px; border-radius: 50% 50% 50% 0;
  background: var(--tb-green-600); transform: rotate(-45deg);
  margin-right: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  border: 1.5px solid #fff;
}
.tb-vn-map__label {
  position: absolute; font-weight: 500;
  font-size: 12px; color: var(--tb-brown-700); pointer-events: none;
}

/* Region tabs */
.tb-region-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.tb-tab-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 20px;
  border-radius: var(--tb-btn-radius-sm);
  border: 1.5px solid var(--tb-green-600);
  background: transparent;
  color: var(--tb-green-600);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.tb-tab-btn:hover { background: var(--tb-green-50); }
.tb-tab-btn.is-active {
  background: var(--tb-green-600);
  color: #fff;
  box-shadow: 0 4px 12px rgba(42,118,61,0.25);
}
.tb-region-preview {
  width: 100%; aspect-ratio: 705 / 396;
  background: var(--tb-gray-100) center/cover no-repeat;
  border-radius: 10px; box-shadow: var(--tb-shadow-md);
}

/* =========================================================
   GIỚI THIỆU — Staff cards
   ========================================================= */
.tb-staff-card {
  background: #fff; border-radius: 16px;
  padding: 24px 16px; text-align: center;
  box-shadow: var(--tb-shadow-md);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  transition: transform .2s, box-shadow .2s;
}
.tb-staff-card:hover { transform: translateY(-4px); box-shadow: var(--tb-shadow-lg); }
.tb-staff-card__avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--tb-gray-200) center/cover no-repeat;
  flex: 0 0 100px; border: 3px solid var(--tb-green-50);
}
.tb-staff-card__name {
  font-weight: 700; font-size: 16px; color: var(--tb-dark-900); margin: 4px 0 0;
}
.tb-staff-card__role { font-size: 13px; color: var(--tb-gray-500); margin: 0; }
.tb-staff-card__email {
  font-size: 12px; color: var(--tb-green-600); margin: 0;
  word-break: break-all;
}
.tb-staff-card__email:hover { text-decoration: underline; }

/* Staff swiper — slide chiều cao đồng đều */
.tb-staff-swiper { padding-bottom: 48px !important; }
.tb-staff-swiper .swiper-slide { height: auto; }
.tb-staff-swiper .tb-staff-card { height: 100%; }
.tb-staff-swiper .swiper-pagination { bottom: 0; }

/* =========================================================
   TIN TỨC — Shared base (dùng cho cả v1 & v2)
   ========================================================= */

/* Hero banner tin tức */
.tb-hero--news-page {
  background-image: url('../img/news-featured.png');
  min-height: clamp(240px, 28vw, 420px);
  background-size: cover; background-position: center;
  position: relative; display: flex; align-items: flex-end;
}
.tb-hero--news-page::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,35,7,.75) 0%, rgba(0,35,7,.1) 100%);
}
.tb-hero--news-page .tb-news-hero-inner {
  position: relative; z-index: 1;
  padding: 40px 0 48px;
  color: #fff;
}
.tb-news-hero-inner h1 { font-size: clamp(28px,4vw,48px); font-weight: 800; margin: 0; }

/* Category filter bar */
.tb-news-filter {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.tb-news-filter__btn {
  border: 1.5px solid var(--tb-gray-200);
  background: #fff; border-radius: 999px;
  padding: 6px 18px; font-size: 13px; font-weight: 600;
  color: var(--tb-gray-600); cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.tb-news-filter__btn:hover,
.tb-news-filter__btn.is-active {
  background: var(--tb-green-600); border-color: var(--tb-green-600); color: #fff;
}

/* Filter bar wrapper */
.tb-news-filterbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

/* Mobile filter row */
.tb-news-filter-mobile {
  width: 100%; align-items: center; justify-content: space-between; gap: 10px;
}

/* Dropdown lọc danh mục (mobile) */
.tb-news-cat-dropdown { position: relative; flex: 1; }
.tb-news-cat-dropdown__btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 1.5px solid var(--tb-gray-200); border-radius: 999px;
  background: #fff; padding: 9px 16px;
  font-size: 13px; font-weight: 600; color: var(--tb-gray-700);
  cursor: pointer; transition: border-color .2s;
}
.tb-news-cat-dropdown__btn span { flex: 1; text-align: left; }
.tb-news-cat-dropdown__chevron { transition: transform .2s; flex-shrink: 0; }
.tb-news-cat-dropdown.is-open .tb-news-cat-dropdown__btn { border-color: var(--tb-green-600); color: var(--tb-green-600); }
.tb-news-cat-dropdown.is-open .tb-news-cat-dropdown__chevron { transform: rotate(180deg); }

.tb-news-cat-dropdown__menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  border: 1.5px solid var(--tb-gray-100);
  z-index: 500; overflow: hidden;
  list-style: none; margin: 0; padding: 6px 0;
  pointer-events: auto;
}
.tb-news-cat-dropdown.is-open .tb-news-cat-dropdown__menu { display: block; }
.tb-news-cat-dropdown.is-open { z-index: 501; }
.tb-news-cat-dropdown__menu li button {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 12px 20px;
  font-size: 14px; font-weight: 500; color: var(--tb-gray-700);
  background: none; border: 0; cursor: pointer; text-align: left;
  transition: background .15s, color .15s;
}
.tb-news-cat-dropdown__menu li button svg { opacity: 0; color: var(--tb-green-600); }
.tb-news-cat-dropdown__menu li button.is-active { color: var(--tb-green-600); font-weight: 700; }
.tb-news-cat-dropdown__menu li button.is-active svg { opacity: 1; }
.tb-news-cat-dropdown__menu li button:hover { background: var(--tb-gray-50); color: var(--tb-green-600); }

/* Search mobile icon + expand */
.tb-news-search-mobile { position: relative; flex-shrink: 0; }
.tb-news-search-mobile__icon {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--tb-gray-200); background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--tb-gray-600); cursor: pointer; transition: border-color .2s, color .2s;
}
.tb-news-search-mobile__icon:hover { border-color: var(--tb-green-600); color: var(--tb-green-600); }

.tb-news-search-mobile__input-wrap {
  display: none;
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: #fff; border: 1.5px solid var(--tb-green-600);
  border-radius: 999px; padding: 6px 12px 6px 16px;
  gap: 8px; align-items: center; width: 240px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.tb-news-search-mobile.is-open .tb-news-search-mobile__icon { display: none; }
.tb-news-search-mobile.is-open .tb-news-search-mobile__input-wrap { display: flex; }
.tb-news-search-mobile__input-wrap input {
  flex: 1; border: 0; outline: none;
  font-size: 13px; font-family: var(--tb-font-sans); color: var(--tb-gray-900);
  background: transparent;
}
.tb-news-search-mobile__close {
  background: none; border: 0; cursor: pointer; padding: 2px;
  color: var(--tb-gray-400); display: flex; align-items: center;
}
.tb-news-search-mobile__close:hover { color: var(--tb-gray-700); }

/* Search box */
.tb-news-search {
  position: relative; flex: 0 0 220px;
}
.tb-news-search input {
  width: 100%; border: 1.5px solid var(--tb-gray-200);
  border-radius: 999px; padding: 8px 16px 8px 36px;
  font-size: 13px; font-family: var(--tb-font-sans);
  outline: none; transition: border-color .2s;
}
.tb-news-search input:focus { border-color: var(--tb-green-600); }
.tb-news-search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--tb-gray-400); pointer-events: none;
}

/* Pagination override cho cả 2 version */
.tb-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.tb-pagination a, .tb-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--tb-gray-200); color: var(--tb-gray-700);
  text-decoration: none; transition: all .2s;
}
.tb-pagination a:hover { border-color: var(--tb-green-600); color: var(--tb-green-600); }
.tb-pagination .is-active { background: var(--tb-green-600); border-color: var(--tb-green-600); color: #fff; }
.tb-pagination .is-disabled { opacity: .4; pointer-events: none; }

/* ── V1: Thiết kế gốc — list 2 cột (ảnh trái, text phải) ── */
.tb-news-list-v1 { display: flex; flex-direction: column; gap: 0; }

.tb-news-row {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 20px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px solid var(--tb-gray-100);
  text-decoration: none; color: inherit;
  transition: background .15s;
}
.tb-news-row:last-child { border-bottom: 0; }
@media (max-width: 767px) {
  .tb-news-row {
    display: flex; flex-direction: column; gap: 0;
    border-bottom: 0; border-radius: 16px;
    overflow: hidden; box-shadow: var(--tb-shadow-md);
    background: #fff;
  }
  .tb-news-row__thumb {
    width: 100%; aspect-ratio: 16/9; border-radius: 0;
    transform: none !important;
  }
  .tb-news-row__body { padding: 14px 16px 16px; }
  .tb-news-row__excerpt { display: none; }
  .tb-news-list-v1 { gap: 16px; }
}

.tb-news-row__thumb {
  aspect-ratio: 4/3; border-radius: 12px;
  background: var(--tb-gray-200) center/cover no-repeat;
  flex-shrink: 0; overflow: hidden;
  transition: transform .3s;
}
.tb-news-row:hover .tb-news-row__thumb { transform: scale(1.03); }

.tb-news-row__body { min-width: 0; }
.tb-news-row__cat {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  color: var(--tb-green-600); margin-bottom: 6px;
}
.tb-news-row__title {
  font-size: 15px; font-weight: 700; line-height: 1.45;
  color: var(--tb-dark-900); margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-clamp: 2;
  transition: color .2s;
}
.tb-news-row:hover .tb-news-row__title { color: var(--tb-green-600); }
.tb-news-row__excerpt {
  font-size: 13px; color: var(--tb-gray-500); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-clamp: 2; margin-bottom: 10px;
}
.tb-news-row__read {
  font-size: 13px; font-weight: 600; color: var(--tb-gray-500);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .2s;
}
.tb-news-row:hover .tb-news-row__read { color: var(--tb-green-600); }
.tb-news-row__read svg { transition: transform .2s; }
.tb-news-row:hover .tb-news-row__read svg { transform: translateX(3px); }
.tb-news-row__date { font-size: 12px; color: var(--tb-gray-400); margin-bottom: 4px; }

/* V1 — 2 cột ngang trên desktop */
@media (min-width: 768px) {
  .tb-news-list-v1--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
  .tb-news-list-v1--2col .tb-news-row { border-bottom: 1px solid var(--tb-gray-100); }
}

/* Related news swiper */
.tb-related-swiper .swiper-slide { height: auto; box-sizing: border-box; }
.tb-related-swiper .tb-nc { height: 100%; }
.tb-related-swiper .tb-proj-card-v2 { height: 100%; }

/* ── V2: Đề xuất — card grid sang trọng ── */
.tb-news-grid-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px)  { .tb-news-grid-v2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tb-news-grid-v2 { grid-template-columns: repeat(3, 1fr); } }

/* V2 — featured card (span 2) */
.tb-news-grid-v2 .tb-nc--featured {
  grid-column: 1 / -1;
}
@media (min-width: 1024px) {
  .tb-news-grid-v2 .tb-nc--featured {
    grid-column: span 2;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  }
}

.tb-nc {
  background: #fff; border-radius: 20px;
  overflow: hidden; box-shadow: var(--tb-shadow-md);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .3s, box-shadow .3s;
}
.tb-nc:hover { transform: translateY(-6px); box-shadow: var(--tb-shadow-lg); }

.tb-nc__media {
  aspect-ratio: 16/9;
  background: var(--tb-gray-200) center/cover no-repeat;
  overflow: hidden; flex-shrink: 0;
  transition: transform .5s ease;
}
.tb-nc:hover .tb-nc__media { transform: scale(1.04); }

.tb-nc--featured .tb-nc__media {
  aspect-ratio: auto;
  min-height: 300px;
}
@media (min-width: 1024px) {
  .tb-nc--featured .tb-nc__media { min-height: 380px; }
}

.tb-nc__body {
  padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.tb-nc--featured .tb-nc__body { padding: 32px 36px; justify-content: center; }

.tb-nc__cat {
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--tb-green-600);
}
.tb-nc__title {
  font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--tb-dark-900);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; line-clamp: 3;
  transition: color .2s;
}
.tb-nc--featured .tb-nc__title { font-size: 22px; -webkit-line-clamp: 4; line-clamp: 4; }
.tb-nc:hover .tb-nc__title { color: var(--tb-green-600); }

.tb-nc__excerpt {
  font-size: 13px; color: var(--tb-gray-500); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; line-clamp: 3;
}
.tb-nc__meta {
  display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--tb-gray-100);
  font-size: 12px; color: var(--tb-gray-400);
}
.tb-nc__meta svg { flex-shrink: 0; }

/* V2 section heading inline */
.tb-section-hd {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px;
}
.tb-section-hd__more {
  font-size: 13px; font-weight: 700; color: var(--tb-green-600);
  white-space: nowrap; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  border: 1.5px solid var(--tb-green-600); border-radius: 999px;
  padding: 7px 18px; transition: all .2s;
}
.tb-section-hd__more:hover { background: var(--tb-green-600); color: #fff; }

/* =========================================================
   CHI TIẾT TIN TỨC — Article page
   ========================================================= */

/* Hero xanh đậm */
/* ── Hero ── */
.tb-article-hero {
  position: relative;
  background: var(--tb-dark-900) center/cover no-repeat;
  padding: 40px 0 48px;
  color: #fff;
}
.tb-article-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,60,20,.78) 0%, rgba(10,80,30,.55) 100%);
}
.tb-article-hero .container,
.tb-article-hero__inner { position: relative; z-index: 1; }
.tb-article-hero__inner {
  max-width: 760px;
}

.tb-article-hero__breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 18px;
}
.tb-article-hero__breadcrumb a { color: rgba(255,255,255,.45); text-decoration: none; transition: color .15s; }
.tb-article-hero__breadcrumb a:hover { color: rgba(255,255,255,.85); }
.tb-article-hero__breadcrumb span { color: var(--tb-green-400); }
.tb-article-hero__meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.tb-article-hero__cat {
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--tb-green-400);
  background: rgba(35,170,79,.15); border-radius: 4px; padding: 3px 8px;
}
.tb-article-hero__date { font-size: 12px; color: rgba(255,255,255,.45); }
.tb-article-hero__title {
  font-size: clamp(20px, 2.8vw, 34px); font-weight: 800;
  line-height: 1.25; color: #fff; margin-bottom: 14px;
}
.tb-article-hero__excerpt {
  font-size: 14px; color: rgba(255,255,255,.6);
  line-height: 1.7; margin-bottom: 0;
}

/* ── Layout 2 cột — dùng trong .container Bootstrap ── */
.tb-article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 991px) {
  .tb-article-layout { grid-template-columns: 1fr; gap: 0; }
}

/* ── Article content col ── */
.tb-article-content { padding: 44px 0; min-width: 0; }

/* ── Prose ── */
.tb-prose {
  font-size: 16px; line-height: 1.85; color: var(--tb-gray-700);
}
.tb-prose > * + * { margin-top: 0; }
.tb-prose p { margin-bottom: 22px; }
.tb-prose h2 {
  font-size: clamp(18px, 2vw, 22px); font-weight: 700;
  color: var(--tb-dark-900); margin: 44px 0 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--tb-gray-100);
}
.tb-prose h3 { font-size: 17px; font-weight: 700; color: var(--tb-dark-900); margin: 32px 0 12px; }
.tb-prose h4 { font-size: 15px; font-weight: 700; color: var(--tb-dark-900); margin: 24px 0 8px; }
.tb-prose ul, .tb-prose ol { padding-left: 22px; margin-bottom: 22px; }
.tb-prose li { margin-bottom: 8px; line-height: 1.7; }
.tb-prose a { color: var(--tb-green-600); text-decoration: underline; text-underline-offset: 2px; }
.tb-prose strong { color: var(--tb-dark-900); font-weight: 700; }
.tb-prose blockquote {
  border-left: 3px solid var(--tb-green-600);
  background: var(--tb-green-50);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px; margin: 28px 0;
  font-style: italic; font-size: 15px;
  color: var(--tb-gray-700); line-height: 1.7;
}
.tb-prose blockquote footer {
  margin-top: 10px; font-size: 13px; font-style: normal;
  font-weight: 600; color: var(--tb-green-600);
}
.tb-prose figure { margin: 32px 0; }
.tb-prose figure img { width: 100%; border-radius: 14px; display: block; }
.tb-prose figcaption {
  text-align: center; font-size: 12px; color: var(--tb-gray-400);
  margin-top: 10px; font-style: italic; line-height: 1.5;
}

/* ── Share mobile cuối bài ── */
.tb-article-share-mobile {
  display: none;
  align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 24px 0 8px; border-top: 1px solid var(--tb-gray-100); margin-top: 40px;
}
@media (max-width: 991px) { .tb-article-share-mobile { display: flex; } }
.tb-article-share-mobile__label { font-size: 13px; font-weight: 600; color: var(--tb-gray-500); }

/* Share button dùng chung */
.tb-share-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--tb-gray-200); background: #fff;
  color: var(--tb-gray-500); cursor: pointer; text-decoration: none;
  transition: all .2s; flex-shrink: 0;
}
.tb-share-btn:hover { border-color: var(--tb-green-600); color: var(--tb-green-600); background: var(--tb-green-50); }
.tb-share-btn--copy.is-copied { border-color: var(--tb-green-400); color: var(--tb-green-600); }

/* ── Sidebar col ── */
.tb-article-toc-col {
  padding-top: 44px;
  align-self: start;          /* bắt buộc để sticky hoạt động trong grid */
  position: sticky;
  top: 44px;
}
@media (max-width: 991px) { .tb-article-toc-col { display: none; } }

/* Sidebar — 1 khối liền mạch */
.tb-toc-sidebar {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--tb-gray-100);
  box-shadow: var(--tb-shadow-md);
  overflow: hidden;
}

/* Section title trong sidebar */
.tb-toc__title {
 font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #444;
  padding: 16px 16px 10px; margin: 0;
}

/* TOC list */
.tb-toc { background: none; border: 0; box-shadow: none; border-radius: 0; }
.tb-toc__list { list-style: none; margin: 0; padding: 0 0 4px; }
.tb-toc__item a {
  font-size: 13px; color: var(--tb-gray-600); text-decoration: none;
  display: block; padding: 7px 16px;
  border-left: 2px solid transparent;
  transition: all .15s; line-height: 1.45;
}
.tb-toc__item a:hover { color: var(--tb-green-600); background: var(--tb-green-50); }
.tb-toc__item.is-active a {
  color: var(--tb-green-600); font-weight: 600;
  border-left-color: var(--tb-green-600);
  background: var(--tb-green-50);
}
.tb-toc__item--h3 a { padding-left: 28px; font-size: 12px; color: var(--tb-gray-500); }

/* Divider giữa TOC và Share */
.tb-sidebar-divider {
  height: 1px; background: var(--tb-gray-100); margin: 4px 0;
}

/* Share trong sidebar */
.tb-toc-share { padding: 0 0 16px; }
.tb-toc-share .tb-toc__title { padding-top: 14px; }
.tb-toc-share__btns { display: flex; gap: 8px; padding: 0 16px; }

/* Newsletter box trong sidebar */
.tb-sidebar-newsletter { padding: 0 16px 16px; }
.tb-sidebar-newsletter .tb-toc__title { padding: 14px 0 10px; margin-bottom: 8px; }
.tb-sidebar-newsletter__desc {
  font-size: 13px; color: var(--tb-gray-500); line-height: 1.55; margin-bottom: 12px;
}
.tb-sidebar-newsletter__form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.tb-sidebar-newsletter__form input {
  width: 100%; border: 1.5px solid var(--tb-gray-200); border-radius: 8px;
  padding: 10px 12px; font-size: 13px; font-family: var(--tb-font-sans);
  outline: none; transition: border-color .2s; color: var(--tb-gray-900);
}
.tb-sidebar-newsletter__form input:focus { border-color: var(--tb-green-600); }
.tb-sidebar-newsletter__form .btn { font-size: 13px; padding: 10px; border-radius: 8px; }
.tb-sidebar-newsletter__note {
  font-size: 11px; color: var(--tb-gray-400); line-height: 1.5; margin: 0;
}
.tb-sidebar-newsletter__note a { color: var(--tb-green-600); text-decoration: underline; }

/* ── TOC mobile — card tĩnh giống desktop ── */
.tb-toc-mobile { display: none; margin-bottom: 24px; }
@media (max-width: 991px) { .tb-toc-mobile { display: block; } }

/* =========================================================
   LIÊN HỆ — Contact page
   ========================================================= */

/* Layout 2 cột */
.tb-contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--tb-shadow-lg);
  overflow: hidden;
}
@media (min-width: 992px) {
  .tb-contact-wrap { grid-template-columns: 1fr 1fr; }
}

/* Left image */
.tb-contact-img {
  display: none;
  background: var(--tb-green-50);
}
@media (min-width: 992px) {
  .tb-contact-img {
    display: flex; align-items: stretch;
    min-height: 600px;
  }
}
.tb-contact-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Right form pane */
.tb-contact-form-wrap {
  padding: 40px 32px;
}
@media (min-width: 992px) { .tb-contact-form-wrap { padding: 52px 48px; } }

.tb-contact-title {
  font-size: 26px; font-weight: 700; color: var(--tb-dark-900);
  margin-bottom: 10px;
}
@media (min-width: 992px) { .tb-contact-title { font-size: 30px; } }
.tb-contact-title strong { color: var(--tb-green-600); font-weight: 700; }

.tb-contact-desc {
  font-size: 14px; color: var(--tb-gray-500); line-height: 1.6; margin-bottom: 28px;
}

/* Field */
.tb-contact-form { display: flex; flex-direction: column; gap: 20px; }

.tb-field { display: flex; flex-direction: column; gap: 6px; }

.tb-field__label {
  font-size: 13px; font-weight: 600; color: var(--tb-gray-700);
}
.tb-field__required { color: var(--tb-green-600); font-weight: 600; }

.tb-field__input,
.tb-field__textarea {
  width: 100%;
  border: 1.5px solid var(--tb-gray-200);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--tb-font-sans);
  color: var(--tb-gray-900);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.tb-field__input::placeholder,
.tb-field__textarea::placeholder { color: var(--tb-gray-400); }

.tb-field__input:focus,
.tb-field__textarea:focus {
  border-color: var(--tb-green-600);
  box-shadow: 0 0 0 3px rgba(42,118,61,0.12);
}

.tb-field__textarea { resize: vertical; min-height: 110px; }

/* Validation states */
.tb-field__error {
  display: none;
  font-size: 12px; color: #dc3545; margin-top: 2px;
}
.tb-field.is-invalid .tb-field__input,
.tb-field.is-invalid .tb-field__textarea {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220,53,69,0.1);
}
.tb-field.is-invalid .tb-field__error { display: block; }
.tb-field.is-valid .tb-field__input,
.tb-field.is-valid .tb-field__textarea {
  border-color: var(--tb-green-400);
}

/* Policy text */
.tb-contact-policy {
  font-size: 12px; color: var(--tb-gray-500); line-height: 1.6; margin: 0;
}
.tb-contact-policy a { color: var(--tb-green-600); text-decoration: underline; }

/* Submit */
.tb-contact-submit {
  font-weight: 700; font-size: 15px;
  padding: 14px 40px; letter-spacing: .5px;
}

/* Success */
.tb-contact-success {
  display: flex; align-items: center; gap: 10px;
  background: var(--tb-green-50); color: var(--tb-green-600);
  border-radius: 10px; padding: 14px 18px;
  font-size: 14px; font-weight: 600;
}

/* Info cards */
.tb-contact-card {
  background: #fff; border-radius: 16px;
  padding: 28px 24px; text-align: center;
  box-shadow: var(--tb-shadow-md);
  height: 100%;
}
.tb-contact-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--tb-green-50); color: var(--tb-green-600);
  margin-bottom: 14px;
}
.tb-contact-card__title {
  font-size: 16px; font-weight: 700; color: var(--tb-dark-900); margin-bottom: 8px;
}
.tb-contact-card__text {
  font-size: 14px; color: var(--tb-gray-600); margin: 0; line-height: 1.6;
}
.tb-contact-card__text--small { font-size: 13px; color: var(--tb-gray-400); }
.tb-contact-card__text a { color: var(--tb-green-600); }
.tb-contact-card__text a:hover { text-decoration: underline; }

/* Map */
.tb-map-wrap {
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--tb-shadow-md);
}

/* =========================================================
   DỰ ÁN — Campaigns filter bar
   ========================================================= */

.tb-campaigns-header { margin-bottom: 32px; }

/* Campaigns top: heading giữa + stats hàng ngang */
.tb-campaigns-top {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding-bottom: 36px; gap: 28px;
}

/* Eyebrow */
.tb-campaigns-top__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.tb-campaigns-top__eyebrow-line {
  display: block; width: 28px; height: 2px; background: var(--tb-green-600);
}
.tb-campaigns-top__eyebrow-text {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--tb-gray-500);
}

/* Title */
.tb-campaigns-top__title {
  font-size: clamp(26px, 4vw, 44px); font-weight: 800;
  line-height: 1.1; color: var(--tb-dark-900); margin: 0 0 14px;
}
.tb-campaigns-top__title strong { color: var(--tb-green-600); }

/* Desc */
.tb-campaigns-top__desc {
  font-size: 14px; color: var(--tb-gray-500); line-height: 1.7;
  max-width: 720px; margin: 0 auto;
}

/* Stats row */
.tb-campaigns-top__stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  border: 1px solid var(--tb-gray-100); border-radius: 14px;
  padding: 20px 32px; background: var(--tb-gray-50);
  width: 100%;
}
.tb-campaigns-top__stat { text-align: center; padding: 0 32px; }
@media (max-width: 575px) { .tb-campaigns-top__stat { padding: 8px 16px; } }
.tb-campaigns-top__stat-num {
  display: block; font-size: clamp(24px, 3vw, 36px); font-weight: 800;
  color: var(--tb-green-600); line-height: 1;
}
.tb-campaigns-top__stat-label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px;
  color: var(--tb-gray-400); margin-top: 5px;
}
.tb-campaigns-top__stat-divider {
  width: 1px; height: 40px; background: var(--tb-gray-200);
  flex-shrink: 0;
}
@media (max-width: 575px) { .tb-campaigns-top__stat-divider { display: none; } }

.tb-campaigns-filter {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  background: var(--tb-gray-50); border: 1px solid var(--tb-gray-100);
  border-radius: 14px; padding: 12px 20px;
  margin-bottom: 36px;
}
.tb-campaigns-filter__left  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tb-campaigns-filter__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.tb-filter-group {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.tb-filter-group__label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--tb-gray-400); white-space: nowrap;
  flex-shrink: 0;
}
.tb-filter-group--sort { margin-left: auto; }
@media (max-width: 767px) { .tb-filter-group--sort { margin-left: 0; } }

/* Select dropdown */
.tb-filter-select-wrap {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--tb-gray-200);
  border-radius: 999px; padding: 7px 10px 7px 12px;
  cursor: pointer; transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.tb-filter-select-wrap:focus-within,
.tb-filter-select-wrap:hover { border-color: var(--tb-green-600); }
.tb-filter-select-wrap:focus-within svg,
.tb-filter-select-wrap:hover svg { color: var(--tb-green-600); }
.tb-filter-select-wrap > svg:first-child { color: var(--tb-gray-500); flex-shrink: 0; transition: color .2s; }

.tb-filter-select {
  border: 0; outline: 0; background: transparent;
  font-size: 13px; font-weight: 600; color: var(--tb-gray-700);
  font-family: var(--tb-font-sans); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  /* phủ toàn bộ wrap để click mở native dropdown */
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%;
  z-index: 1;
}
/* Label hiển thị giá trị */
.tb-filter-select-wrap__label {
  font-size: 13px; font-weight: 600; color: var(--tb-gray-700);
  pointer-events: none;
}
.tb-filter-select__chevron { color: var(--tb-gray-400); flex-shrink: 0; pointer-events: none; transition: color .2s; }

/* Search */
.tb-campaigns-search {
  width: 200px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid var(--tb-gray-200);
  border-radius: 999px; padding: 8px 16px;
  transition: border-color .2s;
}
.tb-campaigns-search:focus-within { border-color: var(--tb-green-600); }
.tb-campaigns-search svg { color: var(--tb-gray-400); flex-shrink: 0; }
.tb-campaigns-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 13px; font-family: var(--tb-font-sans); color: var(--tb-gray-900);
}
.tb-campaigns-search input::placeholder { color: var(--tb-gray-400); }

/* Custom region dropdown */
.tb-region-dropdown { position: relative; }

.tb-region-dropdown__btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--tb-gray-200);
  border-radius: 999px; padding: 7px 12px;
  font-size: 13px; font-weight: 600; color: var(--tb-gray-700);
  cursor: pointer; white-space: nowrap; transition: border-color .2s;
  font-family: var(--tb-font-sans);
}
.tb-region-dropdown__btn:hover,
.tb-region-dropdown.is-open .tb-region-dropdown__btn {
  border-color: var(--tb-green-600); color: var(--tb-green-600);
}
.tb-region-dropdown__chevron { transition: transform .2s; flex-shrink: 0; }
.tb-region-dropdown.is-open .tb-region-dropdown__chevron { transform: rotate(180deg); }

.tb-region-dropdown__panel {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px; z-index: 300;
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  border: 1px solid var(--tb-gray-100);
  overflow: hidden;
}
.tb-region-dropdown.is-open .tb-region-dropdown__panel { display: block; }

.tb-region-dropdown__search {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--tb-gray-100);
  color: var(--tb-gray-400);
}
.tb-region-dropdown__search input {
  flex: 1; border: 0; outline: 0; font-size: 13px;
  font-family: var(--tb-font-sans); color: var(--tb-gray-900);
  background: transparent;
}
.tb-region-dropdown__search input::placeholder { color: var(--tb-gray-400); }

.tb-region-dropdown__list {
  list-style: none; margin: 0; padding: 6px 0;
  max-height: 260px; overflow-y: auto;
}
.tb-region-dropdown__list li {
  padding: 8px 16px; font-size: 13px; color: var(--tb-gray-700);
  cursor: pointer; transition: background .15s, color .15s;
}
.tb-region-dropdown__list li:hover { background: var(--tb-green-50); color: var(--tb-green-600); }
.tb-region-dropdown__list li.is-active {
  color: var(--tb-green-600); font-weight: 700;
  background: var(--tb-green-50);
}
.tb-region-dropdown__group {
  font-size: 11px !important; font-weight: 700 !important;
  text-transform: uppercase; letter-spacing: .7px;
  color: var(--tb-gray-400) !important; background: none !important;
  padding: 10px 16px 4px !important; cursor: default !important;
}
.tb-region-dropdown__list li.d-none { display: none; }

/* Empty state */
.tb-campaigns-empty {
  text-align: center; padding: 64px 24px;
  color: var(--tb-gray-400);
}
.tb-campaigns-empty svg { margin-bottom: 16px; color: var(--tb-gray-300); }
.tb-campaigns-empty p { font-size: 15px; margin-bottom: 16px; }

/* =========================================================
   DỰ ÁN — V1 (theo thiết kế gốc)
   ========================================================= */

/* Banner sự kiện hero */
.tb-event-banner {
  position: relative; overflow: hidden;
  aspect-ratio: 16/5;
  min-height: 200px;
  background: var(--tb-gray-200) center/cover no-repeat;
}
@media (max-width: 767px) { .tb-event-banner { aspect-ratio: 16/7; } }

/* Section heading inline với nút */
.tb-projects-hd {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 12px;
}

/* Grid dự án 3 cột */
.tb-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) { .tb-projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .tb-projects-grid { grid-template-columns: 1fr; } }

/* =========================================================
   DỰ ÁN — V2 (đề xuất — thiết kế tinh tế)
   ========================================================= */

/* Stats strip */
.tb-project-stats {
  background: var(--tb-dark-900);
  padding: 20px 0;
}
.tb-project-stats__grid {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.tb-project-stat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 32px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.tb-project-stat-item:last-child { border-right: 0; }
@media (max-width: 575px) {
  .tb-project-stat-item { padding: 8px 20px; }
}
.tb-project-stat-item__num {
  font-size: 26px; font-weight: 800; color: var(--tb-green-400);
  line-height: 1;
}
.tb-project-stat-item__label {
  font-size: 11px; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .6px; margin-top: 4px;
}

/* Filter tabs v2 */
.tb-filter-v2 {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.tb-filter-v2__btn {
  border: 0; background: var(--tb-gray-100); border-radius: 999px;
  padding: 8px 20px; font-size: 13px; font-weight: 600;
  color: var(--tb-gray-600); cursor: pointer; transition: all .2s;
  white-space: nowrap;
}
.tb-filter-v2__btn:hover { background: var(--tb-green-50); color: var(--tb-green-600); }
.tb-filter-v2__btn.is-active { background: var(--tb-green-600); color: #fff; }

/* Featured card (chiếm 2 cột) */
.tb-projects-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
@media (max-width: 991px) { .tb-projects-grid-v2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .tb-projects-grid-v2 { grid-template-columns: 1fr; } }

.tb-proj-card-v2 {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.2,0,.1,1), box-shadow .3s;
  text-decoration: none; color: inherit;
}
.tb-proj-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
}

/* Featured card */
.tb-proj-card-v2--featured {
  grid-column: span 2;
  flex-direction: row;
}
@media (max-width: 767px) { .tb-proj-card-v2--featured { grid-column: span 1; flex-direction: column; } }

.tb-proj-card-v2__media {
  position: relative; overflow: hidden; flex-shrink: 0;
  aspect-ratio: 4 / 3;
  background: var(--tb-gray-200) center/cover no-repeat;
}
.tb-proj-card-v2--featured .tb-proj-card-v2__media {
  aspect-ratio: auto; flex: 1;
  min-height: 100%;
}
@media (max-width: 767px) {
  .tb-proj-card-v2--featured .tb-proj-card-v2__media { aspect-ratio: 4 / 3; flex: none; min-height: unset; }
}
.tb-proj-card-v2:hover .tb-proj-card-v2__media-img {
  transform: scale(1.05);
}
.tb-proj-card-v2__media-img {
  position: absolute; inset: 0;
  background: inherit; background-size: cover; background-position: center;
  transition: transform .6s cubic-bezier(.2,0,.1,1);
}

/* Badge trạng thái */
.tb-proj-badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; padding: 4px 10px; border-radius: 999px;
}
/* Badge inline (ngoài card media — vd: info panel chi tiết dự án) */
.tb-proj-badge--inline {
  position: static; display: inline-block; top: auto; left: auto;
}
.tb-proj-badge--active { background: var(--tb-green-600); color: #fff; }
.tb-proj-badge--ending {
  background: var(--tb-yellow-500); color: #fff;
  animation: tb-pulse 2s ease-in-out infinite;
}
.tb-proj-badge--done { background: var(--tb-gray-700); color: #fff; }

@keyframes tb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250,163,40,.5); }
  50% { box-shadow: 0 0 0 6px rgba(250,163,40,0); }
}

/* Progress bar animated */
.tb-proj-progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,.62); backdrop-filter: blur(8px);
  padding: 10px 14px 12px;
  margin: 0 8px 8px;
  border-radius: 38px;
}
.tb-proj-progress__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 7px;
}
.tb-proj-progress__amount {
  font-size: 13px; font-weight: 700; color: var(--tb-green-600);
}
.tb-proj-progress__pct {
  font-size: 12px; font-weight: 600; color: var(--tb-gray-500);
}
.tb-proj-progress__bar {
  height: 5px; background: var(--tb-gray-200); border-radius: 999px; overflow: hidden;
}
.tb-proj-progress__bar > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--tb-green-400), var(--tb-green-600));
  border-radius: 999px;
  width: 0; transition: width 1.2s cubic-bezier(.2,0,.1,1);
}
.tb-proj-progress__bar.is-animated > i { width: var(--pct); }

/* Body card v2 */
.tb-proj-card-v2__body {
  padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.tb-proj-card-v2--featured .tb-proj-card-v2__body { padding: 28px 24px; justify-content: center; }

.tb-proj-card-v2__region {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .6px; color: var(--tb-green-600);
  display: flex; align-items: center; gap: 4px;
}
.tb-proj-card-v2__title {
  font-size: 15px; font-weight: 700; line-height: 1.4;
  color: var(--tb-dark-900); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-clamp: 2;
  min-height: 2.8em;
  transition: color .2s;
}
.tb-proj-card-v2--featured .tb-proj-card-v2__title { font-size: 18px; -webkit-line-clamp: 3; line-clamp: 3; min-height: auto; }
.tb-proj-card-v2:hover .tb-proj-card-v2__title { color: var(--tb-green-600); }
.tb-proj-card-v2__desc {
  font-size: 13px; color: var(--tb-gray-500); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-clamp: 2;
}
.tb-proj-card-v2__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--tb-gray-100);
  margin-top: auto; font-size: 12px; gap: 8px; flex-wrap: wrap;
}
.tb-proj-card-v2__meta-item {
  display: flex; align-items: center; gap: 4px; color: var(--tb-gray-500);
}
.tb-proj-card-v2__meta-item strong { color: var(--tb-yellow-500); font-weight: 700; }
.tb-proj-card-v2__meta-item .tb-days-num { color: var(--tb-dark-900); font-weight: 800; }
.tb-proj-card-v2__cta {
  font-size: 12px; font-weight: 700; color: var(--tb-green-600);
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.tb-proj-card-v2__cta--muted { color: var(--tb-gray-400); }
/* Done card styles */
.tb-proj-card-v2--done .tb-proj-card-v2__media-img { filter: grayscale(25%); }
.tb-proj-card-v2__meta-item--done { color: var(--tb-green-600); font-weight: 600; }
/* Sort panel — align right */
.tb-region-dropdown__panel--right { right: 0; left: auto; min-width: 180px; }
.tb-proj-card-v2__cta svg { transition: transform .2s; }
.tb-proj-card-v2:hover .tb-proj-card-v2__cta svg { transform: translateX(3px); }

/* Divider section */
.tb-projects-divider {
  display: flex; align-items: center; gap: 16px; margin: 48px 0 32px;
}
.tb-projects-divider__line { flex: 1; height: 1px; background: var(--tb-gray-100); }
.tb-projects-divider__label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--tb-gray-400);
  white-space: nowrap;
}

/* =========================================================
   CHI TIẾT DỰ ÁN
   ========================================================= */

/* Breadcrumb */
.tb-project-breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: var(--tb-gray-500);
  padding: 14px 0; border-bottom: 1px solid var(--tb-gray-100);
  margin-bottom: 28px;
}
.tb-project-breadcrumb a { color: var(--tb-gray-500); text-decoration: none; }
.tb-project-breadcrumb a:hover { color: var(--tb-green-600); }
.tb-project-breadcrumb span { color: var(--tb-gray-800); font-weight: 500; }

/* Layout 7/5 — gallery hàng 1 cột 1, info sticky cột 2, tabs hàng 2 cột 1 */
.tb-project-detail {
  display: grid;
  grid-template-columns: 7fr 5fr;
  column-gap: 40px; row-gap: 32px;
  align-items: start;
}
.tb-project-detail__left  { grid-column: 1; grid-row: 1; min-width: 0; }
.tb-project-detail__tabs  { grid-column: 1; grid-row: 2; min-width: 0; }
.tb-project-detail__right {
  grid-column: 2; grid-row: 1 / span 2;
  min-width: 0;
  align-self: start;
  position: sticky; top: 100px;
}
@media (max-width: 991px) {
  .tb-project-detail { grid-template-columns: 1fr; }
  .tb-project-detail__left  { grid-column: 1; grid-row: 1; }
  .tb-project-detail__right { grid-column: 1; grid-row: 2; position: static; }
  .tb-project-detail__tabs  { grid-column: 1; grid-row: 3; }
}

/* Gallery — desktop: thumbs dọc trái | main phải */
.tb-project-gallery { display: flex; gap: 12px; align-items: stretch; }

.tb-gallery-thumbs {
  width: 72px; flex-shrink: 0;
  align-self: stretch;
  overflow: hidden;
}
.tb-gallery-thumbs .swiper-wrapper { flex-direction: column; }
.tb-project-gallery__thumb {
  width: 72px; height: 60px; border-radius: 8px; overflow: hidden;
  cursor: pointer; border: 2px solid transparent;
  background: var(--tb-gray-100) center/cover no-repeat;
  transition: border-color .2s; box-sizing: border-box;
  flex-shrink: 0;
}
.tb-project-gallery__thumb.is-active { border-color: var(--tb-green-600); }
.tb-project-gallery__main {
  flex: 1; min-width: 0; border-radius: 14px; overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--tb-gray-200) center/cover no-repeat;
}

/* Mobile: main trên, thumbs ngang dưới */
@media (max-width: 575px) {
  .tb-project-gallery { flex-direction: column-reverse; }
  .tb-gallery-thumbs { width: 100%; }
  .tb-gallery-thumbs .swiper-wrapper { flex-direction: row; }
  .tb-project-gallery__thumb { width: 72px; height: 56px; }
}

/* Info panel */
.tb-project-info { display: flex; flex-direction: column; gap: 20px; }

.tb-project-info__title {
  font-size: clamp(18px, 2.2vw, 24px); font-weight: 800;
  color: var(--tb-dark-900); line-height: 1.3; margin: 0;
}
.tb-project-info__location {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 0px;
  font-size: 14px; color: var(--tb-gray-500); margin-top: 6px;
}

/* Đối tác */
.tb-project-info__partner {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 400; color: var(--tb-gray-600);
}
.tb-project-info__partner-name {
  font-weight: 700; color: var(--tb-dark-900); text-decoration: none;
  transition: color .2s;
}
.tb-project-info__partner-name:hover { color: var(--tb-green-600); }
.tb-project-info__partner-logo {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--tb-gray-100) center/cover no-repeat;
  border: 1px solid var(--tb-gray-200); flex-shrink: 0;
}

/* Stats 3 ô */
.tb-project-info__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 575px) {
  .tb-project-info__stats { grid-template-columns: 1fr; }
  .tb-project-info__stat { padding: 12px 16px; }
}
.tb-project-info__stat {
  background: var(--tb-green-50);
  border: 1px solid rgba(35,170,79,.12);
  border-radius: 12px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.tb-project-info__stat-icon {
  width: 40px; height: 40px; object-fit: contain; flex-shrink: 0;
}
.tb-project-info__stat-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tb-project-info__stat-label {
  font-size: 12px; font-weight: 500; color: var(--tb-gray-500);
  line-height: 1.3; white-space: nowrap;
}
.tb-project-info__stat-val {
  font-size: 16px; font-weight: 800; color: var(--tb-green-600);
  line-height: 1.2; white-space: nowrap;
}

/* Progress */
.tb-project-info__progress-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.tb-project-info__amount {
  font-size: 22px; font-weight: 800; color: var(--tb-green-600);
}
.tb-project-info__pct { font-size: 14px; color: var(--tb-gray-500); font-weight: 600; }
.tb-project-info__bar {
  height: 8px; background: var(--tb-gray-100); border-radius: 999px; overflow: hidden;
}
.tb-project-info__bar > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--tb-green-400), var(--tb-green-600));
  width: 0; transition: width 1.2s cubic-bezier(.2,0,.1,1);
}
.tb-project-info__bar.is-animated > i { width: var(--pct); }

/* CTA button */
.tb-project-info__cta {
  display: block; width: 100%; padding: 16px;
  background: var(--tb-green-600); color: #fff;
  font-size: 15px; font-weight: 800; letter-spacing: .5px;
  text-align: center; border-radius: 12px; border: 0;
  cursor: pointer; text-decoration: none;
  transition: background .2s, transform .1s;
}
.tb-project-info__cta:hover { background: var(--tb-green-700); color: #fff; transform: translateY(-1px); }

/* Tabs */
.tb-project-tabs {
  border-bottom: 2px solid var(--tb-gray-100);
  display: flex; gap: 0; margin-bottom: 32px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tb-project-tabs::-webkit-scrollbar { display: none; }
.tb-project-tab {
  padding: 12px 24px; font-size: 14px; font-weight: 600;
  color: var(--tb-gray-500); cursor: pointer; border: 0;
  background: none; border-bottom: 2px solid transparent;
  margin-bottom: -2px; white-space: nowrap; flex-shrink: 0;
  transition: color .2s, border-color .2s;
}
@media (max-width: 575px) { .tb-project-tab { padding: 12px 16px; } }
.tb-project-tab.is-active { color: var(--tb-green-600); border-bottom-color: var(--tb-green-600); }
.tb-project-tab:hover { color: var(--tb-green-600); }

.tb-project-tab-panel { display: none; }
.tb-project-tab-panel.is-active { display: block; }

/* Donors head */
.tb-donors-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.tb-donors-head__title { font-size: 15px; font-weight: 700; color: var(--tb-green-600); }
.tb-donors-head__count { font-size: 14px; font-weight: 700; color: var(--tb-green-600); }

/* Donors table — scroll ngang trên mobile */
.tb-donors-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tb-donors-table-wrap::-webkit-scrollbar { height: 6px; }
.tb-donors-table-wrap::-webkit-scrollbar-thumb { background: var(--tb-gray-200); border-radius: 3px; }

.tb-donors-filter {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.tb-donors-filter__search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--tb-gray-200); border-radius: 10px;
  padding: 9px 14px; transition: border-color .2s;
  color: var(--tb-gray-400);
}
.tb-donors-filter__search:focus-within { border-color: var(--tb-green-600); }
.tb-donors-filter__search input {
  flex: 1; border: 0; outline: 0; font-size: 13px;
  font-family: var(--tb-font-sans); color: var(--tb-gray-900); background: transparent;
}

/* Advanced filter dropdown */
.tb-donors-advfilter { position: relative; flex-shrink: 0; }
.tb-donors-advfilter__btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--tb-gray-200); border-radius: 10px;
  background: #fff; padding: 9px 16px;
  font-size: 13px; font-weight: 600; color: var(--tb-gray-700);
  cursor: pointer; white-space: nowrap; transition: border-color .2s, color .2s;
  font-family: var(--tb-font-sans);
}
.tb-donors-advfilter__btn:hover,
.tb-donors-advfilter.is-open .tb-donors-advfilter__btn {
  border-color: var(--tb-green-600); color: var(--tb-green-600);
}
/* Mobile: chỉ icon */
@media (max-width: 575px) {
  .tb-donors-advfilter__btn { padding: 9px 12px; }
  .tb-donors-advfilter__btn-text { display: none; }
}
/* Filter đang áp dụng — nút active */
.tb-donors-advfilter.has-filter .tb-donors-advfilter__btn {
  background: var(--tb-green-600); color: #fff; border-color: var(--tb-green-600);
  position: relative;
}
.tb-donors-advfilter.has-filter .tb-donors-advfilter__btn::after {
  content: ''; position: absolute; top: -4px; right: -4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--tb-yellow-500); border: 2px solid #fff;
}
.tb-donors-advfilter__panel {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 380px; max-width: calc(100vw - 32px); z-index: 300;
  background: #fff; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  border: 1px solid var(--tb-gray-100);
  padding: 20px;
}
.tb-donors-advfilter.is-open .tb-donors-advfilter__panel { display: block; }
.tb-donors-advfilter__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.tb-donors-advfilter__field label {
  font-size: 13px; font-weight: 600; color: var(--tb-gray-700);
}
.tb-donors-advfilter__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tb-donors-advfilter__row .tb-donors-advfilter__field { margin-bottom: 16px; }
.tb-donors-advfilter__date {
  border: 1.5px solid var(--tb-gray-200); border-radius: 8px;
  padding: 9px 12px; font-size: 13px; font-family: var(--tb-font-sans);
  color: var(--tb-gray-700); outline: none; width: 100%;
}
.tb-donors-advfilter__date:focus { border-color: var(--tb-green-600); }
.tb-donors-advfilter__select {
  border: 1.5px solid var(--tb-gray-200); border-radius: 8px;
  padding: 9px 12px; font-size: 13px; font-family: var(--tb-font-sans);
  color: var(--tb-gray-700); outline: none; width: 100%; background: #fff;
  cursor: pointer;
}
.tb-donors-advfilter__select:focus { border-color: var(--tb-green-600); }
.tb-donors-advfilter__actions {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px;
}
.tb-donors-table {
  width: 100%; border-collapse: collapse; min-width: 480px;
}
.tb-donors-table th, .tb-donors-table td { white-space: nowrap; padding-right: 16px; }
@media (max-width: 575px) {
  .tb-donors-table th { font-size: 11px; }
  .tb-donors-table td { font-size: 13px; padding: 12px 16px 12px 0; }
  .tb-donors-table td:last-child { font-size: 11px; }
}
.tb-donors-table th {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--tb-gray-400);
  padding: 10px 24px 10px 0; border-bottom: 1px solid var(--tb-gray-100);
  text-align: left;
}
.tb-donors-table td {
  padding: 14px 24px 14px 0; font-size: 14px; color: var(--tb-gray-700);
  border-bottom: 1px solid var(--tb-gray-50);
}
.tb-donors-table th:last-child, .tb-donors-table td:last-child { padding-right: 0; }
.tb-donors-table tr:last-child td { border-bottom: 0; }
.tb-donors-table td:nth-child(3) { color: var(--tb-green-600); font-weight: 600; }
.tb-donors-table td:last-child { color: var(--tb-gray-400); font-size: 12px; }
.tb-donors-table__code { font-weight: 700; color: var(--tb-gray-500); font-variant-numeric: tabular-nums; }

/* ── CTA outline (nút test đối tác) ── */
.tb-project-info__cta--outline {
  background: #fff; color: var(--tb-green-600);
  border: 1.5px solid var(--tb-green-600); margin-top: 10px;
}
.tb-project-info__cta--outline:hover { background: var(--tb-green-50); color: var(--tb-green-600); }

/* SweetAlert2 phải nổi trên modal (z-index 2000) */
.swal2-container { z-index: 3000 !important; }

/* ── Modal popup chung ── */
.tb-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
}
.tb-modal.is-open { display: flex; }
.tb-modal__overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
}
.tb-modal__dialog {
  position: relative; z-index: 1;
  background: #fff; border-radius: 20px;
  width: 100%; max-width: 540px; padding: 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  animation: tb-modal-in .3s cubic-bezier(.2,0,.1,1);
  margin: auto;
}
.tb-modal__dialog--sm { max-width: 440px; }
@keyframes tb-modal-in {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.tb-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: var(--tb-gray-50); color: var(--tb-gray-500);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, color .2s;
}
.tb-modal__close:hover { background: var(--tb-gray-100); color: var(--tb-gray-900); }
.tb-modal__title {
  text-align: center; font-size: 20px; font-weight: 800;
  color: var(--tb-green-600); margin: 0 0 6px;
  padding-bottom: 16px; border-bottom: 1px solid var(--tb-gray-100);
}
.tb-modal__project {
  text-align: center; font-size: 15px; font-weight: 700;
  color: var(--tb-dark-900); line-height: 1.4; margin: 16px 0 24px;
}
.tb-modal__sub {
  text-align: center; font-size: 14px; color: var(--tb-gray-500);
  line-height: 1.6; margin: 8px 0 24px;
}
.tb-modal__actions {
  display: flex; justify-content: center; gap: 12px; margin-top: 24px;
}
.tb-modal__actions--center { justify-content: center; }

/* Donate form */
.tb-donate-form__group { margin-bottom: 24px; }
.tb-donate-form__label {
  display: block; font-size: 15px; font-weight: 700;
  color: var(--tb-green-600); margin-bottom: 12px;
}
.tb-req { color: #e53935; font-size: 13px; }
.tb-donate-form__input {
  width: 100%; border: 1.5px solid var(--tb-gray-200); border-radius: 10px;
  padding: 12px 16px; font-size: 14px; font-family: var(--tb-font-sans);
  color: var(--tb-gray-900); outline: none; transition: border-color .2s;
}
.tb-donate-form__input:focus { border-color: var(--tb-green-600); }
textarea.tb-donate-form__input { resize: vertical; }
.tb-donate-form__check {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--tb-gray-700); cursor: pointer;
}
.tb-donate-form__check input { width: 16px; height: 16px; accent-color: var(--tb-green-600); }
.tb-donate-form__hint {
  font-size: 11px; color: var(--tb-gray-400); margin: 6px 0 0; line-height: 1.5;
}

/* Validation error */
.tb-field__error {
  display: none; font-size: 12px; color: #e53935; margin: 6px 0 0;
}
.tb-field.has-error .tb-field__error,
.tb-donate-form__group.has-error .tb-field__error { display: block; }
.tb-field.has-error .tb-donate-form__input { border-color: #e53935; }
.tb-donate-form__group.has-error .tb-amount-pill,
.tb-donate-form__group.has-error .tb-amount-pill__input { border-color: #e53935; }

/* Info tooltip */
.tb-info-tip {
  position: relative; display: inline-flex; align-items: center;
  color: var(--tb-gray-400); cursor: help; margin-left: 4px;
  vertical-align: middle;
}
.tb-info-tip:hover { color: var(--tb-green-600); }
.tb-info-tip::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px);
  width: 220px; padding: 8px 12px;
  background: var(--tb-dark-900); color: #fff;
  font-size: 12px; font-weight: 400; line-height: 1.5; text-transform: none;
  letter-spacing: 0; border-radius: 8px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 10;
}
.tb-info-tip::before {
  content: ''; position: absolute; bottom: calc(100% + 2px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 6px solid transparent; border-top-color: var(--tb-dark-900);
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s; z-index: 10;
}
.tb-info-tip:hover::after,
.tb-info-tip:hover::before {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.tb-donate-form__terms {
  text-align: center; font-size: 12px; font-style: italic;
  color: var(--tb-gray-400); margin: 16px 0 0;
}
.tb-donate-form__terms a { color: var(--tb-green-600); font-weight: 600; text-decoration: none; font-style: normal; }
.tb-donate-form__terms a:hover { text-decoration: underline; }

/* Amount pills */
.tb-amount-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-amount-pill {
  border: 1.5px solid var(--tb-gray-200); background: var(--tb-gray-50);
  border-radius: 10px; padding: 11px 18px;
  font-size: 14px; font-weight: 600; color: var(--tb-gray-700);
  cursor: pointer; transition: all .2s; font-family: var(--tb-font-sans);
}
.tb-amount-pill:hover { border-color: var(--tb-green-600); }
.tb-amount-pill.is-active {
  border-color: var(--tb-green-600); background: var(--tb-green-50);
  color: var(--tb-green-600);
}
/* Custom: nút "Số khác" → input tại chỗ */
.tb-amount-pill__input {
  display: none;
  width: 110px; border: 1.5px solid var(--tb-green-600); background: var(--tb-green-50);
  border-radius: 10px; padding: 11px 14px;
  font-size: 14px; font-weight: 600; color: var(--tb-green-600);
  font-family: var(--tb-font-sans); outline: none;
}
.tb-amount-pill__input::placeholder { color: var(--tb-green-600); opacity: .55; }
.tb-amount-pills.is-custom .tb-amount-pill--custom { display: none; }
.tb-amount-pills.is-custom .tb-amount-pill__input { display: block; }

/* Convert tiền */
.tb-donate-convert {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding: 12px 16px;
  background: var(--tb-green-50); border-radius: 10px;
  font-size: 14px; color: var(--tb-gray-600);
}
.tb-donate-convert strong { font-size: 18px; color: var(--tb-green-600); font-weight: 800; }
.tb-donate-convert small { color: var(--tb-gray-400); font-size: 12px; }

/* QR payment */
.tb-qr-pay {
  display: grid; grid-template-columns: 1fr 220px; gap: 28px; align-items: center;
}
@media (max-width: 575px) { .tb-qr-pay { grid-template-columns: 1fr; gap: 20px; } }
.tb-qr-pay__info { display: flex; flex-direction: column; gap: 14px; }
.tb-qr-pay__row { display: flex; align-items: baseline; gap: 12px; }
.tb-qr-pay__label { font-size: 14px; color: var(--tb-gray-500); min-width: 120px; flex-shrink: 0; }
.tb-qr-pay__value { font-size: 14px; font-weight: 700; color: var(--tb-dark-900); }
.tb-qr-pay__value--amount { color: var(--tb-yellow-500); font-size: 16px; }
.tb-qr-pay__code { display: inline-flex; align-items: center; gap: 8px; }
.tb-qr-pay__copy {
  border: 0; background: none; cursor: pointer; padding: 2px;
  color: var(--tb-gray-400); display: inline-flex; transition: color .2s;
}
.tb-qr-pay__copy:hover { color: var(--tb-green-600); }
.tb-qr-pay__copy.is-copied { color: var(--tb-green-600); }
.tb-qr-pay__note {
  font-size: 12px; color: #e53935; line-height: 1.5; margin: 4px 0 0;
}
.tb-qr-pay__qr {
  border: 1px solid var(--tb-gray-100); border-radius: 14px;
  padding: 10px; background: #fff;
}
.tb-qr-pay__qr img { width: 100%; height: auto; display: block; border-radius: 8px; }
.tb-qr-pay__countdown {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 10px; font-size: 12px; color: var(--tb-gray-500);
}
.tb-qr-pay__countdown strong {
  font-variant-numeric: tabular-nums; color: var(--tb-green-600); font-weight: 700;
}
.tb-qr-pay__countdown.is-warning { color: #e53935; }
.tb-qr-pay__countdown.is-warning strong { color: #e53935; }
.tb-qr-pay__countdown.is-expired strong { color: var(--tb-gray-400); }

/* Partner card trong popup */
.tb-partner-card {
  display: flex; gap: 14px;
  background: var(--tb-green-50); border: 1px solid rgba(35,170,79,.12);
  border-radius: 14px; padding: 16px;
}
.tb-partner-card__logo {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff center/contain no-repeat; background-size: 70%;
  border: 1px solid var(--tb-gray-100); flex-shrink: 0;
}
.tb-partner-card__name { font-size: 16px; font-weight: 700; color: var(--tb-dark-900); margin: 0 0 6px; }
.tb-partner-card__desc { font-size: 13px; color: var(--tb-gray-600); line-height: 1.6; margin: 0 0 8px; }
.tb-partner-card__link {
  font-size: 13px; font-weight: 700; color: var(--tb-green-600);
  text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}
.tb-partner-card__link:hover { color: var(--tb-green-700); }
.tb-partner-note {
  text-align: center; font-size: 13px; color: var(--tb-gray-500);
  line-height: 1.6; margin: 20px 0 0;
}
.tb-partner-note a { color: var(--tb-green-600); font-weight: 600; }

/* ── Activity timeline (accordion) ── */
.tb-timeline {
  position: relative; max-width: 760px;
  padding-left: 8px;
}
/* đường dọc nối các dot — căn giữa dot (dot center = left 11px) */
.tb-timeline::before {
  content: ''; position: absolute;
  left: 10px; top: 14px; bottom: 14px; width: 2px;
  background: var(--tb-gray-100);
}

.tb-timeline-item {
  position: relative; padding-left: 32px;
}
.tb-timeline-item + .tb-timeline-item { margin-top: 8px; }

/* Header (clickable) */
.tb-timeline-item__header {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 14px 0; font-family: var(--tb-font-sans);
}
.tb-timeline-item__dot {
  position: absolute; left: 5px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--tb-gray-200);
  z-index: 1; transition: border-color .2s, background .2s;
}
.tb-timeline-item.is-open .tb-timeline-item__dot {
  background: var(--tb-green-600); border-color: var(--tb-green-600);
  box-shadow: 0 0 0 4px var(--tb-green-50);
}
.tb-timeline-item__head-text { flex: 1; min-width: 0; }
.tb-timeline-item__date {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--tb-gray-400); margin-bottom: 3px;
}
.tb-timeline-item__title {
  display: block; font-size: 15px; font-weight: 700;
  color: var(--tb-dark-900); line-height: 1.4;
  transition: color .2s;
}
.tb-timeline-item__header:hover .tb-timeline-item__title { color: var(--tb-green-600); }
.tb-timeline-item.is-open .tb-timeline-item__title { color: var(--tb-green-600); }
.tb-timeline-item__chevron {
  color: var(--tb-gray-400); flex-shrink: 0; transition: transform .3s, color .2s;
}
.tb-timeline-item.is-open .tb-timeline-item__chevron {
  transform: rotate(180deg); color: var(--tb-green-600);
}

/* Body collapse */
.tb-timeline-item__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.2,0,.1,1);
}
.tb-timeline-item.is-open .tb-timeline-item__body { grid-template-rows: 1fr; }
.tb-timeline-item__body-inner {
  overflow: hidden; min-height: 0;
}
.tb-timeline-item.is-open .tb-timeline-item__body-inner { padding-bottom: 16px; }
.tb-timeline-item__body p {
  font-size: 14px; color: var(--tb-gray-600); line-height: 1.7; margin: 0;
}
.tb-timeline-item__figure { margin: 14px 0 0; }
.tb-timeline-item__figure img {
  width: 100%; max-width: 460px; border-radius: 12px; display: block;
}

@media (max-width: 575px) {
  .tb-timeline-item__chevron { align-self: flex-start; margin-top: 4px; }
}

/* =========================================================
   DANH SÁCH ĐỐI TÁC
   ========================================================= */
.tb-partners-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 991px) { .tb-partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .tb-partners-grid { grid-template-columns: 1fr; } }

.tb-partner-card {
  position: relative; background: #fff;
  border: 1px solid var(--tb-gray-100); border-radius: 18px;
  padding: 28px 24px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.tb-partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0,0,0,.10);
  border-color: rgba(35,170,79,.3);
}
/* Logo to, khung trắng viền nhẹ */
.tb-partner-card__logo {
  width: 96px; height: 96px; border-radius: 16px;
  background: #fff center/contain no-repeat; background-size: 72%;
  border: 1px solid var(--tb-gray-100); box-shadow: var(--tb-shadow-sm);
  margin-bottom: 18px;
}
/* Badge liên kết chiến dịch — chỉ hiện khi có */
.tb-partner-card__badge {
  position: absolute; top: 20px; right: 20px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  background: var(--tb-green-50); color: var(--tb-green-600);
  padding: 6px 12px; border-radius: 999px;
}
.tb-partner-card__name {
  font-size: 19px; font-weight: 800; color: var(--tb-dark-900); margin: 0 0 6px;
  transition: color .2s;
}
.tb-partner-card:hover .tb-partner-card__name { color: var(--tb-green-600); }
.tb-partner-card__field {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
  color: var(--tb-green-600); margin: 0 0 12px;
}
.tb-partner-card__desc {
  font-size: 13px; color: var(--tb-gray-500); line-height: 1.65; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2;
}

/* =========================================================
   CHI TIẾT ĐỐI TÁC
   ========================================================= */
.tb-partner-detail { background: linear-gradient(180deg, var(--tb-green-50) 0%, #fff 320px); }

/* 2 loại: --has-campaign (đầy đủ) | --info-only (chỉ giới thiệu).
   Section chỉ dành cho đối tác liên kết → ẩn khi info-only. */
.tb-partner-detail--info-only .tb-pd-campaign-only { display: none; }
/* Badge "Đối tác liên kết chiến dịch" chỉ hiện ở loại has-campaign */
.tb-partner-detail--info-only .tb-pd-badge { display: none; }

.tb-pd-breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: var(--tb-gray-500); padding: 18px 0;
}
.tb-pd-breadcrumb a { color: var(--tb-gray-500); text-decoration: none; }
.tb-pd-breadcrumb a:hover { color: var(--tb-green-600); }
.tb-pd-breadcrumb span { color: var(--tb-dark-900); font-weight: 500; }

/* Hero: ảnh lớn trái + info phải (logo chồng lên đầu, KHÔNG lặp ảnh ở section sau) */
.tb-pd-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: stretch; padding-bottom: 8px; }
@media (max-width: 991px) { .tb-pd-hero { grid-template-columns: 1fr; gap: 28px; } }

/* Ảnh lớn — khối hình duy nhất của trang */
.tb-pd-hero__media {
  position: relative; border-radius: 22px; overflow: hidden;
  min-height: 380px; background: var(--tb-gray-200) center/cover no-repeat;
  box-shadow: 0 24px 60px rgba(0,35,7,.14);
}
@media (max-width: 991px) { .tb-pd-hero__media { min-height: 280px; aspect-ratio: 16/10; } }
.tb-pd-hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,35,7,.12) 0%, transparent 40%);
}

.tb-pd-badge {
  position: absolute; top: 18px; left: 18px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  background: linear-gradient(135deg, var(--tb-green-600), var(--tb-green-700)); color: #fff;
  padding: 8px 15px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,35,7,.25);
}

/* Info phải — căn giữa theo chiều dọc so với ảnh */
.tb-pd-hero__info { display: flex; flex-direction: column; justify-content: center; }
.tb-pd-hero__logo {
  width: 76px; height: 76px; border-radius: 18px; flex-shrink: 0; margin-bottom: 20px;
  background: #fff center/contain no-repeat; background-size: 68%;
  border: 1px solid var(--tb-gray-100); box-shadow: var(--tb-shadow-sm);
}
.tb-pd-hero__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--tb-dark-900); margin: 0 0 14px; }
.tb-pd-hero__desc { font-size: 15px; color: var(--tb-gray-600); line-height: 1.7; margin: 0 0 26px; }

.tb-pd-hero__facts {
  display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 28px;
  border-top: 1px solid var(--tb-gray-100); border-bottom: 1px solid var(--tb-gray-100);
}
.tb-pd-fact { padding: 16px 28px 16px 0; }
.tb-pd-fact + .tb-pd-fact { padding-left: 28px; border-left: 1px solid var(--tb-gray-100); }
.tb-pd-fact__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--tb-gray-400); display: block; margin-bottom: 4px; }
.tb-pd-fact__value { font-size: 15px; font-weight: 700; color: var(--tb-dark-900); }
.tb-pd-fact__value a { color: var(--tb-green-600); text-decoration: none; }
.tb-pd-fact__value a:hover { text-decoration: underline; }

.tb-pd-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Stats bar nổi */
.tb-pd-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  margin-top: 36px;
}
@media (max-width: 767px) { .tb-pd-stats { grid-template-columns: repeat(2, 1fr); } }
.tb-pd-stat { padding: 24px 20px; text-align: center; border-right: 1px solid var(--tb-gray-100); }
.tb-pd-stat:last-child { border-right: 0; }
@media (max-width: 767px) {
  .tb-pd-stat:nth-child(2) { border-right: 0; }
  .tb-pd-stat:nth-child(1), .tb-pd-stat:nth-child(2) { border-bottom: 1px solid var(--tb-gray-100); }
}
.tb-pd-stat__num { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--tb-green-600); line-height: 1; }
.tb-pd-stat__num small { font-size: 14px; font-weight: 700; }
.tb-pd-stat__label { font-size: 12px; color: var(--tb-gray-500); margin-top: 6px; text-transform: uppercase; letter-spacing: .4px; }

/* Câu chuyện đồng hành — khối nền màu gom câu chuyện + dải giá trị đánh số */
.tb-pd-story {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(35,170,79,.08), transparent 42%),
    var(--tb-green-50);
  border: 1px solid rgba(35,170,79,.14);
  border-radius: 24px; padding: 48px 52px;
}
@media (max-width: 767px) { .tb-pd-story { padding: 32px 24px; border-radius: 18px; } }

/* Lá trang trí mờ góc phải */
.tb-pd-story__leaf {
  position: absolute; top: -30px; right: -24px; color: rgba(35,170,79,.10);
  pointer-events: none; transform: rotate(-12deg);
}

/* Phần văn bản: tiêu đề trái | nội dung phải */
.tb-pd-story__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px 56px; align-items: start;
}
@media (max-width: 767px) { .tb-pd-story__grid { grid-template-columns: 1fr; gap: 18px; } }
.tb-pd-story__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--tb-green-600); margin-bottom: 14px;
}
.tb-pd-story__eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--tb-green-600); opacity: .55; }
.tb-pd-story__lead { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; color: var(--tb-dark-900); line-height: 1.22; margin: 0; }
.tb-pd-story__lead strong { color: var(--tb-green-600); }
.tb-pd-story__body p { font-size: 15px; color: var(--tb-gray-600); line-height: 1.8; margin: 0 0 14px; }
.tb-pd-story__body p:last-child { margin-bottom: 0; }
.tb-pd-story__intro {
  font-size: 17px !important; font-weight: 600; color: var(--tb-dark-900) !important;
  line-height: 1.6 !important; padding-left: 16px; border-left: 3px solid var(--tb-green-600);
}

/* Dải giá trị đánh số 01·02·03 — đường kẻ ngăn, không phải 3 thẻ rời */
.tb-pd-vlist {
  position: relative; z-index: 1;
  list-style: none; margin: 40px 0 0; padding: 32px 0 0;
  border-top: 1px solid rgba(35,170,79,.18);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
@media (max-width: 767px) { .tb-pd-vlist { grid-template-columns: 1fr; padding-top: 24px; margin-top: 28px; } }
.tb-pd-vitem {
  position: relative; display: flex; align-items: flex-start; gap: 14px;
  padding: 4px 28px;
}
.tb-pd-vitem + .tb-pd-vitem { border-left: 1px solid rgba(35,170,79,.16); }
.tb-pd-vitem:first-child { padding-left: 0; }
.tb-pd-vitem:last-child { padding-right: 0; }
@media (max-width: 767px) {
  .tb-pd-vitem { padding: 18px 0; }
  .tb-pd-vitem + .tb-pd-vitem { border-left: 0; border-top: 1px solid rgba(35,170,79,.16); }
}
.tb-pd-vitem__no {
  font-size: 22px; font-weight: 800; line-height: 1; color: var(--tb-green-600);
  opacity: .35; flex-shrink: 0; min-width: 26px;
}
.tb-pd-vitem__icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--tb-green-400), var(--tb-green-600)); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.tb-pd-vitem__text { padding-top: 1px; }
.tb-pd-vitem__title { font-size: 15px; font-weight: 800; color: var(--tb-dark-900); margin: 0 0 5px; }
.tb-pd-vitem__desc { font-size: 13.5px; color: var(--tb-gray-600); line-height: 1.55; margin: 0; }

/* CTA box đẹp */
.tb-pd-cta {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(35,170,79,.35), transparent 50%),
    linear-gradient(135deg, var(--tb-green-600) 0%, var(--tb-green-700) 55%, var(--tb-dark-800) 100%);
  border-radius: 24px; padding: 48px 52px; color: #fff;
}
@media (max-width: 575px) { .tb-pd-cta { padding: 36px 28px; } }
.tb-pd-cta__glow { position: absolute; border-radius: 50%; filter: blur(40px); pointer-events: none; }
.tb-pd-cta__glow--1 { width: 260px; height: 260px; top: -120px; right: -60px; background: rgba(35,170,79,.4); }
.tb-pd-cta__glow--2 { width: 200px; height: 200px; bottom: -120px; left: 20%; background: rgba(250,163,40,.18); }
.tb-pd-cta__leaf {
  position: absolute; right: -10px; bottom: -20px; color: rgba(255,255,255,.07);
  pointer-events: none; transform: rotate(-15deg);
}
.tb-pd-cta__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.tb-pd-cta__text { flex: 1; min-width: 280px; }
.tb-pd-cta__eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--tb-green-400); margin-bottom: 10px;
}
.tb-pd-cta__title { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; margin: 0 0 10px; line-height: 1.2; }
.tb-pd-cta__desc { font-size: 15px; color: rgba(255,255,255,.78); margin: 0; max-width: 520px; line-height: 1.65; }
.tb-pd-cta__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tb-pd-cta__actions .btn-light { color: var(--tb-green-700); }
.tb-pd-cta__actions .btn-light:hover { background: var(--tb-gray-50); }
.tb-pd-cta__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: #fff; text-decoration: none;
  transition: color .2s;
}
.tb-pd-cta__link:hover { color: var(--tb-green-400); }

/* Quote tinh tế (không box đen nặng) */
.tb-pd-quote {
  max-width: 760px; margin: 0 auto; text-align: center; position: relative;
  padding: 8px 0;
}
.tb-pd-quote__mark { font-size: 56px; line-height: 1; color: var(--tb-green-400); font-weight: 800; }
.tb-pd-quote__text { font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; line-height: 1.5; color: var(--tb-dark-900); margin: 8px 0 24px; }
.tb-pd-quote__author { display: inline-flex; align-items: center; gap: 12px; }
.tb-pd-quote__avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--tb-green-600);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.tb-pd-quote__name { font-size: 14px; font-weight: 700; color: var(--tb-dark-900); text-align: left; }
.tb-pd-quote__role { font-size: 13px; color: var(--tb-gray-500); }

/* =========================================================
   ĐIỂM NHẤN TREEBANK — 3 trụ cột
   ========================================================= */
.tb-highlights__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 991px) { .tb-highlights__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

.tb-highlight {
  position: relative; background: #fff;
  border: 1px solid var(--tb-gray-100); border-radius: 18px;
  padding: 32px 28px; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.tb-highlight:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(42,118,61,.12);
  border-color: var(--tb-green-200, rgba(35,170,79,.3));
}
/* Số thứ tự lớn mờ ở góc */
.tb-highlight__num {
  position: absolute; top: 8px; right: 18px;
  font-size: 72px; font-weight: 800; line-height: 1;
  color: var(--tb-green-50); z-index: 0;
}
.tb-highlight__icon {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--tb-green-400), var(--tb-green-600));
  color: #fff; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.tb-highlight__title {
  position: relative; z-index: 1;
  font-size: 18px; font-weight: 800; color: var(--tb-dark-900); margin: 0 0 12px;
}
.tb-highlight__title span { color: var(--tb-green-600); }
.tb-highlight__desc {
  position: relative; z-index: 1;
  font-size: 14px; color: var(--tb-gray-600); line-height: 1.7; margin: 0;
}
/* Thanh accent dưới chân card */
.tb-highlight::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 4px;
  background: linear-gradient(90deg, var(--tb-green-400), var(--tb-green-600));
  transition: width .35s cubic-bezier(.2,0,.1,1);
}
.tb-highlight:hover::after { width: 100%; }

/* =========================================================
   ĐỘI NGŨ — Sơ đồ tổ chức (org chart)
   ========================================================= */

/* Hero nhỏ */
.tb-team-hero {
  background: var(--tb-green-50);
  padding: 56px 0; text-align: center;
}
.tb-team-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--tb-green-600); margin-bottom: 14px;
}
.tb-team-hero__eyebrow::before, .tb-team-hero__eyebrow::after {
  content: ''; width: 24px; height: 2px; background: var(--tb-green-600); opacity: .5;
}
.tb-team-hero__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--tb-dark-900); margin: 0 0 12px; }
.tb-team-hero__title strong { color: var(--tb-green-600); }
.tb-team-hero__desc { font-size: 15px; color: var(--tb-gray-600); line-height: 1.7; max-width: 560px; margin: 0 auto; }

/* Org chart wrapper */
.tb-orgchart {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(35,170,79,.05), transparent 30%),
    radial-gradient(circle at 85% 70%, rgba(35,170,79,.05), transparent 30%),
    var(--tb-gray-50);
  padding: 64px 0;
}

/* ── ORG CHART — cây phân cấp bất đối xứng ──
   Logo Treebank (gốc) → rẽ 2 nhánh: BAN QUẢN LÝ (chính, trục giữa) + BAN CỐ VẤN (phụ, bên phải).
   BAN QUẢN LÝ là trục trung tâm: Logo → Ban quản lý → (Minh, Giang) → 4 thành viên đều
   căn giữa container. BAN CỐ VẤN treo absolute sang phải, nối vào đường ngang của logo. */
.tb-org {
  --org-line: 2px; --org-color: var(--tb-green-600); --org-gap: 30px; --org-advisor-gap: 300px;
  position: relative; display: flex; flex-direction: column; align-items: center;
}

/* Gốc: Logo Treebank */
.tb-org__root { position: relative; z-index: 2; }
.tb-org__logo {
  width: 92px; height: 92px; border-radius: 20px; background: #fff;
  border: 1px solid var(--tb-gray-100); box-shadow: 0 8px 22px rgba(42,118,61,.16);
  display: flex; align-items: center; justify-content: center; padding: 14px;
}
.tb-org__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* Cuống dọc từ đáy logo xuống đường ngang của 2 ban */
.tb-org__root::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  top: 100%; width: var(--org-line); height: var(--org-gap); background: var(--org-color);
}

.tb-org__level { position: relative; display: flex; justify-content: center; }
.tb-org__level--team { margin-top: var(--org-gap); }

/* Cấp 1: 2 nhánh ban — Ban quản lý là trục giữa, Ban cố vấn treo phải */
.tb-org__level--boards { margin-top: var(--org-gap); }
.tb-org__node--label {
  position: relative; z-index: 2; width: auto;
  background: var(--tb-green-600); color: #fff;
  font-size: 16px; font-weight: 800; letter-spacing: .5px;
  padding: 14px 34px; border-radius: 8px;
  box-shadow: 0 6px 18px rgba(42,118,61,.25);
}
/* Cuống dọc lên từ Ban quản lý tới đường ngang của logo */
.tb-org__level--boards .tb-org__node--label:not(.tb-org__node--advisor)::before {
  content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  width: var(--org-line); height: var(--org-gap); background: var(--org-color);
}
/* Ban cố vấn (nhánh phụ): treo sang phải, có đường ngang + cuống nối lên đường ngang logo */
.tb-org__node--advisor {
  position: absolute; left: calc(50% + var(--org-advisor-gap)); transform: translateX(-50%);
  background: var(--tb-green-700);
}
/* Đường ngang từ trục giữa (dưới logo) sang Ban cố vấn */
.tb-org__node--advisor::after {
  content: ''; position: absolute; top: calc(-1 * var(--org-gap)); right: 50%;
  width: var(--org-advisor-gap); height: var(--org-line); background: var(--org-color);
}
/* Cuống dọc từ Ban cố vấn lên đường ngang đó */
.tb-org__node--advisor::before {
  content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  width: var(--org-line); height: var(--org-gap); background: var(--org-color);
}

/* Nhánh Ban quản lý (lãnh đạo + thành viên) — căn giữa, nối tiếp trục Ban quản lý */
.tb-org__branch {
  position: relative; display: flex; flex-direction: column; align-items: center;
  margin-top: var(--org-gap);
}
/* Trục dọc đoạn A: từ đáy Ban quản lý xuống đường ngang cấp lãnh đạo */
.tb-org__branch::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(-1 * var(--org-gap)); width: var(--org-line); height: var(--org-gap);
  background: var(--org-color); z-index: 0;
}
/* Trục dọc đoạn B: từ đường ngang lãnh đạo (top:0) xuống đường ngang thành viên (bottom = -org-gap).
   Dùng top+bottom để tự co theo chiều cao thực của cấp lãnh đạo, không cần đoán height. */
.tb-org__level--lead::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  top: 0; bottom: calc(-1 * var(--org-gap)); width: var(--org-line);
  background: var(--org-color); z-index: 0;
}

/* Node lãnh đạo / thành viên */
.tb-org__node {
  position: relative; z-index: 1; text-align: center; width: 180px;
  padding: var(--org-gap) 8px 0;
  display: flex; flex-direction: column; align-items: center;
}
@media (max-width: 575px) { .tb-org__node { width: 46%; } }

/* Cuống dọc lên từ mỗi node tới đường ngang của cấp */
.tb-org__level--lead .tb-org__node::before,
.tb-org__level--team .tb-org__node::before {
  content: ''; position: absolute; top: 0; left: 50%;
  width: var(--org-line); height: var(--org-gap);
  background: var(--org-color); transform: translateX(-50%);
}
/* Đường ngang nối anh em — nửa trái + nửa phải (khớp tâm node biên) */
.tb-org__level--lead .tb-org__node::after,
.tb-org__level--team .tb-org__node::after {
  content: ''; position: absolute; top: 0; height: var(--org-line);
  background: var(--org-color); left: 0; right: 0; z-index: 0;
}
.tb-org__level--lead .tb-org__node:first-child::after,
.tb-org__level--team .tb-org__node:first-child::after { left: 50%; right: 0; }
.tb-org__level--lead .tb-org__node:last-child::after,
.tb-org__level--team .tb-org__node:last-child::after { left: 0; right: 50%; }
.tb-org__level--lead .tb-org__node:only-child::after,
.tb-org__level--team .tb-org__node:only-child::after { display: none; }

/* Avatar */
.tb-org__avatar {
  width: 130px; height: 130px; border-radius: 50%;
  margin: 0 auto 14px; padding: 5px; background: var(--tb-green-600);
}
@media (max-width: 575px) { .tb-org__avatar { width: 104px; height: 104px; } }
.tb-org__avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff;
}
.tb-org__name { font-size: 14px; font-weight: 700; color: var(--tb-dark-900); margin: 0 0 3px; }
.tb-org__role { font-size: 13px; color: var(--tb-gray-500); margin: 0; line-height: 1.4; }

/* Mobile: bỏ connector, xếp lưới gọn */
@media (max-width: 767px) {
  .tb-org__level { flex-wrap: wrap; gap: 24px 0; margin-top: 28px !important; }
  .tb-org__node { padding-top: 0; }
  .tb-org__node::before, .tb-org__node::after,
  .tb-org__root::after, .tb-org__branch::before, .tb-org__level--lead::before,
  .tb-org__node--label::before, .tb-org__node--advisor::after { display: none !important; }
  /* Ban cố vấn trở về luồng thường, xếp cạnh Ban quản lý */
  .tb-org__level--boards { gap: 14px; flex-wrap: wrap; }
  .tb-org__node--advisor { position: static; transform: none; left: auto; }
}

/* Value cards */
.tb-value-card {
  height: 100%; background: #fff; border-radius: 16px;
  border: 1px solid var(--tb-gray-100);
  padding: 28px 24px; text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.tb-value-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.tb-value-card__icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--tb-green-50); color: var(--tb-green-600);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.tb-value-card__title { font-size: 18px; font-weight: 700; color: var(--tb-dark-900); margin: 0 0 10px; }
.tb-value-card__desc { font-size: 14px; color: var(--tb-gray-500); line-height: 1.7; margin: 0; }

/* Team join CTA */
.tb-team-join {
  background: linear-gradient(135deg, var(--tb-green-600), var(--tb-green-700));
  border-radius: 20px; padding: 40px 48px; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.tb-team-join__text { flex: 1; min-width: 260px; }
.tb-team-join h2 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; margin: 0 0 8px; }
.tb-team-join p { font-size: 15px; color: rgba(255,255,255,.85); margin: 0; max-width: 520px; }
.tb-team-join .btn { background: #fff; color: var(--tb-green-700); }
.tb-team-join .btn:hover { background: var(--tb-gray-50); color: var(--tb-green-700); }

/* =========================================================
   CHI TIẾT HOẠT ĐỘNG — layout đặc biệt
   ========================================================= */

/* Hero full-bleed với ảnh + overlay + thông tin nổi */
.tb-actd-hero {
  position: relative; height: clamp(380px, 56vh, 560px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.tb-actd-hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.05);
}
.tb-actd-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,30,14,.92) 0%, rgba(7,30,14,.45) 45%, rgba(7,30,14,.15) 100%);
}
.tb-actd-hero__inner { position: relative; z-index: 1; width: 100%; padding-bottom: 48px; }
.tb-actd-hero__breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 20px;
}
.tb-actd-hero__breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.tb-actd-hero__breadcrumb a:hover { color: #fff; }
.tb-actd-hero__tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tb-actd-hero__tag {
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  background: var(--tb-green-600); color: #fff; padding: 6px 14px; border-radius: 999px;
}
.tb-actd-hero__title {
  font-size: clamp(26px, 4vw, 46px); font-weight: 800; line-height: 1.15;
  margin: 0 0 18px; max-width: 860px;
}
.tb-actd-hero__meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 14px; color: rgba(255,255,255,.85);
}
.tb-actd-hero__meta-item { display: flex; align-items: center; gap: 6px; }
.tb-actd-hero__meta-item svg { opacity: .8; }

/* Quick stats bar — nổi đè giữa hero và content */
.tb-actd-stats {
  position: relative; z-index: 3; margin-top: -36px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.10);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
@media (max-width: 767px) { .tb-actd-stats { grid-template-columns: repeat(2, 1fr); } }
.tb-actd-stat {
  padding: 22px 20px; text-align: center;
  border-right: 1px solid var(--tb-gray-100);
}
.tb-actd-stat:last-child { border-right: 0; }
@media (max-width: 767px) {
  .tb-actd-stat:nth-child(2) { border-right: 0; }
  .tb-actd-stat:nth-child(1), .tb-actd-stat:nth-child(2) { border-bottom: 1px solid var(--tb-gray-100); }
}
.tb-actd-stat__icon { color: var(--tb-green-600); margin-bottom: 8px; }
.tb-actd-stat__num { font-size: 22px; font-weight: 800; color: var(--tb-dark-900); line-height: 1; }
.tb-actd-stat__label { font-size: 12px; color: var(--tb-gray-500); margin-top: 5px; }

/* Body layout — content trung tâm hẹp */
.tb-actd-body { max-width: 760px; margin: 48px auto 0; }

/* Lead paragraph có drop-cap */
.tb-actd-lead {
  font-size: 19px; line-height: 1.7; color: var(--tb-gray-700);
  font-weight: 500; margin-bottom: 28px;
}
.tb-actd-lead::first-letter {
  float: left; font-size: 64px; font-weight: 800; line-height: .82;
  color: var(--tb-green-600); margin: 6px 14px 0 0;
}

/* Pull-quote nổi bật */
.tb-actd-quote {
  position: relative; margin: 40px 0; padding: 0 0 0 28px;
  border-left: 4px solid var(--tb-green-600);
  font-size: 22px; font-weight: 700; line-height: 1.5;
  color: var(--tb-dark-900); font-style: italic;
}
.tb-actd-quote cite {
  display: block; margin-top: 12px; font-size: 14px; font-weight: 500;
  font-style: normal; color: var(--tb-green-600);
}

/* Gallery grid trong bài */
.tb-actd-gallery {
  display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin: 40px 0;
}
.tb-actd-gallery__main { aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; }
.tb-actd-gallery__side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.tb-actd-gallery img, .tb-actd-gallery__main img, .tb-actd-gallery__side > div {
  width: 100%; height: 100%; object-fit: cover;
}
.tb-actd-gallery__side > div { border-radius: 14px; background-size: cover; background-position: center; }
.tb-actd-gallery__main { background-size: cover; background-position: center; }
@media (max-width: 575px) { .tb-actd-gallery { grid-template-columns: 1fr; } }

/* CTA box cuối bài */
.tb-actd-cta {
  margin: 48px 0 0; padding: 36px;
  background: linear-gradient(135deg, var(--tb-green-600), var(--tb-green-700));
  border-radius: 20px; text-align: center; color: #fff;
}
.tb-actd-cta h3 { font-size: 24px; font-weight: 800; margin: 0 0 10px; }
.tb-actd-cta p { font-size: 15px; color: rgba(255,255,255,.85); margin: 0 0 22px; max-width: 440px; margin-inline: auto; }
.tb-actd-cta .btn { background: #fff; color: var(--tb-green-700); font-weight: 700; padding: 12px 32px; }
.tb-actd-cta .btn:hover { background: var(--tb-gray-50); color: var(--tb-green-700); }

/* Share + tags footer bài */
.tb-actd-footer {
  max-width: 760px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid var(--tb-gray-100);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.tb-actd-footer__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-actd-footer__tag {
  font-size: 12px; font-weight: 600; color: var(--tb-gray-600);
  background: var(--tb-gray-50); padding: 6px 14px; border-radius: 999px;
  text-decoration: none; transition: all .2s;
}
.tb-actd-footer__tag:hover { background: var(--tb-green-50); color: var(--tb-green-600); }
.tb-actd-footer__share { display: flex; align-items: center; gap: 10px; }
.tb-actd-footer__share-label { font-size: 13px; font-weight: 600; color: var(--tb-gray-500); }

/* =========================================================
   HOẠT ĐỘNG — Danh sách (thiết kế ấn tượng)
   ========================================================= */

/* Hero — split layout, ảnh lá uốn lượn */
.tb-act-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #f3f9ee 0%, #e8f4e0 100%);
  padding: 72px 0 80px;
}
/* Blob trang trí mềm */
.tb-act-hero__blob {
  position: absolute; border-radius: 50%; filter: blur(8px); z-index: 0;
}
.tb-act-hero__blob--1 {
  width: 340px; height: 340px; top: -120px; left: -100px;
  background: radial-gradient(circle, rgba(35,170,79,.18), transparent 70%);
}
.tb-act-hero__blob--2 {
  width: 280px; height: 280px; bottom: -120px; right: 35%;
  background: radial-gradient(circle, rgba(250,163,40,.12), transparent 70%);
}

.tb-act-hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 991px) { .tb-act-hero__grid { grid-template-columns: 1fr; gap: 32px; } }

/* Text */
.tb-act-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--tb-green-600); margin-bottom: 16px;
}
.tb-act-hero__eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--tb-green-600);
}
.tb-act-hero__title {
  font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; line-height: 1.12;
  color: var(--tb-dark-900); margin: 0 0 18px;
}
.tb-act-hero__title .tb-text-highlight {
  color: var(--tb-green-600); position: relative; white-space: nowrap;
}
.tb-act-hero__title .tb-text-highlight::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: rgba(250,163,40,.35); z-index: -1; border-radius: 2px;
}
.tb-act-hero__desc { font-size: 16px; color: var(--tb-gray-600); line-height: 1.7; margin: 0 0 28px; max-width: 440px; }

/* Stats inline */
.tb-act-hero__stats { display: flex; gap: 32px; flex-wrap: wrap; }
.tb-act-hero__stat { display: flex; flex-direction: column; }
.tb-act-hero__stat strong { font-size: 26px; font-weight: 800; color: var(--tb-green-600); line-height: 1; }
.tb-act-hero__stat span { font-size: 12px; color: var(--tb-gray-500); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }

/* Visual — 2 ảnh lá chồng nhau */
.tb-act-hero__visual {
  position: relative; height: 380px;
}
@media (max-width: 991px) { .tb-act-hero__visual { height: 300px; max-width: 460px; margin: 0 auto; width: 100%; } }
@media (max-width: 575px) { .tb-act-hero__visual { height: 260px; } }

/* 3 ảnh tròn xếp so le */
.tb-act-hero__circle {
  position: absolute; border-radius: 50%;
  background-size: cover; background-position: center;
  border: 5px solid #fff;
  box-shadow: 0 18px 48px rgba(13,61,28,.20);
}
/* Tròn lớn — trung tâm phải */
.tb-act-hero__circle--1 {
  width: 56%; aspect-ratio: 1/1; top: 8%; right: 4%; z-index: 2;
  animation: tb-leaf-float 6s ease-in-out infinite;
}
/* Tròn vừa — trên trái, chồng nhẹ */
.tb-act-hero__circle--2 {
  width: 40%; aspect-ratio: 1/1; top: 0; left: 6%; z-index: 3;
  animation: tb-leaf-float 7s ease-in-out infinite reverse;
}
/* Tròn nhỏ — dưới trái */
.tb-act-hero__circle--3 {
  width: 34%; aspect-ratio: 1/1; bottom: 2%; left: 0; z-index: 4;
  animation: tb-leaf-float 5.5s ease-in-out .5s infinite;
}
@keyframes tb-leaf-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Content section */
.tb-act-content { position: relative; z-index: 2; }

/* Featured (bài nổi bật lớn) */
.tb-act-featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.10);
  margin-bottom: 48px; text-decoration: none; color: inherit;
  transition: box-shadow .3s, transform .3s;
}
.tb-act-featured:hover { box-shadow: 0 24px 64px rgba(0,0,0,.16); transform: translateY(-4px); }
@media (max-width: 767px) { .tb-act-featured { grid-template-columns: 1fr; } }
.tb-act-featured__media {
  position: relative; overflow: hidden; min-height: 320px;
  background: var(--tb-gray-200) center/cover no-repeat;
}
@media (max-width: 767px) { .tb-act-featured__media { min-height: 220px; } }
.tb-act-featured__media-img {
  position: absolute; inset: 0; background: inherit; background-size: cover; background-position: center;
  transition: transform .6s cubic-bezier(.2,0,.1,1);
}
.tb-act-featured:hover .tb-act-featured__media-img { transform: scale(1.06); }
.tb-act-featured__tag {
  position: absolute; top: 18px; left: 18px; z-index: 1;
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  background: var(--tb-green-600); color: #fff; padding: 6px 14px; border-radius: 999px;
}
.tb-act-featured__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 767px) { .tb-act-featured__body { padding: 28px 24px; } }
.tb-act-featured__meta { font-size: 13px; color: var(--tb-green-600); font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.tb-act-featured__title {
  font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; line-height: 1.3;
  color: var(--tb-dark-900); margin: 0 0 14px; transition: color .2s;
}
.tb-act-featured:hover .tb-act-featured__title { color: var(--tb-green-600); }
.tb-act-featured__excerpt {
  font-size: 15px; color: var(--tb-gray-500); line-height: 1.7; margin: 0 0 24px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 3;
}
.tb-act-featured__more {
  font-size: 14px; font-weight: 700; color: var(--tb-green-600);
  display: inline-flex; align-items: center; gap: 6px;
}
.tb-act-featured__more svg { transition: transform .2s; }
.tb-act-featured:hover .tb-act-featured__more svg { transform: translateX(4px); }

/* Grid hoạt động */
.tb-act-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
}
@media (max-width: 991px) { .tb-act-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .tb-act-grid { grid-template-columns: 1fr; } }

.tb-act-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: inherit;
  transition: transform .3s cubic-bezier(.2,0,.1,1), box-shadow .3s;
}
.tb-act-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0,0,0,.12); }
.tb-act-card__media {
  position: relative; overflow: hidden; aspect-ratio: 16/10;
  background: var(--tb-gray-200) center/cover no-repeat;
}
.tb-act-card__media-img {
  position: absolute; inset: 0; background: inherit; background-size: cover; background-position: center;
  transition: transform .6s cubic-bezier(.2,0,.1,1);
}
.tb-act-card:hover .tb-act-card__media-img { transform: scale(1.07); }
.tb-act-card__tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  background: rgba(255,255,255,.92); color: var(--tb-green-600);
  padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.tb-act-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tb-act-card__date {
  font-size: 12px; color: var(--tb-gray-400); font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.tb-act-card__title {
  font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--tb-dark-900); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2;
  min-height: 2.9em; transition: color .2s;
}
.tb-act-card:hover .tb-act-card__title { color: var(--tb-green-600); }
.tb-act-card__excerpt {
  font-size: 13px; color: var(--tb-gray-500); line-height: 1.65; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2;
}
.tb-act-card__more {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--tb-gray-100);
  font-size: 13px; font-weight: 700; color: var(--tb-green-600);
  display: inline-flex; align-items: center; gap: 6px;
}
.tb-act-card__more svg { transition: transform .2s; }
.tb-act-card:hover .tb-act-card__more svg { transform: translateX(3px); }

/* =========================================================
   CHỨNG NHẬN — Thư cảm ơn
   ========================================================= */
.tb-cert-section { background: var(--tb-gray-50); }

/* Success header */
.tb-cert-success { text-align: center; margin-bottom: 36px; }
.tb-cert-success__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--tb-green-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  animation: tb-cert-pop .5s cubic-bezier(.2,.8,.2,1.2);
}
@keyframes tb-cert-pop { from { transform: scale(0); } to { transform: scale(1); } }
.tb-cert-success__title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--tb-dark-900); margin: 0 0 8px; }
.tb-cert-success__sub { font-size: 14px; color: var(--tb-gray-500); max-width: 480px; margin: 0 auto; line-height: 1.6; }

/* Certificate frame */
.tb-cert {
  max-width: 760px; margin: 0 auto;
  background:
    radial-gradient(circle at 85% 12%, rgba(35,170,79,.10), transparent 45%),
    radial-gradient(circle at 12% 88%, rgba(35,170,79,.10), transparent 45%),
    linear-gradient(135deg, #fbfdf8 0%, #f3f9ee 100%);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  padding: 8px;
}
.tb-cert__inner {
  position: relative; overflow: hidden;
  border: 2px solid rgba(35,170,79,.25);
  border-radius: 12px;
  padding: 40px 48px 48px;
  text-align: center;
}
@media (max-width: 575px) { .tb-cert__inner { padding: 28px 20px 36px; } }

/* Top */
.tb-cert__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
}
.tb-cert__logo { height: 48px; width: auto; }
.tb-cert__org-left { font-size: 18px; font-weight: 800; color: #d4232a; letter-spacing: 1px; }
.tb-cert__org-right { font-size: 13px; font-weight: 700; color: var(--tb-green-600); font-style: italic; }
@media (max-width: 575px) {
  .tb-cert__org-left, .tb-cert__org-right { font-size: 11px; }
  .tb-cert__logo { height: 36px; }
}

/* Heading */
.tb-cert__heading {
  font-size: clamp(28px, 5vw, 44px); font-weight: 800;
  color: var(--tb-green-600); letter-spacing: 3px; margin: 0 0 14px;
  text-shadow: 0 2px 0 rgba(35,170,79,.12);
}
.tb-cert__event { font-size: 16px; font-weight: 700; color: var(--tb-dark-900); margin: 0 0 4px; }
.tb-cert__intro { font-size: 14px; font-style: italic; color: var(--tb-gray-500); margin: 0 0 16px; }
.tb-cert__name {
  font-size: clamp(20px, 3vw, 26px); font-weight: 800;
  color: var(--tb-green-700); letter-spacing: .5px; margin: 0 0 20px;
  padding-bottom: 14px; border-bottom: 1.5px solid rgba(35,170,79,.2);
  display: inline-block; min-width: 280px;
}
.tb-cert__body { font-size: 14px; color: var(--tb-gray-700); line-height: 1.8; max-width: 520px; margin: 0 auto 16px; }
.tb-cert__body strong { color: var(--tb-green-600); }
.tb-cert__wish { font-size: 14px; font-weight: 700; color: var(--tb-dark-900); margin: 0 0 32px; line-height: 1.6; }

/* Signature */
.tb-cert__sign { position: relative; text-align: right; padding-right: 20px; }
@media (max-width: 575px) { .tb-cert__sign { text-align: center; padding-right: 0; } }
.tb-cert__date { font-size: 13px; font-style: italic; color: var(--tb-gray-600); margin: 0 0 4px; }
.tb-cert__sign-role { font-size: 13px; font-weight: 700; color: var(--tb-dark-900); margin: 0 0 50px; }
.tb-cert__sign-name { font-size: 14px; font-weight: 700; color: var(--tb-dark-900); margin: 0; }
.tb-cert__stamp {
  position: absolute; right: 30px; bottom: 24px;
  width: 90px; height: 90px; border-radius: 50%;
  border: 2px solid rgba(212,35,42,.5); color: rgba(212,35,42,.65);
  display: flex; align-items: center; justify-content: center;
  text-align: center; transform: rotate(-12deg);
  font-size: 7px; font-weight: 700; line-height: 1.3; padding: 8px;
}
@media (max-width: 575px) { .tb-cert__stamp { right: 50%; margin-right: -45px; } }

/* Mascot decoration góc trái dưới */
.tb-cert__mascot {
  position: absolute; left: 16px; bottom: 16px;
  width: 90px; height: 90px;
  background: url('../img/logo.png') center/contain no-repeat;
  opacity: .12;
}
@media (max-width: 575px) { .tb-cert__mascot { display: none; } }

/* Actions */
.tb-cert-actions {
  max-width: 760px; margin: 28px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.tb-cert-share { display: flex; align-items: center; gap: 10px; }
.tb-cert-share__label { font-size: 14px; font-weight: 600; color: var(--tb-gray-500); }
.tb-cert-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* Print: chỉ in certificate */
@media print {
  body * { visibility: hidden; }
  .tb-cert, .tb-cert * { visibility: visible; }
  .tb-cert { position: absolute; left: 0; top: 0; box-shadow: none; }
}

/* =========================================================
   PARTNERS STRIP — stats + partners
   ========================================================= */
.tb-partners-strip {
  position: relative;
  background: url('../img/hero-home.png') center/cover no-repeat, #0a3d1f;
  padding: 48px 0 80px;
  overflow: hidden;
}
/* Overlay: tối ở trên (chữ rõ) → fade HẲN về solid #0a3d1f ở mép dưới.
   Mép dưới partners = mép trên footer (cùng #0a3d1f đặc) → liền tuyệt đối. */
.tb-partners-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(8, 40, 20, 0.90) 0%,
    rgba(8, 40, 20, 0.90) 50%,
    #0a3d1f 100%);
}

.tb-partners-strip .container { position: relative; z-index: 1; }

/* Stats hàng ngang */
.tb-partners-strip__stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap; margin-bottom: 40px;
}
.tb-partners-strip__stat { text-align: center; padding: 0 48px; }
@media (max-width: 575px) { .tb-partners-strip__stat { padding: 12px 20px; } }
.tb-partners-strip__stat-num {
  display: block; font-size: clamp(28px, 3.5vw, 44px); font-weight: 800;
  color: var(--tb-green-400); line-height: 1;
}
.tb-partners-strip__stat-label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: rgba(255,255,255,.4); margin-top: 6px;
}
.tb-partners-strip__stat-div {
  width: 1px; height: 44px; background: rgba(255,255,255,.12); flex-shrink: 0;
}
@media (max-width: 575px) { .tb-partners-strip__stat-div { display: none; } }

/* Divider */
.tb-partners-strip__divider {
  height: 1px; background: rgba(255,255,255,.1); margin-bottom: 36px;
}

/* Heading đối tác — căn giữa */
.tb-partners-strip__head {
  text-align: center; margin-bottom: 28px;
}
.tb-partners-strip__sub {
  font-size: 12px; color: rgba(255,255,255,.35);
  text-transform: uppercase; letter-spacing: .8px;
  margin: 0 0 10px;
}
.tb-partners-strip__headline {
  display: flex; align-items: baseline; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}
.tb-partners-strip__count {
  font-size: 26px; font-weight: 800; color: var(--tb-green-400);
}
.tb-partners-strip__title {
  font-size: 14px; font-weight: 700; letter-spacing: .7px;
  text-transform: uppercase; color: #fff;
}

/* Logo marquee */
.tb-logo-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.tb-logo-marquee__track {
  display: flex; align-items: center; gap: 12px;
  width: max-content;
  animation: tb-marquee 28s linear infinite;
}
.tb-logo-marquee:hover .tb-logo-marquee__track { animation-play-state: paused; }

@keyframes tb-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tb-partners-strip__logo {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 14px 22px;
  background: #fff; border-radius: 12px;
  height: 80px; min-width: 130px;
  transition: transform .2s, box-shadow .2s;
}
.tb-partners-strip__logo:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.tb-partners-strip__logo img {
  max-height: 48px; max-width: 110px; width: auto; object-fit: contain;
}

/* =========================================================
   Print
   ========================================================= */
@media print {
  .tb-header, .tb-subheader, .tb-footer, .tb-hamburger { display: none !important; }
}
