/* =====================================================
   PROGRAM SECTION — CLEAN RESPONSIVE CSS
   ===================================================== */

.program-section {
  --program-navy-1: #030b22;
  --program-navy-2: #071842;
  --program-navy-3: #061333;
  --program-gold: #d4af37;
  --program-red: #ff3b3b;
  --program-white: #fffaf0;
  --program-muted: rgba(255, 250, 240, 0.76);
  --program-border: rgba(255, 255, 255, 0.095);

  --program-container: 1120px;
  --program-section-y: clamp(76px, 7vw, 108px);
  --program-header-width: 720px;
  --program-header-gap: clamp(42px, 5vw, 60px);

  --program-title-size: clamp(2.3rem, 4.2vw, 4.2rem);
  --program-desc-size: 0.96rem;

  --program-grid-gap: clamp(22px, 2.4vw, 32px);
  --program-card-padding: clamp(28px, 3vw, 40px);
  --program-card-radius: 20px;

  --program-card-title-size: clamp(1.32rem, 1.8vw, 1.86rem);
  --program-card-body-size: 0.92rem;
  --program-list-size: 0.88rem;

  position: relative;
  overflow: hidden;
  padding: var(--program-section-y) 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(212, 175, 55, 0.07), transparent 32%),
    radial-gradient(circle at 12% 60%, rgba(211, 47, 47, 0.07), transparent 30%),
    linear-gradient(180deg, var(--program-navy-1) 0%, var(--program-navy-2) 48%, var(--program-navy-3) 100%);
  color: var(--program-white);
}

.program-section *,
.program-section *::before,
.program-section *::after {
  box-sizing: border-box;
}

.program-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  opacity: 0.32;
  pointer-events: none;
}

.program-section::after {
  content: "";
  position: absolute;
  top: 11%;
  left: 50%;
  width: min(500px, 72vw);
  height: min(500px, 72vw);
  transform: translateX(-50%);
  border: 1px solid rgba(212, 175, 55, 0.075);
  border-radius: 50%;
  pointer-events: none;
}

.program-container {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--program-container));
  margin-inline: auto;
}

/* =====================================================
   Header
   ===================================================== */

.program-header {
  max-width: var(--program-header-width);
  margin: 0 auto var(--program-header-gap);
  text-align: center;
}

.program-subtitle {
  margin: 0 0 16px;
  color: var(--program-gold);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.program-title {
  margin: 0;
  color: var(--program-white);
  font-family: "Cinzel", Georgia, serif;
  font-size: var(--program-title-size);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
}

.program-desc {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--program-muted);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: var(--program-desc-size);
  font-weight: 600;
  line-height: 1.72;
}

.program-header::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin: 26px auto 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.92),
    transparent
  );
}

/* =====================================================
   Grid
   ===================================================== */

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--program-grid-gap);
  max-width: var(--program-container);
  margin-inline: auto;
}

/* =====================================================
   Card
   ===================================================== */

.program-card {
  counter-increment: program-card;
  position: relative;
  min-width: 0;
  height: 100%;
  padding: var(--program-card-padding);
  border: 1px solid var(--program-border);
  border-top-color: rgba(212, 175, 55, 0.38);
  border-radius: var(--program-card-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.014)),
    rgba(8, 25, 61, 0.68);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.program-grid {
  counter-reset: program-card;
}

.program-card--red {
  border-top-color: rgba(255, 59, 59, 0.46);
  --program-accent: var(--program-red);
  --program-accent-rgb: 255, 59, 59;
}

.program-card--gold {
  border-top-color: rgba(212, 175, 55, 0.50);
  --program-accent: var(--program-gold);
  --program-accent-rgb: 212, 175, 55;
}

.program-card::before {
  content: counter(program-card, decimal-leading-zero);
  position: absolute;
  top: 26px;
  left: 96px;
  color: rgba(255, 255, 255, 0.04);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2.55rem, 4vw, 3.45rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.program-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(22px, 2.2vw, 28px);
}

.program-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--program-accent);
  background: rgba(var(--program-accent-rgb), 0.13);
  border: 1px solid rgba(var(--program-accent-rgb), 0.16);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.16);
  transition: transform 0.35s ease;
}

.program-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.85;
}

.program-tag {
  max-width: 62%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--program-accent);
  background: rgba(var(--program-accent-rgb), 0.13);
  border: 1px solid rgba(var(--program-accent-rgb), 0.18);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.program-card h3 {
  position: relative;
  z-index: 1;
  max-width: 92%;
  margin: 0 0 18px;
  color: var(--program-white);
  font-family: "Cinzel", Georgia, serif;
  font-size: var(--program-card-title-size);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  text-wrap: balance;
}

.program-card > p {
  position: relative;
  z-index: 1;
  max-width: 98%;
  margin: 0 0 28px;
  color: var(--program-muted);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: var(--program-card-body-size);
  font-weight: 600;
  line-height: 1.7;
}

