.single-course-page {
  font-family: "Roboto", sans-serif;
  color: #11184A;
}

/* Unified Section */
.course-info-section {
  padding: 80px 20px;
}

/* Main course box */
.course-box {
  position: relative;
  max-width: 1200px;
  margin: 10px auto;
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Left side (summary) */
.course-summary {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.course-title {
  text-align: left;
  margin-top: 73px;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #11184A;
}

.course-objective {
  padding: 20px;
  border-radius: 10px;
  text-align: left;
}

.course-objective h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.course-tailored {
  text-align: left;
  padding: 20px;
  border-radius: 10px;
}

.course-tailored h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #11184A;
}

.course-tailored ul {
  padding-left: 20px;
  margin: 0;
  list-style-type: disc;
}

.course-tailored li {
  font-size: 1rem;
  margin-bottom: 6px;
  font-weight: 300;
}

.course-meta {
  list-style: none;
  padding: 20px;
  text-align: left;
}

.course-meta li {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

/* Back button */
.back-section {
  margin-top: 10px;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

/* Back button with filling effect */
.back-btn {
  position: relative;       /* required for pseudo-element */
  display: inline-block;
  text-decoration: none;
  background: #FCE570;      /* initial background */
  color: #11184A;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  overflow: hidden;         /* hide overflow for the pseudo-element */
  transition: color 0.5s ease;
  z-index: 1;
}

/* Pseudo-element for the filling animation */
.back-btn::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;                /* start empty */
  background-color: #11184A; /* fill color */
  z-index: 0;               /* behind the text */
  transition: height 0.5s ease;
  border-radius: 6px;       /* match button border-radius */
}

/* Button text above the pseudo-element */
.back-btn span {
  position: relative;
  z-index: 1;
  display: inline-block;
  transition: color 0.5s ease;
}

/* Hover effect: fill up from bottom */
.back-btn:hover::before {
  height: 100%;
}

/* Change text color when filled */
.back-btn:hover span {
  color: #fff;
}
.google-form-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #11184A;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.google-form-btn:hover {
    background: #ff4c4c;
}



/* Poster side */
.course-poster-wrap {
  flex: 1;
  margin: 20px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-poster-large {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 5 / 6;
  border-radius: 15px;
  object-fit: contain;
}

/* ==========================
   REGISTRATION FORM
=========================== */
form {
  background:  #FCE570;
  border-radius: 16px;
  padding: 40px;
  margin: 60px auto;
  max-width: 900px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); 
}

form h2 {
  font-size: 1.8rem;
  color: #11184A;
  text-align: center;
  margin-bottom: 30px;
}
form h3 {

  font-size: 1.8rem;
  color: #11184A;
  text-align: center;
  margin-bottom: 30px;
}
form p {
  font-size: 1.2rem;
  color:  #11184A;
  text-align: center;
  margin-bottom: 30px;
  margin:10px;
}

form select,
form input {
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  background-color: #fffcf2;
  max-width: 700px;
  transition: 0.3s;
}


form select:focus,
form input:focus {
  border-color:  #11184A;
  box-shadow: 0 0 0 3px rgba(17, 24, 74, 0.1);
  outline: none;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background:  #11184A;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  margin-top:30px;
  max-width: 700px;
}

.submit-btn:hover {
  background: #39478C;
}

.notice.success {
  background: #E6F7E6;
  border: 1px solid #A4D6A4;
  color: #256B25;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  text-align: center;
  font-weight: 500;
}
.payment-detail {
    background: #fffcf2;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e2e2;
    max-width: 700px;   /* same as form inputs */
    margin: 20px auto;  /* centers the div */
    text-align: center; /* centers the text inside */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ==========================
   RESPONSIVE DESIGN
=========================== */
@media (max-width: 992px) {
  .course-box {
    flex-direction: column;
  }

  .course-summary, .course-poster-wrap {
    flex: 1 1 100%;
  }

  form {
    padding: 30px 25px;
  }
}

@media (max-width: 600px) {
  .course-title {
    font-size: 1.7rem;
  }

  form select,
  form input {
    font-size: 0.95rem;
  }
}

/* Responsive fix for mobile */
@media (max-width: 900px) {
  .course-box {
    flex-direction: column;
  }

  .course-summary {
    padding: 30px;
  }

  .course-title {
    text-align: center;
  }

  .course-poster-wrap {
    order: -1;
  }
}

/* TOAST NOTIFICATION */
.toast {
  visibility: hidden;
  min-width: 250px;
  max-width: 500px;
  margin-left: -125px;
  background-color: #11184A;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 30px;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}



