/*
Theme Name: Happy School Center - English Academy
Theme URI: https://happyschoolcenter.com/
Author: Happy School Team & Antigravity
Description: Giao diện học tiếng Anh hiện đại, chuẩn SEO, tích hợp quản lý khóa học online, phòng học video, mua khóa học chuyển khoản ngân hàng có mã VietQR và duyệt đơn tự động/bán tự động.
Version: 2.8.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: happyschool
*/

/* Reset & Base Variables */
:root {
  --primary: #1e40af;
  /* Royal Blue */
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --secondary: #ff6b00;
  /* Vibrant Orange/Amber */
  --secondary-hover: #ea580c;
  --accent-green: #10b981;
  /* Success emerald */
  --text-dark: #0f172a;
  /* Slate 900 */
  --text-muted: #64748b;
  /* Slate 500 */
  --text-light: #94a3b8;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
}

/* ==========================================================================
   Happy School Center - Comprehensive Theme Stylesheet (Version 2)
   ========================================================================== */

/* --- RESET & BOX SIZING --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}

/* --- LAYOUT UTILITIES --- */
.hsc-container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.hsc-section {
  padding: 60px 0;
}

@media (min-width: 768px) {
  .hsc-section {
    padding: 80px 0;
  }
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.section-header {
  margin-bottom: 48px;
  text-align: center;
}

.section-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #0f172a;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* --- BUTTONS & PILLS --- */
.hsc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  line-height: 1.4;
}

.hsc-btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.35);
}

.hsc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.45);
}

.hsc-btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, #ea580c 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 rgba(234, 88, 12, 0.35);
}

.hsc-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(234, 88, 12, 0.45);
}

.hsc-btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-dark) !important;
}

.hsc-btn-outline:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary) !important;
  transform: translateY(-2px);
}

.hsc-btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.35);
}

.hsc-btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.45);
}

.hsc-btn-purple {
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 rgba(168, 85, 247, 0.35);
}

.hsc-btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(168, 85, 247, 0.45);
}

.hsc-btn-rose {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 rgba(244, 63, 94, 0.35);
}

.hsc-btn-rose:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(244, 63, 94, 0.45);
}

.hsc-btn-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.35);
}

.hsc-btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.45);
}

/* Lưới hiển thị cho mục Tài nguyên học miễn phí (Mặc định 3 item trên 1 hàng, từ 4 item tự động xuống hàng) */
.hsc-free-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

@media (min-width: 992px) {
  .hsc-free-resources-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hsc-free-resources-grid[data-count="1"] {
    grid-template-columns: minmax(320px, 480px);
    justify-content: center;
  }

  .hsc-free-resources-grid[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) and (min-width: 641px) {
  .hsc-free-resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hsc-free-resources-grid {
    grid-template-columns: 1fr;
  }
}

.hsc-btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.hsc-btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
  border-radius: var(--radius-lg);
}

.hsc-btn-block {
  width: 100%;
}

/* --- HEADER & NAVIGATION --- */
.hsc-topbar {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
}

.hsc-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hsc-topbar-links {
  display: flex;
  gap: 20px;
}

.hsc-topbar-links a {
  color: #cbd5e1;
}

.hsc-topbar-links a:hover {
  color: #ffffff;
}

.hsc-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.hsc-site-header .hsc-nav-container,
.hsc-topbar .hsc-topbar-inner {
  max-width: 1560px;
}

.hsc-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.hsc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.hsc-brand-logo {
  max-height: 48px;
  width: auto;
}

.hsc-brand-text h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: -0.02em;
  margin: 0;
}

.hsc-brand-text span {
  font-size: 0.75rem;
  color: var(--secondary);
  font-weight: 700;
  display: block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hsc-nav-menu {
  display: none;
}

@media (min-width: 992px) {
  .hsc-nav-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  @media (min-width: 1400px) {
    .hsc-nav-menu {
      gap: 16px;
    }
  }

  .hsc-nav-menu>li {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .hsc-nav-menu>li>a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 13px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
  }

  .hsc-nav-menu>li>a:hover,
  .hsc-nav-menu>li.current-menu-item>a,
  .hsc-nav-menu>li.current-menu-ancestor>a,
  .hsc-nav-menu>li.current-menu-parent>a {
    color: var(--primary);
    background: var(--primary-light);
  }

  /* Sub-menu đa cấp & Dropdown hover */
  .hsc-nav-menu>li.menu-item-has-children>a,
  .hsc-nav-menu>li.hsc-has-dropdown>a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .hsc-nav-menu .hsc-dropdown-arrow {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    pointer-events: none;
  }

  .hsc-nav-menu li:hover>a .hsc-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary);
  }

  /* Cầu nối an toàn giúp rê chuột từ menu cha xuống sub-menu không bị ngắt hover */
  .hsc-nav-menu>li::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 14px;
    z-index: 9998;
    pointer-events: auto;
  }

  .hsc-nav-menu .sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 245px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.12), 0 6px 16px -2px rgba(15, 23, 42, 0.06);
    padding: 8px;
    margin: 0;
    list-style: none;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
  }

  .hsc-nav-menu li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hsc-nav-menu .sub-menu li {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .hsc-nav-menu .sub-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
  }

  .hsc-nav-menu .sub-menu li a .hsc-sub-bullet {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1;
    transition: color 0.15s ease;
  }

  .hsc-nav-menu .sub-menu li a .hsc-sub-icon {
    font-size: 14px;
    line-height: 1;
  }

  .hsc-nav-menu .sub-menu li a:hover {
    background: #f0f9ff;
    color: #0284c7;
    transform: translateX(4px);
  }

  .hsc-nav-menu .sub-menu li a:hover .hsc-sub-bullet {
    color: #0284c7;
  }

  .hsc-nav-menu .sub-menu li a.hsc-sub-item-all {
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
    padding-bottom: 10px;
    color: #0f172a;
    border-radius: 8px 8px 0 0;
  }

  .hsc-nav-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
  }
}

.hsc-mobile-menu .hsc-mobile-has-submenu {
  position: relative;
}

.hsc-mobile-menu .hsc-mobile-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hsc-mobile-menu .hsc-mobile-menu-heading > a {
  flex: 1;
}

.hsc-mobile-menu .hsc-mobile-sub-toggle {
  background: transparent;
  border: 1px solid rgba(203, 213, 225, 0.6);
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.hsc-mobile-menu .hsc-mobile-sub-toggle:hover,
.hsc-mobile-menu .hsc-mobile-sub-toggle:active {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
}

.hsc-mobile-menu .hsc-mobile-sub-arrow {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* MẶC ĐỊNH TRÊN MOBILE: THU GỌN LẠI (ẨN ĐI) */
.hsc-mobile-menu .sub-menu {
  display: none !important;
  list-style: none !important;
  padding: 4px 0 6px 14px !important;
  margin: 8px 0 10px 0 !important;
  background: rgba(241, 245, 249, 0.85) !important;
  border-left: 3px solid #0284c7 !important;
  border-radius: 0 8px 8px 0 !important;
}

/* KHI MỞ ACCORDION */
.hsc-mobile-menu .hsc-mobile-has-submenu.is-open > .sub-menu {
  display: block !important;
  animation: hscSubMenuSlide 0.22s ease-out !important;
}

.hsc-mobile-menu .hsc-mobile-has-submenu .hsc-mobile-sub-arrow {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  color: #64748b;
}

.hsc-mobile-menu .hsc-mobile-has-submenu.is-open .hsc-mobile-sub-arrow {
  transform: rotate(180deg);
  color: #0284c7;
}

.hsc-mobile-menu .hsc-mobile-sub-toggle {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(203, 213, 225, 0.6);
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  pointer-events: none;
}

.hsc-mobile-menu .hsc-mobile-has-submenu.is-open .hsc-mobile-sub-toggle {
  background: #e0f2fe;
  border-color: #7dd3fc;
}

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

.hsc-mobile-menu .sub-menu li {
  margin: 0 !important;
}

.hsc-mobile-menu .sub-menu li a {
  display: block !important;
  padding: 8px 12px !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: #334155 !important;
  text-decoration: none !important;
  border-bottom: none !important;
  border-radius: 6px !important;
  transition: all 0.15s ease !important;
}

.hsc-mobile-menu .sub-menu li a:hover {
  background: #e0f2fe !important;
  color: #0284c7 !important;
}

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

@media (max-width: 991px) {

  .hsc-header-btn-login,
  .hsc-header-btn-admin,
  .hsc-header-btn-logout {
    display: none !important;
  }

  .hsc-nav-actions {
    gap: 8px;
  }

  .hsc-header-btn-register {
    padding: 7px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .hsc-brand-text h2 {
    font-size: 1.18rem;
  }

  .hsc-brand-text span {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .hsc-nav-actions {
    gap: 6px;
  }

  .hsc-header-btn-register {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .hsc-brand-text h2 {
    font-size: 1.05rem;
  }
}

.hsc-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: var(--primary-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.hsc-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.hsc-mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

@media (min-width: 992px) {
  .hsc-mobile-toggle {
    display: none;
  }
}

.hsc-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  transition: all 0.3s;
}

/* Mobile Menu Panel */
.hsc-mobile-drawer {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 20px;
}

.hsc-mobile-drawer.active {
  display: block;
}

.hsc-mobile-menu {
  list-style: none;
}

.hsc-mobile-menu li a {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
}

/* --- HERO SECTION --- */
.hsc-hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 85px;
  background: radial-gradient(90% 90% at 50% 0%, #eff6ff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-color);
}

/* Tăng width rộng rãi trên màn hình PC */
.hsc-hero .hsc-container {
  max-width: 1400px;
  padding-left: 28px;
  padding-right: 28px;
}

.hsc-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 992px) {
  .hsc-hero-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 48px;
  }
}

@media (min-width: 1200px) {
  .hsc-hero-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 56px;
  }
}

.hsc-hero-left-col {
  width: 100%;
}

.hsc-hero-right-col {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.hsc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.hsc-hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.24;
  margin-bottom: 20px;
  color: #0f172a;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hsc-hero-title {
    font-size: 2.85rem;
    line-height: 1.22;
  }
}

@media (min-width: 1200px) {
  .hsc-hero-title {
    font-size: 3.25rem;
    line-height: 1.2;
  }
}

.hsc-hero-title .highlight-orange {
  color: var(--secondary);
  position: relative;
  display: inline-block;
}

.hsc-hero-desc {
  font-size: 1.12rem;
  line-height: 1.75;
  color: #475569;
  margin-bottom: 24px;
  max-width: 680px;
}

/* Nút kiểm tra từ vựng nổi bật */
.hsc-hero-vocab-cta {
  margin-bottom: 18px;
}

.hsc-btn-vocab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  line-height: 1.4;
}

.hsc-btn-vocab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px 0 rgba(16, 185, 129, 0.48);
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.hsc-btn-vocab .hsc-vocab-pulse-dot {
  width: 9px;
  height: 9px;
  background-color: #fef08a;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(254, 240, 138, 0.7);
  animation: hsc-pulse-dot 1.8s infinite;
}

@keyframes hsc-pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(254, 240, 138, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(254, 240, 138, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(254, 240, 138, 0);
  }
}

