/* ==========================================================
   Home — School in numbers (scoped under .sx)
   Light split layout: intro on the left, 2x2 stat tiles on the
   right with one featured (solid blue) tile. Numbers are filled
   in by PureCounter on the .purecounter spans.
   Logo palette: royal blue + orange.
   ========================================================== */
.sx {
  --sx-blue: #0d4f9c;
  --sx-blue-deep: #083a75;
  --sx-orange: #f08a1c;
  --sx-ink: #142033;
  --sx-muted: #4d5a6c;
  --sx-line: #e5ebf3;
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  background: #fff;
}
.sx-ring {
  position: absolute;
  right: -160px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 60px solid rgba(240, 138, 28, .07);
  pointer-events: none;
}
.sx-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}
.sx-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

/* ---------- intro ---------- */
.sx-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.sx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sx-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sx-dot { width: 26px; height: 3px; border-radius: 3px; background: var(--sx-orange); }
.sx-title {
  margin: 0;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sx-blue-deep);
}
.sx-title span { color: var(--sx-orange); }
.sx-text { margin: 0; font-size: 16.5px; line-height: 1.75; color: var(--sx-muted); text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.sx-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--sx-orange);
  color: var(--sx-blue-deep);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}
.sx-link:hover { gap: 16px; color: var(--sx-orange); }

/* ---------- tiles ---------- */
.sx-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sx-tiles > :nth-child(even) { margin-top: 28px; margin-bottom: -28px; }

.sx-tile {
  --sx-accent: var(--sx-orange);
  --sx-tint: #fff3e6;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 26px 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--sx-line);
  box-shadow: 0 24px 50px -32px rgba(8, 58, 117, .35);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.sx-tile::after {
  /* accent bar along the bottom */
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--sx-accent);
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .35s ease;
}
.sx-tile:hover { border-color: var(--sx-accent); box-shadow: 0 30px 60px -30px rgba(8, 58, 117, .45); }
.sx-tile:hover::after { transform: scaleX(1); }
.sx-tile--orange { --sx-accent: #f08a1c; --sx-tint: #fff3e6; }
.sx-tile--sky { --sx-accent: #2b7fd6; --sx-tint: #eaf2fb; }
.sx-tile--green { --sx-accent: #1f9d6b; --sx-tint: #e7f6ef; }

.sx-tile-top { margin-bottom: 14px; }
.sx-ico {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sx-tint);
  color: var(--sx-accent);
  font-size: 22px;
}
.sx-ico img { width: 28px; height: 28px; object-fit: contain; }

.sx-num {
  margin: 0;
  display: flex;
  align-items: baseline;
  font-size: 50px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sx-blue-deep);
}
.sx-num em { font-style: normal; color: var(--sx-accent); margin-left: 2px; }
.sx-label { margin: 0; font-size: 15px; font-weight: 600; color: var(--sx-muted); }

/* featured tile */
.sx-tile--feature {
  --sx-accent: var(--sx-orange);
  background: linear-gradient(150deg, var(--sx-blue) 0%, var(--sx-blue-deep) 100%);
  border-color: transparent;
  box-shadow: 0 30px 60px -28px rgba(8, 58, 117, .6);
}
.sx-tile--feature::before {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 24px solid rgba(255, 255, 255, .07);
}
.sx-tile--feature .sx-ico { background: rgba(255, 255, 255, .14); color: #fff; }
.sx-tile--feature .sx-num { color: #fff; }
.sx-tile--feature .sx-label { color: rgba(255, 255, 255, .8); }
.sx-tile--feature:hover { border-color: transparent; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .sx-grid { grid-template-columns: 1fr; gap: 44px; }
  .sx-intro { max-width: 720px; }
}
@media (max-width: 991px) { .sx { padding: 48px 0 64px; } }
@media (max-width: 640px) {
  .sx { padding: 40px 0 48px; }
  .sx-wrap { padding: 0 16px; }
  .sx-title { font-size: 32px; }
  .sx-tiles { gap: 12px; }
  .sx-tiles > :nth-child(even) { margin-top: 0; margin-bottom: 0; }
  .sx-tile { padding: 20px 18px; border-radius: 18px; }
  .sx-ico { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
  .sx-ico img { width: 22px; height: 22px; }
  .sx-num { font-size: 36px; }
  .sx-label { font-size: 13.5px; }
}
