/* Why-us section — qalam-high.html.
   Depends on shared page tokens (--warm-white, --crimson-*, --dark-950, --gold-300,
   --text-muted, --radius-2xl, --shadow-lg, --ease-out, --display).
   Section padding for .why-us itself is set by a shared cross-section rule in
   static/css/qalam-high.css (grouped with .formats/.teachers/.faq/.form-sec). */

.why-us {
  padding: 120px 0;
  background: var(--warm-white);
  position: relative;
  overflow: hidden;
}
.why-us .blob-a {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: rgba(140, 26, 46, 0.06);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.why-us .blob-b {
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 500px;
  height: 500px;
  background: rgba(240, 165, 0, 0.05);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.why-us .grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--warm-white) 0%, #fff 50%, var(--crimson-50) 100%);
  pointer-events: none;
  z-index: 0;
}
.why-us .container {
  position: relative;
  z-index: 1;
}
.sec-head {
  text-align: left;
  max-width: 100%;
  margin: 0 0 60px;
}
.sec-head h2 {
  margin-bottom: 14px;
}
.sec-head h2 em {
  font-style: normal;
  color: var(--crimson-600);
  font-weight: 800;
}
.sec-head p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.65;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.wcard {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--dark-950);
}
.wcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.88;
  transition:
    transform 0.8s var(--ease-out),
    opacity 0.5s;
}
.wcard:hover img {
  transform: scale(1.07);
  opacity: 1;
}
.wcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 6, 8, 0.78) 0%,
    rgba(10, 6, 8, 0.48) 36%,
    rgba(10, 6, 8, 0.12) 70%,
    transparent 100%
  );
  z-index: 1;
}
.wcard .body {
  position: absolute;
  inset: 0;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  transform: translateZ(0);
  transition: transform 0.45s var(--ease-out);
}
.wcard:hover .body {
  transform: translateY(-8px);
}
.wcard .num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(140, 26, 46, 0.88);
  backdrop-filter: blur(8px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(181, 35, 45, 0.45);
  flex-shrink: 0;
}
.wcard h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-300);
  margin-bottom: 8px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.wcard p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}
.wcard.wide {
  grid-column: span 2;
}

@media (max-width: 1100px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wcard.wide {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .why-us {
    padding: 96px 0;
  }
}

@media (max-width: 640px) {
  .why-us {
    padding: 64px 0;
  }
  .sec-head {
    margin-bottom: 40px;
  }
  .sec-head p {
    font-size: 15px;
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .wcard {
    min-height: 280px;
  }
  .wcard .body {
    padding: 24px;
  }
  .wcard h3 {
    font-size: 1.3rem;
  }
  .wcard p {
    font-size: 14px;
  }
}
