/* =========================================================
   KHPEDIA · THIÊN NHIÊN KHÁNH HÒA
   Theme: Forest Green & Sage Mint + Rounded Botanical Typography
   ========================================================= */
:root {
  --green-950: #0F2E1E;
  --green-900: #153E29;
  --green-800: #1F7A4C;
  --green-700: #238A56;
  --green-600: #2E9E66;
  --green-500: #43A96B;
  --green-100: #E1EDE5;
  --green-50: #F2F7F4;

  --bn-dark: #153E29;
  --bn-dark-2: #1E5438;
  --bn-footer: #102E1F;
  --bn-cream: #EDF4EF;
  --bn-cream-card: #F8FBF9;
  --bn-accent: #1F7A4C;
  --bn-accent-hover: #165B38;
  --bn-highlight: #7CE0AA;
  --bn-ink: #132A1E;
  --bn-muted: #526B5D;

  --ink: #132A1E;
  --muted: #526B5D;
  --line: rgba(21, 62, 41, 0.12);
  --paper: #EDF4EF;
  --soft: #E1EDE5;
  --shadow: 0 14px 40px rgba(16, 48, 32, 0.08);
  --radius: 18px;
  --hero-bg: none;

  --font-display: 'Baloo 2', 'Quicksand', 'Segoe UI', sans-serif;
  --font-body: 'Quicksand', 'Be Vietnam Pro', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bn-cream);
  color: var(--bn-ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-home,
body.is-home main {
  background-color: var(--bn-cream);
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin-top: 0; }

h1, h2, h3,
.bn-serif-title,
.bn-serif-h2,
.bn-how-heading {
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }

.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }

/* =========================================================
   HEADER & THANH ĐIỀU HƯỚNG MỜ KÍNH + VIÊN THUỐC LƯỚT
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 62, 41, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.28s ease, box-shadow 0.28s ease;
}

.site-header.header-transparent {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(16, 46, 31, 0.85) 0%, rgba(21, 62, 41, 0.55) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header.is-scrolled,
.site-header.header-transparent.is-scrolled {
  background: rgba(16, 46, 31, 0.84);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(124, 224, 170, 0.2);
  box-shadow: 0 10px 30px rgba(8, 24, 16, 0.26);
}

.site-header .navbar {
  width: min(1320px, calc(100% - 36px));
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: height 0.25s ease;
}

.site-header.is-scrolled .navbar {
  height: 68px;
}

.brand {
  min-width: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand span { display: grid; line-height: 1.15; }
.brand strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #FAF6EE;
  line-height: 1;
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  font-weight: 700;
  font-size: 13.5px;
}

@media (min-width: 801px) {
  .nav-sliding-pill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 36px;
    border-radius: 999px;
    background: rgba(124, 224, 170, 0.16);
    border: 1px solid rgba(124, 224, 170, 0.34);
    box-shadow: 0 4px 16px rgba(10, 32, 20, 0.22);
    transform: translate3d(0, -50%, 0);
    transition:
      transform 0.34s cubic-bezier(0.25, 1.15, 0.45, 1),
      width 0.34s cubic-bezier(0.25, 1.15, 0.45, 1),
      opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
  }

  .nav-links > a:not(.nav-login):not(.nav-icon-btn),
  .nav-admin {
    position: relative;
    z-index: 1;
  }

  .nav-links > a:not(.nav-login):not(.nav-icon-btn),
  .nav-admin > a,
  .nav-admin > span:not(.nav-icon-btn) {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    padding: 8px 13px;
    border-radius: 999px;
    color: #EAECE8;
    line-height: 1.2;
    transition: color 0.2s;
  }

  .nav-links > a:not(.nav-login):not(.nav-icon-btn):hover,
  .nav-admin:hover > span:not(.nav-icon-btn),
  .nav-admin:hover > a,
  .nav-links > a.is-active,
  .nav-admin.is-active > a,
  .nav-admin.is-active > span {
    color: var(--bn-highlight);
  }

  .nav-links > a.is-active::after,
  .nav-admin.is-active > a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 1px;
    height: 3px;
    border-radius: 99px;
    background: var(--bn-highlight);
  }
}

.nav-utility-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 6px;
}
.nav-icon-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #EAECE8;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.nav-icon-btn:hover {
  background: var(--bn-accent);
  color: #fff;
}
.logout-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #FAF6EE;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s, border-color 0.2s;
}
.nav-login:hover {
  background: var(--bn-accent);
  border-color: var(--bn-accent);
  color: #fff;
}
.nav-admin { cursor: pointer; }

.dropdown {
  display: grid;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.97);
  transform-origin: top right;
  position: absolute;
  top: 100%;
  right: 0;
  width: 230px;
  background: var(--bn-cream-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 8px;
  z-index: 30;
  transition:
    opacity 0.22s ease,
    transform 0.26s cubic-bezier(0.22, 1.15, 0.4, 1),
    visibility 0.22s;
}
.nav-admin:hover .dropdown,
.nav-admin:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.dropdown a,
.dropdown span {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bn-ink);
}
.dropdown a:hover {
  background: #E1EDE5;
  color: var(--bn-accent);
}
.plant-dropdown { max-height: 70vh; overflow-y: auto; }
.dropdown a small,
.dropdown span small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}
.dropdown a:hover small { color: var(--bn-accent); }

.user-chip {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #FAF6EE;
  font-size: 12px;
  font-weight: 700;
}
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #FAF6EE;
  margin: 5px;
  border-radius: 2px;
}

/* =========================================================
   NÚT BẤM & TIỆN ÍCH CHUNG
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.2;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn span { font-size: 17px; }

.btn-primary,
.bn-btn-orange,
.search-form button {
  background: linear-gradient(135deg, #218251, #196940);
  color: #fff;
  box-shadow: 0 8px 20px rgba(25, 105, 64, 0.25);
}
.btn-primary:hover,
.bn-btn-orange:hover,
.search-form button:hover {
  background: linear-gradient(135deg, #196940, #124F30);
  box-shadow: 0 11px 26px rgba(25, 105, 64, 0.32);
}
.bn-btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.btn-outline {
  background: var(--bn-cream-card);
  border-color: rgba(21, 62, 41, 0.18);
  color: var(--bn-ink);
}
.btn-outline:hover {
  border-color: var(--bn-accent);
  color: var(--bn-accent);
  background: #fff;
}
.btn-light { background: #fff; color: var(--bn-dark); }
.btn-light:hover { background: #E1EDE5; }
.btn-danger-soft {
  background: #fff7f5;
  color: #9a382c;
  border-color: #f2d4cd;
}
.btn-small {
  min-height: 34px;
  font-size: 12px;
  padding: 7px 13px;
  gap: 6px;
}
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bn-accent);
  font-size: 13.5px;
  font-weight: 700;
}
.text-link span { font-size: 18px; transition: transform 0.2s; }
.text-link:hover span { transform: translateX(3px); }

/* =========================================================
   TẦNG 1: HERO SLIDER (KHUNG GỌN NÉT, CĂN VỪA VẶN KHÔNG TRÀN VIỀN)
   ========================================================= */
