/* ==============================================================================
   HỆ THỐNG CSS GIAO DIỆN MOBILE-FIRST & ACCESSIBILITY (TONGHOIYHOC PORTAL)
   ============================================================================== */
:root {
  --thyh-primary: #065f46;
  --thyh-primary-dark: #044e39;
  --thyh-primary-light: #059669;
  --thyh-accent: #d97706;
  --thyh-bg-page: #f8fafc;
  --thyh-card-bg: #ffffff;
  --thyh-text-main: #0f172a;
  --thyh-text-muted: #475569;
  --thyh-border: #e2e8f0;
  --thyh-radius: 10px;
}

#tonghoiyhoc-wp-app.thyh-portal-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--thyh-text-main);
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 12px 2rem;
  line-height: 1.7;
}

#tonghoiyhoc-wp-app * {
  box-sizing: border-box;
}

/* 1. HERO SECTION MOBILE-FIRST */
.thyh-hero-section {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #047857 100%);
  color: #ffffff;
  border-radius: var(--thyh-radius);
  padding: 2.2rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(6, 95, 70, 0.15);
  position: relative;
  overflow: hidden;
}

.thyh-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: #a7f3d0;
}

.thyh-hero-title {
  color: #ffffff !important;
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.thyh-hero-subtitle {
  color: #e6fffa;
  font-size: 0.98rem;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* THANH TÌM KIẾM HERO */
.thyh-hero-search-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.thyh-hero-search-bar {
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  align-items: center;
}

.thyh-search-icon {
  padding: 0 10px;
  font-size: 1.2rem;
}

.thyh-hero-input {
  flex: 1;
  border: none;
  font-size: 1rem;
  padding: 10px 8px;
  outline: none;
  color: #0f172a;
  background: transparent;
}

.thyh-hero-search-btn {
  background: var(--thyh-primary);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px; /* WCAG Target touch size */
}

.thyh-hero-search-btn:hover {
  background: var(--thyh-primary-dark);
}

/* GỢI Ý TỪ KHÓA */
.thyh-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  font-size: 0.85rem;
}

.thyh-tag-label {
  color: #a7f3d0;
  font-weight: 600;
}

.thyh-tag-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s;
}

.thyh-tag-btn:hover {
  background: #ffffff;
  color: var(--thyh-primary-dark);
}

/* SỐ LIỆU DB REALTIME */
.thyh-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.2rem;
}

.thyh-stat-item {
  text-align: center;
}

.thyh-stat-number {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fde047; /* Vàng nghệ nổi bật */
  line-height: 1.2;
}

.thyh-stat-label {
  font-size: 0.75rem;
  color: #e6fffa;
  margin-top: 2px;
}

/* 2. CỔNG TRI THỨC YHCT (PORTALS) */
.thyh-section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.thyh-section-header h2 {
  color: var(--thyh-primary);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.thyh-section-header p {
  color: var(--thyh-text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.thyh-portals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 2.2rem;
}

.thyh-portal-card {
  background: #ffffff;
  border: 1px solid var(--thyh-border);
  border-radius: var(--thyh-radius);
  padding: 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.thyh-portal-card:hover {
  transform: translateY(-3px);
  border-color: var(--thyh-primary-light);
  box-shadow: 0 8px 16px rgba(6, 95, 70, 0.1);
}

.thyh-portal-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.thyh-portal-info h3 {
  color: var(--thyh-primary-dark);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.thyh-portal-info p {
  color: var(--thyh-text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0 0 10px;
  flex: 1;
}

.thyh-portal-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--thyh-primary);
}

/* 3. TABS VÀ CẢNH BÁO Y TẾ */
.thyh-notice-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  font-size: 0.86rem;
  color: #92400e;
  line-height: 1.5;
}

.thyh-notice-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* THANH ĐIỀU HƯỚNG TAB 3D CHUYÊN NGHIỆP CÂN XỨNG & GÂY CHÚ Ý */
.thyh-nav-tabs-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 2rem;
  padding: 6px 4px;
}

.thyh-nav-tabs-scroll::-webkit-scrollbar {
  height: 4px;
}
.thyh-nav-tabs-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.thyh-nav-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid #d8e2dc;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(6, 95, 70, 0.06);
  width: 100%;
  box-sizing: border-box;
}

.thyh-tab-btn {
  flex: 1;
  min-width: 140px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-bottom: 3px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 46px;
  user-select: none;
}

.thyh-tab-btn:hover {
  color: #065f46;
  background: #f0fdf4;
  border-color: #86efac;
  border-bottom-color: #4ade80;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(6, 95, 70, 0.12);
}

.thyh-tab-btn.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%) !important;
  border: 1px solid #064e3b !important;
  border-bottom: 3px solid #022c22 !important;
  box-shadow: 0 6px 18px rgba(6, 95, 70, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px);
}

