/* ====== GLOBAL VARIABLES ====== */
:root {
  --brand-black: #1a1a1a;
  --brand-dark: #2c2c2c;
  --brand-gold: #DAA520;
  --brand-gold-light: #F0B800;
  --brand-gold-soft: #FFD966;
  --brand-gold-pale: #FFF3CD;
  --brand-gray: #6c757d;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #111111;
  
  /* Level Gradients - Using Black & Gold variations */
  --foundation-gradient: linear-gradient(135deg, var(--brand-black) 0%, var(--brand-dark) 100%);
  --intermediate-gradient: linear-gradient(135deg, var(--brand-dark) 0%, #3a3a3a 100%);
  --advanced-gradient: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-light) 100%);
  --professional-gradient: linear-gradient(135deg, var(--brand-gold-light) 0%, #FFD700 100%);
  
  /* Level Colors */
  --foundation-color: var(--brand-black);
  --intermediate-color: #3a3a3a;
  --advanced-color: var(--brand-gold);
  --professional-color: var(--brand-gold-light);
  
  --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
  --border-radius: 16px;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  
  /* Modern Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --ls-tight: -0.03em;
  --ls-normal: -0.01em;
  --ls-wide: 0.02em;
  --ls-wider: 0.05em;
  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.6;
}

/* ====== GLOBAL STYLES ====== */
body {
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: var(--lh-normal);
  color: #1a1a1a;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

.container {
  max-width: 1200px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ====== HERO SECTION ====== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--brand-black) 0%, #000000 100%);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  padding: 5rem 0;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  border-bottom: 4px solid var(--brand-gold);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(218,165,32,0.1)" fill-opacity="1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,202.7C672,203,768,181,864,181.3C960,181,1056,203,1152,213.3C1248,224,1344,224,1392,224L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 800px;
}

.course-logo {
  width: 160px;
  height: 160px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2.5rem;
  box-shadow: var(--shadow-lg);
  padding: 0;
  transition: var(--transition);
  border: 4px solid var(--brand-gold);
  overflow: hidden;
}

.course-logo:hover {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--brand-gold-light);
}

.course-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.course-logo i {
  font-size: 4rem;
  color: var(--brand-gold);
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, var(--brand-gold-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
}

.hero-content p {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: var(--lh-relaxed);
  letter-spacing: var(--ls-normal);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ====== STATISTICS SECTION - REFINED WITH BLACK & GOLD ====== */
.stats-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  background: rgba(26, 26, 26, 0.2);  /* Black with transparency */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 1.5rem 2rem;
  text-align: center;
  border: 1px solid rgba(218, 165, 32, 0.3);  /* Gold border with transparency */
  transition: var(--transition);
  min-width: 150px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Glass shine effect */
.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(218, 165, 32, 0.1),
    transparent
  );
  transition: left 0.7s ease;
  z-index: 1;
}

.stat-item:hover::before {
  left: 100%;
}

.stat-item:hover {
  background: rgba(218, 165, 32, 0.15);  /* Gold tint on hover */
  transform: translateY(-8px) scale(1.05);
  border-color: var(--brand-gold);
  box-shadow: 0 15px 40px rgba(218, 165, 32, 0.2);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--brand-gold) 0%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  opacity: 0.9;
  color: white;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Add subtle gold dot pattern background */
.stat-item::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(218, 165, 32, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.stat-item:hover::after {
  opacity: 1;
}

/* Counter animation pulse */
@keyframes countPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.stat-number.counting {
  animation: countPulse 0.5s ease;
}

/* ====== LEVEL SECTIONS ====== */
.levels-container {
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--brand-black);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-black), var(--brand-gold));
  border-radius: 2px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: var(--lh-relaxed);
  letter-spacing: var(--ls-normal);
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.level-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.level-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

/* Foundation Level - Black */
.level-card.foundation::before {
  background: var(--foundation-gradient);
}

/* Intermediate Level - Dark Gray */
.level-card.intermediate::before {
  background: var(--intermediate-gradient);
}

/* Advanced Level - Gold */
.level-card.advanced::before {
  background: var(--advanced-gradient);
}

/* Professional Level - Light Gold */
.level-card.professional::before {
  background: var(--professional-gradient);
}

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

.level-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.level-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  color: white;
  font-size: 1.8rem;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.level-card.foundation .level-icon {
  background: var(--foundation-gradient);
}

.level-card.intermediate .level-icon {
  background: var(--intermediate-gradient);
}

.level-card.advanced .level-icon {
  background: var(--advanced-gradient);
  color: var(--brand-black);
}

.level-card.professional .level-icon {
  background: var(--professional-gradient);
  color: var(--brand-black);
}

.level-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-normal);
  color: #222;
  margin: 0;
}

.level-meta {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: var(--ls-normal);
  color: var(--brand-gray);
  margin-top: 0.5rem;
}

.unit-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.unit-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.unit-item:last-child {
  border-bottom: none;
}

.unit-item:hover {
  transform: translateX(5px);
}

