/*
Theme Name: EduPro - Online Course Theme
Theme URI: https://yoursite.com/edupro
Author: Your Name
Author URI: https://yoursite.com
Description: Premium WordPress theme for online course websites. Fully compatible with LearnDash LMS and WooCommerce. Features a modern, professional design optimized for education platforms.
Version: 1.7.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edupro
Tags: education, learning, courses, learndash, woocommerce, responsive, rtl-language-support

EduPro WordPress Theme
Copyright (C) 2024 Your Name
*/

/* ============================================
   ROOT VARIABLES & RESET
   ============================================ */
:root {
  /* Bảng màu v1.7.0 — cập nhật theo ảnh thiết kế trang chủ mới do người
     dùng cung cấp: xanh dương sáng (tin cậy, công nghệ) làm màu chủ đạo
     thay cho navy đậm trước đó, kèm --accent cyan để nhấn chữ/gạch chân
     tiêu đề. --secondary (vàng đồng) vẫn giữ lại cho các trang khác
     chưa đổi thiết kế (không xoá biến để tránh vỡ CSS ở nơi khác). */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #e2ebff;
  --accent: #22d3ee;
  --accent-dark: #0891b2;
  --secondary: #c9992e;
  --secondary-light: #faf3e3;
  --dark: #0c1a2e;
  --dark-muted: #33445c;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --border: #e2e8f0;
  --white: #ffffff;
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;

  --topbar-bg: #071c38;

  --font-heading: 'Be Vietnam Pro', 'SVN-Gilroy', sans-serif;
  --font-body: 'Inter', 'Nunito Sans', sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.14);
  --shadow-xl: 0 32px 60px rgba(0,0,0,0.18);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
  --container-px: 24px;
}

*, *::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-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark-muted);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.2rem; line-height: 1.7; color: var(--gray); }

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

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title { margin-bottom: 16px; }
.section-desc { max-width: 640px; margin: 0 auto; color: var(--gray); font-size: 1.1rem; }
/* Vùng nút CTA canh giữa dưới 1 khối lưới (dùng chung cho nhiều section: Khóa học nổi bật, Tin tức...) */
.section-cta { text-align: center; margin-top: 40px; }