.bn-kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #A9DFC1;
  margin-bottom: 12px;
}
.bn-kicker-dark { color: var(--bn-accent); }

.bn-hero {
  position: relative;
  min-height: 580px;
  max-height: 660px;
  padding: 135px 0 95px;
  background-color: var(--bn-dark);
  color: #F7F4EC;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.bn-hero-slides {
  position: absolute;
  inset: 0;
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.95s cubic-bezier(0.25, 0.85, 0.3, 1);
  z-index: 0;
}

.bn-hero-slide {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: contrast(1.04) saturate(1.06);
}

.bn-hero-slide.bn-slide-deep-forest {
  filter: brightness(0.88) contrast(1.12) saturate(0.9) hue-rotate(6deg);
}

.bn-slide-baho {
  background-image: url('/hero-hd/hero-baho.jpg');
}

.bn-slide-nuichua {
  background-image: url('/hero-hd/hero-nuichua.jpg');
}

.bn-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 28% 50%, rgba(0, 0, 0, 0.56) 0%, rgba(0, 0, 0, 0.34) 55%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.14) 45%, rgba(0, 0, 0, 0.46) 100%);
  pointer-events: none;
}

.bn-hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 115px;
}
.bn-hero-left {
  max-width: 720px;
}
.bn-hero-left .bn-serif-title {
  font-size: clamp(2.1rem, 4.1vw, 3.6rem);
  line-height: 1.14;
  color: #FAF6EE;
  margin: 0 0 18px;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  word-wrap: break-word;
}
.bn-hero-desc {
  color: #EAECE8;
  font-size: 16px;
  line-height: 1.72;
  max-width: 600px;
  margin-bottom: 28px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.bn-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.bn-btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #F3EFE6;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.bn-play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 12px;
  transition: background 0.2s, border-color 0.2s;
}
.bn-btn-play:hover .bn-play-circle {
  background: var(--bn-accent);
  border-color: var(--bn-accent);
}

.bn-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 25px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.bn-hero-arrow:hover {
  background: #FFFFFF;
  color: #153E29;
  transform: translateY(-50%) scale(1.08);
}
.bn-hero-prev { left: 18px; }
.bn-hero-next { right: 18px; }

.bn-hero-location-tag {
  position: absolute;
  right: 28px;
  bottom: 58px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #FFFFFF;
  color: #153E29;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.bn-hero-location-tag.is-changing {
  opacity: 0.35;
  transform: translateY(4px);
}

.bn-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
}
.bn-wave svg { width: 100%; height: 54px; }
.bn-wave-to-cream svg path { fill: var(--bn-cream); }

/* =========================================================
   TẦNG 2 & 5: HỒ SƠ THỰC VẬT & BÀI VIẾT
   ========================================================= */
