/* ===================================================================
   GreenRoots — Custom stylesheet (sits on top of Bootstrap 5)
   Design tokens: see style-guide.html for full documentation
=================================================================== */

:root {
  /* --- Color tokens ------------------------------------------------ */
  --pine-950: #0f2e1d;
  --pine-800: #16472c;
  --pine-700: #1f5c3d;
  --pine-600: #266f49;
  --moss-500: #4c9a6b;
  --moss-400: #6bb586;
  --lichen-300: #b7d9a8;
  --lichen-100: #e4efd9;
  --bark-600: #7a5c3e;
  --bark-400: #a9835a;
  --clay-500: #c8703f;
  --paper-50: #f7f4ec;
  --paper-100: #f0ead9;
  --ink-900: #1b1b16;
  --ink-600: #4a4a3f;
  --ink-400: #7a7a6c;

  /* --- Typography ---------------------------------------------------*/
  --font-display: "Playfair Display Variable", Georgia, serif;
  --font-body: "Inter Variable", "Segoe UI", Roboto, Arial, sans-serif;

  /* --- Radii / shadow ------------------------------------------------*/
  --radius-organic: 4% 96% 6% 94% / 94% 5% 95% 6%;
  --shadow-soft: 0 20px 60px -25px rgba(15, 46, 29, 0.35);
}

/* ===================================================================
   Base
=================================================================== */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background-color: var(--paper-50);
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: var(--font-display);
  color: var(--pine-950);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-weight: 500; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-500);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--clay-500);
  display: inline-block;
}

a { color: var(--pine-700); text-decoration: none; }
a:hover { color: var(--moss-500); }

::selection { background: var(--lichen-300); color: var(--pine-950); }

.text-moss { color: var(--moss-500) !important; }
.text-pine { color: var(--pine-700) !important; }
.bg-paper { background-color: var(--paper-50) !important; }
.bg-paper-100 { background-color: var(--paper-100) !important; }
.bg-pine { background-color: var(--pine-950) !important; }
.bg-lichen { background-color: var(--lichen-100) !important; }

/* ===================================================================
   Buttons
=================================================================== */
.btn { border-radius: 3px; font-weight: 600; font-size: 0.92rem; padding: 0.72rem 1.6rem; letter-spacing: 0.01em; transition: all .25s ease; }

.btn-pine {
  background-color: var(--pine-700);
  border: 1px solid var(--pine-700);
  color: #fff;
}
.btn-pine:hover { background-color: var(--pine-950); border-color: var(--pine-950); color: #fff; transform: translateY(-2px); }

.btn-outline-pine {
  background-color: transparent;
  border: 1px solid var(--pine-700);
  color: var(--pine-700);
}
.btn-outline-pine:hover { background-color: var(--pine-700); color: #fff; transform: translateY(-2px); }

.btn-clay {
  background-color: var(--clay-500);
  border: 1px solid var(--clay-500);
  color: #fff;
}
.btn-clay:hover { background-color: #a85a2f; border-color: #a85a2f; color: #fff; transform: translateY(-2px); }

.btn-light-outline {
  background-color: transparent;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
}
.btn-light-outline:hover { background-color: #fff; color: var(--pine-950); }

/* ===================================================================
   Navbar
=================================================================== */
.gr-navbar {
  background-color: var(--paper-50);
  border-bottom: 1px solid rgba(15,46,29,0.08);
}

.gr-navbar .navbar-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--pine-950);
  display: flex;
  align-items: center;
  gap: .55rem;
}
.gr-navbar .navbar-brand .brand-mark {
  width: 34px; height: 34px;
  background: var(--pine-700);
  border-radius: var(--radius-organic);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--lichen-300);
}

.gr-navbar .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-900);
  margin: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.gr-navbar .nav-link:hover,
.gr-navbar .nav-link.active { color: var(--pine-700); }

.pro-badge {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(120deg, var(--clay-500), var(--bark-600));
  padding: 0.12rem 0.4rem;
  border-radius: 20px;
  vertical-align: 1px;
  line-height: 1.5;
}

