/* Reset & basics */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
button.primary {
  background-color: #0268d4;
  color: white;
}
button.primary:hover {
  background-color: #0b56a7;
}

/* Fix for the button outline - Added more specific selectors to ensure it works */
button.primary:focus,
button.primary:active,
.price-card button.primary:focus,
.price-card button.primary:active {
  outline: none;
}

section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
h2 {
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  font-size: 2rem;
  color: #222;
}
.testimonial-heading {
  color: #0268d4;
  margin-bottom: 20px;
}

/* Section 1 - Scrolling images */
.image-scroll-container {
  position: relative;
  overflow: hidden;
  height: 300px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgb(0 0 0 / 0.1);
}
.image-scroll {
  display: flex;
  animation: scrollLeft 20s linear infinite;
  height: 300px;
}
.image-scroll img {
  height: 300px;
  width: auto;
  margin-right: 15px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
}
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.register-btn-wrapper {
  text-align: center;
  margin-top: 15px;
}

/* Section 2 - About */
.about-course {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.1);
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}
.about-course p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #555;
}

/* Section 3 - Pricing */
.pricing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: white;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.1);
  width: 246px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto;
  min-height: unset;
  line-height: 1.3;
}
.price-card:hover {
  transform: translateY(-5px);
}
.price-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: #0268d4;
  line-height: 1.2;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.price-card ul li {
  margin: 2px 0;
  font-size: 0.88rem;
  line-height: 1.2;
}
.price-card .price {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 12px 0;
  color: #222;
}
.price-card button.primary {
  margin-top: auto;
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* Section 4 - Testimonials */
.testimonials-container {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
  background: #0268d4;
  color: white;
  border-radius: 10px;
  max-width: 1000px;
  margin: 0 auto 50px;
}
.testimonial-scroll {
  display: flex;
  animation: scrollRight 25s linear infinite;
}
.testimonial {
  flex: 0 0 300px;
  background: rgba(255 255 255 / 0.15);
  margin-right: 20px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
}
.testimonial p {
  font-style: italic;
  margin-bottom: 15px;
}
.testimonial .author {
  font-weight: 700;
  text-align: right;
  font-size: 0.9rem;
  opacity: 0.9;
}
@keyframes scrollRight {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

/* Section 5 - Contact */
.contact {
  background: white;
  border-radius: 10px;
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto 60px;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.1);
  text-align: center;
}
.contact h2 {
  color: #222;
}
.contact p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: #555;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
}
.social-links a {
  color: #0268d4;
  font-size: 1.8rem;
  transition: color 0.3s ease;
}
.social-links a:hover {
  color: #0b56a7;
}

/* Responsive */
@media (max-width: 768px) {
  .pricing {
    flex-direction: column;
    align-items: center;
  }
  .price-card {
    width: 90%;
  }
  .image-scroll {
    animation-duration: 40s;
  }
  .testimonial-scroll {
    animation-duration: 40s;
  }
}