.program-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.program-list li {
  position: relative;
  min-width: 0;
  padding-left: 18px;
  color: rgba(255, 250, 240, 0.84);
  font-size: var(--program-list-size);
  font-weight: 600;
  line-height: 1.48;
}

.program-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--program-accent);
  box-shadow: 0 0 12px rgba(var(--program-accent-rgb), 0.46);
  transform: translateY(-50%);
}

/* =====================================================
   Hover
   ===================================================== */

@media (hover: hover) and (pointer: fine) {
  .program-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--program-accent-rgb), 0.38);
    box-shadow:
      0 22px 64px rgba(0, 0, 0, 0.30),
      0 0 28px rgba(var(--program-accent-rgb), 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }

  .program-card:hover .program-icon {
    transform: translateY(-2px);
  }
}

/* =====================================================
   Laptop kecil / 1366px dan sejenisnya
   ===================================================== */

@media (max-width: 1366px) {
  .program-section {
    --program-container: 1040px;
    --program-section-y: 82px;
    --program-header-gap: 46px;

    --program-title-size: clamp(2.2rem, 3.65vw, 3.55rem);
    --program-desc-size: 0.9rem;

    --program-grid-gap: 24px;
    --program-card-padding: 30px;
    --program-card-title-size: clamp(1.22rem, 1.55vw, 1.55rem);
    --program-card-body-size: 0.86rem;
    --program-list-size: 0.82rem;
  }

  .program-subtitle {
    margin-bottom: 14px;
    font-size: 0.72rem;
    letter-spacing: 0.32em;
  }

  .program-desc {
    margin-top: 16px;
    line-height: 1.62;
  }

  .program-header::after {
    margin-top: 22px;
  }

  .program-card-top {
    margin-bottom: 22px;
  }

  .program-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .program-icon svg {
    width: 20px;
    height: 20px;
  }

  .program-tag {
    padding: 7px 13px;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
  }

  .program-card > p {
    margin-bottom: 24px;
    line-height: 1.62;
  }

  .program-list {
    gap: 12px 20px;
  }
}

/* Laptop pendek, misalnya 1366 x 768 */
@media (min-width: 1025px) and (max-height: 780px) {
  .program-section {
    --program-section-y: 66px;
    --program-header-gap: 38px;
    --program-card-padding: 28px;
    --program-grid-gap: 22px;
  }

  .program-title {
    line-height: 1.02;
  }

  .program-card h3 {
    margin-bottom: 14px;
  }

  .program-card > p {
    margin-bottom: 20px;
  }
}

/* Tablet landscape / laptop sangat kecil */
@media (max-width: 1100px) {
  .program-section {
    --program-container: 680px;
    --program-section-y: 76px;
    --program-title-size: clamp(2rem, 5vw, 3rem);
  }

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

  .program-card {
    padding: 30px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .program-section {
    --program-section-y: 68px;
    --program-title-size: clamp(1.85rem, 9.2vw, 2.7rem);
    --program-card-padding: 24px;
    --program-card-title-size: 1.2rem;
    --program-card-body-size: 0.88rem;
    --program-list-size: 0.84rem;
  }

  .program-container {
    width: min(calc(100% - 28px), var(--program-container));
  }

  .program-header {
    margin-bottom: 36px;
  }

  .program-subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.26em;
  }

  .program-title {
    letter-spacing: 0.055em;
  }

  .program-desc {
    font-size: 0.88rem;
    line-height: 1.62;
  }

  .program-card {
    border-radius: 18px;
  }

  .program-card::before {
    display: none;
  }

  .program-card-top {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
  }

  .program-icon {
    width: 44px;
    height: 44px;
  }

  .program-tag {
    max-width: none;
    width: fit-content;
    justify-self: start;
  }

  .program-card h3 {
    max-width: 100%;
    letter-spacing: 0.065em;
  }

  .program-card > p {
    max-width: 100%;
  }

  .program-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Small mobile */
@media (max-width: 390px) {
  .program-section {
    --program-card-padding: 22px;
    --program-title-size: clamp(1.7rem, 9vw, 2.35rem);
  }

  .program-container {
    width: calc(100% - 24px);
  }

  .program-tag {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
  }
}

/* =====================================================
   Reveal animation
   ===================================================== */

.program-section.has-js .program-reveal-target,
.program-section.has-js .program-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.program-section.has-js .program-reveal-target.is-visible,
.program-section.has-js .program-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.program-section.has-js .program-card.program-reveal:nth-child(1) {
  transition-delay: 0.04s;
}

.program-section.has-js .program-card.program-reveal:nth-child(2) {
  transition-delay: 0.12s;
}

.program-section.has-js .program-card.program-reveal:nth-child(3) {
  transition-delay: 0.20s;
}

.program-section.has-js .program-card.program-reveal:nth-child(4) {
  transition-delay: 0.28s;
}

@media (prefers-reduced-motion: reduce) {
  .program-section.has-js .program-reveal-target,
  .program-section.has-js .program-reveal,
  .program-card,
  .program-icon {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}