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

/* ============================================
   Global Styles & Variables
   ============================================ */
:root {
  /* Primary Colors - Red Shades */
  --primary-color: #dc2626;
  --primary-light: #fca5a5;
  --primary-dark: #7f1d1d;

  /* Secondary Colors - Lighter Red */
  --secondary-color: #ef4444;
  --secondary-light: #fecaca;
  --secondary-dark: #991b1b;

  /* Accent Colors - Dark Red */
  --accent-color: #b91c1c;
  --accent-light: #fee2e2;
  --accent-dark: #450a0a;

  /* Success & Status */
  --success-color: #fca5a5;
  --warning-color: #f87171;
  --error-color: #dc2626;

  /* Light Mode Background & Text */
  --light-bg: #ffffff;
  --light-bg-secondary: #f8f9fa;
  --light-bg-tertiary: #f1f3f5;
  --text-dark: #1a202c;
  --text-light: #718096;
  --text-lighter: #a0aec0;
  --border-color: #e2e8f0;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Dark Mode Variables */
[data-theme='dark'] {
  --light-bg: #000000;
  --light-bg-secondary: #0a0a0a;
  --light-bg-tertiary: #141414;
  --text-dark: #f3f4f6;
  --text-light: #d1d5db;
  --text-lighter: #9ca3af;
  --border-color: #4b5563;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--dark-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  transition: 0.3s ease;
}

[data-theme='dark'] .navbar {
  background: var(--dark-bg);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-svg {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  flex: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

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

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: rotate(20deg);
  color: var(--primary-color);
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active::after {
  width: 100%;
}

.cta-button {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
  text-decoration: none;
  display: inline-block;
}

@media screen and (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 80px;
    left: 0;
    background: var(--light-bg);
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  margin-top: 70px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark-bg);
  overflow: hidden;
  position: relative;
  transition: background 0.3s ease;
}

[data-theme='dark'] .hero {
  background: var(--dark-bg);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  z-index: 10;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1.1rem;
}

/* Hero Animation */
.hero-animation {
  position: relative;
  height: 500px;
}

.floating-card {
  position: absolute;
  background: var(--light-bg);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: float 3s ease-in-out infinite;
  border: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.floating-card i {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.floating-card p {
  font-weight: 600;
  color: var(--text-dark);
}

.card-1 {
  top: 50px;
  left: 50px;
  animation-delay: 0s;
}

.card-2 {
  top: 200px;
  right: 50px;
  animation-delay: 0.5s;
}

.card-3 {
  bottom: 50px;
  left: 100px;
  animation-delay: 1s;
}

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

.background-blur {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(50px);
}

.blur-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  top: 50px;
  right: 50px;
  opacity: 0.1;
}

.blur-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  bottom: -100px;
  left: -100px;
  opacity: 0.1;
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 4rem 2rem;
  color: white;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-card h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ============================================
   Section Header
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

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

/* ============================================
   Courses Section
   ============================================ */
.courses {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.course-card {
  background: var(--light-bg-secondary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.course-image {
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.course-category {
  display: inline-block;
  background: var(--light-bg-tertiary);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ============================================
   Features Section
   ============================================ */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  background: var(--light-bg);
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
  background: var(--light-bg);
  padding: 4rem 2rem;
}

.testimonials .section-header {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 4rem;
}

.testimonials-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--light-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  background: var(--light-bg-secondary);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.avatar-1 {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.avatar-2 {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.avatar-3 {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.testimonial-info h4 {
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

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

.testimonial-text {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1rem;
  font-style: italic;
}

.testimonial-rating {
  color: #fbbf24;
  font-size: 1.1rem;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

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

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-section .btn {
  background: white;
  color: var(--primary-color);
  border: none;
}

.cta-section .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--dark-bg);
  color: var(--text-dark);
  padding: 3rem 2rem 1rem;
  border-top: 1px solid var(--border-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme='dark'] .footer {
  background: var(--dark-bg);
  color: var(--text-dark);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

[data-theme='dark'] .social-links a {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-dark);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
}

.footer-bottom a {
  color: var(--primary-color);
  text-decoration: none;
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

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

  .nav-menu {
    gap: 1rem;
    font-size: 0.95rem;
  }

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

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .stat-card h3 {
    font-size: 2rem;
  }

  .floating-card {
    padding: 1.5rem;
  }

  .floating-card i {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.75rem 0;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cta-button {
    width: 100%;
  }

  .hero {
    margin-top: 200px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-animation {
    display: none;
  }

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

  .btn {
    width: 100%;
  }

  .course-footer {
    flex-direction: column;
    gap: 1rem;
  }

  .enroll-btn {
    width: 100%;
  }
}

/* ============================================
   Dynamic Page Styles
   ============================================ */
#app {
  min-height: calc(100vh - 200px);
  animation: fadeIn 0.5s ease;
}

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

/* About Page */
.about-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.about-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.about-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-image {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
}

.team-section {
  text-align: center;
  margin-top: 4rem;
}

.team-section h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.member-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
}

.team-member h3 {
  margin-bottom: 0.5rem;
}

.team-member p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Contact Page */
.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

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

.contact-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-info-content h3 {
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.contact-info-content p {
  color: var(--text-light);
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 3rem;
}

.map-container iframe {
  width: 100%;
  height: 500px;
  border: none;
}

/* Courses List Page */
.courses-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.courses-header {
  text-align: center;
  margin-bottom: 3rem;
}

.courses-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.filter-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--border-color);
  background: white;
  color: var(--text-dark);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
}

/* Course Details Page */
.course-details-page {
  background: var(--light-bg);
  min-height: calc(100vh - 100px);
}

.course-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
}

.course-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.course-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.course-hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.course-info-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.course-info-box h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.course-info-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.course-info-item:last-child {
  border-bottom: none;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

.enroll-button {
  width: 100%;
  padding: 1rem;
  background: white;
  color: var(--primary-color);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.enroll-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.course-details-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.details-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.details-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.curriculum-item {
  padding: 1rem;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 1rem;
  background: var(--light-bg);
  border-radius: 4px;
}

.curriculum-item h4 {
  margin-bottom: 0.5rem;
}

.curriculum-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.instructor-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: var(--light-bg);
  border-radius: 12px;
}

.instructor-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  flex-shrink: 0;
}

.instructor-info h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.instructor-info p {
  color: var(--text-light);
  line-height: 1.6;
}

.course-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.course-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  border-bottom: 1px solid var(--border-color);
}

.course-content {
  padding: 20px;
}

.course-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.course-description {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--text-light);
  background: var(--light-bg-tertiary);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

[data-theme='dark'] .course-meta {
  background: var(--light-bg-secondary);
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-rating {
  color: #ffc857;
}

.course-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }

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

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

  .about-image {
    height: 300px;
  }

  .instructor-card {
    flex-direction: column;
    text-align: center;
  }

  .instructor-avatar {
    width: 120px;
    height: 120px;
  }

  .map-container iframe {
    height: 300px;
  }

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

/* ============================================
   Celebration Gallery Section
   ============================================ */
.celebration-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

.celebration-gallery .section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.celebration-gallery .section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.gallery-item {
  background: var(--light-bg-secondary);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

/* ============================================
   Promotional Carousel Section
   ============================================ */
.promotional-carousel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.promotional-carousel .section-header {
  margin-bottom: 3rem;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: visible;
  box-shadow: var(--shadow-2xl);
  background: var(--light-bg-secondary);
  padding: 20px 0;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 280px;
  display: flex;
  gap: 20px;
  padding: 0 70px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-padding-left: 70px;
  /* Hide scrollbar for cleaner look */
  scrollbar-width: none;
}

.carousel-slides::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  position: relative;
  min-width: calc(25% - 15px);
  width: calc(25% - 15px);
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.carousel-slide:hover {
  transform: scale(1.05);
  z-index: 5;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  box-shadow: var(--shadow-lg);
  color: var(--primary-color);
  font-weight: bold;
}

.carousel-button:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-xl);
}

.carousel-button.prev {
  left: 20px;
}

.carousel-button.next {
  right: 20px;
}

/* Responsive Carousel */
@media (max-width: 1024px) {
  .carousel-slide {
    min-width: calc(33.333% - 15px);
    width: calc(33.333% - 15px);
  }
}

@media (max-width: 768px) {
  .carousel-container {
    border-radius: 12px;
  }

  .carousel-slides {
    height: 220px;
    padding: 0 50px;
    gap: 15px;
  }

  .carousel-slide {
    min-width: calc(50% - 7.5px);
    width: calc(50% - 7.5px);
    height: 220px;
  }

  .carousel-button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .carousel-button.prev {
    left: 10px;
  }

  .carousel-button.next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .carousel-slides {
    height: 180px;
    padding: 0 40px;
    gap: 10px;
  }

  .carousel-slide {
    min-width: calc(100% - 40px);
    width: calc(100% - 40px);
    height: 180px;
  }

  .carousel-button {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .carousel-button.prev {
    left: 5px;
  }

  .carousel-button.next {
    right: 5px;
  }
}

/* ============================================
   Policy Pages (Privacy & Terms)
   ============================================ */
.breadcrumb-section {
  background: linear-gradient(135deg, var(--light-bg-secondary) 0%, var(--light-bg-tertiary) 100%);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  margin-top: 70px;
}

.breadcrumb-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.breadcrumb-content a {
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.breadcrumb-content a:hover {
  color: var(--primary-dark);
}

.breadcrumb-separator {
  color: var(--text-light);
  opacity: 0.6;
}

.policy-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.policy-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.policy-header::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.policy-header-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.policy-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.policy-header p {
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.6;
}

.policy-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.policy-content {
  background: var(--light-bg);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.policy-intro {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  border-left: 4px solid var(--primary-color);
}

.policy-intro p {
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

.policy-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
}

.policy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 50%;
}

.section-header h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 0;
}

.policy-section p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.policy-section p:last-of-type {
  margin-bottom: 0;
}

.policy-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.policy-link:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-color);
}

.restrictions-box,
.disclaimer-box {
  background: var(--light-bg-secondary);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  margin: 1.5rem 0;
}

.restrictions-box h3,
.disclaimer-box h3 {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
}

.policy-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.policy-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
  line-height: 1.6;
}

.policy-list li i {
  color: var(--primary-color);
  font-weight: bold;
  flex-shrink: 0;
}

.policy-list li:last-child {
  margin-bottom: 0;
}

.contact-section {
  background: var(--light-bg-tertiary);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.contact-info {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  border: 1px solid var(--border-color);
}

.contact-info p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.25rem;
}

/* Responsive Policy Pages */
@media (max-width: 768px) {
  .policy-header h1 {
    font-size: 2rem;
  }

  .policy-header p {
    font-size: 1rem;
  }

  .policy-container {
    padding: 2rem 1rem;
  }

  .policy-content {
    padding: 2rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header i {
    align-self: flex-start;
  }

  .breadcrumb-content {
    flex-wrap: wrap;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .policy-header {
    padding: 2.5rem 1rem;
  }

  .policy-header h1 {
    font-size: 1.5rem;
  }

  .policy-header p {
    font-size: 0.95rem;
  }

  .policy-content {
    padding: 1.5rem;
  }

  .policy-intro {
    padding: 1.5rem;
  }

  .restrictions-box,
  .disclaimer-box {
    padding: 1.5rem;
  }

  .contact-info {
    padding: 1.5rem;
  }

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

  .policy-list li {
    gap: 0.75rem;
  }
}

/* ============================================
   404 Error Page
   ============================================ */
.error-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--light-bg-secondary) 100%);
  overflow: hidden;
}

.error-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.shape {
  position: absolute;
  opacity: 0.1;
  border-radius: 50%;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  top: -50px;
  right: -50px;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--secondary-color);
  bottom: 100px;
  left: -50px;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: var(--accent-color);
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
}

.error-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
  width: 100%;
  text-align: center;
  background: var(--light-bg);
  padding: 4rem 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-2xl);
}

.error-animation {
  margin-bottom: 2rem;
}

.error-number {
  font-size: 8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  animation: float-error 3s ease-in-out infinite;
}

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

.error-icon {
  margin-bottom: 2rem;
}

.error-icon i {
  font-size: 4rem;
  color: var(--primary-color);
  animation: pulse-error 2s ease-in-out infinite;
}

@keyframes pulse-error {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.error-message {
  margin-bottom: 2rem;
}

.error-message h1 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 800;
}

.error-message p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.error-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.error-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.95rem;
}

