/* ===== CSS VARIABLES ===== */
:root {
  --primary: #1e3a5f;
  --primary-light: #2563eb;
  --primary-dark: #0f2440;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;
  --success: #10b981;
  --danger: #ef4444;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --bg: #ffffff;
  --bg-light: #f9fafb;
  --bg-alt: #f3f4f6;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary-light);
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ===== HEADER / NAVBAR ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-light);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile-only action buttons inside nav-links (hidden on desktop) */
.nav-mobile-actions {
  display: none;
}

/* Mobile-only quick-access buttons (hidden on desktop) */
.nav-mobile-dashboard,
.nav-mobile-login {
  display: none;
}

/* Nav overlay (mobile backdrop) */
.nav-overlay {
  display: none;
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #fef3c7 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  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;
  padding: 6px 16px;
  background: rgba(37,99,235,0.1);
  color: var(--primary-light);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--primary-light);
  position: relative;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 12px;
  background: rgba(245,158,11,0.3);
  z-index: -1;
  border-radius: 2px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

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

.hero-stat .number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-light);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-light), #7c3aed);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.hero-card-header h3 {
  font-size: 1.2rem;
  color: var(--primary);
}

.hero-card-header p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.hero-card-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-card-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.hero-card-features .check {
  width: 24px;
  height: 24px;
  background: rgba(16,185,129,0.1);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.hero-floating {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  animation: float 3s ease-in-out infinite;
}

.hero-floating.top-right {
  top: -20px;
  right: -20px;
  color: var(--success);
}

.hero-floating.bottom-left {
  bottom: -20px;
  left: -20px;
  color: var(--primary-light);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== COURSES ===== */
.courses {
  background: var(--bg-light);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.course-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.course-card-banner {
  height: 8px;
}

.course-card-banner.blue { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.course-card-banner.purple { background: linear-gradient(90deg, #7c3aed, #8b5cf6); }
.course-card-banner.teal { background: linear-gradient(90deg, #0d9488, #14b8a6); }

.course-card-body {
  padding: 30px;
}

.course-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.course-card-icon.blue { background: rgba(37,99,235,0.1); }
.course-card-icon.purple { background: rgba(124,58,237,0.1); }
.course-card-icon.teal { background: rgba(13,148,136,0.1); }

.course-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.course-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.course-card-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.course-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.course-card-features .icon {
  color: var(--success);
  font-size: 0.8rem;
}

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

.course-card-price {
  font-size: 0.9rem;
  color: var(--text-light);
}

.course-card-price strong {
  font-size: 1.3rem;
  color: var(--primary);
}

/* ===== WHY CHOOSE US ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.feature-icon.blue { background: rgba(37,99,235,0.1); }
.feature-icon.amber { background: rgba(245,158,11,0.1); }
.feature-icon.green { background: rgba(16,185,129,0.1); }
.feature-icon.purple { background: rgba(124,58,237,0.1); }

.feature-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===== SCHEDULE ===== */
.schedule {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.schedule .section-header h2 {
  color: #fff;
}

.schedule .section-header p {
  color: rgba(255,255,255,0.7);
}

.schedule .section-label {
  color: var(--accent);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.schedule-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: 35px;
  text-align: center;
  transition: all var(--transition);
}

.schedule-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.schedule-card .time-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.schedule-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.schedule-card .time {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.schedule-card .days {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: var(--bg-light);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-info h4 {
  font-size: 0.95rem;
  color: var(--primary);
}

.testimonial-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== STATS ===== */
.stats {
  background: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 30px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item.active {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  background: none;
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  color: var(--primary-light);
}

.faq-question .arrow {
  transition: transform var(--transition);
  font-size: 0.8rem;
  color: var(--text-light);
}

.faq-item.active .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta {
  background: linear-gradient(135deg, var(--primary-light) 0%, #7c3aed 100%);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--transition);
  font-size: 0.9rem;
}

.footer-social a:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  padding: 6px 0;
  transition: all var(--transition);
}

.footer-col a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* ===== FLOATING BUTTONS ===== */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

.float-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.float-btn.whatsapp {
  background: #25d366;
}

.float-btn.call {
  background: var(--primary-light);
}

/* ===== PAGE BANNER ===== */
.page-banner {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  text-align: center;
}

.page-banner h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.page-banner p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--primary-light);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== PAGE HERO (Courses, FAQ, etc.) ===== */
.page-hero {
  padding: 120px 0 50px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2440 100%);
  text-align: center;
  color: #fff;
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto;
}

.page-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.6);
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.page-hero .breadcrumb a:hover {
  color: #fff;
}

/* ===== COURSE TABS ===== */
.course-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.course-tab-btn {
  padding: 12px 28px;
  border: 2px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.course-tab-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.course-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.course-tab-content {
  display: none;
}

.course-tab-content.active {
  display: block;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Course Detail Card */
.course-detail-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

.course-detail-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f2f5;
}

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

.course-detail-item {
  padding: 20px;
  background: #f8f9fc;
  border-radius: 12px;
  border: 1px solid #f0f2f5;
  transition: all 0.3s ease;
}

.course-detail-item:hover {
  background: #f0f4ff;
  border-color: #dbeafe;
  transform: translateY(-2px);
}

.course-detail-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.course-detail-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

/* ===== COURSE DETAIL (original) ===== */
.course-detail {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.course-detail-main h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 16px;
  margin-top: 30px;
}

.course-detail-main h2:first-child {
  margin-top: 0;
}

.course-detail-main p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.syllabus-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.syllabus-item {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.syllabus-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  background: none;
  width: 100%;
  text-align: left;
  color: var(--text);
}

.syllabus-item-header:hover {
  background: var(--bg-alt);
}

.syllabus-item-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.syllabus-item-content ul {
  padding: 0 20px 16px;
}

.syllabus-item-content li {
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.syllabus-item-content li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: 600;
}

.course-sidebar {
  position: sticky;
  top: 100px;
}

.course-sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow);
}

.course-sidebar-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.sidebar-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.sidebar-info-item .icon {
  width: 36px;
  height: 36px;
  background: var(--bg-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
}

.sidebar-info-item .label {
  color: var(--text-light);
  font-size: 0.8rem;
}

.sidebar-info-item .value {
  font-weight: 600;
  color: var(--text);
}

/* ===== ABOUT PAGE ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-text h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-image {
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  font-size: 5rem;
}

.instructor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.instructor-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.instructor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.instructor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.instructor-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.instructor-card .role {
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.instructor-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.contact-info-card .icon {
  width: 48px;
  height: 48px;
  background: rgba(37,99,235,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-light);
  transition: all var(--transition);
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  background: #fff;
}

.form-control::placeholder {
  color: var(--text-lighter);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #fef3c7 100%);
  padding: 40px 20px;
}

.auth-container {
  width: 100%;
  max-width: 480px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
}

.auth-logo .logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}

.auth-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 30px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
  cursor: pointer;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}

.auth-tab.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
}

.auth-tab:hover {
  color: var(--primary-light);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.auth-form > p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.auth-footer a {
  color: var(--primary-light);
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-light);
}

.form-check label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-top: -12px;
  margin-bottom: 20px;
}

.forgot-link:hover {
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  font-size: 0.85rem;
  color: var(--text-lighter);
}

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

/* ===== DASHBOARD ===== */
.dashboard {
  padding-top: 72px;
  min-height: 100vh;
  background: var(--bg-light);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 72px);
}

.dashboard-sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 30px 0;
}

.dashboard-user {
  text-align: center;
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.dashboard-user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 12px;
}

.dashboard-user h4 {
  font-size: 1rem;
  color: var(--primary);
}

.dashboard-user p {
  font-size: 0.8rem;
  color: var(--text-light);
}

.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: all var(--transition);
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  background: rgba(37,99,235,0.05);
  color: var(--primary-light);
  border-right: 3px solid var(--primary-light);
}

.dashboard-nav a .nav-icon {
  width: 20px;
  text-align: center;
}

.dashboard-main {
  padding: 30px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.dashboard-header h1 {
  font-size: 1.5rem;
  color: var(--primary);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.dash-stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.dash-stat-card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.dash-stat-card .icon.blue { background: rgba(37,99,235,0.1); }
.dash-stat-card .icon.green { background: rgba(16,185,129,0.1); }
.dash-stat-card .icon.amber { background: rgba(245,158,11,0.1); }
.dash-stat-card .icon.purple { background: rgba(124,58,237,0.1); }

.dash-stat-card .number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.dash-stat-card .label {
  font-size: 0.85rem;
  color: var(--text-light);
}

.dashboard-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.dashboard-section h2 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.enrolled-course {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.enrolled-course:last-child {
  border-bottom: none;
}

.enrolled-course-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.enrolled-course-info {
  flex: 1;
}

.enrolled-course-info h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 8px;
}

.progress-bar {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--primary-light), #7c3aed);
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-light);
}

.upcoming-class {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.upcoming-class:last-child {
  border-bottom: none;
}

.class-date {
  text-align: center;
  padding: 8px 14px;
  background: var(--bg-light);
  border-radius: var(--radius);
  min-width: 56px;
}

.class-date .day {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.class-date .month {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
}

.class-info h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 2px;
}

.class-info p {
  font-size: 0.8rem;
  color: var(--text-light);
}

.class-actions {
  margin-left: auto;
}

/* ===== POLICY PAGES ===== */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-top: 36px;
  margin-bottom: 12px;
}

.policy-content h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 8px;
}

.policy-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.policy-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.policy-content li {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  list-style: disc;
  margin-bottom: 6px;
}

.policy-content .last-updated {
  font-size: 0.85rem;
  color: var(--text-lighter);
  font-style: italic;
  margin-bottom: 24px;
}

/* ===== ALERT / NOTIFICATION ===== */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: rgba(16,185,129,0.1);
  color: #065f46;
  border: 1px solid rgba(16,185,129,0.2);
}

.alert-info {
  background: rgba(37,99,235,0.1);
  color: #1e40af;
  border: 1px solid rgba(37,99,235,0.2);
}

.alert-warning {
  background: rgba(245,158,11,0.1);
  color: #92400e;
  border: 1px solid rgba(245,158,11,0.2);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 998;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-detail {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .instructor-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* --- Mobile Nav Dropdown --- */
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    padding: 0;
    gap: 0;
    border-bottom: none;
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99998;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open {
    transform: translateX(0);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active {
    background: #f0f4ff;
    color: var(--primary-light);
    font-weight: 600;
  }

  /* Mobile action buttons inside dropdown */
  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 24px;
    margin-top: auto;
    border-top: 1px solid var(--border);
  }

  .nav-mobile-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  /* Hide desktop buttons, show mobile quick-access */
  .nav-actions .nav-desktop-btn {
    display: none !important;
  }

  .nav-mobile-dashboard,
  .nav-mobile-login {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .nav-mobile-dashboard {
    background: var(--primary);
    color: #fff;
  }

  .nav-mobile-dashboard:hover {
    background: var(--primary-light);
  }

  .nav-mobile-login {
    background: #f0f4ff;
    color: var(--primary);
  }

  .nav-mobile-login:hover {
    background: #dbeafe;
  }

  .nav-toggle {
    display: flex;
  }

  /* Backdrop overlay */
  .nav-overlay {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99997;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Prevent scroll when menu open */
  body.nav-open {
    overflow: hidden;
  }

  /* Logo shrink on mobile */
  .nav-logo {
    font-size: 1.1rem;
  }

  .nav-logo .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-floating {
    display: none;
  }

  .section {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta h2 {
    font-size: 1.6rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .instructor-grid {
    grid-template-columns: 1fr;
  }

  .page-banner h1 {
    font-size: 1.8rem;
  }

  .page-hero {
    padding: 90px 0 36px;
  }

  .page-hero h1 {
    font-size: 1.6rem;
  }

  .page-hero p {
    font-size: 0.95rem;
  }

  .course-tabs {
    gap: 6px;
  }

  .course-tab-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .course-detail-card {
    padding: 20px;
  }

  .course-detail-card h3 {
    font-size: 1.15rem;
  }

  .course-detail-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .course-detail-item {
    padding: 16px;
  }

  .auth-card {
    padding: 24px;
  }

  .dashboard-main {
    padding: 16px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ================================================
   KADENCE THEME OVERRIDES
   Ensures our custom styles take priority
   ================================================ */

/* Override Kadence content area */
.site-container .site-main {
  padding: 0 !important;
  margin: 0 !important;
}

.entry-content-wrap {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

.content-area {
  padding: 0 !important;
  max-width: none !important;
}

.site-main .entry-content {
  margin: 0 !important;
}

/* Hide Kadence's own header/footer if present */
.site-header-wrap,
.site-header-inner-wrap,
#masthead,
.kadence-header {
  display: none !important;
}

.site-footer-wrap,
#colophon,
.kadence-footer {
  display: none !important;
}

/* Ensure our header always shows */
.header#header {
  display: block !important;
}

/* Ensure our footer always shows */
footer.footer {
  display: block !important;
}

/* Override Kadence body font */
body.wp-theme-kadence,
body.wp-child-theme-rakshan-academy {
  font-family: var(--font) !important;
  color: var(--text) !important;
  line-height: 1.6 !important;
}

/* Override Kadence heading styles */
body.wp-theme-kadence h1,
body.wp-theme-kadence h2,
body.wp-theme-kadence h3,
body.wp-theme-kadence h4 {
  font-family: var(--font) !important;
}

/* Override Kadence link colors */
body.wp-theme-kadence a {
  text-decoration: none;
}

/* Kadence adds extra spacing on pages */
.content-title-style-hide .entry-hero-container-inner {
  display: none !important;
}

.content-style-unboxed .entry-content-wrap {
  padding: 0 !important;
}

/* ================================================
   ENHANCED MOBILE OPTIMIZATIONS
   ================================================ */

/* === Small phones (< 400px) === */
@media (max-width: 400px) {
  .nav-logo {
    font-size: 1rem !important;
    gap: 8px !important;
  }

  .nav-logo .logo-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
  }

  .nav-logo span {
    display: none !important;
  }

  .hero {
    padding: 100px 0 40px !important;
  }

  .hero h1 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }

  .hero p {
    font-size: 0.95rem !important;
  }

  .hero-stats {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: flex-start !important;
  }

  .hero-stat {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .hero-stat .number {
    font-size: 1.4rem !important;
  }

  .hero-stat .label {
    font-size: 0.8rem !important;
  }

  .hero-card {
    padding: 24px !important;
  }

  .hero-card-header {
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
  }

  .hero-card-features li {
    font-size: 0.85rem !important;
  }

  .section {
    padding: 40px 0 !important;
  }

  .section-header h2 {
    font-size: 1.4rem !important;
  }

  .section-header p {
    font-size: 0.9rem !important;
  }

  .course-card-body {
    padding: 20px !important;
  }

  .course-card-footer {
    padding: 16px 20px !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .feature-card {
    padding: 20px !important;
  }

  .schedule-card {
    padding: 24px !important;
  }

  .schedule-card .time {
    font-size: 1.2rem !important;
  }

  .testimonial-card {
    padding: 20px !important;
  }

  .testimonial-text {
    font-size: 0.9rem !important;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  .stat-number {
    font-size: 1.8rem !important;
  }

  .cta {
    padding: 50px 0 !important;
  }

  .cta h2 {
    font-size: 1.4rem !important;
  }

  .cta p {
    font-size: 0.95rem !important;
  }

  .faq-question {
    padding: 16px !important;
    font-size: 0.88rem !important;
  }

  .faq-answer-inner {
    padding: 0 16px 16px !important;
  }

  .footer {
    padding: 40px 0 0 !important;
  }

  .footer-brand p {
    font-size: 0.85rem !important;
  }

  .container {
    padding: 0 16px !important;
  }

  .btn-lg {
    padding: 14px 24px !important;
    font-size: 0.95rem !important;
  }

  .floating-buttons {
    bottom: 16px !important;
    right: 16px !important;
  }

  .float-btn {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.2rem !important;
  }
}

/* === Fix mobile nav z-index over Kadence === */
@media (max-width: 768px) {
  .header#header {
    z-index: 99999 !important;
  }

  /* Hero better spacing on mobile */
  .hero .container {
    gap: 30px !important;
  }

  .hero-content {
    text-align: center !important;
  }

  .hero p {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-buttons {
    align-items: center !important;
  }

  .hero-buttons .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .hero-stats {
    justify-content: center !important;
  }

  /* Footer mobile improvements */
  .footer-col {
    text-align: center !important;
  }

  .footer-brand {
    text-align: center !important;
  }

  .footer-brand .nav-logo {
    justify-content: center !important;
  }

  .footer-brand p {
    max-width: 100% !important;
    margin: 0 auto 16px !important;
  }

  .footer-social {
    justify-content: center !important;
  }

  .footer-bottom-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 16px !important;
  }

  /* Fix Kadence content-area interfering */
  .content-area.site-container {
    max-width: 100% !important;
    padding: 0 !important;
  }
}

/* === Touch-friendly improvements === */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 44px !important;
  }

  .faq-question {
    min-height: 48px !important;
  }

  .nav-links a {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }

  .course-card:hover,
  .feature-card:hover,
  .testimonial-card:hover {
    transform: none !important;
  }
}
