/* ============================================================
   Nova Tutor Academy — style.css
   Global styles, design tokens, layout, typography, sections
   ============================================================ */

/* ── Google Fonts ── */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap");

/* ── Design tokens ── */
:root {
  --navy: #0f1f3d;
  --navy-mid: #1a3260;
  --blue: #2b5ea7;
  --blue-light: #4a7cc7;
  --blue-800: #1e3a6e;
  --gold: #f5a623;
  --gold-light: #fef3dc;
  --slate: #f4f6fa;
  --slate-mid: #e8edf5;
  --border: #e2e8f0;
  --text: #1a202c;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --white: #ffffff;
  --success: #22c55e;
  --error: #ef4444;

  --font-display: system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm:
    0 1px 3px rgba(15, 31, 61, 0.07), 0 1px 2px rgba(15, 31, 61, 0.05);
  --shadow-md:
    0 4px 16px rgba(15, 31, 61, 0.1), 0 2px 6px rgba(15, 31, 61, 0.06);
  --shadow-lg:
    0 12px 40px rgba(15, 31, 61, 0.14), 0 4px 12px rgba(15, 31, 61, 0.08);

  --max-w: 1120px;
  --section-py: 80px;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
textarea {
  resize: vertical;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Typography ── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-body);
}

p {
  color: var(--text-muted);
}
p.lead {
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.75;
}

/* ── Eyebrow labels ── */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  margin-bottom: 14px;
  line-height: 1;
}

/* ── Buttons ── */
.btn {
  /* display: inline-flex;
  align-items: center;
  gap: 8px; */
  text-align: center;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #e09510;
  border-color: #e09510;
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-light:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 84px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 30px rgba(15, 31, 61, 0.18);
  font-size: 1.15rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
  z-index: 9;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #e09510;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 18px 30px rgba(15, 31, 61, 0.2);
  font-size: 1.75rem;
  transition:
    transform 180ms ease,
    background 180ms ease;
  z-index: 9;
}

.whatsapp-float:hover {
  background: #1ebe5d;
  color: var(--white);
  transform: translateY(-3px);
}

/* ── Button row ── */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.file-control {
  padding: 8px;
  cursor: pointer;
}

.file-control::file-selector-button {
  margin-right: 12px;
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  color: var(--navy);
  background: rgba(245, 166, 35, 0.2);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.field-help {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ── Section layout ── */
.section {
  padding-block: var(--section-py);
}
.section-soft {
  background: var(--slate);
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 52px;
}
.section-heading p {
  margin-top: 14px;
}

/* ── Split layout ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split > div > h2 {
  margin-bottom: 18px;
}
.split > div > p {
  margin-top: 12px;
}

/* ── Visual block (decorative card in split) ── */
.visual-block {
  position: relative;
  padding: 20px 0 40px;
}
.visual-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.visual-card.main {
  position: relative;
  z-index: 1;
}
.visual-card.main h3 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: 1.2rem;
}
.visual-card.float {
  position: absolute;
  bottom: -40px;
  right: -16px;
  width: 180px;
  z-index: 2;
  box-shadow: var(--shadow-lg);
  text-align: center;
  padding: 18px 20px;
}
.visual-card.float p {
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ── Check list ── */
.check-list {
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 12px;
}
.step {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: var(--font-display);
}
.step h3 {
  margin-bottom: 10px;
  color: var(--navy);
}
.step p {
  font-size: 0.9rem;
}

/* ── Subject cloud ── */
.subject-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}
.subject-chip {
  padding: 9px 18px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  transition: all 0.18s;
  cursor: default;
}
.subject-chip:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── Text link ── */
.text-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  transition: gap 0.18s;
}
.text-link::after {
  content: "→";
}
.text-link:hover {
  gap: 8px;
  text-decoration: none;
  color: var(--navy);
}

/* ── Stats row ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--navy);
  border-radius: var(--radius-xl);
  margin-block: 48px;
  overflow: hidden;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat:last-child {
  border-right: none;
}
.stat strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

/* ── Trust row ── */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}
.trust-row span {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-row span::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
}

/* ── Hero section (home page) ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding-block: 90px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  color: var(--white);
  margin-bottom: 18px;
}
.hero-copy p.lead {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}
.hero-copy .eyebrow {
  color: var(--gold);
  border-color: var(--gold);
}

/* Hero panel (tutor match card) */
.hero-panel {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 28px;
  color: var(--white);
}
.hero-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}
.status-pill {
  background: rgba(245, 166, 35, 0.2);
  color: var(--gold);
  border: 1px solid rgba(245, 166, 35, 0.4);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}
.match-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.match-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.match-item > span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.match-item strong {
  font-size: 0.92rem;
  color: var(--white);
}
.match-item small {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rating {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding-block: 72px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
}
.page-hero .eyebrow {
  color: var(--gold);
  border-color: var(--gold);
}
.page-hero .button-row {
  justify-content: center;
  margin-top: 28px;
}

/* ── CTA section ── */
.cta {
  padding-block: var(--section-py);
}
.cta-box {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-box h2 {
  color: var(--white);
  margin-bottom: 8px;
}
.cta-box p {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Detail grid (side-by-side with info panel) ── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.detail-grid h2 {
  margin-bottom: 16px;
}
.detail-grid .lead {
  margin-bottom: 24px;
}

/* ── Info panel (numbered steps inside detail-grid) ── */
.info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}
.info-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.info-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.info-row h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--navy);
}
.info-row p {
  font-size: 0.88rem;
}

