/* ==========================================================================
   STYLE.CSS — CÒ ĐI HỌC OFFICIAL HUB
   Design Tokens chuẩn: Navy (#26405E), Navy Dark (#0D1D39), Orange (#EEA03F), Green (#287668)
   Typography: Montserrat, sans-serif
   ========================================================================== */

:root {
  --cdh-navy-dark: #0D1D39;
  --cdh-navy: #26405E;
  --cdh-navy-light: #3b5c82;
  --cdh-orange: #EEA03F;
  --cdh-orange-hover: #d98d2e;
  --cdh-orange-light: #fff5ea;
  --cdh-white: #FFFFFF;
  --cdh-green: #287668;
  --cdh-green-light: #e9f5f3;
  --cdh-light-blue: #ACDDF2;
  --cdh-beak-red: #CE6C48;
  
  --bg-page: #FAF9F6;
  --bg-card: #FFFFFF;
  --bg-reader: #FCFBF7;
  --text-main: #1A2634;
  --text-muted: #5A6A7E;
  --border-color: #E2E8F0;
  --shadow-sm: 0 2px 4px rgba(13, 29, 57, 0.04);
  --shadow-md: 0 4px 12px rgba(13, 29, 57, 0.08);
  --shadow-lg: 0 10px 25px rgba(13, 29, 57, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

html, body {
  scroll-behavior: smooth;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Common Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}
.btn-primary {
  background-color: var(--cdh-orange);
  color: var(--cdh-navy-dark);
}
.btn-primary:hover {
  background-color: var(--cdh-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(238, 160, 63, 0.35);
}
.btn-secondary {
  background-color: var(--cdh-navy);
  color: var(--cdh-white);
}
.btn-secondary:hover {
  background-color: var(--cdh-navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 29, 57, 0.25);
}
.btn-outline {
  background-color: transparent;
  color: var(--cdh-navy);
  border: 2px solid var(--cdh-navy);
}
.btn-outline:hover {
  background-color: var(--cdh-navy);
  color: var(--cdh-white);
}
.btn-zalo {
  background-color: #0068FF;
  color: #FFFFFF;
}
.btn-zalo:hover {
  background-color: #0054cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.35);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-orange {
  background-color: var(--cdh-orange-light);
  color: #c2781b;
}
.badge-navy {
  background-color: #eef3f9;
  color: var(--cdh-navy);
}
.badge-green {
  background-color: var(--cdh-green-light);
  color: var(--cdh-green);
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.logo-text-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--cdh-navy-dark);
  letter-spacing: -0.02em;
}
.logo-text-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--cdh-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-link {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 6px 0;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--cdh-navy-dark);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--cdh-orange);
  border-radius: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--cdh-navy-dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0D1D39 0%, #1e3352 60%, #26405E 100%);
  color: var(--cdh-white);
  padding: 80px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(238, 160, 63, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(238, 160, 63, 0.2);
  border: 1px solid rgba(238, 160, 63, 0.4);
  color: var(--cdh-orange);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.hero-title span {
  color: var(--cdh-orange);
}
.hero-lead {
  font-size: 18px;
  color: #e2e8f0;
  margin-bottom: 30px;
  line-height: 1.6;
}
.hero-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 35px;
}
.principle-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: transform 0.2s;
}
.principle-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
}
.principle-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--cdh-orange);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.principle-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-avatar-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-stork-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
  animation: float-stork 4s ease-in-out infinite;
}
@keyframes float-stork {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-badge {
  display: inline-block;
  margin-bottom: 10px;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--cdh-navy-dark);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Section Wrapper */
.section {
  padding: 80px 0;
}
.section-alt {
  background-color: #F3F4F6;
}

/* --- PHÂN KHU 1: BLOG HUB --- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.tab-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn:hover {
  border-color: var(--cdh-orange);
  color: var(--cdh-navy-dark);
}
.tab-btn.active {
  background-color: var(--cdh-navy);
  border-color: var(--cdh-navy);
  color: var(--cdh-white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}
.blog-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(238, 160, 63, 0.4);
}
.blog-card-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-card-body {
  padding: 20px 24px;
  flex: 1;
}
.blog-card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--cdh-navy-dark);
  line-height: 1.4;
  margin-bottom: 12px;
}
.blog-card-quote {
  background-color: var(--cdh-orange-light);
  border-left: 3px solid var(--cdh-orange);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  font-style: italic;
  color: #78350f;
  margin-bottom: 14px;
  line-height: 1.5;
}
.blog-card-summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.blog-card-footer {
  padding: 16px 24px;
  background-color: #fafbfc;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}
.read-more-link {
  font-weight: 700;
  color: var(--cdh-orange);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- NOVEL VIEWER MODAL (Chuẩn /ak:markdown-novel-viewer) --- */
.reader-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background-color: rgba(13, 29, 57, 0.7);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
.reader-modal.active {
  display: block;
}
.reader-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cdh-orange), #ff7b00);
  z-index: 2100;
  width: 0%;
  transition: width 0.1s ease;
}
.reader-container {
  max-width: 1080px;
  margin: 30px auto 60px;
  background-color: var(--bg-reader);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 80vh;
  position: relative;
}
.reader-sidebar {
  background-color: #F4EFE6;
  border-right: 1px solid #E5DCCE;
  padding: 30px 20px;
  position: sticky;
  top: 0;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.reader-sidebar-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cdh-navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toc-link {
  font-size: 13px;
  color: #4a5568;
  text-decoration: none;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: block;
  transition: all 0.2s;
}
.toc-link:hover, .toc-link.active {
  background-color: rgba(238, 160, 63, 0.2);
  color: var(--cdh-navy-dark);
  font-weight: 700;
}
.reader-main {
  padding: 40px 50px 60px;
  max-width: 800px;
  background-color: var(--bg-reader);
}
.reader-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.close-reader-btn {
  background: #f1ede4;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--cdh-navy-dark);
  cursor: pointer;
  transition: all 0.2s;
}
.close-reader-btn:hover {
  background-color: var(--cdh-orange);
  color: var(--cdh-navy-dark);
}
.reader-article-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--cdh-navy-dark);
  line-height: 1.3;
  margin-bottom: 16px;
}
.reader-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E5DCCE;
}
.reader-parent-quote {
  background-color: #FFF9ED;
  border: 1px solid #F6E2C5;
  border-left: 5px solid var(--cdh-orange);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 36px;
}
.reader-parent-quote-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--cdh-orange);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.reader-parent-quote-text {
  font-size: 16px;
  font-style: italic;
  color: #5c3b09;
  line-height: 1.6;
}
.reader-content {
  font-size: 17px;
  line-height: 1.8;
  color: #2D3748;
}
.reader-cta-box {
  margin-top: 50px;
  background: linear-gradient(135deg, #0D1D39 0%, #26405E 100%);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--cdh-white);
  text-align: center;
}
.reader-cta-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--cdh-orange);
}
.reader-cta-desc {
  font-size: 15px;
  color: #e2e8f0;
  margin-bottom: 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* --- PHÂN KHU 2: VIDEO HUB --- */
.video-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  max-width: 100%;
}
.main-player-wrap, .video-info-box {
  max-width: 100%;
  min-width: 0;
}
.main-player-wrap {
  background-color: var(--cdh-navy-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.video-ratio-9-16 {
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 9/16;
}
.video-ratio-16-9 {
  width: 100%;
  aspect-ratio: 16/9;
}
.player-element {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background-color: #000;
}
.video-info-box {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}
.video-playlist-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--cdh-navy-dark);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.video-playlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.video-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
}
.video-item:hover, .video-item.active {
  background-color: var(--cdh-orange-light);
  border-color: var(--cdh-orange);
}
.video-item-thumb {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background-color: var(--cdh-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  color: var(--cdh-orange);
}
.video-item-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--cdh-navy-dark);
  margin-bottom: 4px;
}
.video-item-info p {
  font-size: 12px;
  color: var(--text-muted);
}
.script-accordion {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.script-header {
  background-color: #f8fafc;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cdh-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.script-body {
  padding: 18px;
  font-size: 13px;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  max-height: 240px;
  overflow-y: auto;
  line-height: 1.6;
  word-break: break-word;
}
.script-body pre {
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 100%;
  overflow-x: hidden;
}

/* --- PHÂN KHU 3: KHO TÀI NGUYÊN MIỄN PHÍ --- */
.resource-nav {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 36px;
  gap: 8px;
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.resource-nav-btn {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 14px 24px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: all 0.2s;
}
.resource-nav-btn:hover {
  color: var(--cdh-navy-dark);
}
.resource-nav-btn.active {
  color: var(--cdh-orange);
}
.resource-nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--cdh-orange);
  border-radius: 2px;
}

