/* =======================================================================
   1) ACADEMY MISSION
   ======================================================================= */
.academy-mission {
  width: 100%;
  background-color: #ffffff;
  padding: 80px 20px;
}

.mission-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.mission-container h2 {
  font-size: 36px;
  font-weight: 700;
  color: #0f172a; /* dark navy */
  margin-bottom: 24px;
}

.mission-container p {
  font-size: 18px;
  line-height: 1.8;
  color: #64748b; /* soft gray */
  margin: 0;
}

/* =======================================================================
   2) COURSES SECTION (Tabs + Grid + Cards + Enroll Button)
   ======================================================================= */
.courses-section {
  padding: 50px 20px;
  background: #ffffff;
}

/* Tabs */
.course-tabs {
  display: flex;
  gap: 14px;
  margin: 0 auto 35px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #dbe3ea;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #0b2230;
  transition: 0.2s ease;
}

.tab:hover {
  border-color: #0f3d56;
}

.tab.active {
  background: #0f3d56;
  color: #fff;
  border-color: #0f3d56;
}

/* Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card */
.course-card {
  background: #fff;
  border: 1px solid #e4ebf1;
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(15, 61, 86, 0.06);
  min-height: 320px;

  /* UPDATE: remove underline when card is a link */
  text-decoration: none;
  color: inherit;
}

/* UPDATE: ensure no inner elements show underline */
.course-card * {
  text-decoration: none;
}

.course-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #0b2230;
}

/* Icon box (top-left) */
.course-icon {
  width: 46px;
  height: 46px;
  background: #edf2f6;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

/* Meta */
.course-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #5b6b76;
  margin-bottom: 14px;
}

.level {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.beginner {
  background: #eef6ff;
  color: #2563eb;
}

.intermediate {
  background: #fff2df;
  color: #b45309;
}

/* Description */
.course-card p {
  margin: 0 0 18px;
  color: #5b6b76;
  font-size: 14px;
  line-height: 1.6;
}

/* Enroll Button (full width like screenshot) */
.enroll-btn {
  margin-top: auto;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: #0f3d56;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.enroll-btn:hover {
  filter: brightness(1.05);
}

/* Courses Section Responsive */
@media (max-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}

@media (max-width: 640px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

/* =======================================================================
   3) ENROLL MODAL (Overlay + Modal + Form)
   ======================================================================= */
/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

/* Modal container */
.modal {
  background: #fff;
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);

  /* Make it scrollable like screenshot */
  max-height: 85vh;
  overflow: auto;
  padding: 26px;
}

/* Close button */
.close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f3f6f9;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Modal text */
.modal h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
  color: #0b2230;
}

.modal-subtitle {
  color: #5b6b76;
  font-size: 14px;
  margin: 0 0 18px;
  line-height: 1.5;
}

/* Form */
.enroll-form label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 700;
  color: #0b2230;
  margin-bottom: 14px;
}

.enroll-form input,
.enroll-form select,
.enroll-form textarea {
  margin-top: 7px;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid #d6dee6;
  outline: none;
  font-size: 14px;
}

.enroll-form input:focus,
.enroll-form select:focus,
.enroll-form textarea:focus {
  border-color: #0f3d56;
  box-shadow: 0 0 0 3px rgba(15, 61, 86, 0.15);
}

/* Course price line */
.course-price {
  margin: -4px 0 12px;
  font-weight: 800;
  color: #0f3d56;
  font-size: 14px;
}

/* Buttons row */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.cancel-btn,
.submit-btn {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  border: none;
}

.cancel-btn {
  background: #f3f4f6;
  color: #0b2230;
}

.submit-btn {
  background: #0f3d56;
  color: #fff;
}

.submit-btn:hover {
  filter: brightness(1.05);
}

/* =======================================================================
   4) WHY CHOOSE OUR ACADEMY
   ======================================================================= */
.why-choose {
  background: #f3f6f8; /* light gray like the screenshot */
  padding: 60px 20px;
}

.why-choose__container {
  max-width: 1200px;
  margin: 0 auto;
}

.why-choose__title {
  margin: 0 0 38px;
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  color: #0b2230;
  letter-spacing: 0.2px;
}

.why-choose__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 48px;
  align-items: start;
}

.why-choose__item {
  text-align: center;
}

.why-choose__icon {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: #e8eef2; /* circle background */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.why-choose__svg {
  width: 34px;
  height: 34px;
  fill: #0f3d56; /* teal/blue icon color */
}

.why-choose__heading {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: #0b2230;
}

.why-choose__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5b6b76; /* muted gray text */
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

/* Why Choose Responsive */
@media (max-width: 1024px) {
  .why-choose__grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 36px;
  }
}