.error-help {
  background: var(--light-bg-secondary);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 2rem;
}

.error-help h3 {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
}

.error-help p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.95rem;
}

.error-help a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.error-help a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.error-links {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.error-links h4 {
  color: var(--text-dark);
  font-size: 1rem;
  margin: 0 0 1rem 0;
}

.error-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.error-links li {
  margin: 0;
}

.error-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.error-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.error-links a:hover {
  color: var(--primary-dark);
}

.error-links a:hover::after {
  width: 100%;
}

/* Responsive 404 Page */
@media (max-width: 768px) {
  .error-container {
    padding: 1rem;
  }

  .error-content {
    padding: 2.5rem 2rem;
  }

  .error-number {
    font-size: 5rem;
  }

  .error-icon i {
    font-size: 3rem;
  }

  .error-message h1 {
    font-size: 2rem;
  }

  .error-message p {
    font-size: 1rem;
  }

  .error-actions {
    flex-direction: column;
  }

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

  .error-links ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .error-container {
    padding: 1rem;
    min-height: auto;
    padding-top: 100px;
  }

  .error-content {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .error-number {
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }

  .error-icon i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .error-message h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .error-message p {
    font-size: 0.95rem;
  }

  .error-actions {
    margin-bottom: 1.5rem;
    gap: 0.75rem;
  }

  .error-actions .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .error-help {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .error-help h3 {
    font-size: 1rem;
  }

  .error-help p {
    font-size: 0.9rem;
  }

  .error-links {
    padding-top: 1.5rem;
  }

  .error-links h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  .error-links ul {
    gap: 1rem;
  }

  .shape-1,
  .shape-2,
  .shape-3 {
    opacity: 0.05;
  }
}