.hsc-btn-vocab .hsc-vocab-arrow {
  display: inline-block;
  font-weight: 800;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.hsc-btn-vocab:hover .hsc-vocab-arrow {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .hsc-hero .hsc-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hsc-btn-vocab {
    font-size: 0.88rem;
    padding: 10px 16px;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.hsc-hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hsc-hero-ctas .hsc-btn {
  white-space: nowrap;
}

.hsc-hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.hsc-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hsc-trust-icon {
  color: var(--accent-green);
  font-size: 1.2rem;
}

.hsc-trust-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hsc-hero-card-preview {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #ffffff;
  border: 4px solid #ffffff;
}

.hsc-hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* --- VALUE PROPOSITION CARDS --- */
.hsc-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

@media (min-width: 992px) {
  .hsc-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hsc-features-grid[data-count="1"] {
    grid-template-columns: minmax(320px, 480px);
    justify-content: center;
  }

  .hsc-features-grid[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) and (min-width: 641px) {
  .hsc-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hsc-features-grid {
    grid-template-columns: 1fr;
  }
}

.hsc-feature-card {
  background: var(--bg-card);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.hsc-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #bfdbfe;
}

.hsc-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.hsc-feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.hsc-feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- COURSE CARDS & GRID --- */
.hsc-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* --- FEATURED COURSES CAROUSEL SLIDER (Slide có autoplay) --- */
.hsc-courses-carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.hsc-courses-carousel-viewport {
  overflow: hidden;
  width: 100%;
  padding: 16px 8px 24px;
  margin: -16px -8px -24px;
}

.hsc-courses-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 26px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hsc-courses-carousel-track.is-few-slides {
  justify-content: center;
}

.hsc-courses-carousel-slide {
  flex: 0 0 calc(33.3333% - 17.33px);
  min-width: 0;
  display: flex;
  box-sizing: border-box;
}

.hsc-courses-carousel-slide .hsc-course-card {
  width: 100%;
  height: 100%;
  margin-bottom: 0;
}

.hsc-courses-carousel-container .hsc-courses-carousel-prev {
  left: -22px;
}

.hsc-courses-carousel-container .hsc-courses-carousel-next {
  right: -22px;
}

@media (max-width: 1023px) and (min-width: 641px) {
  .hsc-courses-carousel-slide {
    flex: 0 0 calc(50% - 13px);
  }
}

@media (max-width: 640px) {
  .hsc-courses-carousel-slide {
    flex: 0 0 100%;
  }
  .hsc-courses-carousel-container .hsc-carousel-nav {
    display: none !important;
  }
}

.hsc-course-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.hsc-course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: #93c5fd;
}

.hsc-course-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
  overflow: hidden;
}

.hsc-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.hsc-course-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}

.hsc-course-level {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.hsc-course-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hsc-course-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hsc-course-students {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0369a1;
  font-weight: 600;
  background: #f0f9ff;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #e0f2fe;
}

.hsc-course-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text-dark);
}

.hsc-course-title a {
  color: inherit;
}

.hsc-course-title a:hover {
  color: var(--primary);
}

.hsc-course-excerpt {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.hsc-course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.hsc-course-price-wrap {
  display: flex;
  flex-direction: column;
}

.hsc-course-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
}

.hsc-course-orig-price {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
}

/* --- SINGLE COURSE PAGE --- */
.hsc-course-header-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 50px 0;
}

/* --- ONLINE COURSES PAGE: ASSESSMENT INTRO BOX --- */
.hsc-assessment-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #eff6ff 100%);
  border: 1.5px solid #bbf7d0;
  border-radius: 20px;
  padding: 30px 36px;
  margin-bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.12), 0 4px 12px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
}

.hsc-assessment-box::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hsc-assessment-box-left {
  flex: 1;
  min-width: 0;
}

.hsc-assessment-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  border: 1px solid #bbf7d0;
}

.hsc-assessment-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: hsc-pulse-dot 1.8s infinite;
}

.hsc-assessment-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.hsc-assessment-desc {
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 16px 0;
  max-width: 680px;
}

.hsc-assessment-perks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hsc-perk-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #dbeafe;
}

.hsc-assessment-box-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hsc-btn-assessment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.hsc-btn-assessment:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.55);
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.hsc-btn-assessment .hsc-assessment-arrow {
  display: inline-block;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.hsc-btn-assessment:hover .hsc-assessment-arrow {
  transform: translateX(5px);
}

.hsc-assessment-subnote {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.hsc-banner-quiz-btn {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
  font-size: 0.92rem !important;
  padding: 10px 22px !important;
}

@media (max-width: 991px) {
  .hsc-assessment-box {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 20px;
    gap: 20px;
  }
  .hsc-assessment-box-right {
    align-items: stretch;
  }
  .hsc-btn-assessment {
    width: 100%;
  }
  .hsc-assessment-subnote {
    text-align: center;
  }
}

.hsc-course-header-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  .hsc-course-header-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

.hsc-course-header-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.hsc-course-header-subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.hsc-course-header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hsc-course-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: #f1f5f9;
}

.hsc-course-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px 0 80px;
}

@media (min-width: 992px) {
  .hsc-course-main-grid {
    grid-template-columns: 1.4fr 0.6fr;
  }
}

.hsc-course-content-block {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 32px;
  margin-bottom: 30px;
}

.hsc-block-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Curriculum list */
.hsc-curriculum-list {
  list-style: none;
}

.hsc-curriculum-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.hsc-curriculum-item:hover {
  background: #f8fafc;
  border-color: #93c5fd;
}

.hsc-curriculum-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hsc-lesson-order {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.hsc-curriculum-item-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.hsc-preview-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: #ecfdf5;
  color: #059669;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* Course Sidebar Card */
.hsc-course-sidebar-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: sticky;
  top: 90px;
}

.hsc-sidebar-price-row {
  margin-bottom: 20px;
}

.hsc-sidebar-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--secondary);
}

.hsc-sidebar-orig-price {
  font-size: 1rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 8px;
}

.hsc-sidebar-perks {
  list-style: none;
  margin: 24px 0;
}

.hsc-sidebar-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hsc-sidebar-perks li svg,
.hsc-sidebar-perks li i {
  color: var(--accent-green);
  flex-shrink: 0;
}

/* --- LEARNING ROOM (SINGLE LESSON / VIDEO PLAYER) --- */
.hsc-learning-room {
  background: #0b1329;
  min-height: 100vh;
  color: #e2e8f0;
}

.hsc-learning-header {
  height: 60px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.hsc-learning-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
}

.hsc-learning-back:hover {
  color: #ffffff;
}

.hsc-learning-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hsc-progress-bar-track {
  width: 160px;
  height: 8px;
  background: #334155;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.hsc-progress-bar-fill {
  height: 100%;
  background: var(--accent-green);
  transition: width 0.3s ease;
}

.hsc-progress-percent {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-green);
}

.hsc-learning-body {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .hsc-learning-body {
    grid-template-columns: 1fr 360px;
    height: calc(100vh - 60px);
  }
}

.hsc-player-pane {
  padding: 24px;
  overflow-y: auto;
}

.hsc-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-xl);
}

.hsc-video-wrapper iframe,
.hsc-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hsc-lesson-details {
  margin-top: 24px;
  background: #1e293b;
  border-radius: var(--radius-lg);
  padding: 24px;
}

.hsc-lesson-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #334155;
}

.hsc-lesson-h1 {
  font-size: 1.6rem;
  color: #ffffff;
}

.hsc-btn-complete {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #334155;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hsc-btn-complete.is-completed {
  background: var(--accent-green);
  color: #ffffff;
}

.hsc-lesson-content-text {
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.8;
  margin-top: 24px;
}

.hsc-lesson-content-text h1,
.hsc-lesson-content-text h2,
.hsc-lesson-content-text h3,
.hsc-lesson-content-text h4 {
  color: #f8fafc;
  margin-top: 28px;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.hsc-lesson-content-text h2 {
  font-size: 1.45rem;
  border-bottom: 1px solid #334155;
  padding-bottom: 8px;
}

.hsc-lesson-content-text h3 {
  font-size: 1.25rem;
  color: #38bdf8;
}

.hsc-lesson-content-text p {
  margin-bottom: 18px;
}

.hsc-lesson-content-text ul,
.hsc-lesson-content-text ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.hsc-lesson-content-text li {
  margin-bottom: 8px;
}

.hsc-lesson-content-text strong,
.hsc-lesson-content-text b {
  color: #ffffff;
  font-weight: 700;
}

.hsc-lesson-content-text a {
  color: #38bdf8;
  text-decoration: underline;
}

.hsc-lesson-content-text blockquote {
  border-left: 4px solid #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  color: #e2e8f0;
  font-style: italic;
}

.hsc-lesson-content-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #0f172a;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #334155;
}

.hsc-lesson-content-text th {
  background: #1e293b;
  color: #38bdf8;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #334155;
}

.hsc-lesson-content-text td {
  padding: 12px 16px;
  border-bottom: 1px solid #1e293b;
  color: #cbd5e1;
}

.hsc-lesson-content-text img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hsc-lesson-content-text pre,
.hsc-lesson-content-text code {
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.9em;
}

/* Playlist sidebar */
.hsc-playlist-pane {
  background: #0f172a;
  border-left: 1px solid #1e293b;
  overflow-y: auto;
  padding: 20px 16px;
}

.hsc-playlist-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1e293b;
}

.hsc-playlist-list {
  list-style: none;
}

.hsc-playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hsc-playlist-item:hover {
  background: #1e293b;
  color: #ffffff;
}

.hsc-playlist-item.is-active {
  background: #1e3a8a;
  color: #ffffff;
  font-weight: 600;
}

.hsc-playlist-status {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.hsc-status-check {
  background: var(--accent-green);
  color: #fff;
}

.hsc-status-lock {
  background: #334155;
  color: #94a3b8;
}

/* --- PAYMENT / VIETQR BUY MODAL --- */
.hsc-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.hsc-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.hsc-modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: hscModalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes hscModalIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.hsc-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hsc-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.hsc-modal-body {
  padding: 24px;
}

.hsc-qr-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.hsc-qr-img {
  max-width: 220px;
  margin: 0 auto 12px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.hsc-bank-details {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.hsc-copy-tag {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  user-select: all;
}

/* Form Styles */
.hsc-form-group {
  margin-bottom: 18px;
}

.hsc-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}

.hsc-form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-dark);
  transition: border-color 0.2s;
}

.hsc-form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.hsc-file-upload-box {
  border: 2px dashed #94a3b8;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  transition: all 0.2s;
}

.hsc-file-upload-box:hover {
  border-color: var(--primary);
  background: #eff6ff;
}

.hsc-upload-preview {
  max-height: 120px;
  margin: 10px auto 0;
  border-radius: 6px;
  display: none;
}

.hsc-file-upload-box.has-error {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
  animation: hscShake 0.4s ease-in-out;
}

.hsc-form-control.has-error,
.hsc-form-control.hsc-input-error {
  border-color: #ef4444 !important;
  background-color: #fffafa !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
  animation: hscShake 0.4s ease-in-out;
}

@keyframes hscShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-5px);
  }

  40%,
  80% {
    transform: translateX(5px);
  }
}

/* --- AUTH (LOGIN / REGISTER) CARDS --- */
.hsc-auth-container {
  max-width: 480px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.hsc-auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
}

.hsc-auth-tab {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.hsc-auth-tab.active {
  color: var(--primary);
  background: #ffffff;
  border-bottom-color: var(--primary);
}

.hsc-auth-content {
  padding: 32px;
}

.hsc-password-wrap {
  position: relative;
}

.hsc-password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.hsc-google-btn-wrap {
  width: 100%;
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.hsc-google-btn-wrap .g_id_signin {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hsc-google-btn-wrap .g_id_signin>div,
.hsc-google-btn-wrap .g_id_signin iframe {
  margin: 0 auto !important;
}

.hsc-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border: 1px solid #dadce0;
  background: #ffffff;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.98rem;
  color: #3c4043;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
  transition: all 0.2s ease;
  margin-top: 14px;
}

.hsc-google-btn:hover {
  background: #f8fafd;
  border-color: #c2c7cf;
  box-shadow: 0 1px 3px 1px rgba(60, 64, 67, 0.2);
}

.hsc-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: var(--text-light);
  font-size: 0.85rem;
}

.hsc-divider::before,
.hsc-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.hsc-divider span {
  padding: 0 12px;
}

/* --- MY COURSES DASHBOARD --- */
.hsc-dashboard-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 30px 0;
  margin-bottom: 40px;
}

.hsc-dashboard-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hsc-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
}

.hsc-user-name {
  font-size: 1.5rem;
  font-weight: 800;
}

