/* Schools section — qalam-primary.html.
   Depends on shared page tokens (--green, --green-dark, --white, --radius-xl)
   and custom properties set inline by the template
   (--primary-school-primary-cover/position, --primary-school-secondary-cover/position). */

.schools {
  padding: 60px 18px;
  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;
  gap: 22px;
}
.school-card {
  position: relative;
  min-height: 100%;
  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(--primary-school-primary-cover, none);
  background-size: cover;
  background-position: var(--primary-school-primary-position, center);
}
.sc-high .media {
  background: var(--primary-school-secondary-cover, none);
  background-size: cover;
  background-position: var(--primary-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;
  justify-content: flex-end;
  color: var(--white);
}
.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-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;
}
.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;
}

@media (max-width: 1100px) {
  .schools-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.school-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
}
@media (max-width: 640px) {
  .school-inner {
    padding: 32px;
    
  }
}
