/* =============================================
   GRemlin's GRE - Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #1a6b58;
  --primary-dark: #124d3f;
  --primary-light: #e8f5f1;
  --primary-mid: #2a8a6e;
  --accent: #20c997;
  --text-dark: #1a1a2e;
  --text-mid: #4a5568;
  --text-light: #718096;
  --bg-white: #ffffff;
  --bg-light: #f8fafb;
  --bg-gray: #f1f5f9;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ---- Typography ---- */
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-mid); }

/* ---- Utility ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; transition: all var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--primary); color: #fff;
  border: 2px solid var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,107,88,0.3); }

.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-white {
  background: #fff; color: var(--primary);
  border: 2px solid #fff;
}
.btn-white:hover { background: transparent; color: #fff; }

.btn-sm { padding: 7px 16px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 4px; font-size: 0.75rem; font-weight: 600;
}
.badge-ongoing, .badge-upcoming, .badge-free, .badge-new { background: var(--primary); color: #fff; }

.text-primary { color: var(--primary); }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }

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

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

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; color: var(--text-dark);
  flex-shrink: 0;
}
.navbar-logo .logo-icon {
  width: 42px; height: 42px; background: var(--primary);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 1.2rem; font-style: italic;
}
.navbar-logo .logo-text { line-height: 1.1; }
.navbar-logo .logo-text span { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500; color: var(--text-dark);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-light); }

.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after { content: '▾'; font-size: 0.7rem; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); min-width: 180px; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
  display: block; padding: 10px 16px;
  font-size: 0.875rem; color: var(--text-dark);
  border-radius: 0;
}
.dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-login-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); font-size: 1.1rem;
  transition: all var(--transition);
}
.nav-login-btn:hover { border-color: var(--primary); color: var(--primary); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 4px; cursor: pointer;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--text-dark);
  border-radius: 2px; transition: all var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 999; overflow-y: auto;
  padding: 20px 24px; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 500; color: var(--text-dark);
  border-bottom: 1px solid var(--bg-light);
}
.mobile-nav a:hover { color: var(--primary); background: var(--primary-light); }
.mobile-nav-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background: linear-gradient(135deg, #f0faf6 0%, #e8f5f1 50%, #d4ede7 100%);
  padding: 80px 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(26,107,88,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 14px; font-size: 0.8rem;
  font-weight: 600; color: var(--primary); margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero-badge::before { content: '✦'; }
.hero h1 { margin-bottom: 16px; color: var(--text-dark); }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.05rem; margin-bottom: 28px; max-width: 460px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.hero-image img {
  width: 100%; max-width: 520px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Hero placeholder when no image */
.hero-placeholder {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg); display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 4rem;
  box-shadow: var(--shadow-lg);
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item {
  padding: 28px 20px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header { margin-bottom: 40px; }
.section-header.centered { text-align: center; }
.section-header h2 { margin-bottom: 10px; }
.section-header p { color: var(--text-mid); max-width: 560px; }
.section-header.centered p { margin: 0 auto; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }

/* =============================================
   COURSE CARDS
   ============================================= */
.course-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  display: flex; flex-direction: column;
}
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.course-card-thumb {
  position: relative; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #c8e6de 0%, #a8d5c8 100%);
  overflow: hidden;
}
.course-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-card-badge {
  position: absolute; top: 12px; right: 12px;
}
.course-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.course-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text-dark); }
.course-card-desc { font-size: 0.85rem; color: var(--text-light); margin-bottom: 12px; line-height: 1.5; flex: 1; }

.course-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.course-meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--text-mid); }
.course-meta-item svg, .course-meta-item .icon { width: 14px; height: 14px; color: var(--primary); }

.course-price-row { display: flex; align-items: center; justify-content: space-between; }
.course-price { display: flex; align-items: baseline; gap: 8px; }
.price-current { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.price-original { font-size: 0.85rem; color: var(--text-light); text-decoration: line-through; }

/* =============================================
   CAROUSEL / SLIDER
   ============================================= */
.carousel-wrapper { position: relative; }
.carousel-track-outer { overflow: hidden; }
.carousel-track { display: flex; gap: 24px; transition: transform 0.4s ease; }
.carousel-track .course-card { flex: 0 0 calc(33.333% - 16px); }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center;
  color: var(--text-dark); font-size: 1rem; z-index: 5;
  transition: all var(--transition); cursor: pointer;
}
.carousel-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); cursor: pointer; transition: all var(--transition);
}
.dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* =============================================
   INSTRUCTORS BANNER
   ============================================= */
.instructors-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg); padding: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center; margin: 0 24px;
}
.instructors-banner-content { color: #fff; }
.instructors-banner-content h2 { color: #fff; margin-bottom: 12px; }
.instructors-banner-content p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }
.instructors-photos { display: flex; gap: -12px; }
.instructor-photo {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3); overflow: hidden;
  margin-left: -12px; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.8rem; flex-shrink: 0;
}
.instructor-photo:first-child { margin-left: 0; }
.instructor-photo img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================
   INSTRUCTOR CARD
   ============================================= */
