/* ==========================================
   CSS DESIGN SYSTEM — TIẾNG TRUNG TỈ MUỘI
   A1 UI/UX Design Guide Compliant
   ========================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&family=Caveat:wght@600;700&family=Pacifico&display=swap');

:root {
  /* Brand Palette - Bảng màu thương hiệu Tỉ Muội mới */
  --color-primary:       #FFD23F;   /* Vàng thương hiệu chính */
  --color-primary-dark:  #FF9F1C;   /* Cam thương hiệu (Hover/Trạng thái nổi bật) */
  --color-primary-light: #FFF7E1;   /* Kem sữa ấm nhẹ nền phụ */
  --color-accent:        #E71D36;   /* Đỏ tươi logo và CTA nổi bật */
  --color-accent-hover:  #C51327;   /* Đỏ sậm hover */
  --color-dark:          #333333;   /* Chữ chính tối xám đen */
  --color-mid:           #666666;   /* Chữ phụ, mô tả */
  --color-border:        #EAE2CA;   /* Viền mềm mịn tông kem vàng */
  --color-bg:            #FFF7E1;   /* Kem sữa ấm sáng toàn trang */
  --color-white:         #FFFFFF;

  /* Backward Compatibility Aliases */
  --primary: var(--color-primary);
  --primary-hover: var(--color-primary-dark);
  --primary-light: var(--color-primary-light);
  --accent: var(--color-accent);
  --accent-hover: var(--color-accent-hover);
  --bg: var(--color-bg);
  --white: var(--color-white);
  --text-main: var(--color-dark);
  --text-muted: var(--color-mid);
  --border-color: var(--color-border);

  /* Typography */
  --font-display: 'Be Vietnam Pro', sans-serif;
  --font-body:    'Be Vietnam Pro', sans-serif;
  --font-heading: var(--font-display);
  --font-accent:  'Caveat', 'Pacifico', cursive;

  /* Spacing & Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 30px rgba(51, 51, 51, 0.04);
  --shadow-hover: 0 15px 40px rgba(255, 159, 28, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASIC STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button, input, select, textarea {
  font-family: inherit;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: padding-top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- UTILITY CLASSES --- */
.tm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.flex-column { flex-direction: column; }
.d-none { display: none; }
.me-2 { margin-right: 8px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }

@media (min-width: 992px) {
  .d-lg-flex { display: flex; }
  .d-none-lg { display: none !important; }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 50px;
  padding: 12px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(214, 59, 47, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(214, 59, 47, 0.4);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-accent);
}

.btn-secondary:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-zalo {
  background-color: #E6F0FF;
  border-color: #B3D1FF;
  color: #0068FF;
  position: relative;
  overflow: hidden;
}

.btn-zalo:hover {
  background-color: #0068FF;
  border-color: #0068FF;
  color: var(--color-white);
  transform: translateY(-2px);
}

.dt-ripple-dot {
  width: 8px;
  height: 8px;
  background-color: #4CAF50;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  animation: pulse-green 1.8s infinite;
}


/* --- STICKY HEADER (S0) --- */
.tm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 253, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
  transition: var(--transition);
}

.tm-header.scrolled {
  box-shadow: 0 4px 24px rgba(44, 44, 44, 0.06);
  padding: 8px 0;
  background-color: var(--color-white);
}

.tm-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tm-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}
.tm-logo {
    display: flex;
    flex-direction: column;
}
.logo-main {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-mid);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.tm-nav {
  gap: 24px;
}

.tm-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-dark);
  position: relative;
  padding: 6px 0;
  font-size: 0.95rem;
}

.tm-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.tm-nav .nav-link:hover::after,
.tm-nav .nav-link.active::after {
  width: 100%;
}

.tm-header-actions {
  gap: 12px;
}

/* Hamburger for Mobile */
.hamburger-btn {
  background: none;
  border: none;
  color: var(--color-dark);
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 24px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 3px solid var(--color-primary);
  transform: translateY(-120%);
  transition: transform 0.4s ease;
}

.mobile-nav-drawer.open {
  transform: translateY(0);
}

.mobile-nav-drawer a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

