/* ==========================================================================
   SAFE-LS — CỔNG GIÁO DỤC KỸ NĂNG BẢO VỆ DỮ LIỆU CÁ NHÂN & AN TOÀN TRẺ EM
   Slogan: HIỂU ĐÚNG - BẢO VỆ TỐT - SỬ DỤNG AN TOÀN DỮ LIỆU CÁ NHÂN
   Phong cách: Chính thống, Trang trọng, Uy tín (Kế thừa phong cách ICTU)
   ========================================================================== */

:root {
  --primary-blue: #006cb5;
  --primary-dark: #004d82;
  --primary-deep: #0a2540;
  --accent-orange: #f7aa23;
  --accent-hover: #e09415;
  --danger-red: #d32f2f;
  --success-green: #10b981;
  --bg-page: #f4f6f9;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1280px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s ease;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. TOP-BAR TIỆN ÍCH & KHẨN CẤP
   ========================================================================== */
.top-bar {
  background-color: #0f172a;
  color: #e2e8f0;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hotline-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.hotline-badge {
  background: var(--danger-red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hotline-badge.police {
  background: #1e3a8a;
}

.hotline-text {
  color: #cbd5e1;
}

.hotline-text strong {
  color: #f8fafc;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-link {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.top-link:hover {
  color: var(--accent-orange);
}

/* ==========================================================================
   2. HEADER TẦNG 1: THƯƠNG HIỆU CHÍNH SAFE-LS
   ========================================================================== */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
  transition: all 0.3s ease;
}

.header-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-orange);
  box-shadow: 0 3px 10px rgba(0, 108, 181, 0.25);
  flex-shrink: 0;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.04);
}