.hsc-user-role {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Progress card in My Courses */
.hsc-my-course-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hsc-my-course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hsc-my-course-header {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.hsc-my-course-thumb {
  width: 100px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.hsc-my-progress-row {
  margin: 14px 0 20px;
}

.hsc-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #475569;
}

/* --- FOOTER --- */
.hsc-footer {
  background: #0b1329;
  color: #94a3b8;
  padding: 60px 0 30px;
  border-top: 1px solid #1e293b;
}

.hsc-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.hsc-footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.hsc-footer-links {
  list-style: none;
}

.hsc-footer-links li {
  margin-bottom: 10px;
}

.hsc-footer-links a {
  color: #94a3b8;
}

.hsc-footer-links a:hover {
  color: #ffffff;
}

.hsc-footer-bottom {
  padding-top: 30px;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.875rem;
}

/* --- FLOATING ZALO & HOTLINE WIDGET --- */
.hsc-floating-contact {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}

.hsc-contact-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
  text-decoration: none;
}

.hsc-contact-btn:hover {
  transform: scale(1.1);
}

.hsc-zalo-btn {
  background: #0068ff;
}

.hsc-hotline-btn {
  background: #10b981;
}

/* Alert Notices */
.hsc-alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.hsc-alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.hsc-alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.hsc-alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM (RIGHT SIDE)
   ========================================================================== */
.hsc-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100vw - 32px);
}

.hsc-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  padding: 16px 18px;
  border-radius: 12px;
  box-shadow: 0 14px 35px -5px rgba(15, 23, 42, 0.18), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  border-left: 5px solid #3b82f6;
  pointer-events: auto;
  overflow: hidden;
  animation: hscToastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.25s ease;
  font-family: inherit;
}

.hsc-toast:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -4px rgba(15, 23, 42, 0.22), 0 6px 16px -2px rgba(15, 23, 42, 0.1);
}

.hsc-toast.hsc-toast-hiding {
  animation: hscToastSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Toast types */
.hsc-toast-error {
  border-left-color: #ef4444;
}

.hsc-toast-success {
  border-left-color: #10b981;
}

.hsc-toast-warning {
  border-left-color: #f59e0b;
}

.hsc-toast-info {
  border-left-color: #3b82f6;
}

/* Icon */
.hsc-toast-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hsc-toast-error .hsc-toast-icon {
  background: #fee2e2;
  color: #dc2626;
}

.hsc-toast-success .hsc-toast-icon {
  background: #dcfce7;
  color: #16a34a;
}

.hsc-toast-warning .hsc-toast-icon {
  background: #fef3c7;
  color: #d97706;
}

.hsc-toast-info .hsc-toast-icon {
  background: #e0e7ff;
  color: #4f46e5;
}

.hsc-toast-icon svg {
  width: 22px;
  height: 22px;
}

/* Body */
.hsc-toast-body {
  flex: 1;
  min-width: 0;
}

.hsc-toast-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
  line-height: 1.3;
}

.hsc-toast-message {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.45;
  word-break: break-word;
}

/* Close button */
.hsc-toast-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 6px;
  font-size: 1.4rem;
  line-height: 1;
  transition: all 0.15s ease;
}

.hsc-toast-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Progress bar */
.hsc-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: rgba(0, 0, 0, 0.06);
}

.hsc-toast-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
}

.hsc-toast-error .hsc-toast-progress-bar {
  background: #ef4444;
}

.hsc-toast-success .hsc-toast-progress-bar {
  background: #10b981;
}

.hsc-toast-warning .hsc-toast-progress-bar {
  background: #f59e0b;
}

.hsc-toast-info .hsc-toast-progress-bar {
  background: #3b82f6;
}

/* Input error state & shake animation */
.hsc-input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.2) !important;
  animation: hscInputShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes hscToastSlideIn {
  from {
    transform: translateX(115%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes hscToastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
    max-height: 140px;
  }

  to {
    transform: translateX(115%);
    opacity: 0;
    max-height: 0;
    margin-top: -12px;
    padding-top: 0;
    padding-bottom: 0;
  }
}

@keyframes hscInputShake {

  10%,
  90% {
    transform: translateX(-3px);
  }

  20%,
  80% {
    transform: translateX(4px);
  }

  30%,
  50%,
  70% {
    transform: translateX(-5px);
  }

  40%,
  60% {
    transform: translateX(5px);
  }
}

@media (max-width: 480px) {
  .hsc-toast-container {
    top: 14px;
    right: 14px;
    left: 14px;
    width: auto;
  }
}

/* ==========================================================================
   TRANG HỌC MIỄN PHÍ & FREE PRACTICE GRID CARDS
   ========================================================================== */
.hsc-free-content-wrap {
  margin: 0 auto;
}

.hsc-free-content-wrap .wp-block-heading {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 8px;
}

.hsc-free-content-wrap h2.wp-block-heading {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.hsc-free-content-wrap h2.wp-block-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
}

.hsc-free-content-wrap>p:first-of-type,
.hsc-free-content-wrap p:has(strong) {
  text-align: center;
  font-size: 1.08rem;
  color: #64748b;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Grid chứa các khóa học luyện tập miễn phí */
.free-practice-grid.wp-block-columns {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 26px !important;
  margin-bottom: 26px !important;
}

@media (min-width: 768px) {
  .free-practice-grid.wp-block-columns {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
  }
}

/* Mỗi thẻ bài học / khóa học */
.free-practice-grid .wp-block-column {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 34px 30px;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 !important;
}

/* Dải màu gradient trang trí phía trên thẻ khi hover */
.free-practice-grid .wp-block-column::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e40af, #3b82f6, #ff6b00);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Huy hiệu 'MIỄN PHÍ' góc trên bên phải */
.free-practice-grid .wp-block-column::after {
  content: "MIỄN PHÍ";
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.15);
}

.free-practice-grid .wp-block-column:hover {
  transform: translateY(-6px);
  border-color: #93c5fd;
  box-shadow: 0 20px 30px -8px rgba(30, 64, 175, 0.14);
}

.free-practice-grid .wp-block-column:hover::before {
  opacity: 1;
}

/* Tiêu đề trong thẻ */
.free-practice-grid .wp-block-column h3.wp-block-heading {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  color: #1e3a8a !important;
  line-height: 1.4 !important;
  margin-bottom: 14px !important;
  margin-top: 0 !important;
  text-align: left !important;
  padding-right: 75px;
  /* Chừa khoảng trống cho huy hiệu MIỄN PHÍ */
}

/* Mô tả trong thẻ */
.free-practice-grid .wp-block-column p {
  font-size: 0.98rem;
  line-height: 1.68;
  color: #64748b;
  margin-bottom: 26px;
  text-align: left;
  flex-grow: 1;
}

/* Khối nút bấm */
.free-practice-grid .wp-block-column .wp-block-buttons {
  margin-top: auto;
  width: 100%;
}

.free-practice-grid .wp-block-column .wp-block-button {
  width: 100%;
}

.free-practice-grid .wp-block-column .wp-block-button__link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  padding: 13px 20px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.free-practice-grid .wp-block-column .wp-block-button__link:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45) !important;
  color: #ffffff !important;
}

.free-practice-grid .wp-block-column .wp-block-button__link::after {
  content: "→";
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.free-practice-grid .wp-block-column .wp-block-button__link:hover::after {
  transform: translateX(5px);
}

/* ==========================================================================
   SINGLE POST & FREE LESSON DETAIL PAGE (V2.5.0)
   ========================================================================== */

.hsc-single-post-section {
  background-color: #f8fafc;
  padding: 32px 0 70px;
  min-height: 80vh;
}

.hsc-single-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Top Utility Bar (Breadcrumb & Back button) --- */
.hsc-single-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hsc-single-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #64748b;
  flex-wrap: wrap;
}

.hsc-single-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.hsc-single-breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.hsc-single-breadcrumb .hsc-sep {
  color: #cbd5e1;
  font-size: 0.8rem;
}

.hsc-single-breadcrumb .hsc-current-crumb {
  color: #0f172a;
  font-weight: 700;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hsc-back-to-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hsc-back-to-list-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateX(-3px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}

/* --- Single Post Card Box --- */
.hsc-single-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 14px 40px -10px rgba(15, 23, 42, 0.08);
  padding: 46px 52px;
  position: relative;
}

@media (max-width: 768px) {
  .hsc-single-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
}

/* --- Post Header --- */
.hsc-single-header {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
}

.hsc-single-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.hsc-badge-category {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 9999px;
}

.hsc-badge-lessons-count {
  display: inline-flex;
  align-items: center;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
}

.hsc-single-title {
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-size: 2.35rem;
  line-height: 1.32;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .hsc-single-title {
    font-size: 1.7rem;
  }
}

.hsc-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 0.9rem;
  color: #64748b;
}

.hsc-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hsc-meta-free {
  color: #059669;
  font-weight: 700;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
}

.hsc-meta-views {
  color: #0284c7;
  font-weight: 600;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.hsc-meta-views svg {
  color: #0284c7;
  flex-shrink: 0;
}

.hsc-meta-views .hsc-admin-view-tag {
  background: #0284c7;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-left: 2px;
  line-height: 1.2;
}

/* --- Multipage Top Lesson Status Bar --- */
.hsc-lesson-status-bar {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  box-shadow: 0 6px 20px -4px rgba(30, 58, 138, 0.25);
}

.hsc-status-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hsc-status-btn-toc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.hsc-status-btn-toc:hover {
  background: #ffffff;
  color: #1e3a8a !important;
}

.hsc-status-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hsc-status-pill {
  background: #ff6b00;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.hsc-status-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}

.hsc-status-right {
  display: flex;
  gap: 8px;
}

.hsc-status-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.hsc-status-nav-link:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hsc-status-nav-link.hsc-nav-next-highlight {
  background: #ffffff;
  color: #1e3a8a !important;
}

.hsc-status-nav-link.hsc-nav-next-highlight:hover {
  background: #f1f5f9;
  transform: translateX(2px);
}

/* --- Featured Image / Cover Banner --- */
.hsc-single-featured-image {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 34px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.hsc-single-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Entry Content Styling --- */
.hsc-entry-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #334155;
}

.hsc-entry-content p {
  margin-bottom: 1.4em;
}

/* Override Gutenberg harsh vivid red colors for cleaner look */
.hsc-entry-content .has-vivid-red-color,
.hsc-entry-content h2.has-vivid-red-color,
.hsc-entry-content p.has-vivid-red-color {
  color: #1e3a8a !important;
}

.hsc-entry-content .has-link-color a {
  color: #1e40af;
}

/* Entry Headings */
.hsc-entry-content h2.wp-block-heading {
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin: 36px 0 16px;
  line-height: 1.35;
}

.hsc-entry-content h3.wp-block-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin: 28px 0 14px;
}

/* Entry Content Images */
.hsc-entry-content .wp-block-image {
  margin: 28px 0;
}

.hsc-entry-content .wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: block;
  margin: 0 auto;
}

/* Entry Audio Player Block */
.hsc-entry-content .wp-block-audio {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 16px;
  padding: 18px 24px;
  margin: 26px 0;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.08);
  position: relative;
}

.hsc-entry-content .wp-block-audio::before {
  content: "🎧 Audio Luyện Nghe (Bấm nút Play ▶ để nghe):";
  display: block;
  font-weight: 800;
  font-size: 0.92rem;
  color: #0369a1;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.hsc-entry-content .wp-block-audio audio {
  width: 100%;
  height: 46px;
  outline: none;
  border-radius: 30px;
}

/* Content Separator */
.hsc-entry-content hr.wp-block-separator {
  margin: 36px 0;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e1 50%, transparent);
}

/* ==========================================================================
   SYLLABUS & TABLE OF CONTENTS CARD GRID (V2.5.0)
   ========================================================================== */

.hsc-syllabus-header {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 24px 28px;
  margin: 32px 0 22px;
  text-align: center;
}