.resource-pane {
  display: none;
}
.resource-pane.active {
  display: block;
}


/* --- PHÂN KHU 3: CẨM NANG GỠ RỐI HỌC ĐƯỜNG --- */
.guides-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.guide-group-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}
.guide-group-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
}
.guide-group-icon {
  font-size: 32px;
  line-height: 1;
  background-color: var(--cdh-orange-light);
  padding: 10px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.guide-group-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--cdh-navy-dark);
  margin-bottom: 4px;
}
.guide-group-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.guide-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
  background-color: #ffffff;
}
.guide-accordion-item:hover {
  border-color: var(--cdh-orange);
}
.guide-item-header {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cdh-navy-dark);
  background-color: #f8fafc;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}
.guide-item-header:hover {
  background-color: #f1f5f9;
}
.guide-accordion-item.active .guide-item-header {
  background-color: #fff7ed;
  color: #9a3412;
}
.guide-item-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.guide-item-toggle {
  font-size: 16px;
  transition: transform 0.2s ease;
  color: var(--text-muted);
  font-weight: bold;
}
.guide-accordion-item.active .guide-item-toggle {
  transform: rotate(180deg);
  color: var(--cdh-orange);
}
.guide-item-body {
  display: none;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
  background-color: #ffffff;
  border-top: 1px solid #fed7aa;
}
.guide-accordion-item.active .guide-item-body {
  display: block;
}
.guide-item-situation {
  font-size: 13px;
  font-style: italic;
  color: #78350f;
  background-color: #fffbeb;
  border-left: 4px solid var(--cdh-orange);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.guide-item-advice {
  color: #1e293b;
  font-size: 14px;
  line-height: 1.6;
}
.guide-item-advice strong {
  color: #065f46;
  display: block;
  margin-bottom: 4px;
}

/* 4 Trụ Cột Trợ Lý Trong Hero (SB7) */
.hero-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 28px;
}
@media (max-width: 640px) {
  .hero-values-grid {
    grid-template-columns: 1fr;
  }
}
.hero-value-card {
  background-color: #ffffff;
  border: 1px solid rgba(238, 160, 63, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(13, 29, 57, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(238, 160, 63, 0.15);
  border-color: var(--cdh-orange);
}
.hero-value-icon {
  font-size: 24px;
  line-height: 1;
  background-color: #fff7ed;
  padding: 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.hero-value-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--cdh-navy-dark);
  margin-bottom: 2px;
}
.hero-value-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}