/* --- HERO SECTION (S1) --- */
.hero {
  background: linear-gradient(135deg, #FFF8E7 0%, #FFF3D6 50%, #FFEAB8 100%);
  min-height: 80vh;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.18) 0%, transparent 70%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214,59,47,0.1) 0%, transparent 70%);
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2%;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 58% 40%;
  }
}

.hero-badge-small {
  display: inline-flex;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-primary);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-dark);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
}

.hero-content h1 span {
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

.hero-content h1 span::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(245, 166, 35, 0.3);
  z-index: -1;
  border-radius: 4px;
}

.hero-subheadline {
  font-size: 1.15rem;
  color: var(--color-mid);
  margin-bottom: 32px;
  font-weight: 500;
}

.hero-social-proof {
  margin-top: 32px;
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
}

.hero-social-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-social-proof i {
  font-size: 1.2rem;
}

.hero-social-proof .tiktok-icon { color: #010101; }
.hero-social-proof .youtube-icon { color: #FF0000; }

.hero-image-side {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mascot-wrapper {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 8px solid var(--color-white);
  box-shadow: 0 20px 50px rgba(245, 166, 35, 0.2);
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: mascotFloat 4s ease-in-out infinite;
}

.hero-mascot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

/* S1 Floating Badges */
.hero-badge {
  position: absolute;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  box-shadow: 0 10px 30px rgba(44, 44, 44, 0.12);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  border: 1px solid var(--color-primary-light);
  animation: badgePulse 3s ease-in-out infinite;
}

.hero-badge i {
  color: var(--color-accent);
  font-size: 1.1rem;
}

.hero-badge.badge-1 { top: 5%; left: -10%; animation-delay: 0s; }
.hero-badge.badge-2 { top: 42%; right: -12%; animation-delay: 0.7s; }
.hero-badge.badge-3 { bottom: 8%; left: -5%; animation-delay: 1.4s; }

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0 40px;
  }
  .hero-mascot-wrapper {
    max-width: 260px;
  }
  .hero-badge.badge-1 { left: 0%; top: -5%; }
  .hero-badge.badge-2 { right: 0%; top: 40%; }
  .hero-badge.badge-3 { display: none; }
}

/* --- SOCIAL PROOF BAR (S2) --- */
.proof-bar {
  background-color: var(--color-primary);
  padding: 28px 0;
  box-shadow: 0 10px 30px rgba(245, 166, 35, 0.2);
  position: relative;
  z-index: 5;
}

.proof-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 768px) {
  .proof-grid {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
  }
}

.proof-stat {
  text-align: center;
  flex: 1;
}

.proof-stat .number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
}

.proof-stat .label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
  font-weight: 600;
}

.proof-divider {
  display: none;
  width: 1px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 768px) {
  .proof-divider {
    display: block;
  }
}

/* --- SECTION HEADER PATTERN (S7) --- */
.section-wrapper {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--color-mid);
  max-width: 580px;
  margin: 0 auto;
  font-weight: 500;
}

/* --- FEATURED COURSES (S3) --- */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 22px;
  border-radius: 50px;
  border: 2px solid var(--color-border);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--color-white);
  color: var(--color-mid);
}

.filter-pill.active, .filter-pill:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.25);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.course-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-white);
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.course-img-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background-color: var(--color-primary-light);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.course-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(214, 59, 47, 0.3);
}

.course-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--color-mid);
  margin-bottom: 12px;
  font-weight: 600;
}

.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.course-card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--color-dark);
}

.course-card-desc {
  font-size: 0.9rem;
  color: var(--color-mid);
  margin-bottom: 20px;
  flex-grow: 1;
}

.course-rating {
  color: var(--color-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: auto;
}

.course-price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-accent);
}

.btn-view-course {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-view-course:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Mobile Course Slider */
@media (max-width: 576px) {
  .courses-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 16px;
  }
  .course-card {
    min-width: 290px;
    scroll-snap-align: start;
  }
}