.hsc-syllabus-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.hsc-syllabus-icon {
  font-size: 1.8rem;
}

.hsc-syllabus-main-title {
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-size: 1.7rem;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0;
  letter-spacing: -0.01em;
}

.hsc-syllabus-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
}

/* Syllabus 2-3 Column Grid */
.hsc-syllabus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  margin: 22px 0 40px;
}

@media (max-width: 640px) {
  .hsc-syllabus-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual Syllabus Card Item */
.hsc-syllabus-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.hsc-syllabus-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #3b82f6;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hsc-syllabus-item.hsc-badge-test::before {
  background: #ef4444;
}

.hsc-syllabus-item:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.15);
}

.hsc-syllabus-item:hover::before {
  opacity: 1;
}

.hsc-item-full-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  text-decoration: none !important;
  width: 100%;
  color: inherit;
}

.hsc-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.hsc-badge-unit .hsc-item-badge {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.hsc-badge-test .hsc-item-badge {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.hsc-item-title {
  flex-grow: 1;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.hsc-syllabus-item:hover .hsc-item-title {
  color: #2563eb;
}

.hsc-item-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.hsc-syllabus-item:hover .hsc-item-arrow {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateX(3px);
}

/* ==========================================================================
   MULTIPAGE LESSON FOOTER NAVIGATION (V2.5.0)
   ========================================================================== */

.hsc-lesson-footer-nav {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px 32px;
  margin-top: 44px;
}

@media (max-width: 640px) {
  .hsc-lesson-footer-nav {
    padding: 20px 16px;
  }
}

.hsc-footer-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hsc-btn-prev-lesson,
.hsc-btn-next-lesson {
  min-width: 175px;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
}

.hsc-btn-toc {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155 !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hsc-btn-toc:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8 !important;
}

.hsc-btn-toc.is-active-toc {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8 !important;
}

/* Quick Jump Dropdown Box */
.hsc-footer-jump-box {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 24px;
}

.hsc-jump-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #1e293b;
  white-space: nowrap;
}

.hsc-select-wrapper {
  flex-grow: 1;
  min-width: 240px;
}

.hsc-jump-select {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.92rem;
  color: #1e293b;
  background: #ffffff;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hsc-jump-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Numbered Page Pills Bar */
.hsc-footer-pills-bar {
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.hsc-pills-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 10px;
  display: block;
}

.hsc-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  padding: 4px 2px;
}

.hsc-page-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s ease;
}

.hsc-page-pill:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.hsc-page-pill.is-current {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   CALL TO ACTION RECOMMENDATION BLOCK AT POST END (V2.5.0)
   ========================================================================== */

.hsc-single-cta-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 38px 44px;
  margin-top: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.3);
}

@media (max-width: 768px) {
  .hsc-single-cta-card {
    padding: 26px 20px;
  }
}

.hsc-cta-decor {
  position: absolute;
  right: 25px;
  bottom: 10px;
  font-size: 6.5rem;
  opacity: 0.08;
  pointer-events: none;
}

.hsc-cta-tag {
  display: inline-block;
  background: rgba(255, 107, 0, 0.2);
  color: #ff9800;
  border: 1px solid rgba(255, 152, 0, 0.4);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.hsc-cta-title {
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.hsc-cta-desc {
  font-size: 0.98rem;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 0 24px 0;
  line-height: 1.65;
}

.hsc-cta-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   FRONT PAGE GUTENBERG DATABASE CONTENT (V2.6.0)
   Styles for Page 878 / "Trang Chủ" (/trang-chu/) Gutenberg Content
   ========================================================================== */

.hsc-front-gutenberg-section {
  background-color: #fbfcfe;
  padding: 24px 0 80px;
}

.hsc-front-gutenberg-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Section Headings in Gutenberg Content --- */
.hsc-front-gutenberg-content .wp-block-group:not(.home-final-cta):not(.has-background) h2.wp-block-heading,
.hsc-trang-chu-article .wp-block-group:not(.home-final-cta):not(.has-background) h2.wp-block-heading,
.hsc-front-gutenberg-content>h2.wp-block-heading,
.hsc-trang-chu-article>h2.wp-block-heading {
  font-family: var(--font-heading, "Outfit", sans-serif) !important;
  font-size: 2.15rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  margin: 48px 0 10px 0 !important;
  letter-spacing: -0.015em;
  text-align: left;
}

.hsc-front-gutenberg-content .wp-block-group:not(.home-final-cta):not(.has-background) p.wp-block-paragraph:first-of-type,
.hsc-trang-chu-article .wp-block-group:not(.home-final-cta):not(.has-background) p.wp-block-paragraph:first-of-type,
.hsc-front-gutenberg-content>p,
.hsc-trang-chu-article>p {
  font-size: 1.05rem !important;
  /* color: #64748b !important;
  margin: 0 0 18px 0 !important; */
  line-height: 1.65 !important;
  text-align: left;
}

/* --- 1. HERO BLOCK IN GUTENBERG (Top of Page 878 / /trang-chu/) --- */
.hsc-front-gutenberg-content .wp-block-group.has-background,
.hsc-trang-chu-article .wp-block-group.has-background,
.wp-block-group.has-background:has(.hero-left) {
  background: linear-gradient(135deg, #fff8f3 0%, #ffeedd 100%) !important;
  border: 1px solid #ffd8be !important;
  border-radius: 24px !important;
  padding: 44px 48px !important;
  margin-bottom: 60px !important;
  box-shadow: 0 16px 40px -10px rgba(234, 88, 12, 0.12) !important;
}

@media (max-width: 768px) {

  .hsc-front-gutenberg-content .wp-block-group.has-background,
  .hsc-trang-chu-article .wp-block-group.has-background,
  .wp-block-group.has-background:has(.hero-left) {
    padding: 26px 20px !important;
    border-radius: 18px !important;
    margin-bottom: 40px !important;
  }
}

.hsc-front-gutenberg-content .wp-block-group.has-background .wp-block-columns,
.hsc-trang-chu-article .wp-block-group.has-background .wp-block-columns,
.wp-block-group.has-background:has(.hero-left) .wp-block-columns {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {

  .hsc-front-gutenberg-content .wp-block-group.has-background .wp-block-columns,
  .hsc-trang-chu-article .wp-block-group.has-background .wp-block-columns,
  .wp-block-group.has-background:has(.hero-left) .wp-block-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.hero-left h2 {
  font-family: var(--font-heading, "Outfit", sans-serif) !important;
  font-size: clamp(1.85rem, 3.2vw, 2.3rem) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  margin: 0 0 16px 0 !important;
  text-align: left !important;
  letter-spacing: -0.015em;
}

.hero-left p.has-background {
  display: inline-block !important;
  background: linear-gradient(135deg, #ff5a00 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  padding: 8px 20px !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  margin-bottom: 20px !important;
  text-align: left !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28) !important;
}

.hero-left p:not(.has-background) {
  font-size: 1.05rem !important;
  color: #475569 !important;
  line-height: 1.75 !important;
  margin: 0 0 26px 0 !important;
  text-align: left !important;
  font-weight: 500 !important;
}

.hero-left .wp-block-buttons {
  display: flex !important;
  gap: 14px !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  margin-top: 10px !important;
}

.hero-left .wp-block-button:first-child .wp-block-button__link {
  background: linear-gradient(135deg, #ff5a00 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 13px 28px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(255, 90, 0, 0.3) !important;
  transition: all 0.25s ease !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.hero-left .wp-block-button:first-child .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 90, 0, 0.42) !important;
}

.hero-left .wp-block-button.is-style-outline .wp-block-button__link,
.hero-left .wp-block-button:last-child .wp-block-button__link {
  background: #ffffff !important;
  color: #ea580c !important;
  border: 2px solid #ea580c !important;
  border-radius: 12px !important;
  padding: 11px 26px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.hero-left .wp-block-button.is-style-outline .wp-block-button__link:hover,
.hero-left .wp-block-button:last-child .wp-block-button__link:hover {
  background: #fff7ed !important;
  transform: translateY(-2px);
}

.hero-image {
  margin: 0 !important;
  display: block;
}

.hero-image img {
  width: 100% !important;
  height: 100% !important;
  max-height: 420px !important;
  object-fit: cover !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.2), 0 0 0 4px #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  display: block;
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.015);
}

/* --- 2. BẠN MUỐN HỌC THEO CÁCH NÀO? (3 Card Lựa Chọn Học) --- */
.hsc-front-gutenberg-content .home-study-options,
.hsc-trang-chu-article .home-study-options,
.home-study-options {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  margin-top: 20px !important;
  margin-bottom: 70px !important;
  align-items: stretch !important;
}

@media (max-width: 900px) {

  .hsc-front-gutenberg-content .home-study-options,
  .hsc-trang-chu-article .home-study-options,
  .home-study-options {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
}

.home-study-options>.wp-block-column,
.home-study-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 38px 28px 32px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  text-align: center !important;
  overflow: hidden !important;
  width: auto !important;
  flex-basis: auto !important;
}

.home-study-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff5a00, #ff8c00);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.home-study-card:hover {
  transform: translateY(-8px) !important;
  border-color: #ffd7c2 !important;
  box-shadow: 0 20px 40px -10px rgba(255, 90, 0, 0.16) !important;
}

.home-study-card:hover::before {
  opacity: 1;
}

.study-card-icon {
  width: 64px !important;
  height: 64px !important;
  margin: 0 auto 20px auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff7ed !important;
  border: 1px solid #fed7aa !important;
  border-radius: 16px !important;
  font-size: 32px !important;
  line-height: 1 !important;
}

.home-study-card h2.wp-block-heading,
.home-study-card h3.wp-block-heading {
  font-family: var(--font-heading, "Outfit", sans-serif) !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 12px 0 !important;
  text-align: center !important;
}

.home-study-card p:not(.study-card-icon) {
  font-size: 0.98rem !important;
  color: #64748b !important;
  line-height: 1.65 !important;
  margin: 0 0 26px 0 !important;
  flex-grow: 1 !important;
  text-align: center !important;
}

.home-study-card .wp-block-buttons {
  margin-top: auto !important;
  width: 100% !important;
}

.home-study-card .wp-block-button {
  width: 100% !important;
}

.home-study-card .wp-block-button__link {
  background: linear-gradient(135deg, #ff5a00 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 12px 24px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  box-shadow: 0 4px 14px rgba(255, 90, 0, 0.22) !important;
  transition: all 0.25s ease !important;
  border: none !important;
}

.home-study-card .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 90, 0, 0.35) !important;
}

/* --- 3. VÌ SAO NÊN HỌC TẠI HAPPY SCHOOL CENTER? (4 Card Ưu Điểm) --- */
.hsc-front-gutenberg-content .home-benefits,
.hsc-trang-chu-article .home-benefits,
.home-benefits {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  margin-top: 20px !important;
  margin-bottom: 70px !important;
}

@media (max-width: 960px) {

  .hsc-front-gutenberg-content .home-benefits,
  .hsc-trang-chu-article .home-benefits,
  .home-benefits {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 560px) {

  .hsc-front-gutenberg-content .home-benefits,
  .hsc-trang-chu-article .home-benefits,
  .home-benefits {
    grid-template-columns: 1fr !important;
  }
}

.home-benefits>.wp-block-column {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 28px 22px !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  flex-direction: column !important;
  width: auto !important;
  flex-basis: auto !important;
  min-height: 170px;
}

.home-benefits>.wp-block-column:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 16px 32px rgba(255, 90, 0, 0.09) !important;
  border-color: #fed7aa !important;
}

.home-benefits h2.wp-block-heading,
.home-benefits h3.wp-block-heading {
  font-family: var(--font-heading, "Outfit", sans-serif) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  letter-spacing: -0.01em;
}

.home-benefits p {
  font-size: 0.93rem !important;
  color: #64748b !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  text-align: left !important;
}

/* --- 4. LỘ TRÌNH HỌC TẬP (4 Bước Tiến Trình 01 - 04) --- */
.hsc-front-gutenberg-content .home-learning-path,
.hsc-trang-chu-article .home-learning-path,
.home-learning-path {
  position: relative !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  margin-top: 36px !important;
  margin-bottom: 75px !important;
}

.home-learning-path::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 12%;
  right: 12%;
  height: 3px;
  background: #fed7aa;
  z-index: 0;
}

@media (max-width: 860px) {

  .hsc-front-gutenberg-content .home-learning-path,
  .hsc-trang-chu-article .home-learning-path,
  .home-learning-path {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }

  .home-learning-path::before {
    display: none;
  }
}

@media (max-width: 520px) {

  .hsc-front-gutenberg-content .home-learning-path,
  .hsc-trang-chu-article .home-learning-path,
  .home-learning-path {
    grid-template-columns: 1fr !important;
  }
}

.home-learning-path>.wp-block-column {
  position: relative !important;
  z-index: 1 !important;
  text-align: center !important;
  padding: 0 10px !important;
  background: transparent !important;
  width: auto !important;
  flex-basis: auto !important;
}

@media (max-width: 860px) {
  .home-learning-path>.wp-block-column {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 24px 20px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  }
}

/* Số tròn 01, 02, 03, 04 */
.home-learning-path>.wp-block-column>p:first-child {
  width: 64px !important;
  height: 64px !important;
  margin: 0 auto 18px auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #ff5a00 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: 6px solid #fff7ed !important;
  border-radius: 50% !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 6px 18px rgba(255, 90, 0, 0.25) !important;
}

.home-learning-path>.wp-block-column>p:nth-child(2) {
  font-family: var(--font-heading, "Outfit", sans-serif) !important;
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 8px 0 !important;
  letter-spacing: 0.01em !important;
  text-align: center !important;
}

.home-learning-path>.wp-block-column>p:last-child {
  font-size: 0.92rem !important;
  color: #64748b !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  text-align: center !important;
}

/* --- 5. SẴN SÀNG BẮT ĐẦU HỌC? (CTA Box Cuối Trang) --- */
.hsc-front-gutenberg-content .home-final-cta,
.hsc-trang-chu-article .home-final-cta,
.home-final-cta {
  max-width: 1060px !important;
  margin: 40px auto 30px auto !important;
  padding: 50px 48px !important;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%) !important;
  border: 1px solid #fed7aa !important;
  border-radius: 24px !important;
  text-align: center !important;
  box-shadow: 0 16px 40px rgba(255, 90, 0, 0.08) !important;
}