.gr-navbar .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-soft);
  border-radius: 8px;
  padding: 0.6rem;
  margin-top: 0.5rem;
}
.gr-navbar .dropdown-item {
  border-radius: 6px;
  padding: 0.55rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gr-navbar .dropdown-item:hover { background-color: var(--lichen-100); color: var(--pine-950); }

/* ===================================================================
   Hero
=================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
}

.hero-media-wrap {
  position: relative;
}

.hero-media {
  position: relative;
  clip-path: var(--radius-organic);
  overflow: hidden;
  /* min-height: 420px; */
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-stat-chip {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: #fff;
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-soft);
  max-width: 220px;
}

.hero .display-headline {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.08;
}

/* ===================================================================
   Growth ring stat (signature element)
=================================================================== */
.ring-stat { display: flex; align-items: center; gap: 1rem; }
.ring-stat svg { flex: none; }
.ring-stat .ring-value { font-family: var(--font-display); font-size: 1.9rem; color: var(--pine-950); font-weight: 600; }
.ring-stat .ring-label { font-size: 0.82rem; color: var(--ink-600); text-transform: uppercase; letter-spacing: .06em; }

/* ===================================================================
   Cards
=================================================================== */
.cause-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(15,46,29,.08);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
}
.cause-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.cause-card img { height: 210px; object-fit: cover; width: 100%; }
.cause-card .cause-body { padding: 1.4rem; }

.progress.gr-progress { height: 6px; border-radius: 10px; background-color: var(--paper-100); }
.progress.gr-progress .progress-bar { background-color: var(--moss-500); }

.blog-card { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid rgba(15,46,29,.08); height: 100%; transition: transform .3s ease; }
.blog-card:hover { transform: translateY(-6px); }
.blog-card img { height: 220px; object-fit: cover; width: 100%; }
.blog-card .blog-body { padding: 1.5rem; }
.blog-meta { font-size: 0.78rem; color: var(--ink-400); text-transform: uppercase; letter-spacing: .05em; }
.blog-tag { display: inline-block; background: var(--lichen-100); color: var(--pine-700); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 0.25rem 0.65rem; border-radius: 20px; }

/* ===================================================================
   Sections
=================================================================== */
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }

.divider-leaf { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: 0 0 1rem; color: var(--moss-500); }
.divider-leaf::before, .divider-leaf::after { content: ""; height: 1px; width: 48px; background: rgba(15,46,29,.15); }

