/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Color Palette */
:root {
  --primary-color: #2563eb; /* Professional Blue */
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --accent-color: #f59e0b; /* Warm Amber */
  --text-dark: #1f2937; /* Dark Gray */
  --text-light: #6b7280; /* Light Gray */
  --bg-light: #f9fafb; /* Very Light Gray */
  --border-color: #e5e7eb; /* Border Gray */
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button */
.cta-button {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.cta-button:hover {
  background-color: #d97706;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-button:active {
  transform: translateY(0);
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.features h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Statistics Section */
.statistics {
  padding: 5rem 0;
  background-color: var(--white);
}

.statistics h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-description {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* Popular Courses Section */
.popular-courses {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.popular-courses h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.course-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--accent-color);
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.course-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.course-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.course-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.course-level,
.course-duration {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background-color: var(--white);
}

.testimonials h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  font-weight: 700;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-info h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.testimonial-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.stars {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.testimonial-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Legal Pages */
.legal-page {
  padding: 3rem 0;
  min-height: 70vh;
}

.legal-page h1 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.last-updated {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.legal-content {
  max-width: 800px;
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.legal-content h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.legal-content ul {
  margin-bottom: 1.5rem;
  margin-left: 1.5rem;
  color: var(--text-light);
}

.legal-content li {
  margin-bottom: 0.5rem;
  list-style-type: disc;
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
  /*margin-top: 4rem;*/
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.footer-section p {
  color: #d1d5db;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid #4b5563;
  padding-top: 1.5rem;
  text-align: center;
  color: #d1d5db;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--accent-color);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo h1 {
    font-size: 1.25rem;
  }

  .hero-content h2 {
    font-size: 1.75rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .features {
    padding: 3rem 0;
  }

  .features h2 {
    font-size: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .cta-section {
    padding: 3rem 0;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .legal-page h1 {
    font-size: 1.75rem;
  }

  .legal-content h2 {
    font-size: 1.25rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .cta-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }

  .features-grid {
    gap: 1rem;
  }

  .feature-card {
    padding: 1rem;
  }

  .legal-content h2 {
    font-size: 1.1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  .popular-courses h2 {
    font-size: 1.5rem;
  }

  .course-card {
    padding: 1.5rem;
  }

  .testimonials h2 {
    font-size: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }
}