@media (max-width: 768px) {

  .hsc-front-gutenberg-content .home-final-cta,
  .hsc-trang-chu-article .home-final-cta,
  .home-final-cta {
    padding: 32px 20px !important;
    border-radius: 18px !important;
  }
}

.home-final-cta h2.wp-block-heading,
.home-final-cta h3.wp-block-heading {
  font-family: var(--font-heading, "Outfit", sans-serif) !important;
  font-size: 2.1rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 12px 0 !important;
  text-align: center !important;
}

.home-final-cta p {
  font-size: 1.05rem !important;
  color: #64748b !important;
  max-width: 680px !important;
  margin: 0 auto 28px auto !important;
  line-height: 1.7 !important;
  text-align: center !important;
}

.home-final-cta .wp-block-buttons {
  display: flex !important;
  justify-content: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.home-final-cta .wp-block-button:first-child .wp-block-button__link {
  background: linear-gradient(135deg, #ff5a00 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 14px 32px !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(255, 90, 0, 0.25) !important;
  transition: all 0.25s ease !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.home-final-cta .wp-block-button:first-child .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 90, 0, 0.38) !important;
}

.home-final-cta .wp-block-button:last-child .wp-block-button__link {
  background: #ffffff !important;
  color: #ea580c !important;
  border: 2px solid #ea580c !important;
  border-radius: 12px !important;
  padding: 13px 30px !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.home-final-cta .wp-block-button:last-child .wp-block-button__link:hover {
  background: #fff7ed !important;
  transform: translateY(-2px);
}

/* --- PHÂN TRANG (PAGINATION) --- */
.hsc-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.hsc-pagination ul.page-numbers {
  display: inline-flex;
  list-style: none;
  gap: 8px;
  align-items: center;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.hsc-pagination ul.page-numbers li {
  margin: 0;
  padding: 0;
}

.hsc-pagination ul.page-numbers li a.page-numbers,
.hsc-pagination ul.page-numbers li span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.hsc-pagination ul.page-numbers li a.page-numbers:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.hsc-pagination ul.page-numbers li span.page-numbers.current {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.hsc-pagination ul.page-numbers li span.page-numbers.dots {
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--text-muted);
}

/* ==========================================================================
   BLOG LISTING & SINGLE POST DETAILS (V2.5.9)
   ========================================================================== */

/* Blog Toolbar */
.hsc-blog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.hsc-blog-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.hsc-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.hsc-cat-pill:hover,
.hsc-cat-pill.active {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
  transform: translateY(-1px);
}

.hsc-blog-search-form {
  position: relative;
  min-width: 260px;
  max-width: 320px;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.hsc-blog-search-input {
  width: 100%;
  padding: 10px 42px 10px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hsc-blog-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.hsc-blog-search-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s;
}

.hsc-blog-search-btn:hover {
  color: var(--primary);
}

/* Article Grid */
.hsc-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

@media (max-width: 640px) {
  .hsc-article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

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

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

.hsc-article-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f1f5f9;
}

.hsc-article-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.hsc-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.hsc-article-card:hover .hsc-article-thumb img {
  transform: scale(1.06);
}

.hsc-article-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hsc-article-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hsc-article-meta {
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 10px;
}

.hsc-article-title {
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hsc-article-title a {
  color: #0f172a;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.hsc-article-title a:hover {
  color: var(--secondary);
}

.hsc-article-excerpt {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.hsc-article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.hsc-article-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #475569;
  font-weight: 600;
}

.hsc-article-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hsc-article-link:hover {
  color: var(--secondary);
  transform: translateX(3px);
}

/* Post Share Bar */
.hsc-post-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
  flex-wrap: wrap;
}

.hsc-share-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

.hsc-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hsc-share-fb {
  background: #1877f2;
  color: #ffffff !important;
  border-color: #1877f2;
}

.hsc-share-fb:hover {
  background: #166fe5;
  transform: translateY(-1px);
}

.hsc-share-zalo {
  background: #0068ff;
  color: #ffffff !important;
  border-color: #0068ff;
}

.hsc-share-zalo:hover {
  background: #0056d6;
  transform: translateY(-1px);
}

.hsc-share-copy {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.hsc-share-copy:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Author Card */
.hsc-author-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  padding: 24px;
  margin: 40px 0 30px;
}

@media (max-width: 640px) {
  .hsc-author-card {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

.hsc-author-avatar-wrap {
  flex-shrink: 0;
}

.hsc-author-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hsc-author-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 4px;
}

.hsc-author-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.hsc-author-bio {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* Related Posts Section */
.hsc-related-posts-section {
  margin-top: 48px;
}

.hsc-related-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.hsc-related-title {
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.hsc-related-viewall {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  transition: transform 0.2s;
}

.hsc-related-viewall:hover {
  transform: translateX(4px);
}

.hsc-related-grid .hsc-article-card {
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

/* ==========================================================================
   POST DONATE / BUY ME A COFFEE COMPONENT (COMPACT & COLLAPSIBLE)
   ========================================================================== */
.hsc-post-donate-container {
  margin: 32px 0 24px 0;
  position: relative;
}

.hsc-donate-card {
  background: linear-gradient(135deg, #fffdfa 0%, #fffbeb 50%, #fff7ed 100%);
  border: 1px solid #fde68a;
  border-radius: 16px;
  box-shadow: 0 4px 14px -2px rgba(245, 158, 11, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.hsc-donate-card:hover {
  border-color: #fcd34d;
  box-shadow: 0 6px 20px -3px rgba(245, 158, 11, 0.12), 0 3px 8px rgba(0, 0, 0, 0.03);
}

/* 1. Thanh bar thu gọn mặc định (Compact Bar) */
.hsc-donate-compact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  gap: 16px;
  user-select: none;
  transition: background-color 0.2s ease;
}

.hsc-donate-compact-bar:hover {
  background: rgba(254, 243, 199, 0.35);
}

.hsc-compact-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.hsc-compact-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.25);
  transition: transform 0.2s ease;
}

.hsc-donate-compact-bar:hover .hsc-compact-icon {
  transform: scale(1.08) rotate(3deg);
}

.hsc-compact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hsc-compact-title {
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: #78350f;
  line-height: 1.3;
}

.hsc-compact-desc {
  font-size: 0.82rem;
  color: #92400e;
  line-height: 1.4;
  margin: 0;
  opacity: 0.9;
}

.hsc-compact-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hsc-compact-quick-pills {
  display: flex;
  gap: 6px;
}

.hsc-quick-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid #fed7aa;
  background: #ffffff;
  color: #9a3412;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.hsc-quick-pill-btn:hover {
  background: #fff7ed;
  border-color: #f97316;
  color: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(249, 115, 22, 0.15);
}

.hsc-donate-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid #d97706;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.25);
  transition: all 0.2s ease;
}

.hsc-donate-toggle-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  transform: translateY(-1px);
}

.hsc-toggle-chevron {
  transition: transform 0.3s ease;
}

.hsc-donate-card.is-expanded .hsc-toggle-chevron {
  transform: rotate(180deg);
}

.hsc-donate-toggle-btn.is-open {
  background: #78350f;
  border-color: #78350f;
}

/* 2. Drawer chi tiết (Trượt mở / Accordion) */
.hsc-donate-expandable-drawer {
  display: none;
  border-top: 1px solid #fef3c7;
  background: #ffffff;
}

.hsc-donate-card.is-expanded .hsc-donate-expandable-drawer {
  display: block;
  animation: hscDonateSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hsc-donate-drawer-inner {
  padding: 20px 24px;
}

/* Amount Pills in Drawer */
.hsc-donate-amount-section {
  background: #fffdf5;
  border: 1px solid #fef3c7;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.hsc-donate-amount-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b45309;
  margin-bottom: 8px;
}

.hsc-donate-amount-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hsc-amount-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1.5px solid #fed7aa;
  background: #ffffff;
  color: #9a3412;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.hsc-amount-pill:hover {
  background: #fff7ed;
  border-color: #f97316;
  color: #ea580c;
  transform: translateY(-1px);
}

.hsc-amount-pill.is-active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #d97706;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.3);
  transform: translateY(-1px);
}

.hsc-pill-custom {
  border-style: dashed;
}

/* Payment Grid in Drawer */
.hsc-donate-payment-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  align-items: center;
  background: #fffbf5;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.04);
}

@media (max-width: 768px) {
  .hsc-donate-payment-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px;
  }
}

/* QR Column */
.hsc-donate-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hsc-donate-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hsc-donate-qr-scanner-frame {
  position: relative;
  width: 155px;
  height: 155px;
  border-radius: 10px;
  background: #ffffff;
  padding: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  border: 1.5px solid #fef3c7;
  overflow: hidden;
}

.hsc-donate-qr-scanner-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.hsc-qr-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
  animation: hscScanAnim 2.8s infinite linear;
  opacity: 0.7;
}

@keyframes hscScanAnim {
  0% {
    top: 0;
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  90% {
    opacity: 0.8;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

.hsc-donate-qr-note {
  margin-top: 8px;
  font-size: 0.73rem;
  color: #78350f;
  font-weight: 600;
  max-width: 180px;
  line-height: 1.35;
}

/* Info Column */
.hsc-donate-info-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hsc-donate-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 2px;
}

.hsc-donate-tab-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hsc-donate-tab-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.hsc-donate-tab-btn.is-active {
  background: #f59e0b;
  border-color: #d97706;
  color: #ffffff;
}

.hsc-donate-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 6px;
  font-size: 0.86rem;
  gap: 10px;
}

.hsc-donate-detail-row.hsc-copyable-row {
  background: #fffdf5;
  border-color: #fde68a;
}

.hsc-row-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.hsc-detail-label {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 85px;
}

.hsc-detail-val {
  color: #0f172a;
  font-size: 0.88rem;
}

.hsc-account-number {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  color: #b45309;
  font-weight: 700;
}

.hsc-transfer-msg {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  color: #b45309;
  font-weight: 700;
}

.hsc-text-amount {
  font-size: 0.95rem;
  color: #ea580c;
  font-weight: 800;
}

.hsc-btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #d97706;
  color: #b45309;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hsc-btn-copy:hover {
  background: #f59e0b;
  color: #ffffff;
}

.hsc-btn-copy.is-copied {
  background: #10b981 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
}

/* Footer in Drawer */
.hsc-donate-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.hsc-donate-thanks-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fefce8;
  border-radius: 6px;
  border: 1px dashed #fde047;
  flex: 1;
}

