/* Programs selector page styles */
.programs-page--selector {
  background: #120f0c;
}
.program-selection-page {
  position: relative;
  min-height: calc(100svh - 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(2rem, 7vw, 3rem) 0 clamp(4rem, 7vw, 6rem);
  background-image:
    linear-gradient(
      180deg,
      rgba(18, 15, 12, 0.3) 0%,
      rgba(18, 15, 12, 0.52) 100%
    ),
    url("../../images/programs.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.program-selection-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(255, 193, 105, 0.22),
      transparent 28%
    ),
    radial-gradient(
      circle at 82% 80%,
      rgba(122, 192, 215, 0.18),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      rgba(18, 15, 12, 0.56) 0%,
      rgba(18, 15, 12, 0.72) 100%
    );
}
.program-selection-content {
  max-width: 980px;
  margin: 0 auto;
  color: #fff;
  text-align: center;
}
.program-selection-content h1 {
  max-width: 860px;
  margin: 0 auto 1.15rem;
  font-size: clamp(2.6rem, 5.5vw, 5.8rem);
  line-height: 0.96;
  color: #fff;
  letter-spacing: -0.05em;
}
.program-selection-content p {
  max-width: 720px;
  margin: 0 auto 2.25rem;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}
.program-selection-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  max-width: 860px;
  margin: 0 auto;
}
.program-selection-link {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 28px;
  color: #fff;
  text-align: left;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}
.program-selection-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.86;
  transition: opacity 0.3s ease;
}
.program-selection-link.preschool::before {
  background: linear-gradient(
    135deg,
    rgba(238, 126, 91, 0.9),
    rgba(247, 182, 85, 0.5)
  );
}
.program-selection-link.elementary::before {
  background: linear-gradient(
    135deg,
    rgba(61, 128, 161, 0.9),
    rgba(88, 174, 145, 0.52)
  );
}
.program-selection-link:hover,
.program-selection-link:focus {
  color: #fff;
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
}
.program-selection-link:hover::before,
.program-selection-link:focus::before {
  opacity: 1;
}
.program-link-icon,
.program-link-arrow {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #2f2b27;
}
.program-link-content {
  flex: 1 1 auto;
}
.program-link-label,
.program-link-text {
  display: block;
}
.program-link-label {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 0.45rem;
}
.program-link-text {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.6;
}
.program-link-arrow {
  align-self: flex-start;
  transition: transform 0.3s ease;
}
.program-selection-link:hover .program-link-arrow,
.program-selection-link:focus .program-link-arrow {
  transform: translateX(6px);
}
@media (max-width: 991.98px) {
  .program-selection-page {
    min-height: auto;
    padding: 7rem 0 4rem;
    background-position: center center;
  }
}
@media (max-width: 991.98px) {
  .program-selection-content h1 {
    max-width: 760px;
  }
}
@media (max-width: 991.98px) {
  .program-selection-links {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
}
@media (max-width: 575.98px) {
  .program-selection-page {
    padding: 6.5rem 0 3rem;
  }
}
@media (max-width: 575.98px) {
  .program-selection-content h1 {
    line-height: 1;
  }
}
@media (max-width: 575.98px) {
  .program-selection-link {
    min-height: 160px;
    flex-direction: column;
  }
}
@media (max-width: 575.98px) {
  .program-link-arrow {
    position: absolute;
    right: 1.15rem;
    bottom: 1.15rem;
  }
}
