/* ===== RESET AND BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9fb;
  color: #222;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem;
}

a {
  text-decoration: none;
}

/* ===== HEADER ===== */
.site-header {
  background-color: #1a237e;
  padding: 10px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  height: 50px;
  filter: invert(100%);
}

/* Navigation */
.main-nav {
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: #ffffff;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #ffcc00;
}

/* Hamburger Button */
.hamburger {
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  display: none;
  cursor: pointer;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #1a237e;
    padding: 1rem 0;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
  }

  .main-nav.nav-open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .desktop-only {
    display: none;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  background: url("img/hero-bg.jpg") center/cover no-repeat;
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

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

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background-color: #ffb703;
  color: #000;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #ff9900;
}

/* ===== COURSE SECTION ===== */
.courses {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
}

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

.course-card {
  background: #f1f1f1;
  border-radius: 10px;
  overflow: hidden;
  padding: 1rem;
  text-align: left;
}

.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.course-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.course-card .price {
  font-weight: bold;
  color: #3c4ba6;
  margin: 0.5rem 0;
}

.trial-btn {
  background-color: #3c4ba6;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.trial-btn:hover {
  background-color: #005bb5;
}

/* ===== CHALLENGE SECTION ===== */
.challenge {
  padding: 4rem 2rem;
  background-color: #fffdf7;
  text-align: center;
}

.challenge h2 {
  font-size: 1.8rem;
  color: #3c4ba6;
  margin-bottom: 1rem;
}

.challenge p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0.5rem auto;
}

/* ===== INSTRUCTOR ===== */
.instructor-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.instructor-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #3c4ba6;
}

.instructor-text {
  flex: 1;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

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

.testimonial {
  background-color: #f8f8f8;
  padding: 1.5rem;
  border-radius: 8px;
}

.testimonial img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background-color: #eef2f7;
  padding: 4rem 2rem;
  text-align: center;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-left,
.contact-right {
  flex: 1;
  min-width: 300px;
}

.contact h2 {
  color: #3c4ba6;
  margin-bottom: 1rem;
}

.contact ul {
  list-style: none;
  padding: 0;
  font-size: 1.1rem;
}

.contact li {
  margin: 1rem 0;
}

.contact a {
  color: #3c4ba6;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

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

.contact-right input,
.contact-right textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  width: 100%;
}

.contact-right button {
  background-color: #3c4ba6;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

/* WhatsApp Button */
.whatsapp-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background-color: #f5a623;
  color: white;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #d48806;
}

/* ===== FAQ SECTION ===== */
.faq {
  padding: 4rem 2rem;
  background-color: #f9f9fb;
}

.faq h2 {
  font-size: 2rem;
  color: #3c4ba6;
  text-align: center;
  margin-bottom: 2rem;
}

.faq-item {
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item h3 {
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 1rem;
  color: #444;
  margin: 0;
}

/* ===== FOOTER ===== */
footer {
  background-color: #3c4ba6;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

footer .social a {
  color: #ffb703;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
}

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

.enroll-btn {
  background-color: #f15b2a;      /* orange background */
  color: white;                   /* white text */
  padding: 12px 25px;             /* space around text */
  border-radius: 6px;             /* rounded corners */
  text-decoration: none;          /* removes underline */
  font-weight: bold;
  font-size: 16px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.enroll-btn:hover {
  background-color: #d64817;      /* darker orange on hover */
}

footer a {
  color: #ffffff;
  text-decoration: underline;
  font-size: 0.9rem;
}

footer a:hover {
  color: #ffcc00;
}