.instructor-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px; text-align: center;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.instructor-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.instructor-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--primary-light); margin: 0 auto 16px;
  overflow: hidden; display: flex; align-items: center;
  justify-content: center; font-size: 2rem; border: 3px solid var(--primary-light);
}
.instructor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.instructor-name { font-weight: 700; margin-bottom: 4px; }
.instructor-title { font-size: 0.85rem; color: var(--primary); font-weight: 500; margin-bottom: 8px; }
.instructor-scores { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-bottom: 12px; }
.score-tag { background: var(--primary-light); color: var(--primary); font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonial-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.testimonial-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-light); display: flex; align-items: center;
  justify-content: center; font-weight: 700; color: var(--primary); font-size: 1rem;
  overflow: hidden; flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-score { font-size: 0.8rem; color: var(--primary); font-weight: 500; }
.stars { color: #f59e0b; font-size: 0.85rem; }
.testimonial-text { font-size: 0.875rem; color: var(--text-mid); line-height: 1.6; }

/* =============================================
   KMF / PRACTICE SECTIONS
   ============================================= */
.kmf-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.kmf-content h2 { margin-bottom: 16px; }
.kmf-content p { margin-bottom: 24px; }
.kmf-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.kmf-feature { display: flex; align-items: flex-start; gap: 10px; }
.kmf-feature-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; flex-shrink: 0; margin-top: 2px;
}
.kmf-visual {
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light) 0%, #c8e6de 100%);
  display: flex; align-items: center; justify-content: center;
  min-height: 300px; font-size: 4rem;
}

/* =============================================
   DARK PROMO BANNER
   ============================================= */
.promo-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg); padding: 56px 48px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px;
  align-items: center; margin: 0 24px;
}
.promo-content { color: #fff; }
.promo-content h2 { color: #fff; margin-bottom: 12px; }
.promo-content p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }
.promo-visual { display: flex; flex-direction: column; gap: 12px; }
.promo-box {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md); padding: 20px;
  backdrop-filter: blur(4px); color: #fff;
}
.promo-box h4 { color: #fff; font-size: 0.9rem; margin-bottom: 4px; }
.promo-box p { color: rgba(255,255,255,0.7); font-size: 0.8rem; }

/* =============================================
   MOCK TEST
   ============================================= */
.mock-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  display: flex; flex-direction: column;
}
.mock-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.mock-card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--primary-light); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; margin-bottom: 16px;
}
.mock-card h3 { margin-bottom: 8px; }
.mock-card p { font-size: 0.875rem; margin-bottom: 16px; flex: 1; }
.mock-meta { display: flex; gap: 16px; margin-bottom: 20px; }
.mock-meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--text-mid); }

/* =============================================
   RESOURCES PAGE
   ============================================= */
.resource-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  display: flex; align-items: flex-start; gap: 16px;
}
.resource-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.resource-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--primary-light); display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.resource-info h4 { margin-bottom: 4px; }
.resource-info p { font-size: 0.82rem; color: var(--text-light); }
.resource-download { margin-left: auto; color: var(--primary); }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 32px; }
.contact-detail { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-detail-icon {
  width: 44px; height: 44px; background: var(--primary-light);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; color: var(--primary); font-size: 1.1rem; flex-shrink: 0;
}
.contact-detail h4 { margin-bottom: 2px; font-size: 0.9rem; }
.contact-detail p { font-size: 0.875rem; margin: 0; }

.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.875rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.9rem; font-family: inherit;
  color: var(--text-dark); background: #fff; transition: all var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,107,88,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* =============================================
   COURSE DETAIL PAGE
   ============================================= */
.course-detail-hero {
  background: var(--bg-light); border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.course-detail-inner { display: grid; grid-template-columns: 1fr 340px; gap: 40px; }
.course-detail-content h1 { margin-bottom: 12px; }
.course-detail-content p { margin-bottom: 20px; }
.course-quick-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.quick-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--text-mid); }

.enroll-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-md); height: fit-content;
  position: sticky; top: 88px;
}
.enroll-price { margin-bottom: 16px; }
.enroll-price .price-current { font-size: 1.8rem; }
.enroll-price .price-original { font-size: 0.95rem; }
.enroll-card .btn { width: 100%; margin-bottom: 16px; }
.enroll-includes { border-top: 1px solid var(--border); padding-top: 16px; }
.enroll-includes h4 { margin-bottom: 12px; font-size: 0.9rem; }
.enroll-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-mid); margin-bottom: 8px; }
.enroll-item::before { content: '✓'; color: var(--primary); font-weight: 700; }