/* 57 Hội Nhóm Table */
.community-table-wrap {
  overflow-x: auto;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.custom-table th {
  background-color: var(--cdh-navy);
  color: var(--cdh-white);
  padding: 14px 18px;
  font-weight: 700;
}
.custom-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
}
.custom-table tr:hover {
  background-color: #f8fafc;
}

/* Đối Sánh Chương Trình Grid */
.curricula-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}
.curricula-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.curricula-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--cdh-orange);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.curricula-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--cdh-navy-dark);
  margin-bottom: 14px;
  line-height: 1.4;
}
.curricula-spec {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.curricula-spec strong {
  color: var(--cdh-navy);
  display: block;
  margin-bottom: 2px;
}

/* --- PHÂN KHU 4: ZALO HUB & WIDGET --- */
.zalo-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.zalo-tiers-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.zalo-tier-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.zalo-tier-card.featured {
  border: 2px solid var(--cdh-orange);
  box-shadow: 0 8px 24px rgba(238, 160, 63, 0.2);
}
.tier-badge {
  position: absolute;
  top: 16px;
  right: 16px;
}
.tier-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--cdh-navy-dark);
  margin-bottom: 8px;
}
.tier-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--cdh-orange);
  margin-bottom: 12px;
}
.tier-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.tier-features {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tier-features li {
  font-size: 13px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.zalo-connect-box {
  background: linear-gradient(135deg, #0D1D39 0%, #26405E 100%);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--cdh-white);
  text-align: center;
}
.zalo-qr-img {
  width: 180px;
  height: 180px;
  background-color: #fff;
  padding: 10px;
  border-radius: var(--radius-md);
  margin: 0 auto 20px;
  display: block;
}
.zalo-hotline-highlight {
  font-size: 28px;
  font-weight: 800;
  color: var(--cdh-orange);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}


/* Floating Widget & Enhanced Chat Modal Popup */
.floating-widget-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--cdh-orange);
  color: var(--cdh-navy-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px 10px 12px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(238, 160, 63, 0.4);
  cursor: pointer;
  border: 2px solid #fff;
  transition: all 0.3s ease;
}
.floating-widget-trigger:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 28px rgba(238, 160, 63, 0.5);
}
.widget-stork-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
}

.chat-modal-popup {
  display: none;
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: min(540px, calc(100vh - 110px));
  background-color: #ffffff !important;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(13, 29, 57, 0.4) !important;
  border: 2px solid #cbd5e1 !important;
  z-index: 9999 !important;
  overflow: hidden;
  animation: popUp 0.25s ease-out;
  flex-direction: column;
}
.chat-modal-popup.active {
  display: flex;
}
.chat-popup-header {
  background: #0D1D39 !important;
  color: #ffffff !important;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--cdh-orange) !important;
  flex-shrink: 0;
}
.chat-popup-logo {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px;
  min-height: 28px;
  max-width: 28px !important;
  max-height: 28px !important;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  object-fit: contain;
}
.chat-popup-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-popup-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.2s;
}
.chat-popup-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}
.chat-popup-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
  background-color: #ffffff !important;
}
.level-select-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  color: var(--cdh-navy);
  cursor: pointer;
  margin-right: 6px;
  margin-bottom: 8px;
  transition: all 0.2s;
}
.level-select-tag:hover {
  background-color: #e2e8f0;
}
.level-select-tag.active {
  background-color: var(--cdh-orange);
  border-color: var(--cdh-orange);
  color: var(--cdh-navy-dark);
}
.question-item-btn {
  width: 100%;
  text-align: left;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.4;
}
.question-item-btn:hover {
  background-color: #fff7ed;
  border-color: var(--cdh-orange);
  color: var(--cdh-navy-dark);
  transform: translateX(2px);
}