.hsc-thanks-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.hsc-thanks-msg {
  font-size: 0.78rem;
  color: #854d0e;
  line-height: 1.4;
  font-style: italic;
}

.hsc-donate-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hsc-donate-close-btn:hover {
  background: #f1f5f9;
  color: #475569;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .hsc-donate-compact-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
  }

  .hsc-compact-right {
    justify-content: space-between;
  }

  .hsc-donate-toggle-btn {
    flex: 1;
    justify-content: center;
  }

  .hsc-donate-drawer-inner {
    padding: 14px;
  }

  .hsc-donate-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .hsc-btn-copy {
    align-self: flex-end;
  }

  .hsc-donate-drawer-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .hsc-donate-close-btn {
    text-align: center;
  }
}

/* ==========================================================================
   SINGLE POST COMMENTS SECTION (V2.7.0)
   Comments template, login-required CTA, threaded comments, anti-XSS UI
   ========================================================================== */

.hsc-comments-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 14px 40px -10px rgba(15, 23, 42, 0.08);
  padding: 42px 48px;
  margin-top: 36px;
  position: relative;
}

@media (max-width: 768px) {
  .hsc-comments-section {
    padding: 24px 18px;
    border-radius: 16px;
    margin-top: 24px;
  }
}

/* Head */
.hsc-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1.5px solid #f1f5f9;
  margin-bottom: 28px;
}

.hsc-comments-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hsc-comments-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #bfdbfe;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.hsc-comments-title {
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.hsc-comments-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 9px;
  border-radius: 9999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.hsc-comments-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

/* --- 1. Login Required Prompt Card --- */
.hsc-comment-login-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1.5px dashed #bfdbfe;
  border-radius: 18px;
  padding: 28px 32px;
  margin-bottom: 34px;
  transition: all 0.3s ease;
}

.hsc-comment-login-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.hsc-comment-login-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #ffffff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
  border: 1px solid #dbeafe;
}

.hsc-comment-login-content {
  flex-grow: 1;
}

.hsc-comment-login-title {
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-size: 1.18rem;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0 0 6px;
}

.hsc-comment-login-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 16px;
}

.hsc-comment-login-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hsc-btn-login-to-comment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.hsc-comment-login-subtext {
  font-size: 0.88rem;
  color: #64748b;
}

.hsc-comment-login-subtext a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hsc-comment-login-subtext a:hover {
  color: #1d4ed8;
}

@media (max-width: 640px) {
  .hsc-comment-login-card {
    flex-direction: column;
    text-align: center;
    padding: 22px 16px;
    gap: 16px;
  }
  .hsc-comment-login-actions {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }
  .hsc-btn-login-to-comment {
    width: 100%;
    justify-content: center;
  }
}

/* --- 2. Comment Form Card (Logged In) --- */
.hsc-comment-form-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 36px;
}

.hsc-comment-user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f7;
}

.hsc-comment-user-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hsc-comment-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hsc-comment-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hsc-comment-user-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #0f172a;
}

.hsc-comment-user-hint {
  font-size: 0.8rem;
  color: #64748b;
}

.hsc-comment-btn-logout {
  font-size: 0.82rem;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: all 0.2s ease;
}

.hsc-comment-btn-logout:hover {
  color: #ef4444;
  border-color: #fca5a5;
  background: #fef2f2;
}

/* Replying Banner */
.hsc-replying-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: #1e40af;
}

.hsc-replying-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hsc-btn-cancel-reply {
  background: none;
  border: none;
  color: #ef4444;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.hsc-btn-cancel-reply:hover {
  background: #fee2e2;
}

/* Textarea */
.hsc-comment-field-wrap {
  margin-bottom: 14px;
}

.hsc-comment-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.96rem;
  line-height: 1.6;
  color: #1e293b;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 105px;
}

.hsc-comment-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.hsc-comment-textarea.hsc-input-error {
  border-color: #ef4444 !important;
  background-color: #fffdfd;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* Form bottom */
.hsc-comment-form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.hsc-comment-rules-text {
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hsc-comment-submit-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hsc-char-counter {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.hsc-btn-submit-comment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 10px;
}

/* --- 3. Badges for Roles --- */
.hsc-comment-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hsc-comment-badge.is-admin {
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid #1e293b;
}

.hsc-comment-badge.is-teacher {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.hsc-comment-badge.is-student {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

/* --- 4. Comment List & Items --- */
/* --- 4. Comment List & Items (Facebook Style) --- */
.hsc-comments-list-section {
  margin-top: 14px;
}

.hsc-comments-list-title-row {
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.hsc-comments-list-title {
  font-family: var(--font-heading, "Outfit", sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

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

/* Base Comment Item */
.hsc-comment-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}

.hsc-comment-avatar-wrap {
  flex-shrink: 0;
  margin-top: 2px;
}

.hsc-comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
}

.hsc-comment-avatar.is-reply-avatar {
  width: 32px;
  height: 32px;
}

.hsc-comment-body {
  flex-grow: 1;
  min-width: 0;
}

/* Facebook-style Speech Bubble */
.hsc-comment-bubble {
  background: #f0f2f5;
  border: 1px solid #e4e6eb;
  border-radius: 18px;
  padding: 10px 16px;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hsc-comment-bubble-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.hsc-comment-author {
  font-size: 0.94rem;
  font-weight: 700;
  color: #050505;
}

/* NỘI DUNG BÌNH LUẬN: Không thụt lề thừa, hiển thị thẳng hàng */
.hsc-comment-content {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #1e293b;
  word-break: break-word;
  white-space: normal !important;
  margin: 0;
  padding: 0;
}

.hsc-reply-mention {
  color: #1877f2;
  font-weight: 700;
}

/* Actions Row (Time, Reply button) */
.hsc-comment-meta-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding-left: 14px;
  font-size: 0.8rem;
  color: #65676b;
}

.hsc-comment-time {
  font-size: 0.78rem;
  color: #65676b;
}

.hsc-action-sep {
  color: #cbd5e1;
  font-size: 0.7rem;
}

.hsc-btn-reply-action {
  background: none;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: #65676b;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.hsc-btn-reply-action:hover {
  color: #1877f2;
  text-decoration: underline;
}

.hsc-btn-delete-action {
  background: none;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.hsc-btn-delete-action:hover {
  color: #ef4444;
  text-decoration: underline;
}

.hsc-comment-pending-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #d97706;
  background: #fefce8;
  border: 1px solid #fef08a;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 4px;
}

/* --- Cấu trúc Line hình chữ L nối từ Cha xuống Con, Con xuống Cháu... (Cân đối chuẩn đẹp) --- */
.hsc-comment-replies {
  margin-left: 28px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.hsc-comment-reply-item {
  position: relative;
  margin-bottom: 0;
}

/* Đường cong hình chữ L từ trên rẽ ngang vào tâm Avatar (Cân đối vừa vặn, không đè ngày tháng, không quá xa) */
.hsc-comment-reply-item::before {
  content: '';
  position: absolute;
  top: -14px;
  left: -24px;
  width: 22px;
  height: 30px;
  border-left: 2px solid #cbd5e1;
  border-bottom: 2px solid #cbd5e1;
  border-bottom-left-radius: 10px;
  pointer-events: none;
  display: block !important;
}

/* Đối với item đầu tiên trong luồng phản hồi, vươn cao lên nối từ Avatar cha */
.hsc-comment-reply-item:first-child::before {
  top: -22px;
  height: 38px;
}

/* Đường line dọc chạy tiếp xuống các comment con kế tiếp (Chỉ nối khi không phải item cuối cùng) */
.hsc-comment-reply-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px; /* Bắt đầu từ tâm avatar của item này */
  bottom: -14px; /* Kéo xuống chạm đỉnh chữ L của item tiếp theo */
  left: -24px;
  width: 2px;
  background: #cbd5e1;
  pointer-events: none;
  display: block !important;
}

/* Phân cấp kích thước Avatar theo cấp độ (Depth) */
.hsc-comment-depth-1 > .hsc-comment-avatar-wrap .hsc-comment-avatar {
  width: 40px;
  height: 40px;
}

.hsc-comment-depth-2 > .hsc-comment-avatar-wrap .hsc-comment-avatar {
  width: 32px;
  height: 32px;
}

.hsc-comment-depth-3 > .hsc-comment-avatar-wrap .hsc-comment-avatar,
.hsc-comment-depth-4 > .hsc-comment-avatar-wrap .hsc-comment-avatar,
.hsc-comment-depth-5 > .hsc-comment-avatar-wrap .hsc-comment-avatar {
  width: 28px;
  height: 28px;
}

/* Tinh chỉnh bong bóng theo cấp độ (Depth) */
.hsc-comment-depth-1 > .hsc-comment-body > .hsc-comment-bubble {
  background: #f0f2f5;
  border: 1px solid #e4e6eb;
}

.hsc-comment-depth-2 > .hsc-comment-body > .hsc-comment-bubble {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.hsc-comment-depth-3 > .hsc-comment-body > .hsc-comment-bubble,
.hsc-comment-depth-4 > .hsc-comment-body > .hsc-comment-bubble,
.hsc-comment-depth-5 > .hsc-comment-body > .hsc-comment-bubble {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* --- Inline Reply Form (Mở trực tiếp ngay dưới comment tương ứng) --- */
.hsc-inline-reply-slot {
  margin-left: 28px;
  margin-top: 8px;
}

.hsc-inline-reply-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1.5px solid #dbeafe;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
  animation: hscFadeIn 0.25s ease;
}

.hsc-inline-reply-avatar-wrap {
  flex-shrink: 0;
  margin-top: 2px;
}

.hsc-inline-reply-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
}

.hsc-inline-reply-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.hsc-inline-reply-form {
  flex-grow: 1;
  min-width: 0;
}

.hsc-inline-reply-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hsc-inline-reply-textarea {
  width: 100%;
  min-height: 58px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #1e293b;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hsc-inline-reply-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2.5px rgba(37, 99, 235, 0.15);
}

.hsc-inline-reply-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hsc-inline-char-count {
  font-size: 0.78rem;
  color: #64748b;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 600;
}

.hsc-inline-reply-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hsc-btn-cancel-inline {
  background: none;
  border: 1px solid #cbd5e1;
  color: #64748b;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hsc-btn-cancel-inline:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.hsc-btn-submit-inline {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hsc-btn-submit-inline:hover {
  background: #1d4ed8;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .hsc-comment-replies,
  .hsc-inline-reply-slot {
    margin-left: 20px;
    padding-left: 0;
  }
  .hsc-comment-reply-item::before {
    left: -14px;
    width: 12px;
    height: 24px;
    top: -10px;
  }
  .hsc-comment-reply-item:first-child::before {
    top: -16px;
    height: 30px;
  }
  .hsc-comment-reply-item:not(:last-child)::after {
    left: -14px;
    top: 14px;
    bottom: -10px;
  }
  /* Từ tầng 3 trở đi trên mobile không thụt lề quá sâu */
  .hsc-comment-replies .hsc-comment-replies .hsc-comment-replies {
    margin-left: 6px;
  }
  .hsc-comment-bubble {
    border-radius: 14px;
    padding: 8px 12px;
  }
  .hsc-comment-avatar {
    width: 32px !important;
    height: 32px !important;
  }
}

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

/* Highlight flash animation for newly posted comment */
@keyframes hscHighlightFlash {
  0% {
    background-color: #eff6ff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
  }
}

.hsc-comment-new-highlight {
  animation: hscHighlightFlash 3s ease forwards;
}

/* Empty State */
.hsc-no-comments-notice {
  text-align: center;
  padding: 36px 20px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
}

.hsc-no-comments-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.hsc-no-comments-text {
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
  margin: 0 0 4px;
}

.hsc-no-comments-sub {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
}

/* Legal Documents (Chính sách & Điều khoản) */
.legal-document {
  background: #ffffff;
  padding: 36px 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  border: 1px solid #e2e8f0;
  line-height: 1.85;
  color: #334155;
}

.legal-document h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 32px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}

.legal-document ul,
.legal-document ol {
  margin: 12px 0 20px 24px;
  padding-left: 10px;
}

.legal-document li {
  margin-bottom: 8px;
}

.legal-document strong {
  color: #1e293b;
}

.legal-document a {
  color: #2563eb;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal-document {
    padding: 24px 18px;
  }
}

/* ==========================================================================
   LIVE COURSES & TEACHERS MANAGEMENT (HỌC TRỰC TIẾP VỚI GIÁO VIÊN)
   ========================================================================== */

.hsc-live-course-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0369a1 100%);
  padding: 48px 0 36px;
  position: relative;
}

.hsc-live-course-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.hsc-live-course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.14);
  border-color: #93c5fd;
}

