/* =========================================================
   IU Programs Page
========================================================= */

.iu-program-page {
  color: #0b265f;
  background: #fff;
}

.iu-program-page svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* Hero - same format as Tuition / Regulations */

.iu-program-hero {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  background: #082b6f;
}

.iu-program-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
}

.iu-program-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      112deg,
      rgba(2, 38, 104, 1) 0%,
      rgba(3, 53, 139, 0.98) 36%,
      rgba(4, 71, 164, 0.62) 54%,
      rgba(255, 255, 255, 0) 54.2%
    ),
    linear-gradient(
      90deg,
      rgba(3, 38, 104, 0.92) 0%,
      rgba(3, 38, 104, 0.46) 48%,
      rgba(3, 38, 104, 0.06) 100%
    );
}

.iu-program-hero::after {
  content: "";
  position: absolute;
  left: 55px;
  bottom: 32px;
  width: 120px;
  height: 84px;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.18) 1.5px,
    transparent 1.5px
  );
  background-size: 14px 14px;
  opacity: 0.7;
}

.iu-program-hero .container {
  position: relative;
  z-index: 2;
}

.iu-program-hero-inner {
  display: flex;
  align-items: center;
  min-height: 350px;
  padding: 54px 0;
}

.iu-program-hero-copy {
  max-width: 720px;
  color: #fff;
}

.iu-program-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.1rem, 5.2vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 900;
  text-transform: uppercase;
}

.iu-program-hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.03rem;
  line-height: 1.75;
}

/* Main */

.iu-program-content {
  padding: 42px 0 78px;
}

.iu-program-main {
  /* width: min(100%, 1180px);
  margin: 0 auto; */
  display: grid;
  gap: 42px;
}

.iu-program-section {
  background: #fff;
}

.iu-program-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.iu-program-section-title span,
.iu-program-section-title h2 {
  color: #063c9c;
  font-size: 1.38rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.iu-program-section-title::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  margin-left: -30px;
  transform: translateY(24px);
  background: #e2272e;
  border-radius: 999px;
}

.iu-program-section-intro {
  max-width: 860px;
  margin: 0 0 22px;
  color: #263b63;
  line-height: 1.7;
}

/* Overview */

.iu-program-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.iu-program-overview-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 170px;
  padding: 26px;
  background: #fff;
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(14, 45, 103, 0.04);
}

.iu-program-overview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  font-size: 2rem;
}

.iu-program-overview-card.is-undergraduate .iu-program-overview-icon {
  color: #fff;
  background: linear-gradient(135deg, #0052bc, #002b80);
}

.iu-program-overview-card.is-master .iu-program-overview-icon {
  color: #e2272e;
  background: #ffe8ea;
}

.iu-program-overview-card.is-doctoral .iu-program-overview-icon {
  color: #c88900;
  background: #fff4d8;
}

.iu-program-overview-card strong {
  display: block;
  margin-bottom: 4px;
  color: #063c9c;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.iu-program-overview-card.is-master strong {
  color: #e2272e;
}

.iu-program-overview-card.is-doctoral strong {
  color: #c88900;
}

.iu-program-overview-card h3 {
  margin: 0 0 10px;
  color: #0b265f;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.iu-program-overview-card p {
  margin: 0;
  color: #4f6385;
  line-height: 1.58;
  font-size: 0.93rem;
}

/* Degree Layout */

.iu-program-level-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.iu-program-side-levels {
  display: grid;
  gap: 22px;
}

.iu-program-degree-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe6f4;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(14, 45, 103, 0.04);
}

.iu-program-degree-card.is-undergraduate {
  border-top: 4px solid #0646a8;
}

.iu-program-degree-card.is-master {
  border-top: 4px solid #e2272e;
}

.iu-program-degree-card.is-doctoral {
  border-top: 4px solid #d69a00;
}

.iu-program-degree-head {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid #e7edf7;
  background: #f8fbff;
}

.iu-program-degree-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #0646a8;
  background: #edf5ff;
  border-radius: 50%;
  font-size: 1.45rem;
}

.iu-program-degree-card.is-master .iu-program-degree-head > span {
  color: #e2272e;
  background: #fff0f1;
}

.iu-program-degree-card.is-doctoral .iu-program-degree-head > span {
  color: #c88900;
  background: #fff7df;
}