/* NÚT AI RAG NỔI BẬT ĐẶC BIỆT (3D SPECIAL ACCENT) */
.thyh-tab-btn-ai {
  position: relative;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
  border: 1.5px solid #34d399 !important;
  border-bottom: 3px solid #059669 !important;
  color: #065f46 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.18) !important;
}

.thyh-tab-btn-ai:hover {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
  border-color: #10b981 !important;
  border-bottom-color: #047857 !important;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28) !important;
  transform: translateY(-2px);
}

.thyh-tab-btn-ai.active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #064e3b !important;
  border-bottom: 3px solid #022c22 !important;
  box-shadow: 0 8px 22px rgba(6, 95, 70, 0.35) !important;
}

@media (max-width: 900px) {
  .thyh-nav-tabs {
    justify-content: flex-start;
    width: max-content;
  }
  .thyh-tab-btn {
    flex: none;
  }
}

.thyh-tab-panel {
  display: none;
}

.thyh-tab-panel.active {
  display: block;
}

/* KHỐI KẾT QUẢ TÌM KIẾM */
.thyh-results-wrapper {
  min-height: 160px;
}

.thyh-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--thyh-radius);
  color: var(--thyh-text-muted);
}

.thyh-empty-state h4 {
  color: var(--thyh-primary);
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.thyh-empty-state p {
  font-size: 0.9rem;
  margin: 0;
}

/* THẺ BÀI VIẾT TÌM KIẾM */
.thyh-card {
  background: #ffffff;
  border: 1px solid var(--thyh-border);
  border-radius: var(--thyh-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.thyh-badge {
  display: inline-block;
  padding: 3px 8px;
  background: #ecfdf5;
  color: #047857;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.thyh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  border: none;
  transition: background 0.15s;
}

.thyh-btn-primary {
  background: var(--thyh-primary);
  color: #ffffff;
}

.thyh-btn-primary:hover {
  background: var(--thyh-primary-dark);
}

.thyh-btn-outline {
  background: transparent;
  border: 1.5px solid var(--thyh-primary);
  color: var(--thyh-primary);
}

.thyh-btn-outline:hover {
  background: #ecfdf5;
}

/* BIỂU MẪU */
.thyh-form-card {
  background: #ffffff;
  border: 1px solid var(--thyh-border);
  border-radius: var(--thyh-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.thyh-card-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
  margin-bottom: 1.2rem;
}

.thyh-card-header h3 {
  color: var(--thyh-primary-dark);
  font-size: 1.2rem;
  margin: 0 0 4px;
}

.thyh-card-header p {
  color: var(--thyh-text-muted);
  font-size: 0.88rem;
  margin: 0;
}

.thyh-form-group {
  margin-bottom: 1rem;
}

.thyh-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #334155;
}

.thyh-form-group .required {
  color: #ef4444;
}

.thyh-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

.thyh-input:focus {
  outline: none;
  border-color: var(--thyh-primary);
  box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.15);
}

.thyh-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* FOOTER BÁCH KHOA VIỆN HÀN LÂM 4 CỘT CHUYÊN NGHIỆP */
.thyh-portal-footer {
  margin-top: 3.5rem;
  border-top: 2px solid #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 2rem 1.5rem 1rem;
  box-shadow: 0 4px 20px rgba(6, 95, 70, 0.05);
}

.thyh-footer-top-badge {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-bottom: 1.8rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #dcfce7;
}

.thyh-footer-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.thyh-badge-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.thyh-footer-badge-item strong {
  display: block;
  font-size: 0.85rem;
  color: #065f46;
  font-weight: 700;
}

.thyh-footer-badge-item span {
  display: block;
  font-size: 0.74rem;
  color: #166534;
}

.thyh-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 1fr;
  gap: 24px;
  margin-bottom: 2rem;
}

.thyh-footer-col {
  display: flex;
  flex-direction: column;
}

.thyh-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.thyh-footer-title {
  color: #065f46;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #86efac;
  padding-bottom: 6px;
  display: inline-block;
}

.thyh-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thyh-footer-links li a {
  color: #334155;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 0.15s ease;
  display: inline-block;
}

.thyh-footer-links li a:hover {
  color: #059669;
  transform: translateX(4px);
}

.thyh-footer-links li span {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
  display: block;
}

.thyh-footer-bottom-bar {
  border-top: 1px solid #e2e8f0;
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #64748b;
}

/* ==============================================================================
   RESPONSIVE MOBILE BREAKPOINTS (360px - 900px)
   ============================================================================== */
@media (max-width: 900px) {
  .thyh-portals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .thyh-footer-top-badge {
    grid-template-columns: repeat(2, 1fr);
  }
  .thyh-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .thyh-hero-section {
    padding: 1.5rem 1rem;
  }
  .thyh-hero-title {
    font-size: 1.45rem;
  }
  .thyh-hero-subtitle {
    font-size: 0.88rem;
  }
  .thyh-hero-search-bar {
    flex-direction: column;
    padding: 8px;
    gap: 8px;
  }
  .thyh-hero-search-btn {
    width: 100%;
  }
  .thyh-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 12px;
  }
  .thyh-portals-grid {
    grid-template-columns: 1fr;
  }
  .thyh-grid-2 {
    grid-template-columns: 1fr;
  }
  .thyh-footer-top-badge {
    grid-template-columns: 1fr;
  }
  .thyh-footer-grid {
    grid-template-columns: 1fr;
  }
  .thyh-footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* SMART SEARCH AI V2 AUTOCOMPLETE & FACETED FILTERS */
.thyh-search-wrapper {
  position: relative;
  width: 100%;
}

.thyh-clear-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #8c9b90;
  cursor: pointer;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.thyh-clear-btn:hover {
  color: #1f3d2b;
}

.thyh-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(18, 43, 29, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #d4dfd7;
  z-index: 9999;
  overflow: hidden;
  max-height: 480px;
  display: flex;
  flex-direction: column;
}

.thyh-did-you-mean {
  background: #fbf5e6;
  border-bottom: 1px solid #fae8c8;
  padding: 10px 16px;
  font-size: 13.5px;
  color: #633f00;
  display: flex;
  align-items: center;
  gap: 6px;
}

.thyh-did-you-mean-term {
  color: #0b6837;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 1px 4px;
  border-radius: 4px;
}

.thyh-did-you-mean-term:hover {
  background: #e4f3eb;
}

.thyh-suggest-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 6px 0 !important;
  overflow-y: auto;
  max-height: 400px;
}