/* Tabs */
.course-tabs { margin-top: 40px; }
.tab-nav { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 32px; gap: 0; }
.tab-btn {
  padding: 12px 24px; font-size: 0.9rem; font-weight: 600;
  color: var(--text-mid); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all var(--transition); cursor: pointer;
  background: none; border-top: none; border-left: none; border-right: none;
}
.tab-btn.active, .tab-btn:hover { color: var(--primary); border-bottom-color: var(--primary); }

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

.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; }
.checklist-item::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

.video-placeholder {
  background: var(--bg-gray); border-radius: var(--radius-md);
  aspect-ratio: 16/9; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  color: var(--text-light); font-size: 0.9rem;
}
.play-icon { width: 60px; height: 60px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; }

.review-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, #e0f0ea 100%);
  padding: 56px 0; text-align: center; border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--text-mid); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* =============================================
   FILTER BAR
   ============================================= */
.filter-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-chip {
  padding: 8px 18px; border-radius: 20px; font-size: 0.85rem; font-weight: 500;
  border: 1.5px solid var(--border); color: var(--text-mid);
  cursor: pointer; transition: all var(--transition); background: #fff;
}
.filter-chip:hover, .filter-chip.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.85);
  padding: 56px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .navbar-logo { color: #fff; margin-bottom: 12px; }
.footer-brand .navbar-logo .logo-icon { background: rgba(255,255,255,0.2); }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.1); display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 0.95rem;
  transition: all var(--transition);
}
.social-link:hover { background: rgba(255,255,255,0.25); }
.social-link.fb { background: #1877f2; }
.social-link.yt { background: #ff0000; }
.social-link.fb:hover { background: #0d6efd; }
.social-link.yt:hover { background: #cc0000; }

.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.65); padding: 5px 0; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; text-align: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
}

/* =============================================
   WHATSAPP FLOAT
   ============================================= */
.whatsapp-float {
  display: none !important;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Scroll animation */
.scroll-reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-light); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--primary); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 36px; }
  .instructors-banner { margin: 0 16px; padding: 36px; }
  .promo-banner { margin: 0 16px; padding: 36px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-image { order: -1; }
  .hero-placeholder { min-height: 200px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .instructors-banner { grid-template-columns: 1fr; margin: 0; padding: 28px; }
  .promo-banner { grid-template-columns: 1fr; margin: 0; padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .course-detail-inner { grid-template-columns: 1fr; }
  .enroll-card { position: static; }
  .kmf-section { grid-template-columns: 1fr; }
  .carousel-track .course-card { flex: 0 0 calc(85% - 16px); }
  .tab-btn { padding: 10px 14px; font-size: 0.82rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .filter-bar { gap: 6px; }
}

/* ---- Course Card Banner Images ---- */
.course-card-thumb img.course-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.course-card-thumb .thumb-emoji {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.hero-banner-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.instructor-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Badges over images */
/* Removed redundant badge colors to keep them unified */
.instructor-square-banner { width: 140px; height: 140px; background: rgba(255,255,255,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.15); font-size: 2.5rem; color: #fff; }

/* =============================================
   CART SIDEBAR & NAVBAR ICON
============================================= */
.nav-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(26, 107, 88, 0.05);
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.nav-cart-btn:hover { background: rgba(26, 107, 88, 0.1); }
.nav-cart-badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}

.cart-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.active { opacity: 1; pointer-events: auto; }

.cart-sidebar {
  position: fixed;
  top: 0; right: -400px;
  width: 100%; max-width: 400px;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  display: flex; flex-direction: column;
  transition: right 0.3s ease;
}
.cart-sidebar.open { right: 0; }

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-header h2 { font-size: 1.25rem; color: var(--text-dark); margin: 0; }
.cart-close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-mid); }
.cart-close-btn:hover { color: var(--text-dark); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.cart-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 15px; margin-bottom: 15px;
  border-bottom: 1px solid var(--border);
}
.cart-item-info { flex: 1; padding-right: 15px; }
.cart-item-title { font-weight: 600; color: var(--text-dark); margin-bottom: 4px; font-size: 0.95rem; }
.cart-item-type { font-size: 0.8rem; color: var(--text-mid); text-transform: capitalize; }
.cart-item-price { font-weight: 700; color: var(--primary); }
.cart-item-remove {
  background: none; border: none; color: #dc3545; font-size: 0.8rem; cursor: pointer; padding: 0; margin-top: 5px;
}
.cart-item-remove:hover { text-decoration: underline; }

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: #f8f9fa;
}
.cart-total { display: flex; justify-content: space-between; margin-bottom: 15px; font-weight: 700; font-size: 1.2rem; color: var(--text-dark); }
.cart-checkout-btn { width: 100%; display: block; text-align: center; }
.cart-empty { text-align: center; color: var(--text-mid); padding: 40px 0; }