.iu-program-degree-head h3 {
  margin: 0;
  color: #063c9c;
  font-size: 1.16rem;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.iu-program-degree-card.is-master .iu-program-degree-head h3 {
  color: #c31420;
}

.iu-program-degree-card.is-doctoral .iu-program-degree-head h3 {
  color: #b47a00;
}

.iu-program-degree-head p {
  margin: 5px 0 0;
  color: #667899;
  font-weight: 700;
}

/* Undergraduate grouped list */

.iu-program-group-list {
  display: grid;
  gap: 0;
}

.iu-program-group {
  padding: 22px 24px;
  border-bottom: 1px solid #e8eff8;
}

.iu-program-group:last-child {
  border-bottom: 0;
}

.iu-program-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.iu-program-group-title span {
  color: #0646a8;
  font-size: 1.25rem;
}

.iu-program-group-title strong {
  color: #063c9c;
  font-size: 0.98rem;
  font-weight: 900;
  text-transform: uppercase;
}

.iu-program-group ol,
.iu-program-compact-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: program-counter;
}

.iu-program-group li,
.iu-program-compact-list li {
  position: relative;
  counter-increment: program-counter;
  min-height: 38px;
  padding: 9px 0 9px 38px;
  color: #112d63;
  border-bottom: 1px dashed #dbe6f4;
  font-weight: 750;
  line-height: 1.38;
}

.iu-program-group li:last-child,
.iu-program-compact-list li:last-child {
  border-bottom: 0;
}

.iu-program-group li::before,
.iu-program-compact-list li::before {
  content: counter(program-counter) ".";
  position: absolute;
  left: 0;
  top: 9px;
  width: 26px;
  color: #0646a8;
  font-weight: 900;
}

.iu-program-degree-card.is-master .iu-program-compact-list li::before {
  color: #e2272e;
}

.iu-program-degree-card.is-doctoral .iu-program-compact-list li::before {
  color: #c88900;
}

.iu-program-compact-list {
  padding: 18px 24px 4px;
}

.iu-program-update-note {
  margin: 6px 24px 22px;
  padding: 12px 14px;
  color: #5d6f8f;
  background: #f8fbff;
  border: 1px solid #e4edf8;
  border-radius: 10px;
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Departments */

.iu-program-department-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.iu-program-department-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 28px;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 18px;
  color: #0b265f;
  background: #fff;
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(14, 45, 103, 0.04);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.iu-program-department-card:hover {
  transform: translateY(-3px);
  border-color: #b9cff0;
  background: #f8fbff;
  box-shadow: 0 14px 34px rgba(14, 45, 103, 0.09);
}

.iu-program-department-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #0646a8;
  background: #eef5ff;
  border-radius: 50%;
  font-size: 1.28rem;
}

.iu-program-department-card strong {
  color: #063c9c;
  font-size: 0.93rem;
  line-height: 1.35;
  font-weight: 900;
}

.iu-program-department-card em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #0646a8;
  background: #f1f6ff;
  border-radius: 50%;
  font-style: normal;
  font-size: 1rem;
  opacity: 0.8;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.iu-program-department-card:hover em {
  color: #fff;
  background: #0646a8;
  transform: translateX(3px);
}

/* Pathway */

.iu-program-pathway {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.iu-program-pathway article {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  min-height: 140px;
  padding: 24px;
  background: #fff;
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(14, 45, 103, 0.04);
}

.iu-program-pathway article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: #0646a8;
  border-radius: 50%;
  font-weight: 900;
}

.iu-program-pathway h3 {
  margin: 0 0 8px;
  color: #063c9c;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
}

.iu-program-pathway p {
  margin: 0;
  color: #4f6385;
  line-height: 1.62;
}

.iu-program-bottom-note {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 22px;
  background: #f5f9ff;
  border: 1px solid #dbe7f6;
  border-radius: 10px;
}

.iu-program-bottom-note span {
  color: #0646a8;
  font-size: 1.35rem;
}

.iu-program-bottom-note p {
  margin: 0;
  color: #1d3157;
  line-height: 1.65;
}

/* Responsive */

@media (max-width: 1180px) {
  .iu-program-overview-grid,
  .iu-program-level-layout,
  .iu-program-pathway {
    grid-template-columns: 1fr;
  }

  .iu-program-department-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .iu-program-hero,
  .iu-program-hero-inner {
    min-height: 320px;
  }

  .iu-program-hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(2, 38, 104, 0.96),
      rgba(2, 38, 104, 0.72)
    );
  }

  .iu-program-hero h1 {
    font-size: 3rem;
  }

  .iu-program-department-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .iu-program-hero-inner {
    padding: 36px 0;
  }

  .iu-program-hero h1 {
    font-size: 2.35rem;
  }

  .iu-program-hero p {
    font-size: 0.96rem;
  }

  .iu-program-overview-card,
  .iu-program-department-card,
  .iu-program-pathway article {
    grid-template-columns: 1fr;
  }

  .iu-program-department-card em {
    justify-self: start;
  }

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

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