:root {
  --program-ink: #07161b;
  --program-muted: #536268;
  --program-paper: #eff5f2;
  --program-line: rgba(7, 71, 77, 0.16);
  --program-dark: #031115;
  --program-dark-soft: #0a2025;
  --program-accent: #27c5ce;
  --program-accent-soft: #a8f4f2;
  --program-ease: cubic-bezier(0.2, 0.72, 0.18, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--program-ink);
  background: var(--program-paper);
}

.site-header {
  background: rgba(2, 13, 17, 0.95);
  border-bottom-color: rgba(112, 226, 229, 0.12);
  backdrop-filter: blur(18px);
}

.header-nav a.is-current {
  color: #aaf8f5;
}

.programs-page,
.program-detail-page {
  overflow: clip;
}

.programs-hero {
  position: relative;
  min-height: min(720px, calc(100svh - 82px));
  display: grid;
  align-items: end;
  padding: clamp(140px, 16vw, 220px) clamp(24px, 6vw, 96px) clamp(64px, 8vw, 112px);
  color: #f4fbfa;
  background:
    linear-gradient(rgba(53, 222, 224, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 222, 224, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 76% 44%, rgba(20, 179, 186, 0.2), transparent 34%),
    #020b0f;
  background-size: 84px 84px, 84px 84px, auto, auto;
}

.programs-hero > div:not(.programs-hero-orbit) {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
}

.program-breadcrumbs {
  display: flex;
  gap: 10px;
  margin-bottom: 50px;
  color: rgba(222, 241, 240, 0.58);
  font-size: 13px;
}

.program-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.programs-kicker,
.program-section-label {
  margin: 0 0 18px;
  color: #168d96;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.programs-hero .programs-kicker,
.program-detail-hero .programs-kicker {
  color: var(--program-accent-soft);
}

.programs-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(58px, 9vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.programs-hero p:last-child {
  max-width: 700px;
  margin: 36px 0 0;
  color: rgba(232, 245, 244, 0.72);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.42;
}

.programs-hero-orbit {
  position: absolute;
  top: 50%;
  right: clamp(-180px, -8vw, -80px);
  width: min(62vw, 780px);
  aspect-ratio: 1;
  translate: 0 -50%;
  opacity: 0.6;
  pointer-events: none;
}

.programs-hero-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(119, 231, 232, 0.24);
  border-radius: 50%;
  animation: program-orbit-turn 30s linear infinite;
}

.programs-hero-orbit span:nth-child(2) {
  inset: 18%;
  border-style: dashed;
  animation-direction: reverse;
  animation-duration: 22s;
}

.programs-hero-orbit i {
  position: absolute;
  top: 13%;
  left: 47%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8af0ec;
  box-shadow: 0 0 32px rgba(100, 239, 235, 0.9);
}

.programs-catalog {
  padding: clamp(76px, 9vw, 140px) clamp(24px, 4vw, 68px) clamp(100px, 11vw, 160px);
  background:
    linear-gradient(rgba(16, 97, 99, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 97, 99, 0.045) 1px, transparent 1px),
    var(--program-paper);
  background-size: 96px 96px;
}

.programs-catalog > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.programs-catalog > header p {
  margin: 0 0 12px;
  color: #178c94;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.programs-catalog h2 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(42px, 5.4vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.programs-catalog > header > span {
  color: var(--program-muted);
  font-size: 14px;
}

.program-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 32px;
  scrollbar-width: none;
}

.program-filters::-webkit-scrollbar {
  display: none;
}

.program-filters button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(4, 28, 33, 0.22);
  border-radius: 999px;
  color: #264047;
  background: rgba(255, 255, 255, 0.42);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 220ms var(--program-ease);
}

.program-filters button:hover,
.program-filters button:focus-visible,
.program-filters button.is-active {
  border-color: #0d777e;
  color: #f4ffff;
  background: #0a3d44;
  outline: none;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.center-program-card {
  min-width: 0;
  border: 1px solid rgba(109, 222, 224, 0.22);
  border-radius: 26px;
  overflow: hidden;
  color: #f3f9f8;
  background: #06181c;
  box-shadow: 0 22px 70px rgba(4, 30, 34, 0.13);
  transition: transform 320ms var(--program-ease), border-color 320ms var(--program-ease), box-shadow 320ms var(--program-ease);
}

.center-program-card[hidden] {
  display: none;
}

.center-program-card.is-entering {
  animation: program-card-enter 420ms var(--program-ease) both;
}

.program-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.program-card-media {
  position: relative;
  height: 250px;
  margin: 0;
  overflow: hidden;
  background: #0b2b30;
}

.program-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 18, 22, 0.72));
}