/* Gạch chân ngắn dưới tiêu đề section (dùng cả ở tiêu đề căn giữa lẫn căn trái) */
.section-title-accent {
  width: 56px;
  height: 4px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.section-title-accent--center { margin: -4px auto 20px; }
.section-title-accent--left { margin: -4px 0 0; }

/* Header dạng "trái + link xem tất cả" — dùng cho Khóa học nổi bật, Lộ trình, Tin tức, Đánh giá học viên */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-heading-sm {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 10px;
}
.section-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.section-link i { transition: transform var(--transition); }
.section-link:hover { color: var(--primary-dark); }
.section-link:hover i { transform: translateX(3px); }

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

.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap { gap: 16px; }
.gap-lg { gap: 32px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 86, 219, 0.4);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  box-shadow: 0 4px 14px rgba(255, 107, 43, 0.35);
}
.btn-secondary:hover {
  background: #e55a1f;
  border-color: #e55a1f;
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 40px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 12px; border-radius: 50%; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-body { padding: 24px; }
.card-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-thumb img { transform: scale(1.05); }

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-secondary { background: var(--secondary-light); color: var(--secondary); }
.badge-success { background: #dcfce7; color: var(--success); }
.badge-dark { background: var(--dark); color: var(--white); }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}
.form-control::placeholder { color: var(--gray); opacity: 0.7; }
.form-control.is-error { border-color: var(--error); }
.form-error { font-size: 0.8rem; color: var(--error); margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* ============================================
   TOP BAR (hotline, giấy phép, social, email)
   ============================================ */
.site-topbar {
  background: var(--topbar-bg);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 38px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.topbar-left a { color: rgba(255,255,255,0.85); font-weight: 600; }
.topbar-left a:hover { color: var(--secondary); }
.topbar-left .topbar-sep { color: rgba(255,255,255,0.3); }
.topbar-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.topbar-social { display: flex; align-items: center; gap: 10px; }
.topbar-social a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.topbar-social a:hover { color: white; }
.topbar-email a { color: rgba(255,255,255,0.85); }
.topbar-email a:hover { color: var(--secondary); }
@media (max-width: 900px) {
  .site-topbar { font-size: 0.72rem; }
  .topbar-inner { height: auto; flex-direction: column; align-items: flex-start; padding: 6px 0; gap: 4px; }
}
@media (max-width: 600px) {
  .site-topbar { display: none; }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-muted);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.main-nav a:hover, .main-nav .current-menu-item > a {
  color: var(--primary);
  background: var(--primary-light);
}

/* Dropdown */
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 100;
}
.main-nav .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.main-nav .sub-menu a {
  padding: 10px 14px;
  width: 100%;
  border-radius: var(--radius-sm);
  color: var(--dark-muted);
  font-size: 0.875rem;
}
.main-nav .sub-menu a:hover { background: var(--gray-light); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-cart { position: relative; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: var(--secondary);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 55%, #123a6b 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  color: white;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201, 153, 46, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  color: white;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.15;
}
.hero h1 span { color: var(--accent); }
.hero .lead { color: rgba(255,255,255,0.75); margin-bottom: 36px; font-size: 1.15rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat-item { }
.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-top: 4px; }

.hero-visual { position: relative; }
.hero-card-stack { position: relative; }
.hero-main-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.hero-main-card img { width: 100%; display: block; }
.floating-card {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 3s ease-in-out infinite;
}
.floating-card:nth-child(2) {
  bottom: -20px;
  left: -24px;
  animation-delay: -1.5s;
}
.floating-card:nth-child(3) {
  top: 24px;
  right: -24px;
  animation-delay: -0.8s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.floating-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.floating-icon.blue { background: var(--primary-light); }
.floating-icon.blue i { color: var(--primary); }
.floating-icon.orange { background: var(--secondary-light); }
.floating-icon.orange i { color: var(--secondary); }
.floating-card-text .label { font-size: 0.7rem; color: var(--gray); font-weight: 500; }
.floating-card-text .value { font-size: 0.9rem; font-weight: 700; color: var(--dark); }

/* Hero — thẻ minh họa dự phòng khi chưa upload hero_image (Customizer) */
.hero-main-card--fallback { background: linear-gradient(135deg, #1e3a8a, #3b82f6); padding: 48px; display: flex; align-items: center; justify-content: center; }
.hero-fallback-content { text-align: center; color: white; }
.hero-fallback-icon { font-size: 5rem; margin-bottom: 16px; }
.hero-fallback-title { font-size: 1.2rem; font-weight: 700; color: white; }
.hero-fallback-sub { font-size: 0.9rem; opacity: 0.8; }

/* ============================================
   COURSE CARDS
   ============================================ */
.course-card { }
.course-card .card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}
.course-card:hover .card-thumb::after { opacity: 1; }
.course-card-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity var(--transition);
}
.course-card:hover .course-card-overlay { opacity: 1; }
.course-card .card-body { }
.card-category { position: absolute; top: 12px; left: 12px; }
.course-card-thumb-fallback {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  color: rgba(255,255,255,0.9);
}
.course-card-thumb-fallback i { font-size: 2.2rem; color: rgba(255,255,255,0.35); }
.course-card-thumb-fallback-title { font-size: 0.95rem; font-weight: 700; color: white; line-height: 1.4; }
.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.course-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-title a { color: var(--dark); text-decoration: none; }
.course-title a:hover { color: var(--primary); }
.course-instructor {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 12px;
}
.course-instructor img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.course-instructor-label { font-size: 0.7rem; color: var(--gray); }
.course-instructor-name { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.course-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.course-info-item { display: flex; align-items: center; gap: 5px; }
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.course-price { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
/* 0đ -> "Miễn phí" màu xanh, có giá -> màu đỏ (đồng bộ với single-sfwd-courses.php) */
.course-price--free { color: var(--success); }
.course-price--paid { color: var(--error); }
.course-price--paid del { color: var(--gray); font-size: 0.85rem; font-weight: 400; opacity: 0.8; }
.course-price--paid ins { text-decoration: none; }
.course-actions { display: flex; gap: 10px; }
.course-actions .btn { flex: 1; }
.course-price .original {
  font-size: 0.85rem;
  color: var(--gray);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 6px;
}
.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}
.stars { color: #f59e0b; letter-spacing: -1px; }

/* ============================================
   FEATURES SECTION
   ============================================ */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light), var(--shadow);
  transform: translateY(-4px);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-icon--primary { background: var(--primary-light); color: var(--primary); }
.feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 0.9rem; color: var(--gray); line-height: 1.6; }

/* ============================================
   INSTRUCTOR SECTION
   ============================================ */
.instructor-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  transition: all var(--transition);
}
.instructor-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.instructor-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--primary-light);
}
.instructor-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.instructor-title { font-size: 0.85rem; color: var(--gray); margin-bottom: 12px; }
.instructor-stats { display: flex; gap: 20px; justify-content: center; }
.inst-stat { text-align: center; }
.inst-stat-num { font-weight: 700; font-size: 1rem; color: var(--primary); }
.inst-stat-lbl { font-size: 0.7rem; color: var(--gray); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--primary-light);
  line-height: 1;
}
.testimonial-text { font-size: 0.95rem; line-height: 1.7; color: var(--dark-muted); margin-bottom: 20px; font-style: italic; }
.rating--stars { margin-bottom: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-avatar-fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.author-role { font-size: 0.8rem; color: var(--gray); }

/* ============================================
   PRICING
   ============================================ */
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-xl);
  transform: scale(1.04);
}
.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.pricing-badge {
  display: inline-block;
  background: var(--secondary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.pricing-name { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.pricing-price { margin-bottom: 16px; }
.pricing-price .amount { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.pricing-price .period { font-size: 0.9rem; color: var(--gray); }
/* Giá hiển thị qua WooCommerce get_price_html() (del/ins) — dùng cho card "Nhóm khóa học (Lộ trình)" trên trang chủ */
.pricing-price .woocommerce-Price-amount { font-family: var(--font-heading); font-weight: 800; color: var(--primary); }
.pricing-price del { opacity: 0.6; margin-right: 8px; }
.pricing-price del .woocommerce-Price-amount { font-size: 1rem; font-weight: 500; color: var(--gray); }
.pricing-price ins { text-decoration: none; }
.pricing-price ins .woocommerce-Price-amount { font-size: 1.9rem; }
.pricing-price > .woocommerce-Price-amount { font-size: 1.9rem; }
.pricing-desc { font-size: 0.875rem; color: var(--gray); margin-bottom: 24px; }
.pricing-card > .badge { margin-bottom: 12px; }
.pricing-features { margin-bottom: 28px; }
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.pricing-feature:last-child { border-bottom: none; }
.pricing-feature .check { color: var(--success); font-size: 1rem; flex-shrink: 0; }
.pricing-feature .cross { color: var(--gray); font-size: 1rem; flex-shrink: 0; opacity: 0.5; }
.pricing-feature.disabled { opacity: 0.45; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-inner h2 { color: white; margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin: 16px 0 24px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  font-size: 0.9rem;
}
.social-link:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.footer-heading {
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: white; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item { display: flex; gap: 12px; font-size: 0.875rem; }
.contact-icon { color: var(--primary); font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.footer-bottom-links a:hover { color: white; }

/* ============================================
   STATS COUNTER BAND ("NHỮNG CON SỐ BIẾT NÓI")
   ============================================ */
.stats-band {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: white;
}
.stats-band-title { color: white; }
.stats-band .grid { text-align: center; }
.stats-band .stat-item .stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--secondary);
}
.stats-band .stat-item .stat-label { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-top: 6px; }

/* ============================================
   NEWS / TIN TỨC CARD
   ============================================ */
.news-card .card-body { }
.news-date { font-size: 0.78rem; color: var(--secondary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.news-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-title a { color: inherit; }
.news-excerpt { font-size: 0.875rem; color: var(--gray); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================
   TẠI SAO NÊN HỌC ONLINE + VIDEO (front-page.php)
   ============================================ */
.why-online-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.why-item {
  display: flex;
  gap: 18px;
  margin-bottom: 32px;
}
.why-item:last-child { margin-bottom: 0; }
.why-item-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.why-item-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.why-item-desc { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }
.why-item-bullets { padding-left: 2px; }
.why-item-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 4px;
}
.why-item-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.feature-card .why-item-bullets { text-align: left; margin-top: 4px; }
.why-online-video-caption { font-size: 0.85rem; color: var(--gray); margin-top: 16px; line-height: 1.7; }
.why-online-video-caption a { font-weight: 600; }

/* Khung video 16:9 dùng chung (video giới thiệu, section "Tại sao học online"...) */
.video-embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================================
   BUTTON — biến thể viền trắng (dùng trên nền hero tối)
   ============================================ */
.btn-white-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}
.btn-white-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

/* ============================================
   HERO — hàng 4 tính năng nhanh + ảnh minh họa (v1.7.0)
   ============================================ */
.hero-quick-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 8px 0 32px;
}
.hero-quick-feature { display: flex; align-items: center; gap: 10px; }
.hero-quick-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}
.hero-quick-feature span { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.88); line-height: 1.3; }

.hero-visual { position: relative; }
.hero-visual-arrow { position: absolute; top: -6%; right: -4%; width: 55%; height: auto; z-index: 0; opacity: 0.9; }
.hero-visual-graphic { position: relative; z-index: 1; }
.hero-visual-img { width: 100%; border-radius: var(--radius-xl); display: block; }
.hero-visual-fallback {
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  color: rgba(255,255,255,0.25);
}

/* ============================================
   THỐNG KÊ — thanh trắng nổi dưới hero (v1.7.0)
   ============================================ */
.stats-strip-wrap { position: relative; z-index: 3; padding-bottom: 24px; }
.stats-strip {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 40px;
  margin-top: -56px;
}
.stats-strip-item { display: flex; align-items: center; gap: 16px; }
.stats-strip-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stats-strip-num { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--dark); line-height: 1.1; }
.stats-strip-lbl { font-size: 0.85rem; color: var(--gray); margin-top: 2px; }

/* ============================================
   NHÓM KHÓA HỌC (LỘ TRÌNH) — banner màu trên mỗi pricing-card (v1.7.0)
   ============================================ */
.pricing-card { padding: 0; overflow: hidden; }
.pricing-card-banner {
  position: relative;
  padding: 28px 28px 24px;
  color: white;
  overflow: hidden;
}
.pricing-card-banner-tag {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.pricing-card-banner-title { color: white; font-size: 1.3rem; margin-bottom: 6px; position: relative; z-index: 1; }
.pricing-card-banner-sub { color: rgba(255,255,255,0.85); font-size: 0.85rem; margin: 0; position: relative; z-index: 1; }
.pricing-card-banner-icon {
  position: absolute;
  right: 16px;
  bottom: 10px;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.15);
}
.path-banner--blue { background: linear-gradient(135deg, #2563eb, #1e40af); }
.path-banner--violet { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.path-banner--teal { background: linear-gradient(135deg, #0d9488, #0f766e); }
.pricing-card-body { padding: 28px; }
.pricing-card-body .pricing-features { margin-bottom: 20px; }
.pricing-price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.pricing-price-row .pricing-price { margin-bottom: 0; }

/* ============================================
   TIN TỨC — badge ngày đè lên ảnh + link "Đọc thêm" (v1.7.0)
   ============================================ */
.news-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  text-align: center;
  box-shadow: var(--shadow);
  line-height: 1.1;
}
.news-date-badge-day { display: block; font-size: 1.1rem; font-weight: 800; color: var(--dark); }
.news-date-badge-month { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--primary); }
.news-readmore { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--primary); margin-top: 4px; }
.news-readmore i { transition: transform var(--transition); }
.news-readmore:hover i { transform: translateX(3px); }

/* ============================================
   HỌC VIÊN NÓI GÌ — carousel (v1.7.0)
   ============================================ */
.testimonial-carousel { position: relative; }
.testimonial-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 24px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.testimonial-carousel-track::-webkit-scrollbar { display: none; }
.testimonial-carousel-track > .testimonial-card { scroll-snap-align: start; }
.testimonial-carousel-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
}
.testimonial-carousel-arrow:hover { background: var(--primary); color: white; }
.testimonial-carousel-arrow--prev { left: -22px; }
.testimonial-carousel-arrow--next { right: -22px; }
.testimonial-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.testimonial-carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition);
}
.testimonial-carousel-dot.is-active { background: var(--primary); width: 22px; border-radius: 100px; }

/* ============================================
   NEWSLETTER — thẻ trắng bo góc (v1.7.0, thay cho band tối trước đó)
   ============================================ */
.newsletter-section { padding-top: 0; }
.newsletter-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter-copy-row { display: flex; align-items: center; gap: 20px; flex: 1; min-width: 260px; }
.newsletter-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.newsletter-copy h2 { font-size: 1.3rem; margin-bottom: 4px; }
.newsletter-copy p { color: var(--gray); font-size: 0.9rem; margin: 0; }
.newsletter-form { width: 100%; max-width: 380px; flex-shrink: 0; }
.newsletter-form-row { display: flex; gap: 0; }
.newsletter-form-row .form-control { border-radius: var(--radius) 0 0 var(--radius); border-right: 0; }
.newsletter-form-row .btn { border-radius: 0 var(--radius) var(--radius) 0; white-space: nowrap; }
.newsletter-msg { min-height: 1.2em; font-size: 0.85rem; margin-top: 10px; }
.newsletter-msg.is-success { color: var(--success); }
.newsletter-msg.is-error { color: var(--error); }

/* ============================================
   NHÓM HỌC (LEARNDASH GROUPS)
   ============================================ */
.group-course-block .card-thumb { display: none; }
.group-lesson-locked { color: var(--gray); }

/* ============================================
   AJAX: MARK COMPLETE & BÌNH LUẬN
   ============================================ */
.ld-complete-done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #dcfce7;
  color: #15803d;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}
.edupro-comment-notice { margin: 0; }
.comment-list .children {
  list-style: none;
  margin: 0 0 0 32px;
  padding: 0;
}
.comment-list .children .edupro-comment { border-bottom: 1px solid var(--border); }

/* ============================================
   LEARNDASH STYLES
   ============================================ */
.learndash-wrapper .ld-course-list-item { /* overrides */ }

.ld-breadcrumbs { font-size: 0.875rem; color: var(--gray); margin-bottom: 24px; }
.ld-breadcrumbs a { color: var(--gray); }
.ld-breadcrumbs a:hover { color: var(--primary); }

/* LearnDash Course header */
.learndash-wrapper .ld-course-header {
  background: var(--primary);
  color: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

/* LearnDash lesson list */
.learndash-wrapper .ld-table-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.learndash-wrapper .ld-table-list-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  transition: background var(--transition);
}
.learndash-wrapper .ld-table-list-item:hover { background: var(--gray-light); }

/* Progress bar */
.ld-progress .ld-progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.ld-progress .ld-progress-bar-percentage {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 100px;
  transition: width 0.5s ease;
}

/* LearnDash navigation */
.ld-nav-section-item { border-radius: var(--radius); overflow: hidden; }
.ld-focus-sidebar { border-right: 1px solid var(--border); }

/* ============================================
   LEARNDASH FOCUS MODE — COMMENTS (khu vực trao đổi
   dưới bài học/khóa học)
   ------------------------------------------------
   Markup gốc từ plugin (sfwd-lms/themes/ld30/templates/
   focus/comments.php + focus/comments_list.php), KHÔNG sửa
   trực tiếp file plugin (sẽ mất khi cập nhật) — chỉ override
   bằng CSS theo đúng class có sẵn: .ld-focus-comments,
   .ld-focus-comment, .ld-comment-avatar, .ld-comment-body...
   Mục tiêu: trông như khung trao đổi/chat chuyên nghiệp thay
   vì danh sách text thô mặc định của LearnDash.
   ============================================ */
.ld-focus-comments {
  max-width: 760px;
  margin: 8px auto 0;
  padding: 32px 0 8px;
}

/* Header "N Comments" + nút Thu gọn/Mở rộng */
.ld-focus-comments__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
}
.ld-focus-comments__header {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
}
.ld-focus-comments .ld-expand-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.ld-focus-comments .ld-expand-button:hover { background: var(--secondary-light); color: var(--secondary); }
.ld-focus-comments .ld-expand-button .ld-icon-arrow-down { transition: transform var(--transition); }
.ld-focus-comments .ld-expand-button.ld-expanded .ld-icon-arrow-down { transform: rotate(180deg); }
#ld-comments-post-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 20px;
  transition: background var(--transition), transform var(--transition);
}
#ld-comments-post-button:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Danh sách bình luận — mỗi bình luận là 1 "message card" */
.ld-focus-comments__comments-items { display: flex; flex-direction: column; gap: 4px; }
.ld-focus-comment { list-style: none; }