.testimonial-card { background: #fff; border-radius: 10px; padding: 2rem; height: 100%; border: 1px solid rgba(15,46,29,.08); }
.testimonial-quote { font-family: var(--font-display); font-size: 1.15rem; color: var(--pine-950); }

.cta-band { background: var(--pine-950); color: #fff; border-radius: 16px; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }

footer.site-footer { background: var(--pine-950); color: rgba(255,255,255,.75); }
footer.site-footer a { color: rgba(255,255,255,.75); }
footer.site-footer a:hover { color: var(--lichen-300); }
footer.site-footer h6 { color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: 0.85rem; }

.social-dot {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.social-dot:hover { background: var(--moss-500); border-color: var(--moss-500); }

/* Breadcrumb / page header */
.page-header {
  background: var(--pine-950);
  color: #fff;
  padding: 6.5rem 0 4rem;
  position: relative;
}
.page-header .breadcrumb-item, .page-header .breadcrumb-item a { color: rgba(255,255,255,.65); font-size: 0.85rem; }
.page-header .breadcrumb-item.active { color: #fff; }
.page-header h1 { color: #fff; }

/* Team */
.team-card { text-align: center; }
.team-card img { border-radius: var(--radius-organic); width: 100%; height: 280px; object-fit: cover; margin-bottom: 1.1rem; }
.team-card h5 { margin-bottom: 0.15rem; }
.team-card .role { color: var(--moss-500); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

/* Timeline */
.timeline { position: relative; padding-left: 2.2rem; border-left: 2px dashed var(--lichen-300); }
.timeline-item { position: relative; padding-bottom: 2.6rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -2.55rem; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--moss-500); border: 3px solid var(--paper-50); box-shadow: 0 0 0 2px var(--moss-500);
}
.timeline-year { font-family: var(--font-display); color: var(--pine-700); font-size: 1.2rem; }

/* Blog single */
.article-content p { color: var(--ink-600); margin-bottom: 1.4rem; }
.article-content blockquote {
  border-left: 3px solid var(--clay-500);
  padding: 0.4rem 0 0.4rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--pine-950);
  margin: 2rem 0;
}
.article-content h2, .article-content h3 { margin-top: 2.2rem; margin-bottom: 1rem; }

.sidebar-widget { background: #fff; border: 1px solid rgba(15,46,29,.08); border-radius: 10px; padding: 1.6rem; margin-bottom: 1.8rem; }
.sidebar-widget h6 { text-transform: uppercase; font-size: 0.8rem; letter-spacing: .06em; color: var(--pine-950); margin-bottom: 1.1rem; }
.post-list-mini { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.post-list-mini img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.post-list-mini .title { font-size: 0.88rem; font-weight: 600; color: var(--pine-950); line-height: 1.3; }
.post-list-mini .date { font-size: 0.75rem; color: var(--ink-400); }

.tag-pill { display: inline-block; border: 1px solid rgba(15,46,29,.15); font-size: 0.78rem; padding: 0.3rem 0.75rem; border-radius: 20px; margin: 0 0.4rem 0.4rem 0; color: var(--ink-600); }
.tag-pill:hover { background: var(--lichen-100); color: var(--pine-700); }

.author-box { background: var(--lichen-100); border-radius: 10px; padding: 1.6rem; display: flex; gap: 1.2rem; align-items: center; }
.author-box img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }

.comment-item img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }

/* Contact */
.contact-info-card { background: #fff; border: 1px solid rgba(15,46,29,.08); border-radius: 10px; padding: 1.6rem; height: 100%; }
.contact-info-card .icon-wrap {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--lichen-100); color: var(--pine-700);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.2rem;
}
.form-control, .form-select {
  border-radius: 4px;
  border: 1px solid rgba(15,46,29,.18);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--moss-500);
  box-shadow: 0 0 0 3px rgba(76,154,107,.18);
}
.map-frame { border-radius: 12px; overflow: hidden; filter: grayscale(35%); }

/* Newsletter */
.newsletter-input { border-radius: 30px 0 0 30px !important; border-right: none; }
.newsletter-btn { border-radius: 0 30px 30px 0 !important; }

/* Pagination */
.gr-pagination .page-link { border: none; color: var(--ink-600); border-radius: 50% !important; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; margin: 0 3px; }
.gr-pagination .page-item.active .page-link { background: var(--pine-700); color: #fff; }

/* Back to top */
#backToTop {
    position: fixed;
    right: 24px;
    bottom: 92px;   /* ngay trên nút chatbot */
    z-index: 999;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #ffffff;
    color: var(--pine-700);
    border: 1px solid rgba(15, 46, 29, .12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    box-shadow: 0 10px 30px rgba(15, 46, 29, .16), 0 2px 6px rgba(15, 46, 29, .08);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

#backToTop i {
    font-size: 16px;
    line-height: 1;
}

#backToTop span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background: var(--pine-700);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Style guide swatches */
.swatch { border-radius: 10px; height: 90px; margin-bottom: .6rem; border: 1px solid rgba(0,0,0,.06); }
.swatch-label { font-size: 0.8rem; font-weight: 600; }
.swatch-hex { font-size: 0.76rem; color: var(--ink-400); font-family: monospace; }
.type-row { border-bottom: 1px dashed rgba(15,46,29,.15); padding: 1.6rem 0; }

@media (max-width: 767.98px) {
  .section { padding: 3.5rem 0; }
  .hero { padding-top: 2rem; }
  .hero-stat-chip { position: static; margin-top: 1.5rem; max-width: 100%; }
}

/* ===== PAGE LOADER ===== */
.page-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    max-width: 140px;
    max-height: 80px;
    object-fit: contain;
}

/* Vòng tròn quay bên dưới logo */
.loader-spinner {
    width: 40px;
    height: 40px;
    margin-top: 24px;
    border: 3px solid #e8ebe6;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tối ưu nền tối nếu cần */
@media (prefers-color-scheme: dark) {
    .page-loader {
        background: #111827;
    }
    .loader-spinner {
        border-color: #374151;
        border-top-color: #34d399;
    }
}

/* ==============================================
   SLIDER CHUNG — Dùng cho mọi danh sách trượt
   ============================================== */
.slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 24px;
  padding: 10px 0 30px;
}
.slider-item {
  flex: 0 0 calc(33.333% - 16px);
  min-width: calc(33.333% - 16px);
}

/* Responsive */
@media (max-width: 991px) {
  .slider-item {
    flex: 0 0 calc(50% - 12px);
    min-width: calc(50% - 12px);
  }
}
@media (max-width: 575px) {
  .slider-item {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

/* Nút điều hướng & chấm */
.slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #374151;
  padding: 0;
  transition: all 0.2s;
}
.slider-btn:hover {
  background: #285e3f;
  color: #fff;
  border-color: #285e3f;
}
.slider-dots {
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.slider-dot.active {
  background: #285e3f;
  transform: scale(1.4);
}

/* ==============================================
   TRANG SỰ KIỆN — event styles
   ============================================== */
/* ===== Page Header ===== */
.event-page-header {
    background: linear-gradient(135deg, var(--pine-950) 0%, var(--pine-700) 100%);
    padding: 5rem 0 6.5rem;
    position: relative;
    overflow: hidden;
}
.event-page-header::before {
    content: '';
    position: absolute;
    top: 0; 
    right: 0;
    width: 50%; 
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='600' height='400' viewBox='0 0 600 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M350,0 L600,0 L600,400 L450,400 C400,280 380,120 350,0 Z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E") no-repeat right bottom;
    opacity: 0.5;
}
.event-page-header .container { 
    position: relative; 
    z-index: 2; 
}
.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.event-page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}
.event-page-header p {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0;
}

/* ===== Events Section ===== */
.events-section {
    padding: 4rem 0 5rem;
    background: var(--paper-50);
}

/* ===== Event Card ===== */
.event-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(15,46,29,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px -25px rgba(15, 46, 29, 0.12);
}
.event-card-badge {
    position: absolute;
    top: 1rem; 
    left: 1rem;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 3px;
    z-index: 2;
}
/* Sự kiện trong năm hiện tại */
.event-badge-new {
    background: var(--moss-500);
    color: #fff;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
}
.event-badge-new::before {
    content: "🔥";
    font-size: 14px;
    font-weight: 600;
}
/* Sự kiện năm trước */
.event-badge-old {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.event-badge-old::before {
    content: "✓";
    font-size: 14px;
    font-weight: 600;
}
.event-card-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: var(--lichen-100);
}
.event-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.event-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}
.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--ink-400);
}
.event-meta-item i {
    color: var(--moss-500);
    font-size: 0.9rem;
}
.event-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pine-950);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}
.event-card-desc {
    font-size: 0.9rem;
    color: var(--ink-600);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}
