/* Program page shared layout */

.program-section-title {
  font-family: "Abril Fatface", serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 24px;
}

/* Hero */
.program-hero {
  position: relative;
  padding: 80px 0;
  background: #f5f7ff;
  background-image: url("../img/program-hero-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  min-height: 300px;
  color: #ffffff;
  overflow: hidden;
}

.program-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 1;
}

.program-hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  z-index: 2;
}

.program-hero-title {
  font-family: "Abril Fatface", serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1px;
  color: #ffffff;
}

.program-hero-lead {
  font-family: "Maitree", serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 0px;
  color: #ffffff;
}

/* About Program */
.program-about {
  padding: 64px 0;
}

.program-about-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 48px;
}

.program-about-left,
.program-about-right {
  flex: 1;
}

.program-about-text {
  line-height: 1.6;
  margin-bottom: 16px;
}

.program-slider-placeholder img {
  width: 100%;
  border-radius: 12px;
}

/* In-house blocks */
.program-inhouse {
  padding: 30px 40px;
}

.inhouse-block {
  max-width: 1120px;
  margin: 0 auto 48px;
  padding: 0;
  display: flex;
  gap: 0;
  background: rgba(245, 245, 245, 0.8);
  border-radius: 0;
  overflow: hidden;
  justify-content: center;
  align-items: center;
}

.inhouse-block:last-child {
  margin-bottom: 0;
}

.inhouse-left {
  flex: 1;
  padding-top: 30px;
  padding-bottom: 30px;
  padding-left: 48px;
  padding-right: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: fit-content;
}

.inhouse-left > * {
  width: 100%;
  max-width: 500px;
}

.inhouse-title {
  font-family: "Maitree", serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #222;
}

.inhouse-list {
  margin: 0 auto 32px;
  padding-left: 20px;
  color: #222;
  text-align: left;
  width: fit-content;
  max-width: 100%;
}

.inhouse-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.inhouse-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  background: #222;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .inhouse-btn:hover {
    background-color: #333;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }

  .inhouse-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
}

.inhouse-right {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 12px;
  padding-right: 12px;
  background: unset;
  align-items: center;
  height: fit-content;
}

.inhouse-photo {
  padding: 0;
}

.inhouse-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

/* Customize */
.program-customize {
  padding: 64px 0;
  text-align: center;
}

.program-customize-text {
  max-width: 640px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.program-customize-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.program-customize-btn {
  display: inline-block;
  padding: 10px 48px;
  border-radius: 999px;
  background: #222;
  color: #fff;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .program-customize-btn:hover {
    background-color: #333;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }

  .program-customize-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
}

/* For Students */
.program-students {
  padding: 64px 0;
  text-align: center;
}

.program-students-text {
  max-width: 640px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.program-students-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.program-students-btn {
  display: inline-block;
  padding: 10px 48px;
  border-radius: 999px;
  background: #222;
  color: #fff;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .program-students-btn:hover {
    background-color: #333;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }

  .program-students-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .program-section-title {
    font-family: "Abril Fatface", serif;
  }

  .program-hero-title {
    font-family: "Abril Fatface", serif;
  }

  .program-hero-lead {
    font-family: "Maitree", serif;
  }

  .inhouse-title {
    font-family: "Abril Fatface", serif;
  }

  .program-hero {
    min-height: 250px;
    padding: 60px 0;
  }

  .program-about-text {
    padding-left: 16px;
    padding-right: 16px;
  }

  .program-customize-text,
  .program-students-text {
    padding-left: 16px;
    padding-right: 16px;
  }

  .program-about-inner,
  .inhouse-block {
    flex-direction: column;
  }

  .program-inhouse {
    padding: 30px 40px;
  }

  .inhouse-left {
    padding: 32px 24px;
  }

  .inhouse-right {
    grid-template-columns: repeat(2, 1fr);
    padding: 12px;
  }
}