/* --- ABOUT GV MINI (S4) --- */
.about-mini {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.about-mini::before {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%23FFD23F' stroke-width='1.5' stroke-opacity='0.08'/%3E%3C/svg%3E");
  background-size: contain;
  z-index: 1;
}

@media (min-width: 768px) {
    .about-mini {
        grid-template-columns: 35% 65%;
    }
}


@media (max-width: 768px) {
    .about-mini {
        gap: 32px;
        padding: 20px;
    }
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--color-primary);
  box-shadow: 0 16px 40px rgba(245, 166, 35, 0.2);
  aspect-ratio: 1;
  background-color: var(--color-primary-light);
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img-wrapper i {
  font-size: 8rem;
  color: var(--color-primary);
}

.about-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-mentor-name {
    font-size: 1.6rem;
    color: var(--color-accent);
    margin-bottom: 12px;
    text-align: justify;
}

.about-quote {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  font-style: italic;
  color: var(--color-dark);
}

.about-desc {
  font-size: 0.95rem;
  color: var(--color-mid);
  margin-bottom: 24px;
}

.about-stats {
  background-color: var(--color-bg);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 24px;
}

/* --- VIDEO HUB (S5) --- */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-white);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.video-thumb-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.video-play-btn {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(245, 166, 35, 0.95);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
  transition: var(--transition);
  padding-left: 4px; /* offset play icon */
}

.video-card:hover .video-play-btn {
  background-color: var(--color-accent);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(214, 59, 47, 0.4);
}

.video-info {
  padding: 20px;
}

.video-tag {
  display: inline-block;
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.video-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
}

.videos-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Video Modal Overlay */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(44, 44, 44, 0.9);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.video-modal-content {
  background-color: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16/9;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 4px solid var(--color-primary-light);
}

.video-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
}

.video-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- WHY CHOOSE (S6) --- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.reason-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  border: 2px solid transparent;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.reason-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.reason-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background-color: var(--color-primary-light);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: var(--transition);
}