@media (max-width: 560px) {
  .why-choose__title {
    font-size: 26px;
  }

  .why-choose__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* =======================================================================
   5) HOW TO ENROLL (Steps + Pricing)
   ======================================================================= */
.how-enroll {
  background: #f4f6f8;
  padding: 72px 16px;
}

.how-enroll__container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.how-enroll__title {
  margin: 0;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.how-enroll__subtitle {
  margin: 10px 0 0;
  font-size: 15px;
  color: #6b7280;
}

/* Step cards */
.how-enroll__steps {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.step-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 26px 18px 24px;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.06);
}

.step-card__badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f4c5c; /* dark teal */
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
}

.step-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.step-card__text {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #6b7280;
}

/* Pricing box */
.how-enroll__pricing {
  margin: 54px auto 0;
  max-width: 860px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 26px 34px;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.06);
  text-align: center;
}

.how-enroll__pricing-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}

.how-enroll__pricing-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: left;
}

.pricing-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pricing-item__icon {
  width: 18px;
  height: 18px;
  color: #0f4c5c;
  margin-top: 2px;
  flex: 0 0 auto;
}

.pricing-item__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.pricing-item__title {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 6px;
}

.pricing-item__text {
  font-size: 12px;
  line-height: 1.45;
  color: #6b7280;
}

/* How to Enroll Responsive */
@media (max-width: 1024px) {
  .how-enroll__steps {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 640px) {
  .how-enroll__title {
    font-size: 34px;
  }
  .how-enroll__steps {
    grid-template-columns: 1fr;
  }
  .how-enroll__pricing {
    padding: 22px 18px;
  }
  .how-enroll__pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* =======================================================================
   6) STUDENT SUCCESS STORIES
   ======================================================================= */
.success-stories {
  background: #ffffff;
  padding: 70px 20px;
}

.success-container {
  max-width: 1200px;
  margin: 0 auto;
}

.success-title {
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 40px;
}

.success-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch; /* ensures equal height */
}

.story-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 26px 26px 28px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);

  display: flex; /* equal height support */
  flex-direction: column;
  height: 100%;

  transition: transform 0.3s ease, box-shadow 0.3s ease; /* hover animation */
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.stars {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.stars span {
  font-size: 16px;
  color: #0f3d56;
  line-height: 1;
}

.student-name {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.student-role {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 18px;
}

.student-quote {
  font-size: 15px;
  line-height: 1.8;
  color: #0f172a;
  margin: 0;

  flex-grow: 1; /* keeps text balanced and cards equal */
}

/* Success Stories Responsive */
@media (max-width: 1024px) {
  .success-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .success-grid {
    grid-template-columns: 1fr;
  }
}

/* =======================================================================
   7) CTA SECTION (Form Card)
   ======================================================================= */
.cta {
  background: #0f4b63; /* dark teal */
  padding: 64px 16px;
}

.cta__container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.cta__title {
  margin: 0;
  color: #ffffff;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta__subtitle {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.65;
}

/* White form card */
.cta__card {
  margin: 42px auto 0;
  max-width: 980px;
  background: #ffffff;
  border-radius: 6px;
  padding: 26px 30px 28px;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.cta__card-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #111827;
}

.cta__card-subtitle {
  margin: 6px 0 18px;
  font-size: 13px;
  color: #6b7280;
}

/* Form layout */
.cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 18px;
}

.cta__field {
  display: flex;
  flex-direction: column;
}

.cta__field--full {
  grid-column: 1 / -1;
}

.cta__label {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  margin: 10px 0 8px;
}

.cta__req {
  color: #ef4444;
}

.cta__input,
.cta__textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  color: #111827;
  outline: none;
  background: #ffffff;
}

.cta__input::placeholder,
.cta__textarea::placeholder {
  color: #9ca3af;
}

.cta__input:focus,
.cta__textarea:focus {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(15, 75, 99, 0.12);
}

.cta__textarea {
  min-height: 120px;
  resize: vertical;
}

/* Submit button */
.cta__button {
  margin-top: 18px;
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 6px;
  background: #134b63;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.cta__button:hover {
  filter: brightness(1.05);
}

/* CTA Responsive */
@media (max-width: 820px) {
  .cta__title {
    font-size: 32px;
  }
  .cta__subtitle br {
    display: none;
  }
  .cta__grid {
    grid-template-columns: 1fr;
  }
  .cta__card {
    padding: 22px 18px 22px;
  }
}

/* =========================
   CHATBOT BUTTON
========================= */
.chatbot-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  z-index: 999;
}

.chatbot-btn:hover {
  background: #083a56;
}