.unit-link {
  display: flex;
  align-items: center;
  color: #333;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-normal);
  padding: 0.5rem 0;
}

.unit-link:hover {
  color: inherit;
}

.unit-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}

/* Foundation units - black icon */
.level-card.foundation .unit-icon {
  background: rgba(26, 26, 26, 0.12);
  color: var(--brand-black);
}

.level-card.foundation .unit-link:hover .unit-icon {
  background: rgba(26, 26, 26, 0.2);
  transform: scale(1.1);
}

.level-card.foundation .unit-link:hover {
  color: var(--brand-black);
}

/* Intermediate units - dark gray icon */
.level-card.intermediate .unit-icon {
  background: rgba(44, 44, 44, 0.12);
  color: var(--brand-dark);
}

.level-card.intermediate .unit-link:hover .unit-icon {
  background: rgba(44, 44, 44, 0.2);
  transform: scale(1.1);
}

.level-card.intermediate .unit-link:hover {
  color: var(--brand-dark);
}

/* Advanced units - gold icon */
.level-card.advanced .unit-icon {
  background: rgba(218, 165, 32, 0.12);
  color: var(--brand-gold);
}

.level-card.advanced .unit-link:hover .unit-icon {
  background: rgba(218, 165, 32, 0.2);
  transform: scale(1.1);
}

.level-card.advanced .unit-link:hover {
  color: var(--brand-gold);
}

/* Professional units - light gold icon */
.level-card.professional .unit-icon {
  background: rgba(240, 184, 0, 0.12);
  color: var(--brand-gold-light);
}

.level-card.professional .unit-link:hover .unit-icon {
  background: rgba(240, 184, 0, 0.2);
  transform: scale(1.1);
}

.level-card.professional .unit-link:hover {
  color: var(--brand-gold-light);
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--brand-gray);
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  grid-column: 1 / -1;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
  color: var(--brand-gold);
}

/* ====== CALL TO ACTION ====== */
.cta-section {
  background: linear-gradient(135deg, var(--brand-black) 0%, var(--brand-dark) 100%);
  padding: 5rem 0;
  border-radius: var(--border-radius);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  margin: 4rem 0;
  border: 2px solid var(--brand-gold);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(218,165,32,0.1)" fill-opacity="1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,202.7C672,203,768,181,864,181.3C960,181,1056,203,1152,213.3C1248,224,1344,224,1392,224L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: var(--brand-gold);
}

.cta-text {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: var(--lh-relaxed);
  letter-spacing: var(--ls-normal);
  opacity: 0.95;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta {
  background: var(--brand-gold);
  color: var(--brand-black);
  border: none;
  padding: 1.2rem 2.8rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  border-radius: 50px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--brand-gold);
}

.btn-cta:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-lg);
  background: var(--brand-gold-light);
  border-color: var(--brand-gold-light);
  color: var(--brand-black);
}

.btn-cta.outline {
  background: transparent;
  border: 2px solid var(--brand-gold);
  color: white;
}

.btn-cta.outline:hover {
  background: var(--brand-gold);
  color: var(--brand-black);
}

/* ====== ANIMATIONS ====== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 992px) {
  .level-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .cta-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 450px;
    padding: 4rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
    letter-spacing: var(--ls-normal);
  }
  
  .hero-content p {
    font-size: 1.2rem;
    line-height: var(--lh-relaxed);
  }
  
  .section-title {
    font-size: 2.4rem;
    letter-spacing: var(--ls-normal);
  }
  
  .section-subtitle {
    font-size: 1.1rem;
  }
  
  .level-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-container {
    gap: 1.5rem;
  }
  
  .stat-item {
    min-width: 140px;
    padding: 1.2rem;
    background: rgba(26, 26, 26, 0.25); /* Slightly darker on mobile */
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-text {
    font-size: 1.1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .btn-cta {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  /* FIX FOR MOBILE UNIT DISPLAY */
  .unit-list {
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
  }
  
  .level-card {
    min-height: auto;
    height: auto;
    padding: 2rem;
  }
  
  .unit-item {
    padding: 0.9rem 0;
  }
  
  .unit-link {
    font-size: 1rem;
    font-weight: 500;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 400px;
    padding: 3rem 0;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.1;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .level-card {
    padding: 1.5rem;
  }
  
  .level-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .level-icon {
    margin-right: 0;
    margin-bottom: 1.2rem;
  }
  
  .level-title {
    font-size: 1.6rem;
  }
  
  .stats-container {
    gap: 1rem;
  }
  
  .stat-item {
    min-width: 120px;
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
  
  .cta-text {
    font-size: 1rem;
  }
}

/* ====== TEXT UTILITY CLASSES ====== */
.text-sharp {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.font-light { font-weight: 300; }
.font-regular { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.tracking-tight { letter-spacing: var(--ls-tight); }
.tracking-normal { letter-spacing: var(--ls-normal); }
.tracking-wide { letter-spacing: var(--ls-wide); }
.tracking-wider { letter-spacing: var(--ls-wider); }