/* Hide default title bar */
.title_outer.title_without_animation {
  display: none;
}

/* Full Width Background */
.full_width_inner {
  background-color: #0088cc !important;
}

/* Back Button */
.back-button:hover {
  color: white !important;
}

/* Grade Schedule Specific Styles */
.course-schedule-wrapper {
  max-width: 70%;
  margin: 0 auto;
  padding: 0px;
  background: #0088cc;
  border-radius: 8px;
  margin-bottom: 0px;
}

/* Tablet/iPad */
@media (max-width: 1023px) {
  .course-schedule-wrapper {
    max-width: 80%;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .course-schedule-wrapper {
    max-width: 90%;
  }
}

.schedule-intro {
  color: #fff;
  text-align: center;
  font-family: "Raleway", sans-serif;
  font-size: 1.2em;
  margin-bottom: 40px;
  padding: 0 20px;
}

/* Hero Section */
.grade-hero {
  position: relative;
  width: 100%;
  height: 550px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}

.grade-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.grade-hero h1 {
  font-family: "Raleway", sans-serif;
  font-size: 75px;
  font-weight: 800;
  color: rgb(243, 241, 8);
  text-transform: none;
  line-height: 1.2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  opacity: 0.8;
}

/* Course Specific Image */
.course-specific-image {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  padding: 0 20px;
}

.course-specific-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Morning and Afternoon Periods */
.morning-periods,
.afternoon-periods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
  padding: 30px;
  border-radius: 8px;
}

/* Two-column layout for grades 5-12 */
.morning-periods.two-columns,
.afternoon-periods.two-columns {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .morning-periods.two-columns,
  .afternoon-periods.two-columns {
    grid-template-columns: 1fr;
  }
  .period-block.aftercare-period {
  width: 100%;
  }
}

.period-column {
  color: white;
  text-align: center;
}

.period-column .period-title {
  color: #f2f00c;
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  text-transform: none;
}

.period-column .period-time {
  color: #f2f00c;
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  text-transform: none;
  margin-bottom: 2em;
}

.period-column .course-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: disc;
    padding-left: 20px;
    text-align: left;
}

.period-column .course-link {
    color: white;
    text-decoration: none;
    padding: 0;
    display: list-item;
    transition: opacity 0.2s ease;
}

/* Special styling for kindergarten full day program */
.full-day-program .course-list {
    list-style: none;
    padding-left: 0;
    text-align: center;
}

.full-day-program .course-link {
    display: block;
    text-align: center;
}

/*.period-column .course-link:hover {*/
/*  opacity: 0.8;*/
/*}*/

.period-column .no-courses-period {
    color: #fff !important;
    font-style: none;
    font-size: 1.2em;
}

/* Lunch and Aftercare Sections */
.period-block.lunch-period,
.period-block.aftercare-period {
  width: 100vw;
  position: relative;
  left: calc(-50vw + 50%);
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
  padding: 40px 20px;
  text-align: center;
  background-image: url("../images/PS-PolySummer-Page.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.period-block.lunch-period::before,
.period-block.aftercare-period::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.period-block.lunch-period .period-header,
.period-block.aftercare-period .period-header {
  max-width: 1200px;
  margin: 0 auto;
  background: none;
  display: block;
  text-align: center;
  position: relative;
  z-index: 1;
}

.period-block.lunch-period .period-title,
.period-block.aftercare-period .period-title {
  color: #0291ed;
  font-family: "Raleway", sans-serif;
  font-size: 40px;
  line-height: 48px;
  font-style: normal;
  font-weight: 700;
  text-transform: none;
}

.period-block.lunch-period .period-time,
.period-block.aftercare-period .period-time {
  color: #0291ed;
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
}

/* Period Headers */
.period-header {
  padding: 20px;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.period-title {
  color: white;
  font-size: 24px;
  margin: 0;
}

.period-time {
  color: white;
  font-size: 16px;
}

.period-block.aftercare-period {
  margin-bottom: 0;
}

/* Course Info Grid */
.course-info-grid {
  display: grid;
  gap: 30px;
  margin-top: 30px;
}

.info-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: start;
  gap: 20px;
}

.info-item label {
  font-weight: 600;
  color: #333;
}

.info-item.description {
  grid-template-columns: 1fr;
}

.description-content {
  line-height: 1.6;
  color: #444;
}

/* CTA Section */
.register-cta {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.register-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.register-cta h2 {
  color: #f2f00c;
  font-family: "Raleway", sans-serif;
  font-size: 40px;
  line-height: 48px;
  font-style: normal;
  font-weight: 700;
  text-transform: none;
  z-index: 2;
  opacity: 0.8;
}

.register-button {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 15px 40px;
  background: #faa819;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  height: 47px;
  line-height: 47px;
  font-size: 16px;
  padding: 0 29px;
  margin-top: 20px;
  font-family: "Maitree", sans-serif;
}

.register-button:hover {
  background: #ff8255;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .grade-hero h1 {
    font-size: 60px;
  }
}

@media (max-width: 768px) {
  .grade-hero {
    height: 400px;
  }

  .grade-hero h1 {
    font-size: 40px;
  }

  .morning-periods,
  .afternoon-periods {
    padding: 20px;
  }

  .period-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .info-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .grade-hero {
    height: 300px;
  }

  .grade-hero h1 {
    font-size: 32px;
  }

  /* .course-schedule-wrapper {
    padding: 20px;
  } */

  .morning-periods,
  .afternoon-periods {
    padding: 15px;
    gap: 20px;
  }
}