.bn-section-cream {
  position: relative;
  background-color: var(--bn-cream);
  color: var(--bn-ink);
  padding: 72px 0 42px;
  overflow: hidden;
}
.bn-articles-section {
  padding-top: 48px;
  padding-bottom: 92px;
  border-top: 1px solid var(--line);
}
.bn-serif-h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--bn-ink);
}
.bn-species-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
}
.bn-species-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}
.bn-species-intro p {
  font-size: 14.5px;
  color: var(--bn-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.bn-species-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.bn-species-card {
  background: transparent;
  transition: transform 0.25s;
}
.bn-species-card:hover { transform: translateY(-4px); }
.bn-species-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: #DCE8E0;
  box-shadow: 0 10px 24px rgba(21, 62, 41, 0.08);
  margin-bottom: 14px;
}
.bn-species-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}
.bn-species-card:hover .bn-species-thumb img { transform: scale(1.05); }
.bn-thumb-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 40px;
}
.bn-species-meta h3 {
  font-size: 17px;
  margin: 0 0 4px;
  color: var(--bn-ink);
}
.bn-species-sub {
  font-size: 12.5px;
  font-style: italic;
  color: var(--bn-muted);
  margin: 0 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bn-species-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--bn-ink);
}
.bn-mini-cart-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(31, 122, 76, 0.14);
  color: var(--bn-accent);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}
.bn-mini-cart-btn:hover {
  background: var(--bn-accent);
  color: #fff;
}
.bn-botanical-sketch {
  position: absolute;
  right: -10px;
  bottom: 45px;
  width: 165px;
  color: rgba(31, 122, 76, 0.25);
  pointer-events: none;
}

.bn-news-card {
  background: var(--bn-cream-card);
  color: var(--bn-ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(21, 62, 41, 0.06);
  transition: transform 0.25s;
}
.bn-news-card:hover { transform: translateY(-4px); }
.bn-news-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: #DCE8E0;
  overflow: hidden;
}
.bn-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bn-news-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bn-news-body h3 {
  font-size: 16px;
  line-height: 1.35;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bn-news-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--bn-muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.bn-news-foot a {
  font-size: 16px;
  font-weight: 800;
  color: var(--bn-accent);
}
.bn-empty-cream {
  grid-column: 1 / -1;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  border-radius: 20px;
  text-align: center;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px dashed rgba(21, 62, 41, 0.24);
  color: var(--bn-muted);
}

/* =========================================================
   TẦNG 3: QUY TRÌNH XỬ LÝ THÔNG TIN (4 CỘT MINH HỌA)
   ========================================================= */
.bn-how-section {
  position: relative;
  background-color: var(--bn-cream);
  color: var(--bn-ink);
  padding: 40px 0 84px;
}
.bn-how-heading {
  text-align: center;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--bn-dark);
  margin: 0 0 44px;
}
.bn-how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.bn-how-card {
  text-align: left;
  transition: transform 0.25s ease;
}
.bn-how-card:hover { transform: translateY(-4px); }
.bn-how-art {
  width: 100%;
  max-width: 210px;
  margin: 0 auto 18px;
}
.bn-how-art svg,
.bn-how-art img {
  width: 100%;
  height: auto;
  display: block;
}
.bn-how-card h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--bn-dark);
  margin: 0 0 10px;
}
.bn-how-card p {
  font-size: 14px;
  line-height: 1.68;
  color: var(--bn-muted);
  margin: 0;
}

/* =========================================================
   TẦNG 4: TIÊU ĐIỂM GIÁO DỤC
   ========================================================= */