/*
  Markup gốc của LD: .ld-comment-wrapper chứa 2 khối con NGANG HÀNG
  (không lồng nhau) — .ld-comment-avatar (ảnh đại diện + tên/ngày) và
  .ld-comment-body (nội dung + nút Reply). Xếp .ld-comment-wrapper theo
  cột: hàng trên là avatar+tên/ngày, hàng dưới là bong bóng nội dung
  được thụt vào ngang bằng tên (margin-left = bề rộng avatar + gap) —
  tạo cảm giác "1 tin nhắn" mà không cần đổi cấu trúc HTML của plugin.
*/
.ld-focus-comment .ld-comment-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  margin-bottom: 14px;
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.ld-focus-comment .ld-comment-wrapper:hover { box-shadow: var(--shadow-sm); }

/* Bình luận của Quản lý/Giảng viên — làm nổi bật để học viên dễ nhận diện phản hồi chính thức */
.ld-focus-comment.role-administrator .ld-comment-wrapper,
.ld-focus-comment.role-group_leader .ld-comment-wrapper,
.ld-focus-comment.role-wdm_instructor .ld-comment-wrapper {
  background: var(--primary-light);
  border-color: rgba(12, 45, 85, 0.15);
  border-left: 3px solid var(--primary);
}

.ld-focus-comment .ld-comment-alert {
  display: block;
  font-size: 0.78rem;
  color: var(--warning);
  margin-bottom: 8px;
}