/* Common Utility Classes for Component Consistency */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.w-full { width: 100%; }
.w-6 { width: 24px; }
.h-6 { height: 24px; }
.w-10 { width: 40px; }
.h-10 { height: 40px; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: var(--radius-md); }
.rounded-xl { border-radius: var(--radius-lg); }
.bg-white { background-color: #ffffff; }
.p-0\.5 { padding: 2px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-auto { margin-top: auto; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-white { color: #ffffff; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-navy-dark { color: var(--cdh-navy-dark); }
.text-amber-300 { color: #fcd34d; }
.text-amber-400 { color: #fbbf24; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-rose-700 { color: #be123c; }
.border-t { border-top: 1px solid var(--border-color); }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-amber-200 { border-color: #fde68a; }
.border-amber-300 { border-color: #fcd34d; }
.bg-amber-50 { background-color: #fffbeb; }
.leading-relaxed { line-height: 1.625; }
.space-y-3 > * + * { margin-top: 12px; }

/* Footer */
.footer {
  background-color: var(--cdh-navy-dark);
  color: #cbd5e1;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 100%;
}
.footer-brand h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--cdh-orange);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--cdh-orange);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-principles {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    justify-content: center;
  }
  .reader-container {
    grid-template-columns: 1fr;
    margin: 15px;
  }
  .reader-sidebar {
    display: none;
  }
  .reader-main {
    padding: 24px 20px 40px;
  }
  .video-showcase-grid {
    grid-template-columns: 1fr;
  }
  .zalo-hub-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .header-actions .btn-secondary {
    display: none;
  }
}

/* ==========================================================================
   STORYBRAND SB7 ENHANCEMENTS
   ========================================================================== */

/* 3-Level Problem Section */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.problem-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(238, 160, 63, 0.4);
}
.problem-card-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.problem-card-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--cdh-navy-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}
.problem-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* The Guide Banner */
.guide-banner {
  background: linear-gradient(135deg, #0D1D39 0%, #1e3352 50%, #26405E 100%);
  border-radius: var(--radius-lg);
  color: var(--cdh-white);
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 40px;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.guide-highlight {
  color: var(--cdh-orange);
  font-weight: 800;
}
.guide-quote-box {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--cdh-orange);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-top: 20px;
}

/* 3-Step Plan Section */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
  position: relative;
}
.plan-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--cdh-orange);
}
.plan-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--cdh-orange-light);
  color: var(--cdh-orange);
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 2px solid var(--cdh-orange);
}
.plan-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--cdh-navy-dark);
  margin-bottom: 12px;
}
.plan-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.plan-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--cdh-orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.plan-card-link:hover {
  gap: 10px;
}

/* The Stakes (Failure vs. Success) Section */
.stakes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
}
.stakes-card {
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.stakes-card-failure {
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
}
.stakes-card-success {
  background-color: #F0FDF4;
  border: 1px solid #BBF7D0;
}
.stakes-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.stakes-header h3 {
  font-size: 20px;
  font-weight: 800;
}
.stakes-card-failure .stakes-header h3 {
  color: #991B1B;
}
.stakes-card-success .stakes-header h3 {
  color: #166534;
}
.stakes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  line-height: 1.6;
}
.stakes-card-failure .stakes-list li {
  color: #7F1D1D;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.stakes-card-success .stakes-list li {
  color: #14532D;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

@media (max-width: 992px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .stakes-grid {
    grid-template-columns: 1fr;
  }
  .guide-banner {
    padding: 30px 20px;
  }
}


/* Hero Action Button Contrast Enhancement */
.hero-actions .btn-outline {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(4px);
}
.hero-actions .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.25) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}


/* Header Community & Membership Button Enhancements */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-community-btn {
  padding: 8px 14px !important;
  font-size: 13px !important;
  border-color: #cbd5e1 !important;
  color: var(--cdh-navy) !important;
  background-color: #f8fafc !important;
}
.header-community-btn:hover {
  background-color: var(--cdh-orange-light) !important;
  border-color: var(--cdh-orange) !important;
  color: var(--cdh-navy-dark) !important;
}
.hero-btn-main {
  background: linear-gradient(135deg, var(--cdh-orange) 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.4) !important;
  border: none !important;
}
.hero-btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.5) !important;
}
