.program-page { font-family: 'Mulish', 'Segoe UI', sans-serif; }
.program-page .container { max-width: 960px; }
.program-page .title { font-family: 'Lora', 'PT Serif', serif; }
:root { --program-brand: #2B4181; }

/* navbar */
.navbar.is-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--bulma-border);
}

#logo {
  padding: 0.5rem 1.5rem;
}

@media (min-width: 1024px) {
  #logo {
    padding: 0.5rem 3rem;
  }
}
.program-navbar-items {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.program-navbar-items::-webkit-scrollbar { display: none; }

.navbar-brand-text {
  background: linear-gradient(135deg, #1e88e5, #4fc3f7, #b39ddb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.program-hero {
  background: var(--program-brand);
  color: #fff;
}
.hero.program-hero {
  background: #67b5e4;
}
.program-hero .hero-body {
  padding-top: 2.8rem;
  padding-bottom: 0;
  overflow: visible;
}

.hero h1 {
  white-space: normal;
}

.program-section-stack { position: relative; z-index: 1; }
.program-hero .title.has-text-white {
  font-family: 'Lora', 'PT Serif', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}
.program-hero .subtitle.has-text-white {
  line-height: 1.5;
  font-family: 'Avenir Next', 'Avenir', 'Segoe UI', sans-serif;
  font-size: 12pt;
}

.program-hero-cta {
  border: 2px solid #0d47a1;
  background: linear-gradient(135deg, #4fc3f7, #b39ddb);
  color: #fff;
}
.program-hero-cta:hover {
  opacity: 0.85;
  color: #fff;
  border-color: #0d47a1;
}

.program-point {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.program-point-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.program-selling {
  background: var(--program-brand);
}
.program-selling-text {
  font-family: 'Lora', 'PT Serif', serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.45;
  color: #fff;
  margin: 0;
  padding: 1.5rem 2rem;
  border-radius: 3rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* accordion */
.program-accordion-row {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}
.program-accordion {
  flex: 1 1 50%;
  min-width: 0;
}
.program-accordion-item {
  border-bottom: 1px solid var(--bulma-border);
}
.program-accordion-item:first-child { border-top: 1px solid var(--bulma-border); }
.program-accordion-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.1rem;
}
.program-accordion-trigger::-webkit-details-marker { display: none; }
.program-accordion-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s;
}
.program-accordion-item[open] .program-accordion-icon { transform: rotate(90deg); }
.program-accordion-content {
  padding: 0 0 1rem 2.25rem;
  margin: 0;
  line-height: 1.55;
}
.program-accordion-image {
  flex: 1 1 50%;
  min-width: 0;
  border-radius: var(--bulma-radius, 0.5rem);
  overflow: hidden;
}
.program-accordion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* results */

/* carousel */
.program-carousel { display: flex; align-items: center; gap: 0.75rem; }
.program-carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}
.program-carousel-track > * { scroll-snap-align: start; flex: 0 0 auto; }
.program-carousel-nav {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--bulma-border);
  background: var(--bulma-white);
  color: var(--bulma-text-strong);
  font-size: 1.3rem;
  cursor: pointer;
  display: none;
}
.program-carousel-nav:hover { border-color: var(--bulma-info); color: var(--bulma-info); }
.program-carousel-slide { width: 16rem; }
.program-carousel-slide img { width: 25%; height: auto; display: block; margin: 0 auto; }
.program-carousel-slide figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--bulma-text); }
@media (min-width: 641px) { .program-carousel-nav { display: block; } }