.ld-focus-comment .ld-comment-avatar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ld-focus-comment .ld-comment-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--border);
  display: block;
  flex-shrink: 0;
}
.ld-focus-comment .ld-comment-avatar-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ld-focus-comment .ld-comment-author-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--dark);
}
.ld-focus-comment .ld-comment-permalink {
  font-size: 0.78rem;
  color: var(--gray);
  text-decoration: none;
}
.ld-focus-comment .ld-comment-permalink:hover { color: var(--primary); text-decoration: underline; }

/* Bong bóng nội dung — thụt vào ngang bằng tên (44px avatar + 12px gap) */
.ld-focus-comment .ld-comment-body {
  margin-left: 56px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.ld-focus-comment.role-administrator .ld-comment-body,
.ld-focus-comment.role-group_leader .ld-comment-body,
.ld-focus-comment.role-wdm_instructor .ld-comment-body {
  background: var(--white);
  border-color: rgba(12, 45, 85, 0.12);
}
.ld-focus-comment .ld-comment-body p:last-of-type { margin-bottom: 0; }
.ld-focus-comment .ld-comment-body p { font-size: 0.9rem; line-height: 1.7; color: var(--dark-muted); margin-bottom: 8px; }

.ld-focus-comment .ld-comment-reply { margin-top: 10px; }
.ld-focus-comment .ld-comment-reply a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 14px;
  background: var(--gray-light);
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.ld-focus-comment .ld-comment-reply a:hover { background: var(--primary); color: var(--white); }

/* Bình luận trả lời (nested) — thụt vào + có đường nối để thấy rõ đang "trao đổi" theo nhánh */
.ld-focus-comments .children {
  list-style: none;
  margin: 6px 0 6px 30px;
  padding-left: 20px;
  border-left: 2px dashed var(--border);
}
.ld-focus-comments .children .ld-comment-wrapper { background: var(--white); }

/* Form "Để lại bình luận" */
.ld-focus-comments__form-container {
  margin-top: 24px;
  padding: 24px;
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.ld-focus-comments__form-container #respond > h3,
.ld-focus-comments__form-container .comment-reply-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.ld-focus-comments__form-container .comment-reply-title small { font-weight: 400; font-size: 0.8rem; margin-left: 8px; }
.ld-focus-comments__form-container .comment-form-comment,
.ld-focus-comments__form-container .comment-form-author,
.ld-focus-comments__form-container .comment-form-email,
.ld-focus-comments__form-container .comment-form-url {
  margin-bottom: 16px;
}
.ld-focus-comments__form-container label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.ld-focus-comments__form-container textarea,
.ld-focus-comments__form-container input[type="text"],
.ld-focus-comments__form-container input[type="email"],
.ld-focus-comments__form-container input[type="url"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ld-focus-comments__form-container textarea:focus,
.ld-focus-comments__form-container input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(12, 45, 85, 0.12);
}
.ld-focus-comments__form-container textarea { resize: vertical; min-height: 110px; }
.ld-focus-comments__form-container .form-submit { margin-top: 4px; margin-bottom: 0; }
.ld-focus-comments__form-container #submit,
.ld-focus-comments__form-container input[type="submit"] {
  padding: 12px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.ld-focus-comments__form-container #submit:hover,
.ld-focus-comments__form-container input[type="submit"]:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.ld-focus-comments__form-container .logged-in-as { font-size: 0.8rem; color: var(--gray); margin-bottom: 12px; }
.ld-focus-comments__form-container .logged-in-as a { color: var(--primary); }
.ld-focus-comments__form-container .comment-notes { font-size: 0.8rem; color: var(--gray); margin-bottom: 16px; }

@media (max-width: 640px) {
  .ld-focus-comment .ld-comment-wrapper { padding: 14px; gap: 8px; }
  .ld-focus-comment .ld-comment-avatar img { width: 36px; height: 36px; }
  .ld-focus-comment .ld-comment-body { margin-left: 0; }
  .ld-focus-comments .children { margin-left: 14px; padding-left: 12px; }
  .ld-focus-comments__form-container { padding: 16px; }
}

/* ============================================
   WOOCOMMERCE STYLES
   ============================================ */
.woocommerce-page .woocommerce {  }

/* Cart icon */
.woocommerce-cart-form { }

/* Product single */
.woocommerce div.product .woocommerce-product-gallery { border-radius: var(--radius-lg); overflow: hidden; }

.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--primary); font-size: 1.5rem; font-weight: 800; font-family: var(--font-heading); }

.woocommerce-variation-price .woocommerce-Price-amount { color: var(--primary); }

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce-page .button {
  background: var(--primary) !important;
  color: white !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  padding: 14px 28px !important;
  transition: all var(--transition) !important;
  border: none !important;
}
.woocommerce .button:hover,
.woocommerce button.button:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px) !important;
}