.program-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 700ms var(--program-ease), filter 420ms var(--program-ease);
}

.program-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px 28px 28px;
  background:
    radial-gradient(circle at 18% 20%, rgba(42, 198, 203, 0.1), transparent 33%),
    #06181c;
}

.program-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #8fe9e7;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-card-topline small {
  color: rgba(225, 238, 237, 0.48);
  font-size: inherit;
  text-align: right;
}

.center-program-card h2 {
  margin: 32px 0 18px;
  font-size: clamp(25px, 2.3vw, 36px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.center-program-card .program-card-result {
  min-height: 96px;
  margin: 0;
  padding-right: 0;
  color: rgba(230, 241, 240, 0.86);
  font-size: 16px;
  line-height: 1.5;
}

.center-program-card .program-card-audience {
  margin: 28px 0 20px;
  padding-right: 0;
  color: rgba(221, 235, 234, 0.72);
  font-size: 14px;
  line-height: 1.48;
}

.program-card-audience strong {
  display: block;
  margin-bottom: 6px;
  color: #76c9c9;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.program-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.program-card-meta li {
  padding: 7px 10px;
  border: 1px solid rgba(125, 220, 222, 0.18);
  border-radius: 999px;
  color: rgba(229, 241, 240, 0.76);
  font-size: 11px;
}

.center-program-card footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(134, 224, 225, 0.14);
}

.center-program-card footer div {
  display: grid;
  gap: 6px;
}

.center-program-card footer span,
.center-program-card footer strong {
  font-size: 12px;
}

.center-program-card footer div span {
  color: rgba(219, 235, 234, 0.62);
}

.center-program-card footer div strong {
  color: rgba(244, 250, 249, 0.9);
}

.program-card-action {
  color: #9df3f0;
  font-weight: 750;
  white-space: nowrap;
}

.program-card-action i {
  display: inline-block;
  font-style: normal;
  transition: transform 220ms var(--program-ease);
}

.programs-empty {
  margin: 28px 0 0;
  color: var(--program-muted);
}

.programs-events-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(70px, 8vw, 120px) clamp(24px, 6vw, 96px);
  color: #effafa;
  background: #052127;
}

