:root {
  --degrees-bg: #ffffff;
  --degrees-border: #dbe8f7;
  --degrees-panel: #f7fbff;
}

.page-main-degrees {
  background: var(--background);
  padding: 2rem 0 3rem;
}

.hero-card-degrees {
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 50vh;
  margin: 0 auto 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 30px rgba(15, 63, 131, 0.08);
  padding: 2.5rem 2rem;
  background: url("../images/equipment.jpeg") center/cover no-repeat;
}

.hero-card-degrees {
  position: relative;
  color: white;
}

.hero-card-degrees::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* adjust 0.25–0.5 */
  border-radius: 24px;
}

.hero-card-degrees h1 {
  display: inline-block;
  position: relative;
  z-index: 1;

  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
  border-bottom: 4px solid #fff;

  opacity: 0;
  transform: translateY(-30px);
  animation: slideDownFade 0.8s ease-out forwards;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.gbsn-overview {
  padding: 0 0 2rem;
}

.gbsn-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.gbsn-text-card,
.gbsn-criteria-card {
  background: var(--degrees-bg);
  border: 1px solid var(--degrees-border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 14px 30px rgba(15, 63, 131, 0.06);
}

.gbsn-text-card h2 {
  margin-top: 0;
  color: var(--primary-dark);
}

.gbsn-text-card p {
  color: var(--text);
  margin: 1rem 0 1.5rem;
  line-height: 1.8;
}

.apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

.apply-button:hover,
.apply-button:focus-visible {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.criteria-header {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.criteria-body p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.criteria-body h3 {
  margin: 0 0 0.75rem;
  color: var(--text);
}

.criteria-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.criteria-body li {
  color: var(--text);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .gbsn-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .hero-card-degrees,
  .gbsn-text-card,
  .gbsn-criteria-card {
    padding: 1.5rem;
  }

  .apply-button {
    width: 100%;
  }
}