/* Checkout steps */
.woocommerce-checkout #order_review_heading { font-family: var(--font-heading); font-size: 1.25rem; }
.woocommerce form .form-row label { font-weight: 600; font-size: 0.875rem; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 12px 16px !important;
  transition: border-color var(--transition) !important;
}
.woocommerce form .form-row input.input-text:focus { border-color: var(--primary) !important; }

/* Order summary */
.woocommerce-checkout-review-order-table { border-radius: var(--radius-lg); overflow: hidden; }

/* My account tabs */
.woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; gap: 4px; }
.woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--dark-muted);
  font-weight: 500;
  transition: all var(--transition);
}
.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
  background: var(--primary);
  color: white;
}

/* ============================================
   NOTIFICATION / FLASH MESSAGES
   ============================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--radius) !important;
  border: none !important;
  padding: 16px 20px !important;
  margin-bottom: 20px !important;
}
.woocommerce-message { background: #dcfce7 !important; color: #15803d !important; border-left: 4px solid #16a34a !important; }
.woocommerce-info { background: var(--primary-light) !important; color: var(--primary-dark) !important; border-left: 4px solid var(--primary) !important; }
.woocommerce-error { background: #fee2e2 !important; color: #b91c1c !important; border-left: 4px solid var(--error) !important; }

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--dark); font-weight: 500; }

/* ============================================
   SEARCH
   ============================================ */