.reason-card:hover .reason-icon {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.reason-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.reason-desc {
  font-size: 0.9rem;
  color: var(--color-mid);
}

/* --- SCHEDULE (S7) --- */
.schedule-container {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  min-width: 700px;
}

.schedule-table th {
  padding: 12px 18px;
  font-weight: 700;
  color: var(--color-mid);
  text-align: left;
  font-size: 0.9rem;
}

.schedule-row {
  background-color: var(--color-bg);
  transition: var(--transition);
}

.schedule-row:hover {
  background-color: var(--color-primary-light);
  transform: scale(1.005);
}

.schedule-row td {
  padding: 18px;
  vertical-align: middle;
  font-weight: 600;
}

.schedule-row td:first-child {
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.schedule-row td:last-child {
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.schedule-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-dark);
}

.format-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.format-badge.online {
  background-color: #E3F2FD;
  color: #1565C0;
}

.format-badge.offline {
  background-color: #E8F5E9;
  color: #2E7D32;
}

.slot-badge {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.slot-badge.few {
  background-color: #FFF3E0;
  color: #E65100;
}

.slot-badge.open {
  background-color: #E8F5E9;
  color: #2E7D32;
}

.slot-progress-wrapper {
  width: 140px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot-progress {
  height: 6px;
  background-color: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
}

.slot-progress-fill {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 3px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile schedules list */
.mobile-schedules {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.mobile-schedule-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.mobile-schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .schedule-container {
    display: none;
  }
  .mobile-schedules {
    display: flex;
  }
}

/* --- TESTIMONIALS (S8) --- */
.testimonial-grid {
  column-count: 1;
  column-gap: 20px;
  width: 100%;
}

@media (min-width: 576px) {
  .testimonial-grid { column-count: 2; }
}

@media (min-width: 992px) {
  .testimonial-grid { column-count: 3; }
}

.testimonial-item {
  break-inside: avoid;
  margin-bottom: 20px;
  width: 100%;
}

.testimonial-screenshot {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
}

.testimonial-screenshot img {
  width: 100%;
  display: block;
}

.verified-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 4px;
}

.testimonial-quote {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border-left: 5px solid var(--color-primary);
  box-shadow: var(--shadow-soft);
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.quote-mark {
  font-size: 4rem;
  color: var(--color-primary);
  line-height: 1;
  font-family: var(--font-display);
  opacity: 0.35;
  margin-bottom: -15px;
}

.testimonial-rating {
  color: var(--color-primary);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.quote-text {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.quote-author {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-accent);
}

/* --- LEAD MAGNET (S9) --- */
.leadmagnet {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px rgba(245, 166, 35, 0.3);
}

.leadmagnet::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  z-index: 1;
}

.leadmagnet-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .leadmagnet-grid {
    grid-template-columns: 60% 40%;
  }
}

.leadmagnet-content {
  color: var(--color-white);
}

.leadmagnet-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.leadmagnet-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 12px;
}

.leadmagnet-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.leadmagnet-form-wrapper {
  background-color: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.leadmagnet-form-wrapper h4 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--color-dark);
  text-align: center;
}

.leadmagnet-form-wrapper .form-group {
  margin-bottom: 16px;
}

.leadmagnet-form-wrapper label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.leadmagnet-form-wrapper .form-control {
  width: 100%;
  padding: 12px 18px;
  border-radius: 50px;
  border: 2px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.leadmagnet-form-wrapper .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

.leadmagnet-form-wrapper .btn-submit {
  width: 100%;
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 50px;
  padding: 14px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(214, 59, 47, 0.3);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.leadmagnet-form-wrapper .btn-submit:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* Toast Alerts */
.toast-alert {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1001;
  background-color: #E8F5E9;
  border-left: 5px solid #2E7D32;
  color: #1B5E20;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 12px;
  animation: slideInLeft 0.4s ease;
}

@keyframes slideInLeft {
  from { transform: translateX(-120%); }
  to   { transform: translateX(0); }
}

/* --- FOOTER (S10) --- */
.tm-footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand h4 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.footer-brand .tagline {
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 20px;
}

.footer-brand .social-links {
  display: flex;
  gap: 12px;
}

.footer-brand .social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.1rem;
}

.footer-brand .social-link:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a:hover {
  color: var(--color-primary);
}

.footer-contact p {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact i {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- FLOATING ELEMENTS --- */
/* Sticky Opening Bar */
.sticky-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 10px 48px 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 700;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(214, 59, 47, 0.3);
}

.sticky-bar.show {
  transform: translateY(0);
}

.sticky-bar-cta {
  background-color: var(--color-white);
  color: var(--color-accent);
  border-radius: 50px;
  padding: 4px 16px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.sticky-bar-close {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  font-size: 1.3rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-bar-close:hover {
  opacity: 1;
}

@media (max-width: 575px) {
  .sticky-bar {
    flex-wrap: wrap;
    padding: 8px 44px 8px 12px;
    gap: 6px;
    font-size: 0.78rem;
    text-align: center;
    justify-content: center;
  }
  .sticky-bar span {
    flex: 1 1 100%;
    text-align: center;
    line-height: 1.4;
  }
  .sticky-bar-cta {
    flex-shrink: 0;
    font-size: 0.72rem;
    padding: 4px 12px;
  }
  .sticky-bar-close {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
  }
  body.has-sticky-bar {
    padding-top: 60px;
  }
  body.has-sticky-bar .tm-header {
    top: 60px;
  }
}

/* Zalo Float Button */
.zalo-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #0068FF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(0, 104, 255, 0.45);
  animation: zaloBreath 2s ease-in-out infinite;
}

.zalo-float:hover {
  transform: scale(1.1);
}

@keyframes zaloBreath {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 104, 255, 0.45); }
  50%       { box-shadow: 0 4px 32px rgba(0, 104, 255, 0.65); }
}

/* Zalo Tooltip */
.zalo-float::before {
  content: 'Nhắn Zalo ngay!';
  position: absolute;
  right: 72px;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.zalo-float:hover::before {
  opacity: 1;
}

/* --- SCROLL ANIMATIONS --- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }

/* ==========================================================================
   UNIFIED REUSABLE COMPONENT LIBRARY — TIẾNG TRUNG TỈ MUỘI DESIGN SYSTEM
   ========================================================================== */

/* --- A. SUBPAGE HERO BANNER --- */
.subpage-hero {
  background: linear-gradient(135deg, #FFF8E7 0%, #FFF3D6 40%, #FFEAB8 100%);
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 63, 0.15) 0%, transparent 70%);
  z-index: 1;
}

.subpage-hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 29, 54, 0.08) 0%, transparent 70%);
  z-index: 1;
}

