:root {
  --brand: #0d6efd;
  --muted: #6c757d;
  --radius: 12px;
  --soft-shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
  --accent: #198754;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(180deg, #f7fafc 0%, #fff 100%);
}

/* Hero */
.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.hero-card {
  border-radius: var(--radius);
  transform-origin: center;
  transition: transform 0.35s ease;
}
.hero-card:hover {
  transform: translateY(-6px);
}

/* Card hover raise */
.hover-raise {
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s;
  border-radius: 10px;
  overflow: hidden;
}
.hover-raise:hover {
  transform: translateY(-8px);
  box-shadow: var(--soft-shadow);
}

/* badges */
.badge {
  font-weight: 600;
}

/* featured pricing */
.featured {
  border: 2px solid rgba(13, 110, 253, 0.06);
  transform: scale(1);
  transition: transform 0.25s;
}
.featured:hover {
  transform: translateY(-6px);
}

/* subtle animations for appearance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.course-card {
  animation: fadeInUp 0.5s ease both;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Accessibility focus */
a:focus,
button:focus,
input:focus,
select:focus {
  outline: 3px solid rgba(13, 110, 253, 0.12);
  outline-offset: 2px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .hero-card {
    display: none;
  }
}

/* small utilities */
.object-fit-cover {
  object-fit: cover;
}
#lcs {
  display: flex;
  align-items: center;
}
#lcs p {
  font-weight: 600;
  font-size: 25px;
  color: rgb(134, 114, 0);
}
#dot {
  font-size: 100px;
}

.btn-success {
  background-color: brown !important;
}

/* --- Hero wave animation --- */
.hero-left {
  position: relative;
  overflow: visible; /* let waves extend outside */
}

/* SVG sits behind content */
.hero-waves {
  position: absolute;
  left: 0;
  right: 0;
  top: -8%; /* lift a bit so waves start above text */
  height: 140%;
  width: 100%;
  z-index: 0;
  pointer-events: none; /* don't interfere with clicks */
}

/* make sure text & controls are above the SVG */
.hero-content {
  position: relative;
  z-index: 1;
}

/* Wave visual style */
.wave {
  fill: none;
  stroke: rgba(117, 99, 0, 0.1); /* subtle brand-tinted lines */
  stroke-width: 3;
  stroke-linecap: round;
  transform-origin: 50% 50%;
  will-change: transform; /* optimization hint */
}

/* give each wave its own period & feel for natural motion */
.wave1 {
  animation: waveA 7s ease-in-out infinite;
  opacity: 0.95;
}
.wave2 {
  animation: waveB 9s ease-in-out infinite;
  opacity: 0.85;
}
.wave3 {
  animation: waveA 11s ease-in-out infinite;
  animation-delay: -2s;
  opacity: 0.7;
}
.wave4 {
  animation: waveB 13s ease-in-out infinite;
  animation-delay: -4s;
  opacity: 0.6;
}

/* gentle vertical oscillation (two variants for variety) */
@keyframes waveA {
  0% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(-14px);
  }
  50% {
    transform: translateY(0px);
  }
  75% {
    transform: translateY(14px);
  }
  100% {
    transform: translateY(0px);
  }
}
@keyframes waveB {
  0% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(10px);
  }
  50% {
    transform: translateY(0px);
  }
  75% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* reduce intensity on small screens */
@media (max-width: 990px) {
  .hero-waves {
    top: -4%;
    height: 120%;
  }
  .wave {
    stroke-width: 2;
    stroke-opacity: 0.08;
  }
  .wave1,
  .wave2,
  .wave3,
  .wave4 {
    animation-duration: 9s; /* slightly slower on small devices */
  }
  @keyframes waveA {
    25% {
      transform: translateY(-8px);
    }
    75% {
      transform: translateY(8px);
    }
  }
  @keyframes waveB {
    25% {
      transform: translateY(6px);
    }
    75% {
      transform: translateY(-6px);
    }
  }
}

/* hide decorative waves on very small devices where space is tight */
@media (max-width: 576px) {
  .hero-waves {
    display: none;
  }
}

/* --- Bigger wave amplitude (replace previous .wave + keyframes rules) --- */
.wave {
  fill: none;
  stroke: rgba(117, 99, 0, 0.12);
  stroke-width: 3;
  stroke-linecap: round;
  transform-origin: 50% 50%;
  will-change: transform;
}

/* Larger amplitude while keeping smooth, slow motion */
.wave1 {
  animation: waveA 7s ease-in-out infinite;
  opacity: 0.98;
}
.wave2 {
  animation: waveB 9s ease-in-out infinite;
  opacity: 0.88;
}
.wave3 {
  animation: waveA 11s ease-in-out infinite;
  animation-delay: -2s;
  opacity: 0.75;
}
.wave4 {
  animation: waveB 13s ease-in-out infinite;
  animation-delay: -4s;
  opacity: 0.65;
}

/* doubled-ish vertical travel compared to the original */
@keyframes waveA {
  0% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(-28px);
  } /* increased */
  50% {
    transform: translateY(0px);
  }
  75% {
    transform: translateY(28px);
  } /* increased */
  100% {
    transform: translateY(0px);
  }
}
@keyframes waveB {
  0% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(20px);
  } /* increased */
  50% {
    transform: translateY(0px);
  }
  75% {
    transform: translateY(-20px);
  } /* increased */
  100% {
    transform: translateY(0px);
  }
}

/* responsive: still scaled down on small screens to avoid overlap */
@media (max-width: 990px) {
  .hero-waves {
    top: -4%;
    height: 120%;
  }
  .wave {
    stroke-width: 2;
    stroke-opacity: 0.09;
  }
  .wave1,
  .wave2,
  .wave3,
  .wave4 {
    /* keep smooth but slightly slower feel */
    animation-duration: 9s;
  }
  @keyframes waveA {
    25% {
      transform: translateY(-16px);
    }
    75% {
      transform: translateY(16px);
    }
  }
  @keyframes waveB {
    25% {
      transform: translateY(12px);
    }
    75% {
      transform: translateY(-12px);
    }
  }
}

/* hide decorative waves on very small devices where space is tight */
@media (max-width: 576px) {
  .hero-waves {
    display: none;
  }
}