.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--lichen-100);
}
.event-location {
    font-size: 0.85rem;
    color: var(--ink-400);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.event-link {
    color: var(--pine-700);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s ease;
}
.event-link:hover {
    gap: 0.6rem;
    color: var(--pine-950);
}

/* ==============================================
   TRANG CHI TIẾT SỰ KIỆN — Event Single Styles
   ============================================== */

/* ===== BREADCRUMB ===== */
.event-breadcrumb-wrap {
    padding: 20px 0;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.event-breadcrumb {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}
.event-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.event-breadcrumb a {
    color: var(--pine-700);
    text-decoration: none;
    transition: color 0.2s;
}
.event-breadcrumb a:hover {
    color: var(--pine-950);
    text-decoration: underline;
}

/* ===== HERO BANNER ===== */
.event-single-hero {
    background: linear-gradient(135deg, var(--pine-950) 0%, var(--pine-700) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.event-single-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='600' height='400' viewBox='0 0 600 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M350,0 L600,0 L600,400 L450,400 C400,280 380,120 350,0 Z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E") no-repeat right bottom;
    opacity: 0.5;
}
.event-single-hero-overlay {
    position: relative;
    z-index: 1;
}
.event-single-hero-content {
    max-width: 800px;
}
.event-single-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}
.event-single-badge::before {
    content: "🔥";
    margin-right: 6px;
}
.event-single-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}
.event-single-hero p {
    font-size: 18px;
    color: #dcfce7;
    line-height: 1.6;
    max-width: 700px;
}

/* ===== MAIN LAYOUT ===== */
.event-single-section {
    padding: 60px 0;
    background: var(--paper-50);
}
.event-single-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
}