.hsc-live-course-card:hover img {
  transform: scale(1.05);
}

.hsc-teacher-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.hsc-teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px rgba(30, 58, 138, 0.12);
  border-color: #3b82f6;
}

.hsc-live-highlight-box {
  transition: box-shadow 0.3s ease;
}

.hsc-live-highlight-box:hover {
  box-shadow: 0 8px 24px -4px rgba(5, 150, 105, 0.15);
}

.hsc-teacher-profile-card {
  transition: all 0.3s ease;
}

.hsc-teacher-profile-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.1);
}

@media (max-width: 991px) {
  .hsc-course-main-grid {
    grid-template-columns: 1fr !important;
  }
  .hsc-course-sidebar-card {
    position: static !important;
  }
}

@media (max-width: 640px) {
  .hsc-live-courses-grid,
  .hsc-teachers-grid {
    grid-template-columns: 1fr !important;
  }
  .hsc-teacher-profile-card > div {
    flex-direction: column;
    text-align: center;
  }
  .hsc-teacher-profile-card .hsc-teacher-avatar-col {
    margin: 0 auto;
  }
}

/* ==========================================================================
   STUDENT REVIEWS & TESTIMONIALS MODULE
   ========================================================================== */

/* Summary Trust Bar */
.hsc-reviews-summary-bar {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 99px;
  padding: 8px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  margin-top: 6px;
}

.hsc-summary-stars {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hsc-summary-score {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.hsc-stars-icon {
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.hsc-summary-divider {
  width: 1px;
  height: 20px;
  background: #cbd5e1;
}

.hsc-summary-text {
  font-size: 0.92rem;
  color: #475569;
}

.hsc-summary-text strong {
  color: #0f172a;
}

/* Reviews Carousel Slider Container */
.hsc-reviews-carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 52px;
  padding: 0 16px;
}

.hsc-carousel-viewport {
  overflow: hidden;
  width: 100%;
  padding: 16px 8px 24px;
  margin: -16px -8px -24px;
}

.hsc-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 28px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Trường hợp chỉ có 1 đánh giá: Căn giữa sang trọng và giữ khoảng cách thoáng đãng */
.hsc-carousel-track.is-single-slide {
  justify-content: center;
}

.hsc-carousel-track.is-single-slide .hsc-carousel-slide {
  flex: 0 0 100%;
  max-width: 440px;
}

/* Carousel Slide (Thẻ trượt) */
.hsc-carousel-slide {
  flex: 0 0 calc(33.3333% - 18.67px);
  min-width: 0;
  display: flex;
  box-sizing: border-box;
}

.hsc-carousel-slide .hsc-review-card {
  width: 100%;
  height: 100%;
  margin-bottom: 0;
}

/* Mũi tên điều hướng Trước / Sau (Prev / Next) */
.hsc-carousel-nav {
  position: absolute;
  top: calc(50% - 32px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 6px 20px -2px rgba(15, 23, 42, 0.12);
  color: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.hsc-carousel-prev {
  left: -20px;
}

.hsc-carousel-next {
  right: -20px;
}

.hsc-carousel-nav:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: scale(1.1);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.hsc-carousel-nav:active {
  transform: scale(0.95);
}

/* Chấm tròn điều hướng (Pagination Dots) */
.hsc-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  margin-bottom: 0;
}

.hsc-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.hsc-carousel-dot:hover {
  background: #94a3b8;
}

.hsc-carousel-dot.is-active {
  width: 32px;
  background: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* Review Card */
.hsc-review-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 32px 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.hsc-review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.09), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
  border-color: #cbd5e1;
}

.hsc-review-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.hsc-review-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #f59e0b;
  font-size: 1.15rem;
}

.hsc-review-stars .hsc-star.is-filled {
  color: #f59e0b;
}

.hsc-review-stars .hsc-star.is-empty {
  color: #cbd5e1;
}

.hsc-star-num {
  font-size: 0.88rem;
  font-weight: 700;
  color: #b45309;
  margin-left: 6px;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 99px;
}

.hsc-quote-icon {
  font-family: Georgia, serif;
  font-size: 2.8rem;
  line-height: 1;
  color: #f97316;
  opacity: 0.35;
  user-select: none;
}

.hsc-review-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

/* Card Bottom & Author */
.hsc-review-card-bottom {
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.hsc-review-author-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hsc-review-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.hsc-review-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hsc-review-avatar-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
}

.hsc-review-author-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px 0;
}

.hsc-review-author-title {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 2px;
}

.hsc-review-course-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
}

.hsc-review-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 99px;
  white-space: nowrap;
}

/* Reviews CTA Box */
.hsc-reviews-cta-box {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  border-radius: 20px;
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.25);
  color: #ffffff;
}

.hsc-reviews-cta-content h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.hsc-reviews-cta-content p {
  font-size: 0.98rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.6;
}

.hsc-reviews-cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

/* Account Star Picker */
.hsc-star-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hsc-star-picker-icons {
  display: flex;
  gap: 6px;
  font-size: 2rem;
  line-height: 1;
  user-select: none;
}

.hsc-star-picker-icons .star-btn {
  cursor: pointer;
  color: #cbd5e1;
  transition: transform 0.15s ease, color 0.15s ease;
}

.hsc-star-picker-icons .star-btn:hover {
  transform: scale(1.2);
}

.hsc-star-picker-icons .star-btn.active {
  color: #f59e0b;
}

.hsc-star-picker-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #b45309;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hsc-carousel-slide {
    flex: 0 0 calc(50% - 14px);
  }
  .hsc-carousel-prev {
    left: -12px;
  }
  .hsc-carousel-next {
    right: -12px;
  }
  .hsc-reviews-cta-box {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
  }
  .hsc-reviews-cta-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hsc-account-reviews-layout {
    grid-template-columns: 1fr !important;
  }
  .hsc-reviews-summary-bar {
    flex-direction: column;
    border-radius: 16px;
    padding: 12px 18px;
    gap: 8px;
  }
  .hsc-summary-divider {
    display: none;
  }
}

@media (max-width: 640px) {
  .hsc-reviews-carousel-container {
    padding: 0 8px;
  }
  .hsc-carousel-track {
    gap: 16px;
  }
  .hsc-carousel-slide {
    flex: 0 0 100%;
  }
  .hsc-carousel-nav {
    width: 38px;
    height: 38px;
  }
  .hsc-carousel-prev {
    left: 0;
  }
  .hsc-carousel-next {
    right: 0;
  }
}

/* ==========================================================================
   4.6 GÓC THỰC CHIẾN: HỌC VIÊN TỰ TIN BẮN TIẾNG ANH (STUDENT & TEACHER VIDEOS)
   ========================================================================== */
.hsc-videos-section {
  position: relative;
  background: #ffffff;
  padding: 80px 0;
  overflow: hidden;
}

.hsc-videos-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* Videos Horizontal Carousel Slider */
.hsc-videos-carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 46px;
  padding: 0 16px;
}

.hsc-videos-carousel-viewport {
  overflow: hidden;
  width: 100%;
  padding: 16px 8px 24px;
  margin: -16px -8px -24px;
}

.hsc-videos-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 26px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hsc-videos-carousel-track.is-few-slides {
  justify-content: center;
}

.hsc-videos-carousel-slide {
  flex: 0 0 calc(33.3333% - 17.33px);
  min-width: 0;
  display: flex;
  box-sizing: border-box;
}

.hsc-videos-carousel-slide .hsc-video-card {
  width: 100%;
  height: 100%;
  margin-bottom: 0;
}

.hsc-videos-carousel-container .hsc-videos-carousel-prev {
  left: -22px;
}

.hsc-videos-carousel-container .hsc-videos-carousel-next {
  right: -22px;
}

.hsc-videos-carousel-container .hsc-carousel-nav:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.35);
}

.hsc-videos-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  margin-bottom: 0;
}

.hsc-videos-carousel-dots .hsc-carousel-dot.is-active {
  width: 32px;
  background: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

/* Thẻ Video Card */
.hsc-video-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

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

/* Khung Thumbnail Video 16:9 */
.hsc-video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090d16;
  overflow: hidden;
  cursor: pointer;
}

.hsc-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.hsc-video-card:hover .hsc-video-thumb {
  transform: scale(1.06);
}

/* Gradient Overlay trên ảnh */
.hsc-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

/* Huy hiệu góc trái trên */
.hsc-video-tag-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(220, 38, 38, 0.92);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Thời lượng video góc phải dưới */
.hsc-video-duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  font-family: var(--font-heading);
}

/* Nút Play YouTube nổi bật */
.hsc-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ff0000;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hsc-video-play-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  margin-left: 3px;
}

/* Hiệu ứng sóng radar xung quanh nút Play */
.hsc-video-play-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(239, 68, 68, 0.6);
  animation: hscPlayPulse 2s infinite;
  pointer-events: none;
}

@keyframes hscPlayPulse {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.hsc-video-card:hover .hsc-video-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.6);
}

/* Nội dung thông tin video */
.hsc-video-body {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hsc-video-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  margin: 0 0 10px;
  cursor: pointer;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hsc-video-title:hover {
  color: #dc2626;
}

.hsc-video-desc {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Tác giả / Người nói */
.hsc-video-speaker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.hsc-video-speaker-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  flex-shrink: 0;
}

.hsc-video-speaker-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  border: 2px solid #e2e8f0;
}

.hsc-video-speaker-meta {
  flex: 1;
  min-width: 0;
}

.hsc-video-speaker-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hsc-video-verified-check {
  display: inline-flex;
  color: #2563eb;
  flex-shrink: 0;
}

.hsc-video-speaker-title {
  font-size: 0.8rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* Nút CTA Bottom */
.hsc-videos-cta-wrap {
  text-align: center;
}

.hsc-videos-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #dc2626;
  border: 2px solid #fee2e2;
  padding: 13px 28px;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
  transition: all 0.3s ease;
}

.hsc-videos-cta-btn:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.28);
  transform: translateY(-2px);
}

/* LIGHTBOX MODAL POPUP PHÁT VIDEO YOUTUBE */
.hsc-video-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.hsc-video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.hsc-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.hsc-video-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: #0f172a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.hsc-video-modal.is-open .hsc-video-modal-dialog {
  transform: scale(1);
}

.hsc-video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hsc-video-modal-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 16px;
}

