/* Schools section — index.html.
   Depends on shared page tokens (--green, --green-dark, --white, --yellow,
   --radius-xl) and custom properties set inline by the template
   (--landing-school-primary-cover/position, --landing-school-secondary-cover/position).
   Duplicates @keyframes pulse from hero-section.css for its own badge dot
   (both sections use the animation independently). */

.schools {
  padding: 80px 32px 60px;
  position: relative;
  z-index: 1;
}
.schools-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 44px;
}
.schools-head h2 {
  margin: 14px 0;
}
.schools-head h2 em {
  font-style: normal;
  color: var(--green);
  font-weight: 700;
}
.schools-head p {
  font-size: 16.5px;
  color: var(--ink-60);
}
.schools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 22px;
}
.school-card {
  position: relative;
  min-height: 560px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--green-dark);
  text-decoration: none;
}
.school-card:hover {
  transform: translateY(-6px);
}
.school-card .media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.school-card .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(1, 26, 20, 0.15) 0%,
    rgba(1, 26, 20, 0.45) 40%,
    rgba(1, 26, 20, 0.92) 100%
  );
}
.sc-main .media::after {
  background:
    linear-gradient(
      180deg,
      rgba(20, 34, 30, 0.3) 0%,
      rgba(18, 40, 34, 0.56) 42%,
      rgba(10, 24, 20, 0.94) 100%
    ),
    rgba(22, 36, 32, 0.22);
}
.sc-high .media::after {
  background:
    linear-gradient(
      180deg,
      rgba(52, 26, 33, 0.28) 0%,
      rgba(62, 28, 38, 0.58) 42%,
      rgba(30, 12, 18, 0.94) 100%
    ),
    rgba(62, 30, 40, 0.22);
}
.sc-main .media {
  background:
    var(--landing-school-primary-cover, none);
  background-size: cover;
  background-position: var(--landing-school-primary-position, center);
}
.sc-high .media {
  background:
    var(--landing-school-secondary-cover, none);
  background-size: cover;
  background-position: var(--landing-school-secondary-position, center);
}
.school-card .art {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(
      circle at 25% 30%,
      rgba(255, 255, 255, 0.4) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 75% 80%,
      rgba(250, 204, 21, 0.4) 0%,
      transparent 36%
    );
}
.school-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  color: var(--white);
  min-height: 560px;
}
.school-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  align-self: flex-start;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.school-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.3);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(250, 204, 21, 0.08);
  }
}
.school-bottom {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.school-bottom h2 {
  color: var(--white);
  font-size: clamp(2rem, 2.8vw, 2.5rem);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.school-bottom .tag {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}
.school-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.school-pills span {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.02em;
}
.school-bullets {
  list-style: none;
  margin-bottom: 26px;
}
.school-bullets li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  padding: 5px 0;
  line-height: 1.45;
}
.school-bullets li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.3);
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2 7.8 12 13 6.5' fill='none' stroke='%23FACC15' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.school-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  transition: all 0.2s;
}
.school-card:hover .school-cta {
  background: rgba(255, 255, 255, 0.22);
}
.school-cta .arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.school-card:hover .school-cta .arrow {
  transform: translateX(4px);
}
.sc-high .school-badge .dot {
  background: #8c1a2e;
  box-shadow: 0 0 0 3px rgba(140, 26, 46, 0.3);
}
.sc-high .school-bullets li::before {
  background: rgba(140, 26, 46, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2 7.8 12 13 6.5' fill='none' stroke='%238C1A2E' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.sc-high .school-cta .arrow {
  background: var(--yellow);
  color: var(--green-dark);
}

@media (max-width: 900px) {
  .schools-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
@media (max-width: 640px) {
  .schools {
    padding: 32px 20px;
  }
  .school-inner {
    padding: 28px 24px;

  }
  .school-bottom h2 {
    font-size: 1.8rem;
  }
}