/* ===== NỘI DUNG CHÍNH ===== */
.event-single-content h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--pine-950);
    margin: 40px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--lichen-100);
}
.event-single-content h2:first-child {
    margin-top: 0;
}
.event-single-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-600);
    margin-bottom: 16px;
}
.event-single-content ul {
    margin: 0 0 24px 24px;
    padding: 0;
}
.event-single-content li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-600);
    margin-bottom: 8px;
}
.event-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 12px 0 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ===== SIDEBAR ===== */
.event-sidebar-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(15,46,29,0.08);
    padding: 24px;
    margin-bottom: 24px;
}
.event-sidebar-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--pine-950);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--lichen-100);
}
.event-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}
.event-info-item:last-child {
    margin-bottom: 0;
}
.event-info-icon {
    width: 40px;
    height: 40px;
    background: #f0fdf4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--moss-500);
    font-size: 18px;
    flex-shrink: 0;
}
.event-info-label {
    font-size: 13px;
    color: var(--ink-400);
    margin-bottom: 4px;
}
.event-info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--pine-950);
}

/* ===== SỰ KIỆN LIÊN QUAN ===== */
.event-related-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--lichen-100);
}
.event-related-section h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--pine-950);
    margin-bottom: 24px;
}
.event-related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.event-related-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(15,46,29,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.event-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.event-related-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.event-related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.event-related-card-body {
    padding: 16px;
}
.event-related-card-date {
    font-size: 13px;
    color: var(--ink-400);
    margin-bottom: 8px;
}
.event-related-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--pine-950);
    margin: 0;
    line-height: 1.4;
}

/* ===== NÚT ĐIỀU HƯỚNG ===== */
.event-nav-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--lichen-100);
}
.event-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--lichen-100);
    border-radius: 8px;
    color: var(--pine-700);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.event-nav-link:hover {
    background: var(--paper-50);
    border-color: var(--moss-300);
    color: var(--pine-950);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .event-single-grid {
        grid-template-columns: 1fr;
    }
    .event-related-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 767px) {
    .event-page-header h1 { font-size: 1.8rem; }
    .event-page-header { padding: 3rem 0 5rem; }
    .events-section { padding: 2.5rem 0 3rem; }
    
    .event-single-hero {
        padding: 40px 0;
    }
    .event-single-hero h1 {
        font-size: 1.8rem;
    }
    .event-single-hero p {
        font-size: 15px;
    }
    .event-single-section {
        padding: 40px 0;
    }
    .event-nav-bottom {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .event-nav-link {
        justify-content: center;
    }
}

/* === Slider Đội ngũ - KHỚP VỚI MẪU GỐC 100% === */
#slider-team .slider-track {
  display: flex;
  gap: 0;              /* ← Bỏ gap mặc định của slider chung */
  padding: 10px 0 40px;
  align-items: flex-start;
}

#slider-team .slider-item {
  flex: 0 0 25%;       /* 4 cột = 25% */
  min-width: 25%;      /* ← THÊM DÒNG NÀY để khớp */
  padding: 0 12px;     /* Khoảng cách giữa các thẻ = dùng padding thay cho gap */
}