/* gallery */
.program-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1.25rem; }
.program-gallery figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--bulma-text); }
.program-parents-point {
  border: 2px solid var(--program-brand);
  border-radius: 1.5rem;
  padding: 1.5rem 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.program-parents-point-image {
  width: 6rem;
  height: auto;
  display: block;
  margin: 0 auto 0.75rem;
}

/* schedule */
.program-schedule-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 54rem;
  max-width: 100%;
  background: var(--program-brand);
  color: #fff;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
}
.program-schedule-age,
.program-schedule-time {
  font-size: 0.9rem;
  opacity: 0.85;
  white-space: nowrap;
}
.program-schedule-time { margin-right: auto; }
.program-schedule-name {
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}
.program-schedule-name--1 {
  background: linear-gradient(135deg, #fff, #4fc3f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.program-schedule-name--2 {
  background: linear-gradient(135deg, #4fc3f7, #b39ddb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.program-schedule-name--3 {
  background: linear-gradient(135deg, #b39ddb, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.program-schedule-notes { list-style: none; }

/* roadmap */
.program-roadmap-list {
  list-style: none;
  padding: 0;
  max-width: 42rem;
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

.program-roadmap-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--bulma-border);
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1),
              border-color 0.3s ease;
  will-change: transform;
}

.program-roadmap-step:last-child { border-bottom: none; }

.program-roadmap-step:hover {
  transform: translateZ(24px) rotateX(-2deg) rotateY(-3deg);
  border-bottom-color: #4fc3f7;
}

.program-roadmap-index {
  position: relative;
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #4fc3f7, #b39ddb);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(30px);
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1),
              box-shadow 0.45s ease;
  z-index: 1;
}

.program-roadmap-step:hover .program-roadmap-index {
  transform: translateZ(50px) scale(1.08);
  box-shadow: 0 8px 24px rgba(79, 195, 247, 0.45);
}

.program-roadmap-index::before {
  content: '';
  position: absolute;
  inset: -0.55rem;
  padding: 0.15rem;
  border-radius: 50%;
  color: #4fc3f7;
  background: radial-gradient(circle, currentColor 0%, transparent 70%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
  transform: translateZ(-8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.program-roadmap-step:hover .program-roadmap-index::before {
  opacity: 1;
  transform: translateZ(-8px) scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .program-roadmap-step,
  .program-roadmap-index,
  .program-roadmap-index::before { transition: none !important; }
  .program-roadmap-step:hover { transform: none; }
}

.program-slideshow-col {
  align-self: flex-end;
  margin-bottom: -3rem;
  overflow: visible;
  flex: 0 1 600px;
  min-width: 0;
}

.program-slideshow {
  position: relative;
  z-index: 10;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4rem;
  border: 3px solid #fff;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
}
.slide.is-active {
  opacity: 1;
  position: relative;
}
.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .program-roadmap-list { perspective: none; }
  .program-roadmap-step:hover,
  .program-roadmap-step:hover .program-roadmap-index,
  .program-roadmap-step:hover .program-roadmap-index::before { transform: none; }
  .program-slideshow-col {
    margin-bottom: -2rem;
    margin-top: 1.5rem;
  }
  .program-accordion-row { flex-direction: column; }
  .program-accordion-image {
    order: -1;
    max-height: 220px;
  }
  .program-accordion-image img {
    object-fit: cover;
    height: 100%;
  }
}

/* card images */
.card-image .image img { object-fit: cover; width: 100%; height: 100%; }
.program-specialist-card .card-image img { object-fit: cover; }
.program-specialist-card { width: 16rem; height: 100%; }

/* review card */
.program-review-card { width: 20rem; margin: 0; border-left: 3px solid var(--bulma-info); }
.program-review-card cite { font-style: normal; }
.program-review-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.program-review-text.expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
.program-review-toggle { display: block; margin-top: 0.25rem; background: none; border: none; color: var(--bulma-info); cursor: pointer; padding: 0; font-size: 0.85rem; text-decoration: underline; }

/* pricing */
.program-pricing-price { font-size: 1.8rem; font-weight: 600; color: var(--bulma-info-dark); }

@media (prefers-reduced-motion: reduce) {
  .program-page * { scroll-behavior: auto !important; transition: none !important; }
}

#programs-list {
  background: url('/programs/Blueback.jpg') center/cover no-repeat fixed;
}

#programs-list .title.is-1,
#programs-list .title.is-3 {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

#programs-list .column.is-one-sixth {
  flex: none;
  width: calc(100% / 6);
}

@media screen and (max-width: 768px) {
  #programs-list .column.is-one-sixth {
    width: 50%;
  }
}

@media screen and (max-width: 480px) {
  #programs-list .column.is-one-sixth {
    width: 100%;
  }
}

#programs-list .card {
  position: relative;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

#programs-list .card-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  padding: 0.75rem;
  z-index: 2;
}

#programs-list .card-content .title {
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 0;
}

#programs-list .card-description {
  font-family: 'Avenir Next', 'Avenir', 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
  margin-top: 0.25rem;
}

.program-card-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

#programs-list .card-image .image img {
  object-fit: cover;
  opacity: 0.45;
}

#programs-list .card-image .image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.program-group-orange .card-image .image::after {
  background: radial-gradient(ellipse at center, transparent 35%, rgba(255, 140, 0, 0.55) 100%);
}
.program-group-purple .card-image .image::after {
  background: radial-gradient(ellipse at center, transparent 35%, rgba(128, 0, 128, 0.55) 100%);
}
.program-group-green .card-image .image::after {
  background: radial-gradient(ellipse at center, transparent 35%, rgba(46, 139, 87, 0.55) 100%);
}
.program-group-blue .card-image .image::after {
  background: radial-gradient(ellipse at center, transparent 35%, rgba(30, 136, 229, 0.55) 100%);
}
.program-group-teal .card-image .image::after {
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 128, 128, 0.55) 100%);
}
.program-group-red .card-image .image::after {
  background: radial-gradient(ellipse at center, transparent 35%, rgba(220, 50, 50, 0.55) 100%);
}