/* ── Notice text ── */
.notice {
  font-size: 0.82rem;
  color: var(--text-light);
  background: var(--slate);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 16px;
}

/* ── Footer ── */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding-block: 56px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.7;
}
.footer-brand .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  text-decoration: none;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold);
  margin-bottom: 16px;
  font-family: var(--font-body);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.18s;
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--white);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  :root {
    --section-py: 56px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    display: none;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    border-radius: var(--radius-lg);
  }
  .stat:nth-child(2) {
    border-right: none;
  }
  .stat:nth-child(3) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-box {
    padding: 36px 28px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  :root {
    --section-py: 48px;
  }
  .container {
    padding-inline: 18px;
  }
  h1 {
    font-size: 1.75rem;
  }
  .page-hero {
    padding-block: 52px 48px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-box {
    padding: 28px 20px;
  }
  .visual-card.float {
    display: none;
  }
  .back-to-top {
    right: 14px;
    bottom: 72px;
    width: 44px;
    height: 44px;
  }
  .whatsapp-float {
    right: 14px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}

/* Reference-inspired homepage refresh */
:root {
  --blue-950: #17133f;
  --blue-900: #24205c;
  --blue-800: #3730a3;
  --blue-700: #4f46e5;
  --blue-600: #6d5dfc;
  --blue-50: #f7f5ff;
  --slate-900: #211f35;
  --slate-700: #56536e;
  --slate-500: #7d7892;
  --slate-200: #e8e5f0;
  --cyan: #12b8c4;
  --coral: #ff6b6b;
}

.btn:hover,
a:hover {
  text-decoration: none;
}

.homepage-hero {
  position: relative;
  overflow: hidden;
  padding: 50px 0 86px;
  background:
    radial-gradient(circle at 88% 8%, rgba(18, 184, 196, 0.2), transparent 28%),
    radial-gradient(
      circle at 6% 86%,
      rgba(255, 107, 107, 0.12),
      transparent 24%
    ),
    linear-gradient(145deg, #fff 18%, #f3f0ff 66%, #eafcfc 100%);
}

.homepage-hero::after {
  position: absolute;
  right: -140px;
  bottom: -210px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(109, 93, 252, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 65px rgba(109, 93, 252, 0.045),
    0 0 0 130px rgba(18, 184, 196, 0.03);
  content: "";
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) 420px;
  align-items: center;
  gap: 64px;
}

.hero-content h1 {
  max-width: 820px;
  margin-bottom: 22px;
  background: linear-gradient(
    120deg,
    var(--blue-950) 8%,
    var(--blue-700) 58%,
    #078d98
  );
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  -webkit-text-fill-color: transparent;
}

.hero-content .lead {
  margin-bottom: 18px;
  color: var(--slate-700);
  font-size: clamp(1.05rem, 2vw, 1.1rem);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.hero-badges span {
  padding: 4px 14px;
  border: 1px solid rgba(216, 210, 250, 0.9);
  border-radius: 999px;
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 7px 20px rgba(45, 35, 105, 0.06);
  font-size: 0.78rem;
  font-weight: 750;
}

.hero-badges span::before {
  margin-right: 7px;
  color: var(--cyan);
  content: "\2713";
  font-weight: 900;
}

.hero-overview-card {
  padding: 32px;
  border: 2px solid rgba(43, 94, 167, 0.15);
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(245, 166, 35, 0.03) 100%
  );
  box-shadow:
    0 22px 55px rgba(45, 35, 105, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.hero-social-links {
  margin-top: 0;
}

.hero-social-links .social-link {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.1rem;
}

.social-link {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 18px 30px rgba(15, 31, 61, 0.2);
  font-size: 1rem;
  transition: transform 180ms ease;
  color: var(--white);
}

.social-links .whatsapp {
  background: #25d366;
}

.social-links .whatsapp:hover {
  background: #1bb453;
}

.social-links .facebook {
  background: #0766FF;
}

.social-links .facebook:hover {
  background: #0757da;
}

.social-links .instagram {
   background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.social-links .instagram:hover {
   background: linear-gradient(
    45deg,
    #e89133 0%,
    #d46137 25%,
    #ba2138 50%,
    #cc2366 75%,
    #ab177c 100%
  );
}

.overview-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(43, 94, 167, 0.1);
}

.overview-header h2 {
  margin-bottom: 6px;
  font-size: 1.75rem;
  color: var(--navy);
}

.overview-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.overview-features {
  display: grid;
  gap: 18px;
  flex: 1;
  margin-bottom: 24px;
}

.feature-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: flex-start;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(43, 94, 167, 0.12),
    rgba(245, 166, 35, 0.08)
  );
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 600;
  flex-shrink: 0;
}

.feature-content h3 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.feature-content p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.overview-cta {
  padding-top: 20px;
  border-top: 2px solid rgba(43, 94, 167, 0.1);
  display: grid;
  gap: 12px;
}

.cta-tagline {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  text-align: center;
}

.tutor-search-card {
  padding: 28px;
  border: 1px solid rgba(205, 201, 220, 0.88);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 55px rgba(45, 35, 105, 0.16);
  backdrop-filter: blur(10px);
}

.tutor-search-card h2 {
  margin-bottom: 8px;
  font-size: 1.65rem;
}

.tutor-search-card p {
  margin-bottom: 22px;
  color: var(--slate-700);
  font-size: 0.96rem;
}

.tutor-search-card form,
.feature-list,
.faq-list {
  display: grid;
  gap: 14px;
}

.tutor-search-card label {
  display: grid;
  gap: 7px;
  color: var(--blue-950);
  font-size: 0.86rem;
  font-weight: 800;
}

.tutor-search-card select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #d8d2fa;
  border-radius: 13px;
  color: var(--slate-900);
  background: var(--white);
  outline: none;
}

.tutor-search-card select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(109, 93, 252, 0.13);
}

.tutor-search-card small {
  display: block;
  margin-top: 14px;
  color: var(--slate-500);
  text-align: center;
  font-weight: 700;
}

.metric-band {
  position: relative;
  z-index: 2;
  margin-top: -34px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.metric-grid div {
  padding: 26px 20px;
  text-align: center;
}

.metric-grid div + div {
  border-left: 1px solid var(--slate-200);
}

.metric-grid strong {
  display: block;
  background: linear-gradient(135deg, var(--blue-800), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 1.75rem;
  line-height: 1.2;
  -webkit-text-fill-color: transparent;
}

.metric-grid span {
  color: var(--slate-500);
  font-size: 0.88rem;
}

.process-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.process-card,
.latest-tutor {
  padding: 30px;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(45, 35, 105, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.process-card:hover,
.latest-tutor:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 55px rgba(45, 35, 105, 0.16);
}

.process-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(145deg, var(--coral), #ff8a65);
  box-shadow: 0 8px 18px rgba(255, 107, 107, 0.22);
  font-weight: 900;
}

.feature-layout,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: 56px;
}

.feature-list {
  margin-top: 28px;
}

.feature-list article {
  padding: 22px;
  border: 1px solid #ddd8f7;
  border-left: 4px solid var(--cyan);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 25px rgba(45, 35, 105, 0.055);
}

.feature-list p,
.process-card p {
  margin-bottom: 0;
}

.why-panel {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 90% 16%,
      rgba(18, 184, 196, 0.3),
      transparent 26%
    ),
    linear-gradient(145deg, var(--blue-950), var(--blue-800));
  box-shadow: 0 22px 55px rgba(45, 35, 105, 0.16);
}

.why-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.why-card strong,
.why-card span {
  display: block;
}

.why-card strong {
  color: var(--white);
  font-size: 1.1rem;
}

.why-card span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.76);
}

