/* ---------- Course Detail Section 123---------- */
.detail-section {
  display: flex;
  width: 100%;
  height: 580px;
  padding: 120px 64px;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.32)),
    url('/images/coursedetail.png') no-repeat center center / cover;
  color: #FFF;
  position: relative;
  justify-content: center;
  align-items: center;
  margin-top: 84px;
  /* text-align: left; */
}

/* ---------- Inner Container ---------- */
.detail-container {
  max-width: 100%;
  width: 100%;
}

/* ---------- Text Styles ---------- */
.detail-container h2 {
  color: #FFF;
  font-family: 'Poppins';
  font-size: 48px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.96px;
  margin-bottom: 16px;
}

.detail-container p {
  color: #FFF;
  font-family: 'Lato';
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  max-width: 700px;
}

/* ---------- Responsive for Tablets ---------- */
@media (max-width: 992px) {
  .detail-section {
    height: auto;
    padding: 100px 40px;
    /* text-align: center; */
    background-position: center top;

    margin: 0;
  }

  .detail-container h2 {
    font-size: 40px;
    line-height: 1.3;
  }

  .detail-container p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ---------- Responsive for Mobiles ---------- */
@media (max-width: 768px) {
  .detail-section {
    height: auto;
    padding: 80px 24px;
    background-position: center center;
    /* text-align: center; */
  }

  .detail-container h2 {
    font-size: 30px;
    line-height: 1.3;
  }

  .detail-container p {
    font-size: 18px;
    line-height: 1.5;
    max-width: 100%;
  }
}

/* ---------- Responsive for Small Mobiles ---------- */
@media (max-width: 480px) {
  .detail-section {
    padding: 60px 20px;
  }

  .detail-container h2 {
    font-size: 26px;
  }

  .detail-container p {
    font-size: 16px;
  }
}

/*detail hero section end*/

/* ---------- About Section ---------- */

.detailabout-section {
  background-color: #000000;
  color: #FFF;
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}


.detailabout-container h2 {
  color: #FFF;
  font-family: Poppins, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.64px;
  margin-bottom: 24px;
}

.detailabout-container p {
  color: #FFF;
  font-family: Lato, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.4px;
  max-width: 1100px;
}

/* ---------- Features Section ---------- */
.detailcheck-container h2 {
  color: #FFF;
  font-family: Poppins, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.64px;
  margin-bottom: 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 80px;
  max-width: 900px;
}

.feature-item {
  display: flex;
  align-items: center;
  font-family: Lato, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.4px;
  color: var(--white, #FFF);
  gap: 10px;
  /* space between icon box and text */
}

.icon-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  background: var(--3, #FBBA2C);
  border-radius: 4px;
  color: #FFFFFF;
  /* icon color inside box */
  font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .detailabout-section {
    padding: 60px 40px;
    gap: 60px;
  }

  .features-grid {
    gap: 16px 40px;
  }
}

@media (max-width: 768px) {
  .detailabout-section {
    padding: 40px 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .detailabout-container h2,
  .detailcheck-container h2 {
    font-size: 28px;
  }

  .detailabout-container p,
  .feature-item {
    font-size: 18px;
    line-height: 26px;
  }
}

/*detail enroll setcion start*/

.detailenroll-section {
  background: #000;
  padding: 80px 64px;
  color: #fff;
  text-align: center;
  gap: 48px;
}

.details-container h1 {
  font-family: Poppins, sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #fff;
  margin-bottom: 10px;
}

.details-container p {
  font-family: Lato, sans-serif;
  font-size: 20px;
  line-height: 28px;
  color: #fff;
}

.course-table {
  width: 100%;
  border: 1px solid #000;
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin: 30px 0;
  background: #fff;
}

.course-table thead {
  background: #FBBA2C;
}

.course-table th {
  text-align: center;
  padding: 14px;
  border-left: 1px solid #000;
  color: #000;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.course-table th:first-child,
.course-table td:first-child {
  border-left: none;
}

.course-table td {
  text-align: center;
  padding: 14px;
  border-left: 1px solid #000;
  color: #000;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.status-open {
  color: #319F43 !important;
  font-weight: 700;
}

.btn-enroll {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.btn-enroll button {
  border-radius: 12px;
  background: #F76102;
  color: #fff;
  padding: 8px 16px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-enroll button:hover {
  background: #ff7b28;
}

/* ---------- Form Card ---------- */
.enroll-card {
  background: #fff;
  padding: 40px 30px;
  max-width: 600px;
  margin: 20px auto 0;
  border-radius: 12px;
  text-align: center;
  display: none;
  /* hidden initially */
  flex-direction: column;
}

.enroll-card h3 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #000;
}

.enroll-card p {
  margin-bottom: 20px;
  color: #000;
}

/* Stack fields vertically */
.enroll-card form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.form-group {
  flex: 1 1 100%;
  /* full width by default */
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 14px;
  background-color: #FBBA2C;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  color: #000;
  transition: 0.3s;
}

.btn-submit:hover {
  background-color: #ffd15c;
}

/* ---------- Responsive Layout -------*/
@media (max-width: 1024px) {
  .course-table {
    border: none;
    background: transparent;

    border: 1px solid #000;
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
  }

  .course-table thead {
    display: none;
  }

  .course-table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* gap: 20px; */
    row-gap: 20px;
    background: transparent;
    /* border: none; */
    margin-bottom: 30px;
  }

  .course-table td {
    position: relative;
    background: #fff;
    /* border: none; */
    border-radius: 12px;
    text-align: center;
    padding: 40px 10px 16px;
    /* space for yellow header */
    font-size: 15px;
    font-weight: 600;
    color: #000;
    min-height: 100px;
  }

  .course-table td::before {
    content: attr(data-label);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #FBBA2C;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 0;
    border-radius: 12px 12px 0 0;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .course-table tbody tr {
    grid-template-columns: repeat(2, 1fr);
    /* gap: 16px; */
    row-gap: 16px;
    border-radius: 12px;
    border: 1px solid #000;
    border-collapse: separate;
    border-spacing: 0;
  }

  .course-table td {
    background: #fff;
    /* border-radius: 12px; */
    padding: 36px 8px 14px;
    font-size: 14px;
    position: relative;
    text-align: center;
    font-weight: 600;
    color: #000;
    min-height: 90px;
  }

  .course-table td::before {
    content: attr(data-label);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #FBBA2C;
    color: #000;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 0;
    border-start-end-radius: 12px;
  }

  .detailenroll-section {
    padding: 60px 20px;
  }

  .details-container h1 {
    font-size: 28px;
  }

  .details-container p {
    font-size: 16px;
    line-height: 24px;
  }

  .btn-enroll button {
    width: 100%;
    font-size: 16px;
    padding: 10px;
  }
}