.brand-logo-shield {
  display: none;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.15;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge-tag {
  background: #eff6ff;
  color: var(--primary-blue);
  border: 1px solid #bfdbfe;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
}

.brand-slogan {
  font-size: clamp(10.5px, 0.95vw, 12.5px);
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.3px;
  margin-top: 3px;
  text-transform: uppercase;
}

.brand-slogan span {
  color: var(--primary-blue);
}

.header-search-box {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 6px 14px;
  width: clamp(200px, 22vw, 280px);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.header-search-box:focus-within {
  border-color: var(--primary-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 108, 181, 0.15);
}

.header-search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13px;
  color: var(--text-main);
}

.header-search-btn {
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header-search-btn:hover {
  color: var(--primary-blue);
}

/* ==========================================================================
   3. HEADER TẦNG 2: THANH MENU 8 CHUYÊN MỤC (STICKY NAVBAR GIỐNG ICTU)
   ========================================================================== */
.main-nav-bar {
  background: var(--primary-blue);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.main-nav-bar.is-sticky {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 48px;
  gap: 12px;
}

/* Biểu trưng thu nhỏ trên thanh sticky navbar (mô hình .sticky-logo của ICTU) */
.nav-brand-compact {
  display: none;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  padding: 6px 0;
  flex-shrink: 0;
  margin-right: 10px;
}

.nav-brand-compact-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-orange);
  background: #ffffff;
}

.nav-brand-compact-text {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* Khi cuộn màn hình xuống (> 1080px): hiện logo nhỏ gọn ở navbar */
@media (min-width: 1081px) {
  .main-nav-bar.is-sticky .nav-brand-compact {
    display: inline-flex;
    animation: fadeInStickyLogo 0.25s ease forwards;
  }
}

@keyframes fadeInStickyLogo {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 14px;
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.2px;
  position: relative;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link svg {
  width: 15px;
  height: 15px;
  opacity: 0.9;
  flex-shrink: 0;
}

.nav-link:hover,
.nav-item.active .nav-link {
  background: rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-orange);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-item.active .nav-link::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

/* Huy hiệu đặc biệt cho Tư vấn ẩn danh */
.nav-link.nav-anon {
  color: #ffffff;
}

.nav-badge-secure {
  background: var(--accent-orange);
  color: #1e293b;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  margin-left: 3px;
  white-space: nowrap;
}

/* Nút mở Menu Di Động & Tablet */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   4. HERO BANNER TIÊU ĐIỂM
   ========================================================================== */
.hero-section {
  background: #011143 url('/static/images/headbanner.png?v=2.0') no-repeat center center;
  background-size: cover;
  color: #ffffff;
  padding: 65px 0 70px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.08);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(0, 24, 55, 0.25) 0%, rgba(0, 15, 38, 0.45) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-logo-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-orange);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  margin: 0 auto 16px;
  display: block;
  background: #ffffff;
}

.hero-shield-icon {
  display: none;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-desc {
  font-size: 15.5px;
  color: #f8fafc;
  line-height: 1.75;
  font-weight: 500;
  max-width: 820px;
  margin: 0 auto 26px;
  background: rgba(3, 20, 50, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 16px 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.hero-cta-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

/* ==========================================================================
   5. BĂNG 4 CHỈ SỐ THỐNG KÊ (STATS BAR)
   ========================================================================== */
.stats-section {
  margin-top: -30px;
  position: relative;
  z-index: 10;
  margin-bottom: 45px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card.stat-accent {
  border-top-color: var(--accent-orange);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f0f9ff;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card.stat-accent .stat-icon {
  background: #fffbeb;
  color: var(--accent-orange);
}

.stat-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 3px;
}

/* ==========================================================================
   ĐỊNH DẠNG TIÊU ĐỀ SECTION CHUẨN ICTU
   ========================================================================== */
.section-header {
  margin-bottom: 28px;
  position: relative;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-orange);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==========================================================================
   6. KHỐI TIN TIÊU ĐIỂM & CẢNH BÁO NÓNG (2 CỘT)
   ========================================================================== */
.news-section {
  padding-bottom: 50px;
}

.news-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.news-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.news-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.news-box-header.danger {
  color: var(--danger-red);
}

.news-box-header.info {
  color: var(--primary-blue);
}

.news-box-title {
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card-item {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border-light);
  transition: all 0.2s ease;
}

.news-card-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.news-card-item:hover .news-item-title {
  color: var(--primary-blue);
}

.news-date-badge {
  width: 50px;
  height: 50px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  line-height: 1.1;
}

.news-date-badge .day {
  font-size: 16px;
  color: var(--primary-blue);
}

.news-date-badge .month {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.news-item-content {
  flex-grow: 1;
}

.news-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.news-tag.alert-tag {
  background: #fef2f2;
  color: var(--danger-red);
  border: 1px solid #fee2e2;
}

.news-tag.guide-tag {
  background: #eff6ff;
  color: var(--primary-blue);
  border: 1px solid #dbeafe;
}

.news-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 4px;
}

.news-item-summary {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   7. LƯỚI KHÁM PHÁ CÁC CHUYÊN MỤC (CARDS GRID)
   ========================================================================== */
.features-section {
  width: 100%;
  padding: 55px 0 75px;
  background-color: #f1f6fc;
  background-image: 
    radial-gradient(rgba(0, 108, 181, 0.08) 1.2px, transparent 1.2px),
    radial-gradient(circle at 12% 18%, rgba(0, 108, 181, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(16, 185, 129, 0.05) 0%, transparent 45%),
    linear-gradient(180deg, #ebf3fb 0%, #f6faff 45%, #ecf4fc 100%);
  background-size: 26px 26px, 100% 100%, 100% 100%, 100% 100%;
  border-top: 1.5px solid #dce7f5;
  border-bottom: 1.5px solid #dce7f5;
  position: relative;
  box-shadow: inset 0 3px 12px rgba(10, 37, 64, 0.03), inset 0 -3px 12px rgba(10, 37, 64, 0.03);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--primary-blue);
  opacity: 0.85;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.feature-card:hover::before {
  opacity: 1;
  height: 4.5px;
}

.feature-card-top {
  margin-bottom: 16px;
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #f0f7fc;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: all 0.25s ease;
}

.feature-card:hover .feature-icon-box {
  background: var(--primary-blue);
  color: #fff;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
}

.feature-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

.feature-card:hover .feature-link-btn {
  color: var(--accent-orange);
  gap: 9px;
}

/* ==========================================================================
   ICON SÁCH 3D TƯƠNG TÁC (3D FLIP OPEN / SNAP CLOSE BOOK) - THẺ VĂN BẢN
   ========================================================================== */
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.card-title-row .feature-title {
  margin-bottom: 0;
}

.book-hint-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
}

.book-hint-badge:hover {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1e40af;
  transform: translateY(-1px);
}

.card-docs.book-open .book-hint-badge {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
  box-shadow: 0 1px 3px rgba(185, 28, 28, 0.08);
}

.card-docs.book-open .book-hint-badge:hover {
  background: #b91c1c;
  color: #ffffff;
  border-color: #991b1b;
}

/* Khung chứa icon sách với không gian 3D */
.feature-icon-box.book-icon-box {
  width: 72px;
  height: 60px;
  background: transparent;
  perspective: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  overflow: visible;
  position: relative;
  user-select: none;
  margin-bottom: 12px;
}

.feature-card.card-docs:hover .feature-icon-box.book-icon-box {
  background: transparent;
}

/* Khối quyển sách 3D */
.book-3d {
  width: 36px;
  height: 48px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.34, 1.35, 0.64, 1);
  transform: rotateY(-22deg) rotateX(12deg) rotateZ(-2deg);
  filter: drop-shadow(-4px 7px 10px rgba(15, 23, 42, 0.25));
}

.feature-card.card-docs:hover .book-3d {
  transform: rotateY(-12deg) rotateX(8deg) scale(1.05);
}

/* Khi sách mở (Active state) */
.card-docs.book-open .book-3d {
  transform: translateX(14px) rotateY(-5deg) rotateX(8deg) scale(1.08);
  filter: drop-shadow(0 10px 18px rgba(37, 99, 235, 0.2));
}

/* Gáy sách (Spine) */
.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  width: 6.5px;
  height: 100%;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
  z-index: 6;
  box-shadow: inset 1px 0 2px rgba(255, 255, 255, 0.3), inset -1px 0 2px rgba(0, 0, 0, 0.3);
}

/* Trang sách bên phải (Right page - đế) */
.book-page-right {
  position: absolute;
  left: 6px;
  top: 2px;
  width: 30px;
  height: 44px;
  background: #fffdf5;
  border-radius: 0 3px 3px 0;
  border: 1px solid #e2e8f0;
  border-left: none;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.08), inset -2px 0 4px rgba(0, 0, 0, 0.04);
  z-index: 2;
  padding: 5px 4px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Trang sách bên trái (Left page - lộ ra khi lật mở) */
.book-page-left {
  position: absolute;
  left: -24px;
  top: 2px;
  width: 30px;
  height: 44px;
  background: #fbf9ee;
  border-radius: 3px 0 0 3px;
  border: 1px solid #e2e8f0;
  border-right: none;
  box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.08), inset 2px 0 4px rgba(0, 0, 0, 0.04);
  z-index: 1;
  padding: 5px 4px;
  box-sizing: border-box;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-docs.book-open .book-page-left {
  opacity: 1;
}

/* Các dòng chữ giả lập trong văn bản luật */
.page-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  height: 100%;
}

.p-line {
  height: 2px;
  background: #94a3b8;
  border-radius: 1px;
  width: 100%;
  opacity: 0.65;
}

.p-line.p-title {
  height: 2.5px;
  background: #dc2626;
  width: 70%;
  margin-bottom: 2px;
  opacity: 0.9;
}

.p-line.p-short {
  width: 45%;
}

/* Tấm bìa trước có thể xoay 3D */
.book-cover-leaf {
  position: absolute;
  left: 6px;
  top: 0;
  width: 31px;
  height: 48px;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 10;
  cursor: pointer;
  transform: rotateY(0deg);
}

/* Lật mở 180 độ */
.card-docs.book-open .book-cover-leaf {
  transform: rotateY(-180deg);
}

/* Mặt trước bìa sách (Bìa màu xanh navy sang trọng + chữ vàng LUẬT) */
.cover-front {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background: linear-gradient(145deg, #1e3a8a 0%, #172554 60%, #0f172a 100%);
  border-radius: 0 4px 4px 0;
  border: 1.5px solid #f59e0b;
  border-left: none;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-sizing: border-box;
  overflow: visible;
}

.cover-emblem {
  font-size: 15px;
  line-height: 1;
  margin-bottom: 2px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.cover-title {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #fde047;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dây ruy-băng đỏ đánh dấu trang sách */
.bookmark-ribbon {
  position: absolute;
  right: 6px;
  bottom: -9px;
  width: 5px;
  height: 17px;
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  border-radius: 0 0 1px 1px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.35);
  z-index: 12;
  transition: transform 0.4s ease;
}

.card-docs.book-open .bookmark-ribbon {
  transform: rotate(-10deg) translateY(2px);
}

/* Mặt sau bìa sách (Trang bên trái khi lật) */
.cover-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  transform: rotateY(180deg);
  background: #fbf9ee;
  border-radius: 3px 0 0 3px;
  border: 1px solid #e2e8f0;
  border-right: none;
  padding: 5px 4px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Vùng mô tả nội dung hoán đổi với danh sách PDF (Giữ nguyên chiều cao thẻ) */
/* ==========================================================================
   VÙNG MÔ TẢ NỘI DUNG HOÁN ĐỔI VỚI DANH MỤC CON (SUB-GRID 2x2 CỐ ĐỊNH CHIỀU CAO)
   ========================================================================== */
.card-desc-box {
  min-height: 64px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-desc-box .feature-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

/* Lưới 4 chip danh mục con (2 cột x 2 hàng siêu gọn, không làm dãn thẻ) */
.card-sub-grid {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px 6px;
  width: 100%;
  align-items: stretch;
}

/* Khi thẻ mở (.is-card-open hoặc .book-open hoặc .quiz-open): Ẩn mô tả, hiện lưới chip */
.feature-card.is-card-open .card-desc-box .feature-desc,
.feature-card.book-open .card-desc-box .feature-desc,
.feature-card.quiz-open .card-desc-box .feature-desc {
  display: none !important;
}

.feature-card.is-card-open .card-desc-box .card-sub-grid,
.feature-card.book-open .card-desc-box .card-sub-grid,
.feature-card.quiz-open .card-desc-box .card-sub-grid {
  display: grid !important;
  animation: fadeInSubGrid 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInSubGrid {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Từng chip con trong lưới */
.sub-chip-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.16s ease;
  min-width: 0;
  box-sizing: border-box;
}

.sub-chip-item:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sub-chip-badge {
  font-size: 8.5px;
  font-weight: 800;
  padding: 1.5px 4.5px;
  border-radius: 3px;
  letter-spacing: 0.2px;
  flex-shrink: 0;
  white-space: nowrap;
}

.sub-chip-title {
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.sub-chip-action {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
  margin-left: auto;
}

/* Màu Badge chuẩn cho từng chủ đề */
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-teal { background: #ccfbf1; color: #0f766e; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-cyan { background: #e0f2fe; color: #0369a1; }
.badge-emerald { background: #d1fae5; color: #047857; }

/* Tương tác viền & màu nút theo từng thẻ */
.card-docs .sub-chip-item:hover { border-color: #3b82f6; }
.card-docs .sub-chip-item:hover .sub-chip-action { color: #1d4ed8; }

.card-media .sub-chip-item:hover { border-color: #14b8a6; }
.card-media .sub-chip-item:hover .sub-chip-action { color: #0f766e; }

.card-podcast .sub-chip-item:hover { border-color: #8b5cf6; }
.card-podcast .sub-chip-item:hover .sub-chip-action { color: #6d28d9; }

.card-video .sub-chip-item:hover { border-color: #f97316; }
.card-video .sub-chip-item:hover .sub-chip-action { color: #c2410c; }

.card-quiz .sub-chip-item:hover { border-color: #f59e0b; }
.card-quiz .sub-chip-item:hover .sub-chip-action { color: #b45309; }

.card-ai .sub-chip-item:hover { border-color: #06b6d4; }
.card-ai .sub-chip-item:hover .sub-chip-action { color: #0284c7; }

.card-anonymous .sub-chip-item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(52, 211, 153, 0.25);
}
.card-anonymous .sub-chip-item:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #34d399;
}
.card-anonymous .sub-chip-title {
  color: #f1f5f9;
}
.card-anonymous .sub-chip-action {
  color: #34d399;
}

/* ==========================================================================
   HIỆU ỨNG BIẾN HÌNH ICON TƯƠNG TÁC CHO CẢ 7 THẺ CHUYÊN MỤC
   ========================================================================== */

/* Thẻ 2: Ảnh Polaroid Fan-out xoay nghiêng */
.media-icon-stack {
  position: relative;
  width: 32px;
  height: 32px;
}
.photo-card {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.photo-card-bg {
  top: -2px;
  left: 5px;
  background: #99f6e4;
  border: 1px solid #2dd4bf;
  transform: rotate(6deg);
  opacity: 0.8;
  z-index: 1;
}
.photo-card-main {
  top: 3px;
  left: -2px;
  background: #0d9488;
  color: #ffffff;
  transform: rotate(-3deg);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}
.card-media.is-card-open .photo-card-bg {
  transform: translate(-9px, -3px) rotate(-16deg) scale(1.05);
  background: #5eead4;
  opacity: 1;
}
.card-media.is-card-open .photo-card-main {
  transform: translate(6px, 2px) rotate(12deg) scale(1.08);
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.4);
}

/* Thẻ 3: Equalizer sóng âm thanh sống động */
.podcast-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}
.podcast-icon-wrap .mic-svg {
  transition: transform 0.3s ease;
}
.equalizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 20px;
}
.eq-bar {
  width: 3.5px;
  background: #7c3aed;
  border-radius: 2px;
  transition: height 0.3s ease;
}
.bar-1 { height: 6px; }
.bar-2 { height: 11px; }
.bar-3 { height: 7px; }

.card-podcast.is-card-open .mic-svg {
  transform: scale(1.08);
  color: #7c3aed;
}
.card-podcast.is-card-open .bar-1 {
  animation: eqJump1 0.7s infinite alternate ease-in-out;
}
.card-podcast.is-card-open .bar-2 {
  animation: eqJump2 0.5s infinite alternate ease-in-out 0.15s;
}
.card-podcast.is-card-open .bar-3 {
  animation: eqJump3 0.65s infinite alternate ease-in-out 0.3s;
}

@keyframes eqJump1 {
  0% { height: 4px; background: #a78bfa; }
  100% { height: 20px; background: #7c3aed; }
}
@keyframes eqJump2 {
  0% { height: 6px; background: #8b5cf6; }
  100% { height: 22px; background: #6d28d9; }
}
@keyframes eqJump3 {
  0% { height: 5px; background: #c4b5fd; }
  100% { height: 18px; background: #7c3aed; }
}

/* Thẻ 4: Bảng đóng phim Clapperboard dập mở */
.clapper-wrap {
  width: 30px;
  height: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.clapper-top {
  width: 100%;
  height: 7px;
  background: repeating-linear-gradient(
    45deg,
    #ea580c,
    #ea580c 4px,
    #fed7aa 4px,
    #fed7aa 8px
  );
  border-radius: 2px 2px 0 0;
  transform-origin: bottom left;
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.clapper-body {
  width: 100%;
  height: 20px;
  background: #ea580c;
  color: #ffffff;
  border-radius: 0 0 4px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}
.card-video.is-card-open .clapper-top {
  transform: rotate(-22deg) translateY(-2px);
}
.card-video.is-card-open .clapper-body svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

/* Thẻ 6: Robot AI thức tỉnh & quét radar neon */
.ai-bot-wrap {
  width: 32px;
  height: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ai-antenna {
  width: 3px;
  height: 5px;
  background: #0284c7;
  border-radius: 2px;
  position: relative;
}
.ai-antenna::after {
  content: '';
  position: absolute;
  top: -3.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.ai-head {
  width: 28px;
  height: 22px;
  background: #0284c7;
  border-radius: 6px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
  transition: all 0.3s ease;
}
.ai-eyes {
  display: flex;
  gap: 6px;
}
.ai-eye {
  width: 5px;
  height: 5px;
  background: #e0f2fe;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.ai-mouth {
  width: 10px;
  height: 2px;
  background: #bae6fd;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.card-ai.is-card-open .ai-antenna::after {
  background: #06b6d4;
  box-shadow: 0 0 10px #06b6d4, 0 0 16px #38bdf8;
  animation: antennaBlink 0.8s infinite alternate;
}
.card-ai.is-card-open .ai-head {
  background: #0369a1;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}
.card-ai.is-card-open .ai-eye {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: eyeRadar 1.2s infinite alternate ease-in-out;
}
.card-ai.is-card-open .ai-mouth {
  width: 12px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: #38bdf8;
}

@keyframes antennaBlink {
  0% { transform: translateX(-50%) scale(0.9); opacity: 0.7; }
  100% { transform: translateX(-50%) scale(1.3); opacity: 1; }
}
@keyframes eyeRadar {
  0% { transform: scaleY(1); }
  50% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

/* Thẻ 7: Ổ khóa số bảo mật mở chốt (Unlock) */
.lock-wrap {
  width: 28px;
  height: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lock-shackle {
  width: 16px;
  height: 14px;
  border: 3.5px solid #34d399;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  box-sizing: border-box;
  transform-origin: left bottom;
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
  margin-bottom: -2px;
  z-index: 1;
}
.lock-body {
  width: 24px;
  height: 18px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}
.lock-keyhole {
  width: 4px;
  height: 6px;
  background: #064e3b;
  border-radius: 2px;
}
.card-anonymous.is-card-open .lock-shackle {
  transform: translateY(-5px) rotate(-24deg);
  border-color: #6ee7b7;
}
.card-anonymous.is-card-open .lock-body {
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.55);
}

/* ==========================================================================
   HỆ THỐNG 7 MÀU GRADIENT SANG TRỌNG CHO 7 CHUYÊN MỤC SAFE-LS
   (KÈM HIỆU ỨNG NỀN ĐẬM HƠN KHI ẤN / ACTIVE ĐỂ DỄ NHẬN BIẾT)
   ========================================================================== */
.feature-card {
  cursor: pointer;
  user-select: none;
}

.feature-card:active {
  transform: scale(0.988) translateY(-2px);
}

/* 1. Thẻ Văn Bản Pháp Quy: Xanh Sapphire Pháp Lý */
.feature-card.card-docs {
  background: linear-gradient(155deg, #ffffff 0%, #f4f8ff 55%, #e0effe 100%);
  border: 1.5px solid #bfdbfe;
}
.feature-card.card-docs::before {
  background: linear-gradient(90deg, #1d4ed8, #3b82f6);
  opacity: 1;
}
.feature-card.card-docs:hover {
  border-color: #60a5fa;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.14);
}
/* Trạng thái ấn / mở: Nền gradient sapphire đậm lên rõ rệt */
.feature-card.card-docs:active,
.feature-card.card-docs.book-open,
.feature-card.card-docs.is-card-open,
.feature-card.card-docs.is-card-selected {
  background: linear-gradient(155deg, #ffffff 0%, #dbeafe 42%, #bfdbfe 100%);
  border-color: #2563eb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
}
.feature-card.card-docs .feature-link-btn {
  color: #1d4ed8;
}
.feature-card.card-docs:hover .feature-link-btn {
  color: #2563eb;
}

/* 2. Thẻ Ấn Phẩm Truyền Thông: Xanh Ngọc Lục Bảo Sáng Tạo */
.feature-card.card-media {
  background: linear-gradient(155deg, #ffffff 0%, #f0fdf9 55%, #ccfbf1 100%);
  border: 1.5px solid #99f6e4;
}
.feature-card.card-media::before {
  background: linear-gradient(90deg, #0d9488, #14b8a6);
  opacity: 1;
}
.feature-card.card-media .feature-icon-box {
  background: #ccfbf1;
  color: #0f766e;
}
.feature-card.card-media:hover {
  border-color: #2dd4bf;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.14);
}
/* Trạng thái ấn / mở: Nền gradient ngọc đậm lên rõ rệt */
.feature-card.card-media:active,
.feature-card.card-media.is-card-open,
.feature-card.card-media.is-card-selected {
  background: linear-gradient(155deg, #ffffff 0%, #ccfbf1 42%, #99f6e4 100%);
  border-color: #0d9488;
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.22);
}
.feature-card.card-media:hover .feature-icon-box {
  background: #0d9488;
  color: #ffffff;
}
.feature-card.card-media .feature-link-btn {
  color: #0f766e;
}
.feature-card.card-media:hover .feature-link-btn {
  color: #0d9488;
}

/* 3. Thẻ Podcast Radio Học Đường: Tím Thạch Anh Indigo Truyền Cảm */
.feature-card.card-podcast {
  background: linear-gradient(155deg, #ffffff 0%, #faf5ff 55%, #ede9fe 100%);
  border: 1.5px solid #ddd6fe;
}
.feature-card.card-podcast::before {
  background: linear-gradient(90deg, #7c3aed, #8b5cf6);
  opacity: 1;
}
.feature-card.card-podcast .feature-icon-box {
  background: #ede9fe;
  color: #6d28d9;
}
.feature-card.card-podcast:hover {
  border-color: #a78bfa;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.14);
}
/* Trạng thái ấn / mở: Nền gradient tím đậm lên rõ rệt */
.feature-card.card-podcast:active,
.feature-card.card-podcast.is-card-open,
.feature-card.card-podcast.is-card-selected {
  background: linear-gradient(155deg, #ffffff 0%, #ede9fe 42%, #ddd6fe 100%);
  border-color: #7c3aed;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.22);
}
.feature-card.card-podcast:hover .feature-icon-box {
  background: #7c3aed;
  color: #ffffff;
}
.feature-card.card-podcast .feature-link-btn {
  color: #6d28d9;
}
.feature-card.card-podcast:hover .feature-link-btn {
  color: #7c3aed;
}

/* 4. Thẻ Video Giả Định Tình Huống: Cam San Hô Năng Động Cảnh Báo */
.feature-card.card-video {
  background: linear-gradient(155deg, #ffffff 0%, #fff7ed 55%, #ffedd5 100%);
  border: 1.5px solid #fed7aa;
}
.feature-card.card-video::before {
  background: linear-gradient(90deg, #ea580c, #f97316);
  opacity: 1;
}
.feature-card.card-video .feature-icon-box {
  background: #ffedd5;
  color: #c2410c;
}
.feature-card.card-video:hover {
  border-color: #fb923c;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.14);
}
/* Trạng thái ấn / mở: Nền gradient cam đậm lên rõ rệt */
.feature-card.card-video:active,
.feature-card.card-video.is-card-open,
.feature-card.card-video.is-card-selected {
  background: linear-gradient(155deg, #ffffff 0%, #ffedd5 42%, #fed7aa 100%);
  border-color: #ea580c;
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.22);
}
.feature-card.card-video:hover .feature-icon-box {
  background: #ea580c;
  color: #ffffff;
}
.feature-card.card-video .feature-link-btn {
  color: #c2410c;
}
.feature-card.card-video:hover .feature-link-btn {
  color: #ea580c;
}

/* 5. Thẻ Quiz Trắc Nghiệm Kỹ Năng: Vàng Hổ Phách Mật Ong Trí Tuệ */
.feature-card.card-quiz {
  background: linear-gradient(155deg, #ffffff 0%, #fffbeb 55%, #fef3c7 100%);
  border: 1.5px solid #fde68a;
}
.feature-card.card-quiz::before {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  opacity: 1;
}
.feature-card.card-quiz .feature-icon-box {
  background: #fef3c7;
  color: #b45309;
}
.feature-card.card-quiz:hover {
  border-color: #fbbf24;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.14);
}

/* Trạng thái ấn / mở: Nền gradient hổ phách đậm lên rõ rệt */
.feature-card.card-quiz:active,
.feature-card.card-quiz.quiz-open,
.feature-card.card-quiz.is-card-open,
.feature-card.card-quiz.is-card-selected {
  background: linear-gradient(155deg, #ffffff 0%, #fef3c7 42%, #fde68a 100%);
  border-color: #d97706;
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.22);
}

/* Icon Quiz biến hình 3D (Dấu hỏi ? ➔ Tích xanh chứng chỉ ✓) */
.feature-icon-box.quiz-icon-box {
  width: 50px;
  height: 50px;
  perspective: 600px;
  cursor: pointer;
  background: #fef3c7;
  color: #b45309;
  position: relative;
  overflow: visible;
  transition: all 0.25s ease;
  margin-bottom: 14px;
}

.feature-card.card-quiz:hover .feature-icon-box.quiz-icon-box {
  background: #fef3c7;
}

.quiz-icon-flip {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* Khi mở Quiz: Icon lộn nhào 180 độ chuyển thành tích xanh hoàn thành */
.card-quiz.quiz-open .quiz-icon-flip,
.card-quiz.is-card-open .quiz-icon-flip {
  transform: rotateY(180deg);
}

.quiz-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  border-radius: 12px;
}

.quiz-face-front {
  transform: rotateY(0deg);
  background: #fef3c7;
  color: #b45309;
}

.feature-card.card-quiz:hover .quiz-face-front {
  background: #d97706;
  color: #ffffff;
}

.quiz-face-back {
  transform: rotateY(180deg);
  background: #10b981;
  color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.feature-card.card-quiz:hover .feature-icon-box {
  background: #d97706;
  color: #ffffff;
}
.feature-card.card-quiz .feature-link-btn {
  color: #b45309;
}
.feature-card.card-quiz:hover .feature-link-btn {
  color: #d97706;
}

/* 6. Thẻ Trợ Lý Trí Tuệ Nhân Tạo: Xanh Điện Tử Electric Azure Thông Minh */
.feature-card.card-ai {
  background: linear-gradient(155deg, #ffffff 0%, #f0f9ff 55%, #e0f2fe 100%);
  border: 1.5px solid #bae6fd;
}
.feature-card.card-ai::before {
  background: linear-gradient(90deg, #0284c7, #06b6d4);
  opacity: 1;
}
.feature-card.card-ai .feature-icon-box {
  background: #e0f2fe;
  color: #0369a1;
}
.feature-card.card-ai:hover {
  border-color: #38bdf8;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.14);
}
/* Trạng thái ấn / mở: Nền gradient cyan đậm lên rõ rệt */
.feature-card.card-ai:active,
.feature-card.card-ai.is-card-open,
.feature-card.card-ai.is-card-selected {
  background: linear-gradient(155deg, #ffffff 0%, #e0f2fe 42%, #bae6fd 100%);
  border-color: #0284c7;
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.22);
}
.feature-card.card-ai:hover .feature-icon-box {
  background: #0284c7;
  color: #ffffff;
}
.feature-card.card-ai .feature-link-btn {
  color: #0369a1;
}
.feature-card.card-ai:hover .feature-link-btn {
  color: #0284c7;
}

/* 7. Thẻ Hòm Thư Tư Vấn Ẩn Danh: Xanh Ngọc Bảo Mật (Emerald Shield Gradient) */
.feature-card.card-anonymous.card-highlight {
  grid-column: span 2;
  background: linear-gradient(135deg, #091e3a 0%, #0d2a4d 50%, #07192f 100%);
  border: 1.5px solid #10b981;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}

.feature-card.card-anonymous.card-highlight::before {
  background: linear-gradient(90deg, #10b981, #34d399, #059669);
  opacity: 1;
  height: 3.5px;
}

/* Trạng thái ấn / mở: Nền ngọc lục bảo sâu & phát sáng */
.feature-card.card-anonymous.card-highlight:active,
.feature-card.card-anonymous.card-highlight.is-card-open,
.feature-card.card-anonymous.card-highlight.is-card-selected {
  background: linear-gradient(135deg, #06182c 0%, #064e3b 50%, #042f2e 100%);
  border-color: #34d399;
  box-shadow: 0 14px 36px rgba(16, 185, 129, 0.38);
}

.feature-card.card-anonymous.card-highlight .feature-title {
  color: #ffffff;
}

.feature-card.card-anonymous.card-highlight .feature-desc {
  color: #cbd5e1;
}

.feature-card.card-anonymous.card-highlight .feature-icon-box {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.feature-card.card-anonymous.card-highlight:hover .feature-icon-box {
  background: #10b981;
  color: #ffffff;
}

.feature-card.card-anonymous.card-highlight .feature-link-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-top: none;
  border: 1px solid #34d399;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  padding: 10px 20px;
  border-radius: 8px;
  margin-top: 0;
}

.feature-card.card-anonymous.card-highlight:hover .feature-link-btn {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

@media (min-width: 769px) {
  .feature-card.card-highlight {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 30px;
  }
  .feature-card.card-highlight .feature-card-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
    flex: 1;
  }
  .feature-card.card-highlight .feature-icon-box {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .feature-card.card-highlight .feature-link-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* ==========================================================================
   8. KHỐI GIỚI THIỆU 3 TÍNH NĂNG "HÒM THƯ TƯ VẤN ẨN DANH"
   ========================================================================== */
.anonymous-intro-section {
  padding: 50px 0 20px;
}

.anon-banner-box {
  background: #06182c url('/static/images/bannertuvanandanh.png') no-repeat center center;
  background-size: cover;
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 46px 40px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.anon-banner-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(6, 22, 42, 0.45) 0%, rgba(4, 16, 32, 0.65) 100%);
  pointer-events: none;
}

.anon-banner-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 2;
}

.anon-banner-tag {
  display: none;
}

.anon-banner-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.anon-banner-desc {
  font-size: 15px;
  color: #e2e8f0;
  line-height: 1.65;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
}

.step-item {
  background: rgba(4, 20, 44, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 2;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.step-item:hover {
  background: rgba(4, 20, 44, 0.82);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.feature-prop-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(247, 170, 35, 0.2);
  border: 1px solid rgba(247, 170, 35, 0.45);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step-badge {
  display: none;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.35;
}

.step-text {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.65;
}

.anon-action-center {
  text-align: center;
  position: relative;
  z-index: 2;
}

.anon-main-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.88) 0%, rgba(5, 150, 105, 0.93) 50%, rgba(4, 120, 87, 0.98) 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 30px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 1.5px solid rgba(167, 243, 208, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4), inset 0 1.5px 2px rgba(255, 255, 255, 0.55), inset 0 -2px 5px rgba(0, 0, 0, 0.25);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.anon-main-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.anon-main-cta:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.98) 50%, rgba(4, 120, 87, 1) 100%);
  transform: translateY(-2.5px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6), inset 0 2px 3px rgba(255, 255, 255, 0.75), inset 0 -2px 5px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.anon-main-cta:hover::before {
  left: 100%;
}

/* ==========================================================================
   9. CHÂN TRANG (FOOTER) 4 CỘT CHÍNH QUY
   ========================================================================== */
.main-footer {
  background: #0a2540;
  color: #cbd5e1;
  font-size: 13px;
  padding-top: 50px;
  margin-top: auto;
  border-top: 3px solid var(--accent-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 40px;
}

.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--accent-orange);
}

.footer-about p {
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 12px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-item a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link-item a:hover {
  color: var(--accent-orange);
  transform: translateX(4px);
}

.footer-hotline-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.footer-hotline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.footer-hotline-row:last-child {
  margin-bottom: 0;
}

.footer-hotline-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-orange);
}

.footer-bottom-bar {
  background: #061727;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
}

/* ==========================================================================
   10. FLOATING CHATBOT WIDGET
   ========================================================================== */
.floating-ai-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 25px rgba(0, 108, 181, 0.4);
  z-index: 1050;
  border: 2px solid var(--accent-orange);
  transition: all 0.25s ease;
}

.floating-ai-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 108, 181, 0.55);
}

.floating-ai-icon {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   SPA TAB CONTAINER SYSTEM
   ========================================================================== */
.tab-content-panel {
  display: none;
}

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

.placeholder-view {
  padding: 80px 0;
  text-align: center;
  background: #ffffff;
  border-radius: var(--radius-md);
  margin: 30px auto;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE, TABLET & WINDOW HORIZONTAL RESIZING)
   ========================================================================== */

/* 1. Màn hình từ 1081px đến 1360px: Tự động thu nhỏ font, padding để không vỡ dòng */
@media (max-width: 1360px) and (min-width: 1081px) {
  .nav-link {
    padding: 12px 10px;
    font-size: 12.5px;
    gap: 5px;
  }
  .nav-link svg {
    width: 14px;
    height: 14px;
  }
  .nav-badge-secure {
    font-size: 9px;
    padding: 1px 4px;
  }
  .brand-title {
    font-size: 22px;
  }
  .brand-slogan {
    font-size: 11px;
  }
  .header-search-box {
    width: 220px;
  }
}

/* 2. Màn hình từ 1080px trở xuống (Tablet, iPad, Cửa sổ thu nhỏ ngang - Giống ICTU):
   Chuyển sang Mobile/Tablet Drawer Menu, Logo SAFE-LS luôn xuất hiện trên thanh sticky */
@media (max-width: 1080px) {
  .nav-container {
    justify-content: space-between;
  }
  .nav-brand-compact {
    display: inline-flex;
    margin-right: 0;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #005a96;
    flex-direction: column;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-list.mobile-open {
    display: flex;
    animation: slideDownMenu 0.25s ease forwards;
  }
  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-link {
    padding: 13px 20px;
    width: 100%;
    justify-content: flex-start;
    font-size: 14px;
    gap: 12px;
  }
  .nav-link::after {
    display: none;
  }
  .nav-item.active .nav-link {
    background: rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--accent-orange);
    padding-left: 16px;
  }
}

@keyframes slideDownMenu {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 3. Màn hình điện thoại (< 768px):
   Header thương hiệu xếp dọc tinh tế, thanh sticky navbar luôn ghim đầu trang */
@media (max-width: 768px) {
  .main-header {
    padding: 10px 0;
  }
  .header-brand-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .brand-wrapper {
    gap: 10px;
  }
  .brand-logo-img {
    width: 44px;
    height: 44px;
  }
  .brand-title {
    font-size: 20px;
  }
  .brand-slogan {
    font-size: 10.5px;
    line-height: 1.3;
  }
  .header-search-box {
    width: 100%;
  }
  .hero-title {
    font-size: 28px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .news-columns-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .feature-card,
  .feature-card.card-highlight,
  .feature-card.card-anonymous,
  .feature-card.card-anonymous.card-highlight {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px 18px !important;
    height: auto !important;
    min-height: auto !important;
  }
  .feature-card.card-anonymous.card-highlight .feature-card-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
  }
  .card-desc-box {
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin-bottom: 12px !important;
    width: 100% !important;
  }
  .card-desc-box .feature-desc {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
    line-height: 1.6 !important;
  }
  .feature-card.is-card-open .card-desc-box .feature-desc,
  .feature-card.book-open .card-desc-box .feature-desc,
  .feature-card.quiz-open .card-desc-box .feature-desc {
    display: none !important;
  }
  .feature-card.is-card-open .card-desc-box .card-sub-grid,
  .feature-card.book-open .card-desc-box .card-sub-grid,
  .feature-card.quiz-open .card-desc-box .card-sub-grid {
    display: grid !important;
  }
  .card-sub-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .feature-card .feature-link-btn,
  .feature-card.card-anonymous.card-highlight .feature-link-btn {
    width: 100% !important;
    justify-content: center !important;
    margin-top: 12px !important;
    box-sizing: border-box !important;
  }
  .steps-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .card-sub-grid {
    grid-template-columns: 1fr !important;
    gap: 5px !important;
  }
  .sub-chip-item {
    padding: 6px 8px !important;
  }
  .sub-chip-title {
    font-size: 11.5px !important;
  }
}

/* ==========================================================================
   VIEW 2: CHUYÊN MỤC VĂN BẢN PHÁP QUY (#tab-docs)
   ========================================================================== */
#tab-docs {
  padding-top: 46px;
  padding-bottom: 60px;
}

.docs-header {
  margin-bottom: 36px;
  text-align: center;
}

.docs-header .section-title {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

/* Căn giữa vạch gạch màu vàng dưới tiêu đề */
.docs-header .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3.5px;
  background-color: var(--accent-orange);
  border-radius: 2px;
}

.docs-header .section-subtitle {
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-muted);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.doc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.doc-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.doc-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.doc-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.4;
}

.doc-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.doc-summary {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.doc-actions {
  display: flex;
  gap: 10px;
}

.doc-action-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  background: #2563eb;
  color: #ffffff;
  transition: background 0.2s;
}

.doc-action-btn:hover {
  background: #1d4ed8;
}

.doc-action-btn.secondary {
  background: #f1f5f9;
  color: #475569;
}

.doc-action-btn.secondary:hover {
  background: #e2e8f0;
}

/* ==========================================================================
   VIEW 4: CHUYÊN MỤC PODCAST PHÁT THANH HỌC ĐƯỜNG (#tab-podcast)
   ========================================================================== */
#tab-podcast {
  padding-top: 46px;
  padding-bottom: 60px;
}

.podcast-page-header {
  margin-bottom: 34px;
  text-align: center;
}

.podcast-page-header .section-title {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

.podcast-page-header .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3.5px;
  background-color: var(--accent-orange);
  border-radius: 2px;
}

.podcast-page-header .section-subtitle {
  margin-top: 14px;
  font-size: 15px;
  color: var(--text-muted);
}

/* Khung Trình phát nổi bật (Featured Audio Player) */
.podcast-featured-player {
  background: linear-gradient(145deg, #1b0e33 0%, #2e1065 52%, #140827 100%);
  border: 1.5px solid rgba(167, 139, 250, 0.35);
  border-radius: 20px;
  box-shadow: 0 16px 42px rgba(124, 58, 237, 0.28);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px 36px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
}

.podcast-featured-player::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

/* Cột Album Art / Đĩa sóng âm */
.player-cover-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.player-album-art {
  width: 190px;
  height: 190px;
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #4c1d95 100%);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 0 0 1.5px rgba(255, 255, 255, 0.2);
}

.mic-glow-icon svg {
  color: #ffffff;
  filter: drop-shadow(0 0 12px rgba(196, 181, 253, 0.85));
}

.player-eq-waves {
  display: flex;
  align-items: flex-end;
  gap: 3.5px;
  height: 22px;
  margin-top: 10px;
}

.player-eq-waves span {
  width: 4px;
  background: #c4b5fd;
  border-radius: 2px;
  height: 6px;
  transition: height 0.2s ease;
}

/* Sóng âm nhảy khi đang phát */
.podcast-featured-player.is-playing .player-eq-waves span:nth-child(1) { animation: pWave 0.7s infinite alternate ease-in-out; }
.podcast-featured-player.is-playing .player-eq-waves span:nth-child(2) { animation: pWave 0.5s infinite alternate ease-in-out 0.15s; }
.podcast-featured-player.is-playing .player-eq-waves span:nth-child(3) { animation: pWave 0.65s infinite alternate ease-in-out 0.3s; }
.podcast-featured-player.is-playing .player-eq-waves span:nth-child(4) { animation: pWave 0.45s infinite alternate ease-in-out 0.1s; }
.podcast-featured-player.is-playing .player-eq-waves span:nth-child(5) { animation: pWave 0.6s infinite alternate ease-in-out 0.25s; }

@keyframes pWave {
  0% { height: 4px; background: #a78bfa; }
  100% { height: 22px; background: #fde047; }
}

.player-badge-status {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #c4b5fd;
  margin-top: 12px;
  text-transform: uppercase;
}

/* Cột điều khiển Player */
.player-control-side {
  display: flex;
  flex-direction: column;
}

.player-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.player-ep-tag {
  background: rgba(167, 139, 250, 0.25);
  color: #ddd6fe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.player-duration-tag {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 600;
}

.player-title {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 8px;
}

.player-speaker {
  font-size: 13.5px;
  color: #c4b5fd;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
}

/* Thanh tiến trình phát */
.player-progress-wrap {
  margin-bottom: 18px;
}

.player-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-family: monospace;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.progress-bar-rail {
  width: 100%;
  height: 6.5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  overflow: visible;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #a78bfa 0%, #c084fc 100%);
  border-radius: 4px;
  transition: width 0.1s linear;
}

.progress-bar-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.95);
  transition: left 0.1s linear;
  pointer-events: none;
}

/* Cụm nút điều khiển */
.player-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.btn-seek-step {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-seek-step:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.08);
}

.btn-play-hero {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.65);
  transition: all 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.btn-play-hero:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.85);
}

.btn-speed-toggle {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ddd6fe;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-speed-toggle:hover {
  background: rgba(167, 139, 250, 0.3);
  color: #ffffff;
}

.btn-download-audio {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  transition: all 0.18s ease;
}

.btn-download-audio:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Hộp bài học rút ra (Show Notes) */
.player-lesson-box {
  background: rgba(0, 0, 0, 0.28);
  border-left: 3.5px solid #fbbf24;
  border-radius: 0 10px 10px 0;
  padding: 12px 18px;
}

.lesson-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #fbbf24;
  margin-bottom: 4px;
}

.lesson-desc {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.55;
  margin: 0;
}

/* Tiêu đề danh sách Playlist */
.playlist-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px 0 20px;
}

.playlist-heading {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-blue);
  margin: 0;
}

.playlist-count-tag {
  font-size: 11.5px;
  font-weight: 800;
  background: #ede9fe;
  color: #6d28d9;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

/* Lưới Playlist 7 tập */
.podcast-playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}

.playlist-card {
  background: #ffffff;
  border: 1.5px solid #ede9fe;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative;
}

.playlist-card:hover {
  border-color: #8b5cf6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.12);
}

.playlist-card.is-active {
  border-color: #7c3aed;
  background: linear-gradient(155deg, #ffffff 0%, #faf5ff 55%, #ede9fe 100%);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2);
}

.playlist-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-ep-badge {
  font-size: 10.5px;
  font-weight: 800;
  background: #ede9fe;
  color: #6d28d9;
  padding: 2.5px 8px;
  border-radius: 4px;
}

.playlist-card.is-active .card-ep-badge {
  background: #7c3aed;
  color: #ffffff;
}

.card-duration {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.playlist-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playlist-card-speaker {
  font-size: 12.5px;
  color: #6d28d9;
  font-weight: 600;
  margin-bottom: 10px;
}

.playlist-card-summary {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.playlist-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  color: #7c3aed;
}

.playlist-card.is-active .playlist-card-action {
  color: #6d28d9;
}

/* Responsive trên điện thoại */
@media (max-width: 768px) {
  .podcast-featured-player {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 20px;
  }
  .player-actions-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .btn-download-audio {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }
  .podcast-playlist-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   THƯ VIỆN ẤN PHẨM TRUYỀN THÔNG (MEDIA LIBRARY & MODAL)
   ========================================================================== */
#tab-media, #tab-podcast, #tab-video, #tab-quiz, #tab-consult {
  padding-top: 50px;
  padding-bottom: 60px;
}

.media-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 28px 0 32px 0;
  padding: 16px 20px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.media-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-filter-btn {
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-filter-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.media-filter-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}

.media-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  padding: 6px 16px;
  min-width: 280px;
  transition: all 0.2s;
}

.media-search-box:focus-within {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.media-search-box .search-icon {
  color: #94a3b8;
  flex-shrink: 0;
}

.media-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: #1e293b;
  width: 100%;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.media-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.media-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}

.media-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
}

.media-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.media-card:hover .media-thumb-img {
  transform: scale(1.05);
}

.media-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.media-badge.badge-cam-nang {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.media-badge.badge-tap-chi {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.media-badge.badge-infographic {
  background: linear-gradient(135deg, #059669, #047857);
}

.media-badge.badge-poster {
  background: linear-gradient(135deg, #d97706, #b45309);
}

.media-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.media-thumb-wrapper:hover .media-zoom-overlay {
  opacity: 1;
}

.zoom-hint-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.media-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.media-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: #0f172a;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 46px;
}

.media-card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 18px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.media-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.media-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.media-btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.media-btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.media-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.media-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.media-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.media-empty-state .empty-icon {
  font-size: 44px;
  margin-bottom: 12px;
}

/* Modal Xem trực tiếp */
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.media-modal.is-active {
  display: flex;
}

.media-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease;
}

.media-modal-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1100px;
  height: 90vh;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  gap: 16px;
}

.media-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.media-modal-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: #e0f2fe;
  color: #0369a1;
  white-space: nowrap;
}

.media-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.modal-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.modal-btn-download:hover {
  background: #1d4ed8;
}

.modal-btn-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-btn-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.media-modal-body {
  flex: 1;
  background: #0f172a;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.media-modal-body iframe,
.media-modal-body object {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

.media-modal-body img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  .media-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .media-search-box {
    min-width: 100%;
  }
  .media-modal-container {
    width: 96%;
    height: 94vh;
  }
}


/* ==========================================================================
   VIEW 5: CHUYÊN MỤC VIDEO GIẢ ĐỊNH TÌNH HUỐNG (#tab-video)
   ========================================================================== */
#tab-video {
  padding-top: 46px;
  padding-bottom: 60px;
}

.video-page-header {
  margin-bottom: 34px;
  text-align: center;
}

.video-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF3E0;
  color: #E65100;
  border: 1px solid #FFE0B2;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.video-page-header .section-title {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
  font-size: 28px;
  font-weight: 800;
  color: #1E3A8A;
}

.video-page-header .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3.5px;
  background: #FF9800;
  border-radius: 2px;
}

.video-page-header .section-subtitle {
  margin-top: 14px;
  font-size: 15px;
  color: #64748B;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Rạp chiếu Video trung tâm (Cinema Theater Player) */
.cinema-theater-wrapper {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  margin-bottom: 40px;
}

.cinema-screen-box {
  background: #0B1120;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#mainCinemaPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0B1120;
  outline: none;
}

.cinema-info-bar {
  padding: 24px 30px;
  background: #FAFAFA;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.cinema-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.video-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}

.video-tag.tag-case {
  background: #FFF3E0;
  color: #E65100;
  border: 1px solid #FFCC80;
}

.video-tag.tag-topic {
  background: #EDE9FE;
  color: #6D28D9;
  border: 1px solid #DDD6FE;
}

.video-tag.tag-dur {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.cinema-main-title {
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.cinema-scenario-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.btn-download-video {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF3E0;
  color: #D97706;
  border: 1.5px solid #FCD34D;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-download-video:hover {
  background: #F59E0B;
  color: #FFFFFF;
  border-color: #F59E0B;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

/* Bảng đối chiếu 3 chiều (Multi-Angle Case Study Box) */
.case-study-comparative-box {
  padding: 26px 30px 30px;
  background: #FFFFFF;
}

.comparative-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px dashed #E2E8F0;
}

.comp-icon {
  font-size: 22px;
}

.comp-title {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

.comparative-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.comp-col {
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.col-avoid {
  background: #FEF2F2;
  border: 1.5px solid #FECACA;
}

.col-avoid .col-heading {
  color: #DC2626;
}

.col-avoid .col-body {
  color: #991B1B;
}

.col-action {
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
}

.col-action .col-heading {
  color: #16A34A;
}

.col-action .col-body {
  color: #166534;
}

.col-legal {
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
}

.col-legal .col-heading {
  color: #2563EB;
}

.col-legal .col-body {
  color: #1E40AF;
}

.col-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.col-heading h5 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.col-body {
  font-size: 13.5px;
  line-height: 1.65;
  white-space: pre-line;
}

/* Lưới danh sách 7 Video Tình Huống (Playlist Grid) */
.video-playlist-section {
  margin-top: 30px;
}

.playlist-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.playlist-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #E65100;
}

.playlist-heading {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.playlist-counter-badge {
  font-size: 12px;
  font-weight: 700;
  background: #FFF3E0;
  color: #D97706;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid #FCD34D;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.video-card-item {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.video-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(230, 81, 0, 0.14);
  border-color: #FB923C;
}

.video-card-item.is-active {
  border-color: #EA580C;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25), 0 12px 28px rgba(234, 88, 12, 0.18);
  background: #FFFDFB;
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0F172A;
  overflow: hidden;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card-item:hover .video-thumb-img {
  transform: scale(1.04);
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-card-item:hover .video-play-overlay,
.video-card-item.is-active .video-play-overlay {
  opacity: 1;
}

.play-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #EA580C;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.video-card-item:hover .play-icon-circle {
  transform: scale(1.1);
}

.video-duration-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.88);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.video-case-num-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #EA580C;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.video-card-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-card-topic {
  font-size: 11.5px;
  font-weight: 700;
  color: #D97706;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.video-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.video-card-desc {
  font-size: 13px;
  color: #64748B;
  line-height: 1.55;
  margin: 0 0 14px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #EA580C;
  font-weight: 700;
  padding-top: 10px;
  border-top: 1px dashed #F1F5F9;
}

.video-card-footer svg {
  transition: transform 0.2s ease;
}

.video-card-item:hover .video-card-footer svg {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .cinema-info-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .comparative-grid {
    grid-template-columns: 1fr;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
}