.subpage-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.subpage-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.subpage-hero h1 span {
  color: var(--color-accent);
  position: relative;
}

.subpage-hero h1 span::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: rgba(255, 159, 28, 0.25);
  z-index: -1;
  border-radius: 3px;
}

.subpage-hero p {
  font-size: 1.1rem;
  color: var(--color-mid);
  font-weight: 500;
}


/* --- B. FILTER CONTROL PANEL (CATALOGS & ARCHIVES) --- */
.filter-panel {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  padding: 24px;
  margin-top: -30px;
  position: relative;
  z-index: 10;
  margin-bottom: 40px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 992px) {
  .filter-row {
    grid-template-columns: 35% 65%;
    align-items: center;
  }
}

.search-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  border-radius: 50px;
  border: 2px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
  outline: none;
  transition: var(--transition);
  background-color: #FFFDF7;
}

.search-input:focus {
  border-color: var(--color-primary-dark);
  box-shadow: 0 0 0 4px rgba(255, 159, 28, 0.15);
  background-color: var(--color-white);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary-dark);
  font-size: 1.1rem;
}

.search-clear {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-mid);
  cursor: pointer;
  font-size: 1.1rem;
  background: none;
  border: none;
  display: none;
}

.filter-axes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.axis-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.axis-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-mid);
  min-width: 100px;
  letter-spacing: 0.5px;
}

.filter-pill-btn {
  padding: 6px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--color-border);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  background-color: #FFFDF7;
  color: var(--color-mid);
}

.filter-pill-btn:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.filter-pill-btn.active {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  border-color: var(--color-primary-dark);
  box-shadow: 0 4px 10px rgba(255, 159, 28, 0.25);
}

.filter-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
  flex-wrap: wrap;
  gap: 12px;
}

.results-indicator {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
}

.results-indicator span {
  color: var(--color-accent);
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-select {
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid var(--color-border);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-dark);
  outline: none;
  background-color: var(--color-white);
  cursor: pointer;
  transition: var(--transition);
}

.sort-select:focus {
  border-color: var(--color-primary-dark);
}

.active-filters-bar {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 159, 28, 0.1);
  color: var(--color-primary-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 700;
  border: 1px solid rgba(255, 159, 28, 0.2);
}

.active-filter-tag button {
  background: none;
  border: none;
  color: var(--color-primary-dark);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  padding: 0;
}

.clear-all-filters {
  color: var(--color-accent);
  background: none;
  border: none;
  font-weight: 800;
  cursor: pointer;
  margin-left: 8px;
  font-size: 0.85rem;
  text-decoration: underline;
}

.clear-all-filters:hover {
  color: var(--color-accent-hover);
}


/* --- C. PREMIUM COURSE CARD & CATALOG GRID COMPONENTS --- */
.courses-grid-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.course-card-header {
  position: relative;
  background-color: var(--color-primary-light);
  aspect-ratio: 16/9;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.course-card-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--color-white);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 24px rgba(255, 159, 28, 0.15);
  border: 3px solid var(--color-primary);
  z-index: 2;
  transition: var(--transition);
}

.course-card:hover .course-card-icon-box {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--color-primary-light);
}

.course-card-icon-box i {
  font-size: 2.8rem;
  color: var(--color-primary-dark);
}

.course-card-badge-top {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(231, 29, 54, 0.3);
  z-index: 3;
}

.course-card-badges-right {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.course-format-badge {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}

.course-format-badge.online {
  background-color: #E3F2FD;
  color: #1E88E5;
}

.course-format-badge.offline {
  background-color: #E8F5E9;
  color: #43A047;
}

.course-format-badge.selfstudy {
  background-color: #EDE7F6;
  color: #5E35B1;
}

.course-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-card-code {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.course-card.hide {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  border: none;
  overflow: hidden;
}

.course-details-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--color-dark);
  font-weight: 600;
  border-top: 1px dashed var(--color-border);
  padding-top: 16px;
}

.course-details-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.course-details-item i {
  color: var(--color-primary-dark);
  width: 16px;
  margin-top: 3px;
}

.course-details-item span strong {
  color: var(--color-accent);
}

.course-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 700;
}

.course-card-rating .stars {
  color: #FFD23F;
}

