/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #f4fef4;
  color: #222;
  line-height: 1.6;
}

/* HEADER */
header {
  background-color: #e8f5e9;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #c8e6c9;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2e7d32;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #2e7d32;
  font-weight: 600;
}

.dropbtn {
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  color: #2e7d32;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #ffffff;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 1;
  min-width: 160px;
  padding: 0.5rem 0;
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
  color: #2e7d32;
  text-decoration: none;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* HERO SECTION */
.hero {
  background: url('assets/images/hero-illustration.svg') center/contain no-repeat;
  background-color: #c8e6c9;
  padding: 5rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  color: #2e7d32;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #333;
}

/* BUTTONS */
.btn,
.view-btn,
.remove-btn,
.modal-content .btn {
  background-color: #66bb6a;
  color: white;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn:hover,
.view-btn:hover,
.modal-content .btn:hover {
  background-color: #4caf50;
}

.remove-btn {
  background-color: #e57373;
  margin-top: 1rem;
}

.remove-btn:hover {
  background-color: #d32f2f;
}

/* SECTIONS */
.section {
  padding: 3rem 2rem;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 1.5rem;
}

/* COURSE GRID */
.course-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.course-card {
  background: #fff;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 1rem;
  width: 280px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.course-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.course-card h3 {
  margin: 0.5rem 0;
  color: #2e7d32;
}

.course-card p {
  font-size: 0.9rem;
  color: #555;
}

/* COURSE CONTROLS */
.course-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1rem;
}

.course-controls input,
.course-controls select {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 250px;
}

/* TESTIMONIALS */
.testimonial-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial {
  background: #ffffff;
  padding: 1rem;
  border-left: 5px solid #66bb6a;
  border-radius: 4px;
  font-style: italic;
}

/* CTA STRIP */
.cta-strip {
  background: #a5d6a7;
  padding: 2.5rem 2rem;
}

/* FOOTER */
footer {
  background: #c8e6c9;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #2e7d32;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.modal-content h2 {
  color: #2e7d32;
}

#close-modal,
.modal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  background: #eee;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: #555;
}

/* CART */
.cart-card {
  background: #ffffff;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.cart-card img {
  width: 120px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-info {
  flex-grow: 1;
}


.payment-box {
  background: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
}

.payment-box h2 {
  margin-bottom: 1rem;
  color: #2e7d32;
}

.payment-box p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.payment-box .btn {
  background-color: #66bb6a;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.payment-box .btn:hover {
  background-color: #5aa75d;
}

.payment-box .close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: #eee;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.4rem;
  color: #555;
  cursor: pointer;
  transition: background-color 0.2s;
}

.payment-box .close:hover {
  background-color: #ddd;
}

.profile-section {
  background-color: #e8f5e9;
  padding: 3rem 2rem;
  text-align: center;
}

.profile-box {
  background: white;
  padding: 2rem;
  max-width: 500px;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.profile-box img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.profile-box h2 {
  color: #2e7d32;
  margin-bottom: 0.5rem;
}

.profile-box p {
  color: #555;
  margin-bottom: 1.5rem;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .course-grid {
    flex-direction: column;
    align-items: center;
  }

  .course-controls {
    flex-direction: column;
    align-items: center;
  }

  .course-controls input,
  .course-controls select {
    width: 90%;
  }
}