.subject-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.latest-tutors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.subject-card {
  display: grid;
  gap: 7px;
  padding: 22px;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  background: linear-gradient(155deg, #fff 55%, #faf8ff);
  box-shadow: 0 8px 24px rgba(45, 35, 105, 0.055);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.subject-card:hover {
  transform: translateY(-5px);
  border-color: #c8c0ff;
  box-shadow: 0 22px 55px rgba(45, 35, 105, 0.16);
}

.subject-card span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(145deg, var(--blue-600), var(--cyan));
  font-size: 0.78rem;
  font-weight: 900;
}

.subject-card strong {
  color: var(--blue-950);
  font-size: 1.05rem;
}

.subject-card small {
  color: var(--slate-500);
  font-weight: 700;
}

.latest-tutor {
  padding: 24px;
  text-align: center;
}

.latest-tutor .avatar {
  margin: 0 auto 16px;
}

.latest-tutor h3 {
  margin-bottom: 6px;
}

.latest-tutor p {
  margin-bottom: 8px;
}

.latest-tutor small {
  color: var(--blue-700);
  font-weight: 800;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.faq-list details {
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 7px 22px rgba(45, 35, 105, 0.05);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--blue-950);
  font-weight: 850;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 18px;
}

@media (max-width: 960px) {
  .hero-layout,
  .feature-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-grid div:nth-child(3) {
    border-top: 1px solid var(--slate-200);
    border-left: 0;
  }

  .metric-grid div:nth-child(4) {
    border-top: 1px solid var(--slate-200);
  }

  .process-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .subject-card-grid,
  .latest-tutors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .homepage-hero {
    padding: 50px 0 70px;
  }

  .hero-content h1 {
    font-size: clamp(2.05rem, 10vw, 2.35rem);
  }

  .hero-content .button-row .btn,
  .page-hero .button-row .btn {
    flex: 1 1 150px;
  }

  .hero-overview-card,
  .tutor-search-card {
    padding: 22px;
  }

  .metric-band {
    margin-top: -20px;
  }

  .metric-grid,
  .subject-card-grid,
  .latest-tutors-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid div + div {
    border-top: 1px solid var(--slate-200);
    border-left: 0;
  }
}