.course-card-rating .count {
  color: var(--color-mid);
  font-weight: 500;
}

.course-card-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: auto;
}

.price-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.price-original {
  font-size: 0.9rem;
  color: var(--color-mid);
  text-decoration: line-through;
  font-weight: 600;
}

.price-current {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-accent);
}

.price-save-badge {
  background-color: rgba(231, 29, 54, 0.08);
  color: var(--color-accent);
  border: 1px solid rgba(231, 29, 54, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
}

.course-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.course-card-actions .btn {
  padding: 10px 12px;
  font-size: 0.8rem;
}


/* --- D. FOMO SEAT METERS (CAPACITY LEVEL CHECK) --- */
.seat-meter-container {
  background: #F4F0E0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
}

.seat-meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.seat-meter-bar {
  height: 6px;
  background-color: rgba(51, 51, 51, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.seat-meter-fill {
  height: 100%;
  background-color: #4CAF50;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.seat-meter-fill.warning {
  background-color: #FF9800;
}

.seat-meter-fill.danger {
  background-color: #E71D36;
  animation: fillBlink 1.5s infinite;
}

@keyframes fillBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}


/* --- E. EMPTY STATE GLASS BLOCK --- */
.empty-state-block {
  display: none;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-border);
  padding: 60px 24px;
  text-align: center;
  max-width: 600px;
  margin: 40px auto 80px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.empty-state-desc {
  font-size: 0.95rem;
  color: var(--color-mid);
  margin-bottom: 24px;
  line-height: 1.6;
}


/* --- F. LEAD MAGNET & CONSULT FORMS --- */
.leadmagnet-card {
  background: linear-gradient(135deg, #FF9F1C 0%, #E71D36 100%);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 45px rgba(231, 29, 54, 0.25);
  overflow: hidden;
  color: var(--color-white);
  margin-bottom: 60px;
  border: 4px solid var(--color-white);
}

.leadmagnet-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .leadmagnet-grid {
    grid-template-columns: 55% 45%;
  }
}

.leadmagnet-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leadmagnet-tag-small {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  align-self: flex-start;
  margin-bottom: 16px;
}

.leadmagnet-card h2 {
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.leadmagnet-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.leadmagnet-bullet {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.leadmagnet-bullet i {
  color: var(--color-primary);
  font-size: 1.1rem;
}

.leadmagnet-form-box {
  background-color: var(--color-white);
  color: var(--color-dark);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leadmagnet-form-box h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.leadmagnet-form-box p {
  color: var(--color-mid);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.form-group-custom {
  margin-bottom: 16px;
}

.form-group-custom label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.form-input-custom {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid var(--color-border);
  outline: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  background-color: #FFFDF7;
}

.form-input-custom:focus {
  border-color: var(--color-primary-dark);
  background-color: var(--color-white);
}

.btn-submit-custom {
  width: 100%;
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  padding: 14px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(231, 29, 54, 0.25);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.btn-submit-custom:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(231, 29, 54, 0.35);
}


/* --- G. CUSTOM TOAST ALERTS --- */
.toast-alert-custom {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  background-color: var(--color-white);
  border-left: 6px solid #4CAF50;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 16px 24px;
  display: none;
  align-items: center;
  gap: 16px;
  animation: slideInLeftCustom 0.4s ease;
  max-width: 420px;
}

@keyframes slideInLeftCustom {
  from { transform: translateX(-120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* --- H. GLOBAL RESPONSIVE & LAYOUT UTILITY CLASSES --- */
.d-none {
  display: none !important;
}

.logo-sub {
  white-space: nowrap;
}

.tm-nav .nav-link {
  white-space: nowrap;
}

.format-badge {
  white-space: nowrap;
}

.course-format-badge {
  white-space: nowrap;
}

@media (min-width: 992px) {
  .d-lg-flex {
    display: flex !important;
  }
  .d-lg-none {
    display: none !important;
  }
  .d-none-lg {
    display: none !important;
  }
}

/* Dynamic sticky bar offset spacing to prevent visual header overlap */
body.has-sticky-bar {
  padding-top: 44px;
}

body.has-sticky-bar .tm-header {
  top: 44px;
}


@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}