.search-form { display: flex; gap: 0; }
.search-form input[type="search"] {
  flex: 1;
  padding: 12px 20px;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 0.95rem;
}
.search-form input:focus { outline: none; border-color: var(--primary); }
.search-form button {
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: background var(--transition);
}
.search-form button:hover { background: var(--primary-dark); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 48px; }
.pagination a,
.pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark-muted);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: white; }

/* ============================================
   SIDEBAR / WIDGET
   ============================================ */
.widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============================================
   LOADING / SKELETON
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, #e9ecef 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { gap: 40px; }
}
@media (max-width: 768px) {
  :root { --container-px: 16px; }
  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .pricing-card.featured { transform: none; }
  .why-online-grid { grid-template-columns: 1fr; gap: 32px; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { max-width: 100%; }
  .section-header-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-quick-features { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); margin-top: -24px; padding: 24px; }
  .testimonial-carousel-track { grid-auto-columns: 100%; }
  .testimonial-carousel-arrow { display: none; }
  .pricing-card-body { padding: 22px; }
  .pricing-card-banner { padding: 22px 22px 20px; }
  .newsletter-card { padding: 28px; justify-content: center; text-align: center; }
  .newsletter-copy-row { justify-content: center; }
  .newsletter-form { max-width: 100%; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }
  .btn-lg { padding: 14px 24px; font-size: 1rem; }
  .hero-stats { gap: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .newsletter-form-row { flex-direction: column; }
  .newsletter-form-row .form-control { border-radius: var(--radius); border-right: 1.5px solid var(--border); }
  .newsletter-form-row .btn { border-radius: var(--radius); width: 100%; }
}

/* Print */
@media print {
  .site-header, .site-footer, .back-to-top, .nav-toggle { display: none !important; }
  .hero { color: black; background: white; }
}
