/* ===================================
   ADROLYTICS - EY THEME PROFESSIONAL DESIGN
   Updated: October 2025
   =================================== */

:root {
  /* ===== EY BRAND COLORS ===== */
  --ey-yellow: #FFE600;
  --ey-black: #161D23;
  --ey-white: #FFFFFF;
  --ey-dark-gray: #2E2E2E;
  --ey-light-gray: #F5F5F5;
  --ey-yellow-light: #FFF4CC;
  --ey-text-dark: #1A1A1A;
  --ey-text-gray: #666666;

  /* Semantic Color Tokens */
  --color-primary: var(--ey-yellow);
  --color-primary-hover: #E6D000;
  --color-primary-active: #CDB800;
  --color-text: var(--ey-text-dark);
  --color-text-secondary: var(--ey-text-gray);
  --color-background: var(--ey-white);
  --color-surface: var(--ey-light-gray);
  --color-border: rgba(22, 29, 35, 0.15);
  --color-btn-primary-text: var(--ey-black);

  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 40px;
  --space-3xl: 48px;
  --space-4xl: 60px;
  --space-5xl: 80px;
  --space-6xl: 100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ey-text-dark);
  background: var(--ey-white);
}

/* ===== TYPOGRAPHY ===== */
h1, .h1 {
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ey-black);
}

h2, .h2 {
  font-size: 36px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ey-black);
}

h3, .h3 {
  font-size: 28px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  color: var(--ey-black);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-6xl) 0;
}

/* ===== NAVIGATION ===== */
.navbar {
  background: var(--ey-black);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand h3 {
  color: var(--ey-white);
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.nav-brand .highlight-o {
  color: var(--ey-yellow);
  font-weight: 800;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-link {
  color: var(--ey-white);
  font-size: 16px;
  font-weight: 600;
  padding: 8px 16px;
  transition: all 0.3s ease;
  border-radius: 6px;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ey-yellow);
  background: rgba(255, 230, 0, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background: var(--ey-white);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--ey-white) 0%, var(--ey-light-gray) 100%);
  padding: 120px 0 100px;
  position: relative;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-content h1 .highlight {
  color: var(--ey-yellow);
  background: var(--ey-black);
  padding: 0 12px;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--ey-text-gray);
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 48px 0 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.stat {
  background: var(--ey-white);
  border: 2px solid var(--ey-yellow);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(255, 230, 0, 0.2);
}

.stat-number {
  display: block;
  font-size: 48px;
  font-weight: 700;
  color: var(--ey-black);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 16px;
  color: var(--ey-text-gray);
  font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
  font-family: var(--font-family-base);
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 8px;
  border: 2px solid transparent;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn--primary {
  background: var(--ey-yellow);
  color: var(--ey-black);
  border-color: var(--ey-yellow);
}

.btn--primary:hover {
  background: #E6D000;
  border-color: #E6D000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 230, 0, 0.3);
}

.btn--secondary {
  background: transparent;
  color: var(--ey-black);
  border-color: var(--ey-black);
}

.btn--secondary:hover {
  background: var(--ey-black);
  color: var(--ey-white);
}

.btn--outline {
  background: transparent;
  color: var(--ey-yellow);
  border-color: var(--ey-yellow);
}

.btn--outline:hover {
  background: var(--ey-yellow);
  color: var(--ey-black);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 18px;
}

/* ===== COURSE CARDS ===== */
.course-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
  margin-top: 48px;
}

.course-card {
  background: var(--ey-white);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
}

.course-card:hover {
  border-color: var(--ey-yellow);
  box-shadow: 0 8px 24px rgba(22, 29, 35, 0.08);
  transform: translateY(-4px);
}

.course-card.featured {
  border: 3px solid var(--ey-yellow);
  box-shadow: 0 8px 24px rgba(255, 230, 0, 0.15);
}

.featured-badge {
  background: var(--ey-yellow);
  color: var(--ey-black);
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 14px;
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 12px rgba(255, 230, 0, 0.4);
  white-space: nowrap;
}

.course-header {
  margin-bottom: 20px;
}

.course-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ey-black);
  margin-bottom: 8px;
}

.course-subtitle {
  font-size: 18px;
  color: var(--ey-text-gray);
  font-weight: 500;
}

.course-price {
  font-size: 42px;
  font-weight: 700;
  color: var(--ey-black);
  background: var(--ey-yellow);
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-block;
  margin: 16px 0;
  line-height: 1;
}

.live-badge,
.live-badge-card {
  background: var(--ey-yellow);
  color: var(--ey-black);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(255, 230, 0, 0.3);
  margin-bottom: 12px;
}

.course-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--ey-text-dark);
}

.detail-item strong {
  color: var(--ey-black);
  min-width: 100px;
}

/* ===== ACCORDION ===== */
.accordion-item {
  margin-bottom: 16px;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--ey-white);
  border: 2px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 16px;
}

.accordion-header:hover {
  border-color: var(--ey-yellow);
  background: var(--ey-yellow-light);
}

.accordion-toggle {
  width: 36px;
  height: 36px;
  background: var(--ey-yellow);
  color: var(--ey-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.accordion-header:hover .accordion-toggle {
  background: #E6D000;
  transform: rotate(90deg);
}

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

.accordion-content.active {
  max-height: 5000px;
}

.accordion-body {
  padding: 24px;
  background: var(--ey-light-gray);
  border: 2px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.week-badge,
.hour-badge {
  background: var(--ey-yellow);
  color: var(--ey-black);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  display: inline-block;
  margin-right: 12px;
}

.wow-moment {
  background: var(--ey-yellow-light);
  border-left: 4px solid var(--ey-yellow);
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: 6px;
  font-weight: 600;
  color: var(--ey-text-dark);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--ey-text-dark);
  margin-bottom: 8px;
  font-size: 16px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--ey-white);
  color: var(--ey-text-dark);
}

.form-control:hover {
  border-color: var(--ey-text-gray);
}

.form-control:focus {
  outline: none;
  border-color: var(--ey-yellow);
  box-shadow: 0 0 0 3px rgba(255, 230, 0, 0.15);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23161D23' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--ey-black);
  color: var(--ey-white);
  padding: 80px 0 30px;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h4 {
  color: var(--ey-yellow);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 8px;
}

.footer-section a:hover {
  color: var(--ey-yellow);
}

.footer-brand h3 {
  color: var(--ey-white);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-brand .highlight-o {
  color: var(--ey-yellow);
  font-weight: 800;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

/* ===== CERTIFICATE SECTION ===== */
.certificate-preview {
  background: var(--ey-light-gray);
  border: 2px solid var(--ey-yellow);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin: 40px 0;
}

.certificate-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--ey-black);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 20px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

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

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .stat-number {
    font-size: 36px;
  }

  .course-preview {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: var(--space-4xl) 0;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  h1, .h1 {
    font-size: 36px;
  }

  h2, .h2 {
    font-size: 28px;
  }

  h3, .h3 {
    font-size: 24px;
  }

  body {
    font-size: 16px;
  }
}