.programs-events-link p {
  max-width: 780px;
  margin: 0;
  font-size: clamp(27px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.programs-events-link a,
.program-detail-final a {
  flex: 0 0 auto;
  color: #a3f2ef;
  font-weight: 750;
  text-decoration: none;
}

.program-detail-hero {
  position: relative;
  min-height: min(850px, calc(100svh - 82px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(118px, 13vw, 180px) clamp(24px, 6vw, 96px) 0;
  color: #f3fbfa;
  background: #020c10;
}

.program-detail-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(34, 192, 196, 0.2), transparent 32%),
    linear-gradient(rgba(57, 200, 202, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 200, 202, 0.04) 1px, transparent 1px);
  background-size: auto, 86px 86px, 86px 86px;
  pointer-events: none;
}

.program-detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(50px, 7vw, 110px);
  align-items: center;
}

.program-detail-hero .program-breadcrumbs {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.program-detail-copy h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(55px, 7.4vw, 114px);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.program-detail-copy > p:not(.programs-kicker) {
  max-width: 760px;
  margin: 30px 0 36px;
  color: rgba(227, 241, 240, 0.7);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.48;
}

.program-primary-action {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  border: 1px solid rgba(145, 239, 237, 0.55);
  border-radius: 999px;
  color: #ecffff;
  background: rgba(12, 72, 78, 0.32);
  font-weight: 750;
  text-decoration: none;
  transition: 220ms var(--program-ease);
}

.program-primary-action:hover,
.program-primary-action:focus-visible {
  color: #03191e;
  background: #9cf2ef;
  outline: none;
}

.program-detail-hero figure {
  position: relative;
  height: clamp(390px, 46vw, 650px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(134, 233, 232, 0.22);
  border-radius: 48% 48% 24px 24px;
  box-shadow: 0 28px 100px rgba(20, 170, 176, 0.13);
}

.program-detail-hero figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.program-detail-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(50px, 7vw, 90px) calc(clamp(24px, 6vw, 96px) * -1) 0;
  padding: 0 clamp(24px, 6vw, 96px);
  border-top: 1px solid rgba(139, 230, 230, 0.16);
  background: rgba(2, 20, 24, 0.76);
}

.program-detail-facts div {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 20px 24px;
  border-right: 1px solid rgba(139, 230, 230, 0.12);
}

.program-detail-facts div:first-child {
  border-left: 1px solid rgba(139, 230, 230, 0.12);
}

.program-detail-facts dt {
  color: rgba(211, 234, 233, 0.46);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.program-detail-facts dd {
  margin: 0;
  color: rgba(244, 251, 250, 0.9);
  font-size: 15px;
  font-weight: 700;
}

.program-detail-content {
  padding: clamp(80px, 10vw, 150px) clamp(24px, 8vw, 130px);
  background:
    linear-gradient(rgba(14, 86, 89, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 86, 89, 0.04) 1px, transparent 1px),
    var(--program-paper);
  background-size: 96px 96px;
}

.program-detail-content > section {
  max-width: 1260px;
  margin: 0 auto;
}

.program-detail-content > section:first-child h2 {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.052em;
}

.program-detail-columns {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(56px, 9vw, 150px);
  margin-top: clamp(90px, 12vw, 170px) !important;
  padding-top: 40px;
  border-top: 1px solid var(--program-line);
}

.program-detail-columns p:not(.program-section-label),
.program-detail-description p:not(.program-section-label) {
  margin: 0;
  color: #344950;
  font-size: clamp(20px, 2.2vw, 31px);
  line-height: 1.5;
}

.program-detail-columns ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--program-line);
}

.program-detail-columns li {
  padding: 17px 0;
  border-bottom: 1px solid var(--program-line);
  color: #18353b;
  font-size: 15px;
  font-weight: 700;
}

.program-start-note {
  margin-top: 24px !important;
  color: #147b82 !important;
  font-size: 14px !important;
  font-weight: 750;
}

.program-detail-description {
  max-width: 900px !important;
  margin-top: clamp(100px, 13vw, 190px) !important;
}

.program-detail-description p:not(.program-section-label) + p {
  margin-top: 28px;
}

.program-detail-final {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-top: clamp(110px, 14vw, 200px) !important;
  padding: clamp(38px, 5vw, 70px);
  color: #effafa;
  background: #06252b;
}

.program-detail-final h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

@media (hover: hover) {
  .center-program-card:hover {
    transform: translateY(-8px);
    border-color: rgba(126, 238, 237, 0.55);
    box-shadow: 0 28px 90px rgba(2, 54, 60, 0.24);
  }

  .center-program-card:hover img {
    transform: scale(1.045);
    filter: saturate(1.08);
  }

  .center-program-card:hover .program-card-action i {
    transform: translate(3px, -3px);
  }
}

@keyframes program-orbit-turn {
  to { rotate: 360deg; }
}

@keyframes program-card-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .programs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .program-detail-hero figure {
    height: min(70vw, 620px);
    border-radius: 32px;
  }
}

@media (max-width: 760px) {
  .programs-hero {
    min-height: calc(100svh - 72px);
    padding-top: 120px;
  }

  .programs-hero h1 {
    font-size: clamp(52px, 18vw, 76px);
  }

  .programs-hero-orbit {
    top: 31%;
    right: -52%;
    width: 120vw;
  }

  .programs-catalog > header,
  .programs-events-link,
  .program-detail-final {
    align-items: flex-start;
    flex-direction: column;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .program-card-media {
    height: 230px;
  }

  .program-card-result {
    min-height: 0;
  }

  .program-detail-hero {
    padding-top: 112px;
  }

  .program-detail-copy h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .program-detail-hero figure {
    height: 92vw;
  }

  .program-detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-detail-facts div:nth-child(3) {
    border-left: 1px solid rgba(139, 230, 230, 0.12);
  }

  .program-detail-columns {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .programs-hero-orbit span { animation: none; }
  .center-program-card,
  .program-card-media img,
  .program-card-action i { transition: none; }
}