.hsc-video-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.hsc-video-modal-close:hover {
  background: #dc2626;
  transform: rotate(90deg);
}

.hsc-video-modal-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.hsc-video-modal-player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .hsc-videos-carousel-slide {
    flex: 0 0 calc(50% - 13px);
  }
}

@media (max-width: 640px) {
  .hsc-videos-section {
    padding: 56px 0;
  }
  .hsc-videos-carousel-container {
    padding: 0 4px;
  }
  .hsc-videos-carousel-slide {
    flex: 0 0 100%;
  }
  .hsc-videos-carousel-container .hsc-carousel-nav {
    display: none;
  }
  .hsc-video-body {
    padding: 18px 16px;
  }
  .hsc-video-modal {
    padding: 10px;
  }
}

/* ==========================================================================
   4.2 KHÓA HỌC VỚI GIÁO VIÊN (LIVE COURSES WITH TEACHERS SHOWCASE)
   ========================================================================== */
.hsc-live-courses-section {
  position: relative;
  background: #f8fafc;
  padding: 72px 0 84px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.hsc-live-courses-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* Live Courses Horizontal Carousel Slider */
.hsc-live-courses-carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 46px;
  padding: 0 16px;
}

.hsc-lc-carousel-viewport {
  overflow: hidden;
  width: 100%;
  padding: 16px 8px 24px;
  margin: -16px -8px -24px;
}

.hsc-lc-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 26px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hsc-lc-carousel-track.is-few-slides {
  justify-content: center;
}

.hsc-lc-carousel-slide {
  flex: 0 0 calc(33.3333% - 17.33px);
  min-width: 0;
  display: flex;
  box-sizing: border-box;
}

.hsc-lc-carousel-slide .hsc-live-course-card {
  width: 100%;
  height: 100%;
  margin-bottom: 0;
}

.hsc-live-courses-carousel-container .hsc-lc-carousel-prev {
  left: -22px;
}

.hsc-live-courses-carousel-container .hsc-lc-carousel-next {
  right: -22px;
}

/* Thẻ Khóa học trực tiếp */
.hsc-live-course-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
}

.hsc-live-course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.12);
  border-color: #cbd5e1;
}

/* Khung ảnh bìa */
.hsc-live-course-thumb-wrap {
  position: relative;
  width: 100%;
  height: 205px;
  background: #0f172a;
  overflow: hidden;
}

.hsc-live-course-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.hsc-live-course-card:hover .hsc-live-course-thumb {
  transform: scale(1.06);
}

.hsc-live-course-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%);
  color: #ffffff;
  gap: 8px;
  transition: transform 0.45s ease;
}

.hsc-live-course-card:hover .hsc-live-course-thumb-fallback {
  transform: scale(1.04);
}

.hsc-live-course-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff6b00;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.35);
  z-index: 2;
}

.hsc-live-course-format-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  z-index: 2;
}

/* Card Body */
.hsc-live-course-body {
  padding: 22px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hsc-live-course-title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.42;
}

.hsc-live-course-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hsc-live-course-title a:hover {
  color: #1e40af;
}

.hsc-live-course-excerpt {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hộp giáo viên phụ trách */
.hsc-live-course-teacher-box {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 9px 12px;
  margin-bottom: 16px;
}

.hsc-live-course-teacher-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3b82f6;
  flex-shrink: 0;
}

.hsc-live-course-teacher-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.hsc-live-course-teacher-meta {
  min-width: 0;
  flex: 1;
}

.hsc-live-course-teacher-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hsc-live-course-teacher-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: #1e40af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.hsc-live-course-teacher-role {
  font-size: 0.78rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Thông số thời lượng & tình trạng */
.hsc-live-course-specs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px dashed #e2e8f0;
  padding-top: 12px;
  margin-bottom: 16px;
  margin-top: auto;
}

.hsc-live-course-status-pill {
  color: #059669;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Học phí & Nút hành động */
.hsc-live-course-pricing {
  display: flex;
  align-items: baseline;
  margin-bottom: 16px;
}

.hsc-live-course-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: #0284c7;
}

.hsc-live-course-orig-price {
  font-size: 0.88rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 8px;
}

.hsc-live-course-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hsc-live-course-btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  background: #ffffff;
  color: #1e3a8a;
  border: 1.5px solid #cbd5e1;
  transition: all 0.2s ease;
}

.hsc-live-course-btn-detail:hover {
  background: #f8fafc;
  border-color: #1e3a8a;
}

.hsc-live-course-btn-enroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  background: #ff6b00;
  color: #ffffff;
  border: 1.5px solid #ff6b00;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.25);
  transition: all 0.2s ease;
}

.hsc-live-course-btn-enroll:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.4);
  transform: translateY(-1px);
}

/* Bottom Trust Bar & CTA */
.hsc-live-courses-bottom-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

.hsc-live-courses-trust-items {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hsc-live-courses-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: #334155;
  font-weight: 600;
}

.hsc-live-courses-trust-item span.icon {
  font-size: 1.25rem;
}

/* Responsive for Live Courses Carousel */
@media (max-width: 1024px) {
  .hsc-lc-carousel-slide {
    flex: 0 0 calc(50% - 13px);
  }
  .hsc-live-courses-carousel-container .hsc-lc-carousel-prev {
    left: -12px;
  }
  .hsc-live-courses-carousel-container .hsc-lc-carousel-next {
    right: -12px;
  }
}

@media (max-width: 768px) {
  .hsc-live-courses-bottom-bar {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .hsc-live-courses-trust-items {
    justify-content: center;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .hsc-live-courses-section {
    padding: 50px 0 60px;
  }
  .hsc-lc-carousel-slide {
    flex: 0 0 100%;
  }
  .hsc-live-courses-carousel-container {
    padding: 0 4px;
  }
  .hsc-live-courses-carousel-container .hsc-carousel-nav {
    display: none;
  }
  .hsc-live-course-thumb-wrap {
    height: 190px;
  }
}

/* ==========================================================================
   HERO YOUTUBE VIDEO SERIES SLIDER WIDGET (Sáng sủa, hiện đại, chuẩn thẩm mỹ)
   ========================================================================== */
.hsc-hero-video-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 20px 45px -12px rgba(30, 64, 175, 0.14), 0 4px 16px -2px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: 580px;
  margin-left: auto;
}

.hsc-hero-video-widget:hover {
  border-color: #cbd5e1;
  box-shadow: 0 28px 55px -12px rgba(30, 64, 175, 0.22), 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

/* Header bar */
.hsc-hero-video-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.hsc-hero-video-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  padding: 5px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hsc-hero-video-live-badge .hsc-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: hscLiveDotPulse 1.6s infinite ease-in-out;
}

@keyframes hscLiveDotPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8);
  }
  70% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.9);
    opacity: 0.7;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.hsc-hero-video-nav-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hsc-hero-v-nav {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.hsc-hero-v-nav:hover {
  background: #ff6b00;
  border-color: #ff6b00;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 3px 10px rgba(255, 107, 0, 0.3);
}

.hsc-hero-v-counter {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
  min-width: 34px;
  text-align: center;
}

.hsc-hero-v-counter .hsc-v-curr {
  color: #ff6b00;
  font-weight: 800;
}

/* Slider and Slide items (Dạng Slide Trượt Ngang) */
.hsc-hero-video-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hsc-hero-video-track {
  display: flex;
  width: 100%;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hsc-hero-video-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  display: block;
}

.hsc-hero-video-card {
  display: block;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  position: relative;
}

.hsc-hero-video-thumb-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  background: #0f172a;
  overflow: hidden;
}

.hsc-hero-video-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.hsc-hero-video-card:hover .hsc-hero-video-thumb {
  transform: scale(1.05);
}

.hsc-hero-video-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.04) 50%, rgba(15, 23, 42, 0.45) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hsc-hero-video-card:hover .hsc-hero-video-gradient {
  opacity: 0.85;
}

/* Glowing Pulse Play Button */
.hsc-hero-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45), 0 0 0 5px rgba(255, 255, 255, 0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
  z-index: 2;
  animation: hscHeroPlayPulse 2s infinite ease-in-out;
}

.hsc-hero-video-play-btn svg {
  margin-left: 3px;
  width: 26px;
  height: 26px;
}

.hsc-hero-video-card:hover .hsc-hero-video-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.6), 0 0 0 7px rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

@keyframes hscHeroPlayPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65), 0 0 0 5px rgba(255, 255, 255, 0.35);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(239, 68, 68, 0), 0 0 0 5px rgba(255, 255, 255, 0.35);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 0 0 5px rgba(255, 255, 255, 0.35);
  }
}

.hsc-hero-video-badge-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 12px rgba(234, 88, 12, 0.4);
  z-index: 2;
}

.hsc-hero-video-dur-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

/* Card bottom metadata */
.hsc-hero-video-meta {
  padding: 16px 20px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #f1f5f9;
}

.hsc-hero-video-title {
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  transition: color 0.2s ease;
}

.hsc-hero-video-card:hover .hsc-hero-video-title {
  color: #1e40af;
}

.hsc-hero-video-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 99px;
  background: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 10px rgba(255, 107, 0, 0.3);
}

.hsc-hero-video-cta-pill .play-icon {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.hsc-hero-video-card:hover .hsc-hero-video-cta-pill {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: translateX(3px);
  box-shadow: 0 5px 15px rgba(255, 107, 0, 0.45);
}

.hsc-hero-video-card:hover .hsc-hero-video-cta-pill .play-icon {
  transform: translateX(2px);
}

/* Bottom Navigation & Stories-Style Progress Bar */
.hsc-hero-video-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.hsc-hero-video-now-playing {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}

.hsc-hero-video-now-playing .now-icon {
  font-size: 0.95rem;
}

.hsc-hero-video-now-playing .now-text {
  color: #1e40af;
  font-weight: 800;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hsc-hero-video-progress-dashes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 260px;
  margin-left: auto;
}

.hsc-hero-v-dash {
  flex: 1;
  min-width: 20px;
  height: 24px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  outline: none;
  transition: all 0.2s ease;
}

.hsc-hero-v-dash .dash-track {
  width: 100%;
  height: 5px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  transition: background 0.2s ease, height 0.2s ease;
}

.hsc-hero-v-dash:hover .dash-track {
  background: #cbd5e1;
  height: 5px;
}

.hsc-hero-v-dash .dash-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff6b00 0%, #ea580c 100%);
  border-radius: 99px;
  box-shadow: 0 0 6px rgba(255, 107, 0, 0.4);
  transition: width 0.1s linear;
}

.hsc-hero-v-dash.is-completed .dash-fill {
  width: 100% !important;
  background: #ea580c;
  box-shadow: none;
}

.hsc-hero-v-dash.is-active .dash-track {
  background: #cbd5e1;
  height: 5px;
}

.hsc-hero-v-dash .dash-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  text-align: center;
  transition: color 0.2s ease;
  line-height: 1;
}

.hsc-hero-v-dash.is-active .dash-num {
  color: #ea580c;
  font-weight: 800;
}

.hsc-hero-v-dash:hover .dash-num {
  color: #0f172a;
}

@media (max-width: 640px) {
  .hsc-hero-video-widget {
    border-radius: 16px;
  }
  .hsc-hero-video-widget-header {
    padding: 10px 14px;
  }
  .hsc-hero-video-meta {
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hsc-hero-video-title {
    font-size: 0.95rem;
  }
  .hsc-hero-video-cta-pill {
    width: 100%;
    justify-content: center;
  }
  .hsc-hero-video-play-btn {
    width: 50px;
    height: 50px;
  }
  .hsc-hero-video-play-btn svg {
    width: 22px;
    height: 22px;
  }
  .hsc-hero-video-footer-bar {
    padding: 10px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .hsc-hero-video-now-playing {
    justify-content: space-between;
  }
  .hsc-hero-video-now-playing .now-text {
    max-width: none;
  }
  .hsc-hero-video-progress-dashes {
    max-width: 100%;
    margin-left: 0;
  }
}