@media (max-width: 991px) {
  #slider-team .slider-item {
    flex: 0 0 50%;     /* 2 cột trên tablet */
    min-width: 50%;
  }
}

@media (max-width: 575px) {
  #slider-team .slider-item {
    flex: 0 0 100%;    /* 1 cột trên di động */
    min-width: 100%;
  }
}

/* ---------- MẠNG XÃ HỘI — Vertical Pill Bar ---------- */
:root {
    --w-brand: var(--pine-700);
    --w-brand-2: var(--moss-500);
    --w-brand-soft: var(--lichen-100);
    --w-ink: #23312b;
    --w-muted: var(--ink-400);
    --w-line: rgba(15, 46, 29, .12);
    --w-shadow: 0 10px 30px rgba(15, 46, 29, .16), 0 2px 6px rgba(15, 46, 29, .08);
}

.social-sidebar {
    position: fixed;
    left: 22px;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--w-line);
    border-radius: 24px;
    box-shadow: var(--w-shadow);
}

a.social-link,
a.social-link:link,
a.social-link:visited {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--c, var(--w-brand)) !important;
    background: transparent;
    text-decoration: none !important;
    transition: all .25s ease;
}

a.social-link:hover,
a.social-link:focus-visible {
    background: var(--c, var(--w-brand));
    color: #fff !important;
    transform: scale(1.05);
    outline: none;
}