.bn-edu-section { padding: 72px 0 76px; }
.bn-edu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 120px;
  gap: 42px;
  align-items: center;
}
.bn-edu-card-photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 18px 40px rgba(21, 62, 41, 0.14);
  background: #1B4D33;
}
.bn-edu-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bn-edu-photo-stamp {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(248, 251, 249, 0.94);
  padding: 10px 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--bn-ink);
}
.bn-edu-photo-stamp img { width: 28px; height: 28px; object-fit: contain; }
.bn-edu-copy > p {
  color: var(--bn-muted);
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 22px;
}
.bn-edu-features {
  display: flex;
  gap: 22px;
  margin-bottom: 26px;
}
.bn-edu-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bn-ink);
}
.bn-edu-feat span { font-size: 22px; }
.bn-green-circle {
  width: 114px;
  height: 114px;
  border-radius: 50%;
  background: #1B4D33;
  color: #FAF6EE;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}
.bn-green-circle small { font-size: 10px; color: #C2D4C8; }
.bn-green-circle strong { font-family: var(--font-display); font-size: 23px; line-height: 1.15; }
.bn-green-circle span { font-size: 10.5px; line-height: 1.25; color: #DCE6DF; }

/* =========================================================
   NỀN CÂY CỎ CHÌM & BANNER LƯỢN SÓNG CÁC TAB CON
   ========================================================= */
body:not(.is-home) main {
  position: relative;
  background-color: var(--bn-cream);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320' fill='none'%3E%3Cg stroke='%232C4C38' stroke-opacity='0.065' stroke-width='1.35' stroke-linecap='round'%3E%3Cpath d='M55 280 C62 210, 50 145, 78 65'/%3E%3Cpath d='M61 215 C32 202, 16 180, 12 156 C36 160, 52 178, 61 215 Z'/%3E%3Cpath d='M60 175 C92 162, 114 140, 120 116 C94 120, 74 140, 60 175 Z'/%3E%3Cpath d='M66 130 C40 115, 24 92, 22 70 C44 76, 58 98, 66 130 Z'/%3E%3Cpath d='M73 92 C94 78, 110 58, 112 38 C93 45, 80 64, 73 92 Z'/%3E%3Cpath d='M255 40 C248 110, 260 175, 232 255'/%3E%3Cpath d='M249 105 C278 118, 294 140, 298 164 C274 160, 258 142, 249 105 Z'/%3E%3Cpath d='M250 145 C218 158, 196 180, 190 204 C216 200, 236 180, 250 145 Z'/%3E%3Cpath d='M244 190 C270 205, 286 228, 288 250 C266 244, 252 222, 244 190 Z'/%3E%3Ccircle cx='165' cy='85' r='2.5'/%3E%3Ccircle cx='152' cy='235' r='2'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 320px 320px;
}
body:not(.is-home) main > .section:not(.section-soft):not(.closing-cta) {
  background-color: transparent;
}

.section { padding: 80px 0; }
.section-soft { background: var(--soft); }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #A9DFC1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.eyebrow > span { display: inline-block; width: 22px; height: 1px; background: currentColor; }
.eyebrow-green { color: var(--bn-accent); }
.eyebrow-light { color: #CFE3D6; }

.page-banner {
  position: relative;
  padding: 58px 0 92px;
  background:
    radial-gradient(circle at 82% 30%, rgba(67, 169, 107, 0.26), transparent 48%),
    linear-gradient(125deg, #123624 0%, #1D5639 58%, #16442D 100%);
  color: #FAF6EE;
  overflow: hidden;
}
.page-banner-short { padding: 42px 0 76px; }
.page-banner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 54px;
  background-color: var(--bn-cream);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,32 C320,96 640,0 1020,48 C1240,76 1360,52 1440,36 L1440,90 L0,90 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,32 C320,96 640,0 1020,48 C1240,76 1360,52 1440,36 L1440,90 L0,90 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  z-index: 2;
  pointer-events: none;
}

.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { font-size: clamp(2.3rem, 4vw, 3.4rem); margin: 0 0 10px; }
.page-banner p { max-width: 650px; color: #D4E2DA; margin: 0; font-size: 14.5px; }

/* Thẻ thực vật, tin tức, bộ lọc & tìm kiếm */
.tree-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.tree-card,
.news-card,
.form-card,
.auth-card,
.search-form,
.sidebar-card {
  background: var(--bn-cream-card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.tree-card,
.news-card {
  overflow: hidden;
  min-width: 0;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.tree-card:hover,
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(31, 122, 76, 0.4);
}
.tree-card-image,
.news-card-image {
  display: block;
  position: relative;
  overflow: hidden;
  background: #DCE8E0;
  aspect-ratio: 4 / 3;
}
.tree-card-image img,
.news-card-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.55s;
}
.tree-card:hover .tree-card-image img,
.news-card:hover .news-card-image img {
  transform: scale(1.04);
}
.round-arrow {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--bn-dark);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  font-size: 15px;
}
.tree-card-body { padding: 18px 17px 14px; }
.card-kicker {
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--bn-accent);
}
.card-kicker-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tree-card h3 { font-size: 17px; margin: 8px 0 4px; line-height: 1.35; }
.tree-card h3 a:hover,
.news-card h3 a:hover,
.breadcrumb a:hover,
.back-link:hover { color: var(--bn-accent); }
.latin { font-style: italic; color: var(--muted); font-size: 13px; }
.tree-card .latin { margin: 0; min-height: 21px; }
.card-bottom {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
}
.card-bottom span:last-child { color: var(--bn-accent); font-size: 17px; font-weight: 800; }

.image-placeholder {
  height: 100%;
  min-height: 130px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 30%, #DCEFE0, #E9F1E9 60%, #D5E5D7);
  font-size: 42px;
}
.tree-card .image-placeholder,
.news-card-image .image-placeholder { position: absolute; inset: 0; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-card-image { aspect-ratio: 16 / 10; }
.news-card-body { padding: 20px; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--bn-accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.news-card h3 { font-size: 18px; line-height: 1.38; margin-bottom: 10px; }
.news-card-body > p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  min-height: 44px;
  margin-bottom: 15px;
}
.news-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-edit-link { font-size: 11.5px; color: var(--muted); text-decoration: underline; }

.empty-state {
  padding: 54px 24px;
  text-align: center;
  border: 1px dashed rgba(31, 122, 76, 0.35);
  border-radius: 20px;
  background: var(--bn-cream-card);
  color: var(--bn-ink);
}
.empty-state > span { font-size: 32px; }
.empty-state h3 { margin: 12px 0 6px; }
.empty-state p { color: var(--muted); margin: 0; }
.empty-state.compact { padding: 35px 24px; }

.list-toolbar { display: flex; flex-direction: column; gap: 15px; margin-bottom: 22px; }
.search-form {
  width: min(100%, 600px);
  display: flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 5px 20px rgba(16, 48, 32, 0.04);
}
.search-icon { color: var(--bn-accent); font-size: 22px; padding: 0 10px; }
.search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 8px 4px;
  background: transparent;
  font-size: 13.5px;
}
.search-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 12.5px;
  font-weight: 700;
}

.admin-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.admin-filter > span { font-size: 12px; color: var(--muted); margin-right: 3px; font-weight: 600; }
.filter-pill {
  border: 1px solid var(--line);
  background: var(--bn-cream-card);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.filter-pill.active {
  color: var(--bn-accent-hover);
  border-color: var(--bn-accent);
  background: rgba(31, 122, 76, 0.13);
  font-weight: 700;
}
.admin-filter .btn { margin-left: auto; }
.results-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  padding: 0 0 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.status-pill {
  font-size: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  line-height: 1.3;
  font-weight: 700;
  white-space: nowrap;
}
.status-published { background: #E1EDE5; color: #165B38; }
.status-archived { background: #ECEFEA; color: #526B5D; }
.status-draft { background: #FFF2D9; color: #876012; }
.admin-card-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.admin-card-actions form { margin: 0; }

/* =========================================================
   TRANG CHI TIẾT, BIỂU MẪU & ĐĂNG NHẬP
   ========================================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 21px 0 15px;
  color: var(--muted);
  font-size: 12px;
}
.detail-top {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #F8FBF9 0%, #EDF4EF 100%);
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  padding: 30px 0 35px;
}
.detail-heading h1 { font-size: clamp(2.3rem, 4vw, 3.5rem); margin: 0 0 9px; }
.detail-latin { font-style: italic; font-size: 18px; color: var(--muted); margin: 0 0 7px; }
.other-names { font-size: 13.5px; color: var(--bn-ink); margin: 0 0 12px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 17px; font-size: 12px; color: var(--muted); margin-top: 15px; }
.detail-admin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.detail-admin-actions form { margin: 0; }

.preview-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 15px;
  background: #FFF8E9;
  border: 1px solid #F1DFAF;
  border-radius: 12px;
  font-size: 12.5px;
  color: #76581B;
}
.detail-section { padding-top: 46px; }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 50px;
  align-items: start;
}
.detail-content { min-width: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-bottom: 35px; }
.gallery-item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bn-cream-card);
  border: 1px solid var(--line);
}
.gallery-single .gallery-item { max-width: 700px; }
.gallery-item figcaption { padding: 11px 14px; font-size: 12.5px; color: var(--muted); }
.gallery-item figcaption span { font-weight: 700; color: var(--bn-accent); }

.article-section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.article-section:first-of-type { padding-top: 4px; }
.article-section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.article-section-title h2 { font-size: 22px; margin: 0; }
.section-symbol,
.sidebar-leaf,
.form-card-icon {
  background: rgba(31, 122, 76, 0.14);
  color: var(--bn-accent);
  display: grid;
  place-items: center;
}
.section-symbol { width: 38px; height: 38px; border-radius: 12px; font-size: 17px; }
.sidebar-leaf { width: 46px; height: 46px; border-radius: 15px; font-size: 24px; margin-bottom: 16px; }
.form-card-icon { width: 50px; height: 50px; border-radius: 16px; font-size: 25px; margin-bottom: 15px; }

.prose { color: var(--bn-ink); font-size: 15.5px; line-height: 1.88; overflow-wrap: anywhere; }
.prose p { margin-bottom: 1.05em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--bn-ink); margin: 1.6em 0 0.65em; line-height: 1.3; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin: 0.3em 0; }
.prose blockquote,
.notice-note,
.source-note {
  background: var(--soft);
  border-left: 3px solid var(--bn-accent);
  border-color: rgba(31, 122, 76, 0.25);
  color: var(--bn-ink);
}
.prose blockquote { margin: 1.2em 0; padding: 0.5em 1.1em; border-radius: 0 10px 10px 0; }
.prose img, .prose video { max-width: 100%; border-radius: 12px; margin: 20px auto; }
.prose img { max-height: 650px; }
.prose video { max-height: 520px; }
.prose audio { display: block; width: min(100%, 520px); margin: 18px 0; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--soft); }

.detail-sidebar { position: sticky; top: 88px; }
.sidebar-card { padding: 23px; box-shadow: var(--shadow); }
.sidebar-card h3 { font-size: 20px; margin-bottom: 18px; }
.sidebar-card dl { margin: 0 0 20px; }
.sidebar-card dt { font-size: 11px; color: var(--muted); margin-top: 14px; }
.sidebar-card dd { font-size: 13.5px; font-weight: 700; margin: 3px 0 0; overflow-wrap: anywhere; }
.sidebar-card p { font-size: 13px; color: var(--muted); }
.sidebar-card .btn { margin-top: 8px; }

.source-note {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  border: 1px solid rgba(31, 122, 76, 0.25);
  padding: 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.7;
}
.source-note > span { color: var(--bn-accent); font-size: 19px; }
.source-note p { margin: 0; }

.news-article-heading { max-width: 850px; padding: 31px 0 42px; }
.news-article-heading h1 { font-size: clamp(2rem, 4.3vw, 3.5rem); line-height: 1.16; margin: 0 0 20px; }
.news-lead { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 780px; }
.article-read-section { padding-top: 42px; }
.article-read-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  justify-content: space-between;
  gap: 55px;
  align-items: start;
}
.longform { font-size: 16.5px; line-height: 1.92; }
.longform > img:first-child { margin-top: 0; }
.longform h2 { font-size: 28px; }
.longform h3 { font-size: 22px; }

/* Forms & Editor */
.form-card { padding: 28px; box-shadow: var(--shadow); margin-bottom: 20px; }
.form-card h2 { font-size: 24px; margin-bottom: 9px; }
.form-card > p { font-size: 13.5px; color: var(--muted); }
.form-stack { display: flex; flex-direction: column; gap: 10px; }
.form-stack label, .field label { display: block; color: var(--bn-ink); font-size: 12.5px; font-weight: 700; margin-top: 5px; }
.form-stack input:not([type=checkbox]):not([type=file]),
.form-stack textarea,
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 11px 14px;
  outline: none;
  font-size: 13.5px;
  color: var(--bn-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-stack textarea, .field textarea { resize: vertical; min-height: 80px; }
.form-stack input:focus, .form-stack textarea:focus, .field input:focus, .field textarea:focus {
  border-color: var(--bn-accent);
  box-shadow: 0 0 0 3px rgba(31, 122, 76, 0.12);
}
.form-stack input[type=file] {
  font-size: 12.5px;
  border: 1px dashed rgba(31, 122, 76, 0.35);
  background: var(--soft);
  padding: 14px;
  border-radius: 12px;
  width: 100%;
}
.form-hint { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.6; margin-top: -3px; }
.notice-note { padding: 15px 17px; border-radius: 10px; font-size: 12.5px; }
.notice-note strong { color: var(--bn-dark); }
.notice-note p { margin: 4px 0 0; line-height: 1.7; }
.form-wide { max-width: 1000px; }
.form-section-heading { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.form-section-heading h2 { margin: 0 0 5px; }
.form-section-heading p { margin: 0; color: var(--muted); font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field .form-hint { margin-top: 5px; }
.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.form-actions form { margin: 0; }
.image-manage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.image-manage-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.image-manage-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.image-manage-grid figcaption { font-size: 11.5px; padding: 9px; color: var(--muted); }
.media-manager { margin-top: 20px; }
.uploaded-media-list { display: grid; gap: 10px; }
.uploaded-media-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.media-type-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; color: var(--bn-accent); font-size: 20px; flex-shrink: 0; }
.uploaded-media-info { flex: 1; min-width: 0; display: grid; gap: 3px; }
.uploaded-media-info strong { font-size: 12.5px; overflow-wrap: anywhere; }
.uploaded-media-info small { font-size: 11px; color: var(--muted); }
.editor-field { margin-top: 20px; }
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--soft);
  border-radius: 12px 12px 0 0;
}
.editor-toolbar button, .toolbar-upload {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  min-height: 30px;
  padding: 5px 9px;
  color: var(--bn-ink);
  font-size: 11.5px;
  font-weight: 700;
}
.editor-toolbar button:hover, .toolbar-upload:hover { background: #E1EDE5; }
.toolbar-divider { width: 1px; background: var(--line); margin: 3px 4px; }
.toolbar-upload { display: inline-flex; align-items: center; cursor: pointer; }
.toolbar-upload input { display: none; }
.content-editor {
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  background: #fff;
  padding: 19px;
  outline: none;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.content-editor:focus { border-color: var(--bn-accent); box-shadow: 0 0 0 3px rgba(31, 122, 76, 0.1); }
.content-editor:empty:before { content: 'Bắt đầu viết nội dung bài đăng...'; color: #94A89C; }
.editor-help { font-size: 11.5px; color: var(--muted); padding-top: 7px; }
.check-row { display: flex !important; align-items: center; gap: 8px; font-weight: 600 !important; }
.check-row input { accent-color: var(--bn-accent); }

/* Auth & Flash Messages */
.auth-section {
  min-height: 650px;
  display: grid;
  place-items: center;
  padding: 55px 20px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 35%, rgba(31, 122, 76, 0.12), transparent 32%),
    linear-gradient(110deg, #EDF4EF, #E1EDE5);
}
.auth-card {
  position: relative;
  width: min(100%, 440px);
  padding: 39px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.auth-logo { height: 66px; width: 66px; object-fit: contain; margin-bottom: 22px; }
.auth-card h1 { font-size: 30px; margin: 0 0 7px; }
.auth-card > p { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.back-link { display: block; text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 21px; }

.flash-stack { padding-top: 14px; display: grid; gap: 8px; }
body.is-home .flash-stack {
  position: relative;
  z-index: 25;
  background-color: transparent;
  padding-top: 96px;
  margin-bottom: -96px;
}
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid;
}
body.is-home .flash {
  background: rgba(16, 46, 31, 0.92);
  backdrop-filter: blur(8px);
  border-color: rgba(143, 212, 174, 0.35);
  color: #FAF6EE;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.flash button { background: transparent; border: 0; font-size: 21px; line-height: 1; color: inherit; }
.flash-success { background: #E1EDE5; border-color: #B4D7C0; color: #165B38; }
.flash-error { background: #FFF2EF; border-color: #F2D2CC; color: #973D31; }
.flash-info { background: #EEF5FB; border-color: #D6E6F4; color: #315E7E; }

/* Lightbox */
.gallery-item .gallery-image-link { position: relative; display: block; background: var(--bn-cream-card); cursor: zoom-in; overflow: hidden; }
.gallery-item .gallery-image-link img { width: 100%; height: auto; object-fit: contain; transition: filter 0.2s ease; }
.gallery-item .gallery-image-link:hover img { filter: brightness(0.92); }
.gallery-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(21, 62, 41, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.gallery-image-link:hover .gallery-zoom-hint { opacity: 1; transform: translateY(0); }
.image-lightbox {
  position: fixed;
  inset: 0;
  width: max-content;
  max-width: 96vw;
  max-height: 96vh;
  margin: auto;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: #102E1F;
  color: #fff;
  box-shadow: 0 24px 100px rgba(0, 0, 0, 0.42);
}
.image-lightbox::backdrop { background: rgba(10, 28, 19, 0.88); backdrop-filter: blur(3px); }
.image-lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; margin: 0 auto; border-radius: 8px; }
.image-lightbox p { margin: 12px 42px 0 0; color: #E1EEE5; font-size: 13px; text-align: center; }
.image-lightbox-close {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}
.image-lightbox-close:hover { background: #fff; color: var(--bn-dark); }

/* =========================================================
   FOOTER 2 CỘT GỌN GÀNG & ĐƯỜNG LƯỢN SÓNG ĐỈNH
   ========================================================= */
.site-footer.botanic-footer {
  position: relative;
  margin-top: 52px;
  padding-top: 16px;
  background: var(--bn-footer);
  color: #D2E0D7;
}
body.is-home .site-footer.botanic-footer {
  margin-top: 0;
  padding-top: 16px;
}
.site-footer.botanic-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -53px;
  height: 54px;
  background-color: var(--bn-footer);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,45 C360,0 780,88 1440,26 L1440,90 L0,90 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,45 C360,0 780,88 1440,26 L1440,90 L0,90 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
  z-index: 2;
}
.site-footer.botanic-footer::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: 36px;
  width: 210px;
  height: 210px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23FAF6EE' stroke-opacity='0.055' stroke-width='1.4'%3E%3Cpath d='M100 190 C96 135, 104 85, 92 20'/%3E%3Cpath d='M98 145 C65 132, 42 108, 36 84 C62 88, 84 108, 98 145 Z'/%3E%3Cpath d='M99 112 C132 98, 156 74, 162 48 C134 52, 112 74, 99 112 Z'/%3E%3Cpath d='M95 75 C68 60, 50 38, 48 16 C70 22, 86 44, 95 75 Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
}

.footer-grid-2 {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  padding: 50px 0 38px;
  align-items: start;
}
.footer-brand-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand-top img { width: 44px; height: 44px; object-fit: contain; }
.footer-brand-top strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: #FAF6EE;
}
.footer-brand-top small { font-size: 10px; letter-spacing: 0.1em; color: #9BA8A0; }
.footer-brand-col p { font-size: 13px; color: #A8BCB0; line-height: 1.7; max-width: 460px; margin: 0; }

.footer-links-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.footer-links-col strong {
  display: block;
  color: #FAF6EE;
  font-size: 14px;
  margin-bottom: 4px;
}
.footer-links-col a {
  display: block;
  font-size: 13px;
  color: #BDD0C5;
  transition: color 0.2s, transform 0.2s;
}
.footer-links-col a:hover {
  color: var(--bn-highlight);
  transform: translateX(4px);
}

.footer-bottom {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: #98B7A3;
  padding: 13px 0;
}

/* =========================================================
   RESPONSIVE MOBILE & TABLET
   ========================================================= */
@media (max-width: 1050px) {
  .tree-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-layout, .article-read-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 28px; }
  .bn-species-layout, .bn-edu-grid { grid-template-columns: 1fr; }
  .bn-edu-side-badge { display: none; }
  .bn-how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}

@media (max-width: 800px) {
  .container { width: min(100% - 34px, 650px); }
  .site-header .navbar { height: 72px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 14px 20px 19px;
    gap: 3px;
    align-items: stretch;
    flex-direction: column;
    background: var(--bn-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
  }
  .nav-links.is-open { display: flex; }
  .nav-links > a:not(.nav-login):not(.nav-icon-btn),
  .nav-admin > a,
  .nav-admin > span:not(.nav-icon-btn) {
    display: block;
    padding: 9px 4px;
    color: #EAECE8;
  }
  .nav-admin .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: grid;
    box-shadow: none;
    border: 0;
    padding: 4px 0 4px 10px;
    width: auto;
  }
  .bn-hero { min-height: 520px; max-height: none; padding: 115px 0 85px; }
  .bn-hero-grid { padding: 0 38px; }
  .bn-hero-arrow { width: 34px; height: 34px; font-size: 20px; }
  .bn-hero-prev { left: 8px; }
  .bn-hero-next { right: 8px; }
  .bn-hero-location-tag { right: 16px; bottom: 52px; font-size: 11.5px; padding: 6px 12px; }
  .bn-species-cards { grid-template-columns: 1fr; }
  .bn-empty-cream { min-height: 150px; }
  .tree-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .detail-layout, .article-read-layout { grid-template-columns: 1fr; gap: 28px; }
  .detail-sidebar { position: static; order: -1; }
}

@media (max-width: 560px) {
  .tree-grid, .news-grid, .footer-grid-2, .form-grid, .gallery-grid, .bn-how-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .bn-how-card { text-align: center; }
  .image-manage-grid { grid-template-columns: 1fr 1fr; }
}
/* =========================================================
   TỔNG QUAN DỰ ÁN KHPEDIA (NGAY DƯỚI HERO)
   ========================================================= */
#tong-quan-du-an {
  scroll-margin-top: 84px;
}

.bn-overview-section {
  background-color: var(--bn-cream);
  padding: 56px 0 16px;
}

.bn-overview-box {
  background: var(--bn-cream-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 44px;
  box-shadow: 0 12px 34px rgba(16, 48, 32, 0.06);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
}

.bn-overview-left .bn-serif-h2 {
  font-size: clamp(1.75rem, 2.9vw, 2.35rem);
  margin-bottom: 16px;
  color: var(--bn-dark);
}

.bn-overview-lead {
  font-size: 15.5px;
  color: var(--bn-ink);
  line-height: 1.72;
  margin-bottom: 12px;
}

.bn-overview-text {
  font-size: 14.5px;
  color: var(--bn-muted);
  line-height: 1.72;
  margin: 0;
}

.bn-overview-pillars {
  display: grid;
  gap: 16px;
}

.bn-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--bn-cream);
  border: 1px solid rgba(21, 62, 41, 0.09);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bn-pillar-item:hover {
  transform: translateX(4px);
  border-color: rgba(31, 122, 76, 0.35);
}

.bn-pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(31, 122, 76, 0.14);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.bn-pillar-item h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--bn-dark);
  margin: 0 0 4px;
}

.bn-pillar-item p {
  font-size: 13.5px;
  color: var(--bn-muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 920px) {
  .bn-overview-box {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 28px;
  }
}

.brand img,
.footer-brand-top img,
.auth-logo {
  border-radius: 50%;
  background-color: #FFFFFF;
  padding: 2px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
/* =========================================================
   ĐỒNG BỘ TÔNG XANH RỪNG ĐẬM CHO TOÀN BỘ CÁC TRANG CON
   ========================================================= */
.site-header {
  background: #102E1F !important;
  border-bottom: 1px solid rgba(124, 224, 170, 0.16) !important;
  box-shadow: 0 8px 24px rgba(8, 24, 16, 0.22);
}

.page-banner {
  background:
    radial-gradient(circle at 82% 28%, rgba(46, 158, 102, 0.22), transparent 48%),
    linear-gradient(135deg, #0D261A 0%, #102E1F 55%, #163D29 100%) !important;
}

.detail-top {
  background: linear-gradient(180deg, #E3EFE7 0%, #EDF4EF 100%) !important;
}

.btn-primary,
.bn-btn-orange,
.search-form button {
  background: linear-gradient(135deg, #164930, #102E1F) !important;
  box-shadow: 0 8px 20px rgba(16, 46, 31, 0.24) !important;
}

.btn-primary:hover,
.bn-btn-orange:hover,
.search-form button:hover {
  background: linear-gradient(135deg, #1E6140, #153E29) !important;
}

.filter-pill.active {
  background: #102E1F !important;
  border-color: #102E1F !important;
  color: #FAF6EE !important;
}

.eyebrow-green,
.card-kicker,
.news-meta {
  color: #153E29 !important;
}
/* =========================================================
   KHUNG ẢNH GIÁO DỤC ĐỊA PHƯƠNG ÔM TRỌN ẢNH GỐC KHÔNG CẮT MÉP
   ========================================================= */
.bn-edu-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 114px !important;
  gap: 36px !important;
  align-items: center !important;
}

.bn-edu-card-photo {
  aspect-ratio: auto !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 36px rgba(16, 46, 31, 0.16) !important;
}

.bn-edu-card-photo img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 1050px) {
  .bn-edu-grid {
    grid-template-columns: 1fr !important;
  }
}
/* =========================================================
   GIỮ TIÊU ĐỀ "GIÁO DỤC ĐỊA PHƯƠNG" LUÔN NẰM TRÊN 1 DÒNG
   ========================================================= */
.bn-edu-copy .bn-serif-h2 {
  white-space: nowrap;
  font-size: clamp(1.5rem, 2.35vw, 2.15rem) !important;
}

@media (max-width: 560px) {
  .bn-edu-copy .bn-serif-h2 {
    white-space: normal;
  }
}
/* =========================================================
   DÒNG PHỤ ĐỀ NHỎ DƯỚI CHỮ KHPEDIA TRÊN THANH MENU
   ========================================================= */
.kh-brand-wrap {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.kh-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.kh-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #F6F4EE;
  line-height: 1;
}

.kh-brand-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(246, 244, 238, 0.82);
  letter-spacing: 0.01em;
}

/* Ẩn dòng phụ đề trên màn hình điện thoại quá hẹp để không đè lên menu */
@media (max-width: 480px) {
  .kh-brand-sub {
    display: none;
  }
}

/* =========================================================
   CÂN CHỈNH BANNER & NÚT "XEM THỐNG KÊ" TRANG GIÁO DỤC ĐỊA PHƯƠNG
   ========================================================= */
/* 1. Thu gọn chiều cao phần đầu trang (Hero/Banner) cho đồng đều với các trang khác */
.edu-hero,
.education-hero,
.page-hero {
  padding-top: 44px !important;
  padding-bottom: 56px !important;
  min-height: auto !important;
}

/* 2. Tách nút "Xem thống kê" cách xa dòng mô tả phía trên */
.edu-hero p + a,
.edu-hero p + button,
.edu-hero p + .btn,
.education-hero p + a,
.education-hero p + button,
.education-hero p + .btn,
.page-hero p + a,
.page-hero p + button,
.page-hero p + .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px !important;
}