/* Formats/pricing section — qalam-high.html.
   Depends on shared page tokens (--warm-white, --crimson-*, --gold-*, --dark-950,
   --text-muted, --text-light, --line, --radius-2xl, --shadow-sm, --shadow-lg,
   --ease-out, --display). Section padding for .formats itself is set by a shared
   cross-section rule in static/css/qalam-high.css. */

.formats {
  padding: 120px 0;
  background: var(--warm-white);
  position: relative;
  overflow: hidden;
}
.formats .blob-a {
  position: absolute;
  top: 0;
  left: 20%;
  width: 420px;
  height: 420px;
  background: rgba(181, 35, 45, 0.05);
  border-radius: 50%;
  filter: blur(100px);
  mix-blend-mode: multiply;
}
.formats .blob-b {
  position: absolute;
  top: 0;
  right: 20%;
  width: 420px;
  height: 420px;
  background: rgba(245, 184, 46, 0.06);
  border-radius: 50%;
  filter: blur(100px);
  mix-blend-mode: multiply;
}
.formats .blob-c {
  position: absolute;
  bottom: -80px;
  left: 50%;
  width: 360px;
  height: 360px;
  background: rgba(240, 165, 0, 0.04);
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: multiply;
}
.formats .container {
  position: relative;
  z-index: 1;
}
.fmts-head {
  text-align: left;
  margin-bottom: 60px;
}
.fmts-head h2 {
  margin-bottom: 14px;
}
.fmts-head h2 em {
  font-style: normal;
  color: var(--crimson-600);
  font-weight: 800;
}
.fmts-head p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.65;
}
.fmts-grid {
  display: grid;
  grid-template-columns: repeat(var(--fmt-cols, 4), minmax(0, 1fr));
  gap: 22px;
}
.fmts-grid.cols-2 {
  gap: 64px;
}
.fmts-grid.cols-2 .fmt-card h3,
.fmts-grid.cols-2 .fmt-card .desc,
.fmts-grid.cols-2 .fmt-bullets,
.fmts-grid.cols-2 .fmt-foot .fmt-format {
  min-height: 0;
}
.fmt-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: 32px 22px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}
.fmt-card.full-school {
  border-color: var(--gold-400);
  box-shadow:
    0 0 0 2px var(--gold-400) inset,
    var(--shadow-sm);
}
.fmt-card.offline-ent {
  border-color: var(--crimson-400);
  box-shadow:
    0 0 0 2px var(--crimson-400) inset,
    var(--shadow-sm);
}
.fmt-card.sat-ielts {
  border-color: var(--crimson-600);
  box-shadow:
    0 0 0 2px var(--crimson-600) inset,
    var(--shadow-sm);
}
.fmt-card.ielts-course {
  border-color: var(--gold-400);
  box-shadow:
    0 0 0 2px var(--gold-400) inset,
    var(--shadow-sm);
}
.fmt-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.fmt-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 15px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  white-space: nowrap;
  z-index: 2;
}
.fmt-card.full-school .fmt-tag {
  background: var(--gold-500);
  color: var(--dark-950);
}
.fmt-card.offline-ent .fmt-tag {
  background: var(--crimson-500);
  color: #fff;
}
.fmt-card.sat-ielts .fmt-tag {
  background: var(--crimson-700);
  color: #fff;
}
.fmt-card.ielts-course .fmt-tag {
  background: var(--gold-500);
  color: var(--dark-950);
}
.fmt-card h3 {
  font-size: 1.25rem;
  margin: 18px 0 10px;
  position: relative;
  z-index: 1;
  line-height: 1.25;
  letter-spacing: -0.025em;
  min-height: 4.7em;
}
.fmt-card .desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  min-height: 8.25em;
}
.fmt-bullets {
  list-style: none;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 13.1em;
}
.fmt-bullets li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--dark-950);
  font-weight: 500;
  line-height: 1.45;
}
.fmt-bullets li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--crimson-50);
  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.5 8 12.5 13 6.5' fill='none' stroke='%238C1A2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.fmt-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.fmt-foot .fmt-meta {
  margin-bottom: 16px;
}
.fmt-foot .fmt-format {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
  min-height: 2.8em;
}
.fmt-foot .fmt-price {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark-950);
  letter-spacing: -0.03em;
}
.fmt-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13.5px;
  background: var(--dark-950);
  color: #fff;
  transition:
    background 0.22s,
    transform 0.22s;
}
.fmt-cta:hover {
  background: var(--crimson-700);
  transform: translateY(-1px);
}

@media (max-width: 1100px) {
  .fmts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

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

@media (max-width: 640px) {
  .formats {
    padding: 64px 0;
  }
  .fmts-head {
    margin-bottom: 40px;
  }
  .fmts-head p {
    font-size: 15px;
  }
  .fmts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .fmt-card {
    padding: 32px 20px 24px;
  }
  .fmt-card h3 {
    min-height: 0;
  }
  .fmt-card .desc,
  .fmt-bullets,
  .fmt-foot .fmt-format {
    min-height: 0;
  }
}