.thyh-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f4f1;
  transition: background 0.12s ease;
  text-decoration: none !important;
}

.thyh-suggest-item:last-child {
  border-bottom: none;
}

.thyh-suggest-item:hover,
.thyh-suggest-item.is-selected {
  background: #eef6f1;
}

.thyh-suggest-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.thyh-suggest-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f0f5f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.thyh-suggest-title {
  font-weight: 600;
  font-size: 14.5px;
  color: #1a3324;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thyh-search-hl {
  color: #0b6837;
  font-weight: 800;
  text-decoration: underline;
  background: rgba(181, 234, 206, 0.35);
  border-radius: 2px;
  padding: 0 1px;
}

.thyh-suggest-sub {
  font-size: 12px;
  color: #6a7c71;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thyh-suggest-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 12px;
}

.thyh-suggest-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.thyh-badge-duoc-lieu { background: #e6f4ea; color: #137333; }
.thyh-badge-huyet-vi { background: #fef7e0; color: #b06000; }
.thyh-badge-phuong-thuoc { background: #e8f0fe; color: #1a73e8; }
.thyh-badge-benh-hoc { background: #fce8e6; color: #c5221f; }
.thyh-badge-y-an { background: #f3e8fd; color: #7627bb; }
.thyh-badge-default { background: #f1f3f4; color: #5f6368; }

.thyh-suggest-source {
  font-size: 11px;
  color: #8c9b90;
  font-style: italic;
}

/* FACETED FILTERS PANEL */
.thyh-filter-toggle-btn {
  background: #f0f7f3;
  border: 1px solid #c9decb;
  color: #0b6837;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.thyh-filter-toggle-btn:hover {
  background: #e2f0e7;
}

.thyh-faceted-panel {
  background: #fbfdfc;
  border: 1px solid #d4dfd7;
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 14px;
  box-shadow: 0 4px 16px rgba(18, 43, 29, 0.05);
}

.thyh-faceted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.thyh-facet-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #3f5547;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.thyh-facet-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccd8cf;
  border-radius: 6px;
  background: #ffffff;
  font-size: 13px;
  color: #1a3324;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.thyh-facet-select:focus {
  border-color: #0b6837;
  box-shadow: 0 0 0 2px rgba(11, 104, 55, 0.15);
}

.thyh-facet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed #dbe5de;
}

.thyh-facet-reset-btn {
  background: transparent;
  border: 1px solid #ccd8cf;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: #556b5d;
  cursor: pointer;
}

.thyh-facet-reset-btn:hover {
  background: #f3f5f3;
}

.thyh-facet-apply-btn {
  background: #0b6837;
  border: 1px solid #0b6837;
  color: #ffffff;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.thyh-facet-apply-btn:hover {
  background: #09552d;
}

@media (max-width: 768px) {
  .thyh-autocomplete-dropdown {
    max-height: 360px;
  }
  .thyh-suggest-sub {
    max-width: 150px;
  }
  .thyh-suggest-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
  .thyh-faceted-grid {
    grid-template-columns: 1fr;
  }
}

/* PHÁC HỌA NÚT GỢI Ý CÂU HỎI TRỢ LÝ AI RAG */
.thyh-rag-tag-btn {
  background: #f0fdf4 !important;
  border: 1px solid #86efac !important;
  color: #065f46 !important;
  padding: 5px 12px !important;
  border-radius: 16px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.15s ease !important;
}

.thyh-rag-tag-btn:hover {
  background: #dcfce7 !important;
  border-color: #22c55e !important;
  color: #047857 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 6px rgba(6, 95, 70, 0.1) !important;
}
