:root {
  --home-bg: #f8fbff;
  --home-panel: #ffffff;
  --home-border: #dbe8f7;
}

.page-main-home {
  padding: 2rem 0 3rem;
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr);
  gap: 2rem;
  align-items: center;
  background: var(--home-panel);
  border: 1px solid var(--home-border);
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(15, 63, 131, 0.08);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.hero-copy {
  max-width: 620px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.9s ease-out forwards;
  animation-delay: 0.15s;
}

.hero-image {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.35s;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-home h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(2.75rem, 4vw, 4.5rem);
  line-height: 1.03;
  color: var(--primary-dark);
}

.hero-home p {
  margin: 0 0 1.5rem;
  color: var(--text);
  max-width: 38rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.75rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 1px solid transparent;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-dark);
  border: 1px solid var(--primary-dark);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.hero-info-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 1rem 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  align-items: center;
}

.hero-image img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  min-height: 420px;
}

.program-highlight {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.highlight-card,
.detail-card {
  background: var(--home-panel);
  border: 1px solid var(--home-border);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: 0 14px 30px rgba(15, 63, 131, 0.06);
}

.highlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 1fr);
  gap: 2rem;
  align-items: center;
}


.highlight-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 20px;
}




.highlight-card h2,
.detail-card h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

.highlight-card ul,
.detail-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.highlight-card ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.highlight-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-card-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.8fr);
  gap: 1.25rem;
  align-items: center;
}

.detail-media img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  border-radius: 16px;
}

.info-card {
  background: var(--home-panel);
  border: 1px solid var(--home-border);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: 0 14px 30px rgba(15, 63, 131, 0.05);
}

.info-card h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

.info-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--home-panel);
  border: 1px solid var(--home-border);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: 0 14px 28px rgba(15, 63, 131, 0.06);
}

.cta-panel h2 {
  margin: 0 0 0.5rem;
  color: var(--primary-dark);
}

.cta-panel p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-home {
    grid-template-columns: 1fr;
  }

  .hero-info-row {
    grid-template-columns: 1fr;
  }

  .highlight-card {
    grid-template-columns: 1fr;
  }

  .highlight-media img {
    min-height: 200px;
  }

  .highlight-details {
    grid-template-columns: 1fr;
  }

  .home-cards {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }
  .detail-card-media {
  grid-template-columns: 1fr;
}

.detail-media img {
  min-height: 160px;
}
}

@media (max-width: 920px) {
  /* .hero-home {
    padding: 1.8rem;
  } */

  .hero-home h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  /* .hero-image img {
    min-height: 280px;
  } */

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .hero-home {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 480px;
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(8, 26, 56, 0.25) 0%,
    rgba(8, 26, 56, 0.55) 55%,
    rgba(8, 26, 56, 0.9) 100%
  );
  pointer-events: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  animation: none;
  opacity: 1;
  transform: none;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  border-radius: 28px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: none;
  min-height: 480px;
  padding: 1.75rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  animation: heroTextIn 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  color: #bcd6ff;
}

.hero-home h1,
.hero-home p {
  color: var(--white);
}

.hero-info-row {
  color: rgba(255, 255, 255, 0.88);
}

.btn-secondary {
  color: var(--white);
  border-color: var(--white);
}
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