.social-zalo     { --c: #0068ff; }
.social-facebook { --c: #1877f2; }
.social-youtube  { --c: #e62117; }
.social-phone    { --c: var(--w-brand); }

.zalo-letter {
    font: 800 16px/1 "Segoe UI", Arial, sans-serif;
    letter-spacing: -.5px;
}

/* Nhãn hiện khi rê chuột */
a.social-link::after {
    content: attr(aria-label);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translate(-4px, -50%);
    padding: 5px 10px;
    background: var(--w-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
a.social-link:hover::after,
a.social-link:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
}

/* Hotline: vòng sóng nhẹ */
a.social-phone::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--w-brand);
    animation: w-ring 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes w-ring {
    0%   { transform: scale(1);   opacity: .5; }
    80%  { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- NÚT MỞ CHATBOT (dạng viên thuốc "Chat ngay") ---------- */
.chatbot-toggle-btn {
    position: fixed;
    right: 24px;
    bottom: 30px;
    z-index: 998;
    height: 52px;
    padding: 0 22px 0 18px;
    border: none;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
    color: #fff;
    background: linear-gradient(145deg, var(--w-brand-2), var(--w-brand));
    box-shadow: 0 10px 24px rgba(31, 92, 61, .38);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}
.chatbot-toggle-btn i { font-size: 20px; line-height: 1; }
.chatbot-toggle-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--w-brand-2);
    opacity: .45;
    z-index: -1;
    animation: w-pulse 2.6s ease-out infinite;
}
.chatbot-toggle-btn::after {            /* chấm báo */
    content: "";
    position: absolute;
    top: -2px;
    right: 6px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--clay-500);
    border: 2px solid #fff;
}
.chatbot-toggle-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(31, 92, 61, .45); }
@keyframes w-pulse {
    0%   { transform: scale(1);    opacity: .4; }
    70%  { transform: scale(1.18, 1.45); opacity: 0; }
    100% { transform: scale(1.18, 1.45); opacity: 0; }
}

/* ---------- BONG BÓNG CHÀO (tự hiện sau vài giây) ---------- */
.chatbot-teaser {
    position: fixed;
    right: 24px;
    bottom: 168px;   /* nằm trên nút Top */
    z-index: 997;
    width: 310px;
    max-width: calc(100vw - 48px);
    padding: 14px 16px 16px;
    background: #fff;
    border: 1px solid var(--w-line);
    border-radius: 18px 18px 6px 18px;
    box-shadow: 0 18px 44px rgba(15, 46, 29, .2), 0 3px 8px rgba(15, 46, 29, .08);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    animation: w-teaser .5s ease 2.5s forwards;
}
.chatbot-window.open ~ .chatbot-teaser,
.chatbot-teaser.is-hidden { display: none; }
@keyframes w-teaser { to { opacity: 1; transform: none; } }

.teaser-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; padding-right: 22px; }
.teaser-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--w-brand);
    color: #fff;
    font-size: 14px;
}
.teaser-name { font-size: 13.5px; font-weight: 600; color: var(--w-ink); }
.teaser-tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--w-brand);
    background: var(--w-brand-soft);
    padding: 2px 8px;
    border-radius: 999px;
}
.teaser-text { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--w-ink); }
.teaser-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.teaser-chips button {
    padding: 6px 13px;
    border: 1px solid var(--clay-500);
    border-radius: 999px;
    background: #fff;
    color: var(--clay-500);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.teaser-chips button:hover { background: var(--clay-500); color: #fff; }
.teaser-close {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--w-muted);
    font-size: 12px;
    cursor: pointer;
}
.teaser-close:hover { background: #f1f3f2; color: var(--w-ink); }

/* ---------- KHUNG CHAT ---------- */
.chatbot-window {
    position: fixed;
    right: 24px;
    bottom: 96px;
    width: 580px;
    height: 500px;
    max-width: calc(100vw - 32px);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--w-line);
    box-shadow: 0 24px 60px rgba(20, 50, 36, .22), 0 4px 12px rgba(20, 50, 36, .08);
    z-index: 999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.97);
    transform-origin: bottom right;
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
.chatbot-window.open { opacity: 1; visibility: visible; transform: none; }

.chatbot-container { display: flex; width: 100%; height: 100%; }

/* Danh sách chủ đề (trái) */
.chatbot-sidebar {
    width: 210px;
    min-width: 190px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #f7f9f8;
    border-right: 1px solid var(--w-line);
}
.sidebar-header { padding: 18px 16px 10px; }
.sidebar-header h6 {
    font-family: var(--font-body);
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--w-muted);
}
.sidebar-options {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 10px 12px;
    overflow-y: auto;
}
.option-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--w-ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.option-btn i {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--w-brand-soft);
    color: var(--w-brand);
    font-size: 15px;
    transition: background .2s ease, color .2s ease;
}
.option-btn:hover,
.option-btn.active {
    background: #fff;
    border-color: var(--w-line);
    box-shadow: 0 2px 8px rgba(20, 50, 36, .07);
}
.option-btn:hover i,
.option-btn.active i { background: var(--w-brand); color: #fff; }

/* Khu hội thoại (phải) */
.chatbot-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.chatbot-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #fff;
    background: linear-gradient(135deg, #1b5239 0%, #2f8f63 100%);
}
.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--w-brand);
    font-size: 19px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}
.chatbot-title h6 { margin: 0; font-family: var(--font-body); font-size: 15px; font-weight: 700; color: #fff; }
.chatbot-title span {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, .88);
}
.chatbot-title span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5cf29a;
    box-shadow: 0 0 0 3px rgba(92, 242, 154, .25);
}
.chatbot-close {
    margin-left: auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s ease;
}
.chatbot-close:hover { background: rgba(255, 255, 255, .28); }

.chatbot-content {
    flex: 1 1 0;
    min-height: 0;
    padding: 18px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: #fbfcfb;
    scrollbar-width: thin;
    scrollbar-color: #c9d3ce transparent;
}
.chatbot-content::-webkit-scrollbar { width: 5px; }
.chatbot-content::-webkit-scrollbar-thumb { background: #c9d3ce; border-radius: 3px; }

.message { display: flex; margin-bottom: 14px; animation: w-in .28s ease both; }
.message.bot  { justify-content: flex-start; }
.message.user { justify-content: flex-end; }
@keyframes w-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.message-bubble {
    max-width: 92%;
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
}
.bot .message-bubble {
    background: #fff;
    color: var(--w-ink);
    border: 1px solid var(--w-line);
    border-bottom-left-radius: 5px;
    box-shadow: 0 1px 3px rgba(20, 50, 36, .05);
}
.user .message-bubble {
    background: linear-gradient(135deg, var(--w-brand-2), var(--w-brand));
    color: #fff;
    border-bottom-right-radius: 5px;
}

/* --- Nội dung trả lời của bot --- */
.message-bubble a { color: var(--w-brand); font-weight: 600; text-decoration: none; }
.message-bubble a:hover { text-decoration: underline; }

.rp-title { font-size: 15px; font-weight: 700; color: var(--pine-950); margin-bottom: 6px; }
.rp-lead { margin: 0 0 10px; font-size: 14px; line-height: 1.55; }
.rp-note {
    margin-top: 10px;
    padding: 9px 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-600);
    background: var(--w-brand-soft);
    border-radius: 10px;
}

.rp-list, .rp-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.rp-list li, .rp-steps li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.5; }
.rp-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--w-brand-soft);
    color: var(--w-brand);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.rp-steps { counter-reset: step; }
.rp-steps li { counter-increment: step; }
.rp-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--w-brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.rp-rows { margin: 0; }
.rp-rows > div { display: flex; gap: 12px; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--w-line); font-size: 14px; line-height: 1.45; }
.rp-rows > div:last-child { border-bottom: none; }
.rp-rows dt { flex: 0 0 42%; margin: 0; font-weight: 500; color: var(--w-muted); }
.rp-rows dd { flex: 1; min-width: 0; margin: 0; text-align: right; font-weight: 600; color: var(--w-ink); overflow-wrap: break-word; }
.rp-rows dd a { font-weight: 600; }
.rp-rows.rp-stack > div { flex-direction: column; gap: 1px; }
.rp-rows.rp-stack dt { flex: none; font-size: 12.5px; }
.rp-rows.rp-stack dd { text-align: left; }

.rp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.message-bubble a.rp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border: 1px solid var(--w-brand);
    border-radius: 999px;
    background: var(--w-brand);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.message-bubble a.rp-btn:hover { background: var(--pine-950); border-color: var(--pine-950); text-decoration: none; }
.message-bubble a.rp-btn.rp-btn-outline { background: #fff; color: var(--w-brand); }
.message-bubble a.rp-btn.rp-btn-outline:hover { background: var(--w-brand); color: #fff; }

/* Đang soạn tin */
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9bb0a5; animation: w-typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes w-typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- ĐIỆN THOẠI ---------- */
@media (max-width: 600px) {
    .social-sidebar {
        left: 12px;
        bottom: 20px;
        padding: 4px;
        border-radius: 20px;
    }
    a.social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    a.social-link::after {
        display: none;
    }

    .chatbot-toggle-btn { right: 14px; bottom: 16px; height: 48px; padding: 0 18px 0 15px; font-size: 14px; }
    .chatbot-teaser { right: 14px; bottom: 152px; }
    .chatbot-window {
        right: 12px;
        left: 12px;
        bottom: 76px;
        width: auto;
        height: 76vh;
        max-height: 76vh;
    }
    .chatbot-content {
        flex: 1 1 0;
        min-height: 0;
        max-height: none;
    }
    .chatbot-container { flex-direction: column; }
    .chatbot-sidebar {
        width: 100%;
        min-width: 0;
        max-height: 128px;
        border-right: none;
        border-bottom: 1px solid var(--w-line);
    }
    .sidebar-header { padding: 10px 14px 4px; }
    .sidebar-options { flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 4px 12px 10px; }
    .option-btn { width: calc(50% - 3px); padding: 6px 8px; font-size: 12.5px; border-color: var(--w-line); background: #fff; }
    .option-btn i { width: 26px; height: 26px; font-size: 14px; }
    .message-bubble { max-width: 92%; }
}
@media (min-width: 601px) and (max-width: 900px) {
    .chatbot-window { width: 500px; height: 470px; }
    .chatbot-sidebar { width: 185px; min-width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
    a.social-phone::before, .chatbot-toggle-btn::before, .message, .typing i { animation: none; }
    .chatbot-teaser { animation: none; opacity: 1; transform: none; }
}