:root {
  --navy: #0b1d35;
  --ink: #172033;
  --muted: #64748b;
  --blue: #4f6f91;
  --blue-soft: #dce8f3;
  --gold: #c7a767;
  --gold-soft: #f5edd9;
  --gray: #f4f7fb;
  --line: #d8e1eb;
  --white: #fff;
  --success: #0f7a4c;
  --danger: #b42318;
  --shadow: 0 18px 48px rgba(11, 29, 53, .12);
  --shadow-soft: 0 10px 26px rgba(11, 29, 53, .08);
  --radius: 8px;
  --container: min(1180px, calc(100vw - 36px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
textarea { resize: vertical; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  padding: 16px max(18px, calc((100vw - 1180px) / 2));
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216,225,235,.76);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 900;
}
.brand strong { display: block; color: var(--navy); font-size: 16px; }
.brand small { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; }
.site-nav { display: flex; align-items: center; gap: 22px; color: var(--navy); font-weight: 750; font-size: 14px; }
.site-nav a { transition: color .18s ease, transform .18s ease; }
.site-nav a:hover { color: var(--blue); transform: translateY(-1px); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(11,29,53,.18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(11,29,53,.22); }
.btn-small { min-height: 38px; padding: 8px 12px; font-size: 13px; }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); box-shadow: none; }
.full-width { width: 100%; }
.text-link { color: var(--blue); font-weight: 850; }
.muted { color: var(--muted); }
.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.flash {
  width: var(--container);
  margin: 16px auto;
  padding: 13px 15px;
  border-radius: 8px;
  font-weight: 760;
}
.flash-success { background: #edfdf5; color: var(--success); border: 1px solid #b8efd2; }
.flash-error { background: #fff1f0; color: var(--danger); border: 1px solid #ffd2cc; }
.flash-info { background: #eef6ff; color: #184e7a; border: 1px solid #cfe6ff; }

.hero {
  position: relative;
  min-height: clamp(650px, 78vh, 820px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-media {
  background-size: cover;
  background-position: center right;
  filter: saturate(1.02) contrast(1.03);
}
.hero-overlay {
  background: linear-gradient(90deg, rgba(11,29,53,.96) 0%, rgba(11,29,53,.82) 38%, rgba(11,29,53,.25) 70%, rgba(11,29,53,.12) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 86px 0 96px;
  color: var(--white);
}
.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--white);
  font-size: clamp(44px, 8vw, 88px);
  line-height: .96;
  letter-spacing: 0;
}
.hero p:not(.eyebrow) {
  max-width: 670px;
  margin: 22px 0 0;
  color: #dce8f3;
  font-size: clamp(17px, 2vw, 22px);
}
.hero-search {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 10px;
  width: min(920px, 100%);
  margin-top: 32px;
  padding: 10px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-search label {
  display: grid;
  gap: 4px;
  padding: 4px 12px;
  border-right: 1px solid var(--line);
  color: var(--navy);
  font-weight: 850;
  font-size: 12px;
}
.hero-search label:last-of-type { border-right: 0; }
.hero-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.trust-strip span {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: #eef5fc;
  background: rgba(255,255,255,.08);
  font-size: 13px;
  font-weight: 760;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 76px 0;
}
.section-tight { padding-top: 54px; }
.band,
.band-light {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100vw - 1180px) / 2));
  padding-right: max(18px, calc((100vw - 1180px) / 2));
}
.band { background: var(--gray); }
.band-light { background: #fbfcfe; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  max-width: 710px;
  margin: 0 auto 30px;
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }
.section-head.split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
}
h1, h2, h3 { color: var(--navy); letter-spacing: 0; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1; margin: 0 0 16px; }
h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.05; margin: 0 0 14px; }
h3 { margin: 0 0 8px; font-size: 20px; }
p { margin: 0 0 16px; color: var(--muted); }

.category-grid,
.value-grid,
.trust-grid,
.testimonial-grid,
.plan-grid,
.blog-grid,
.tutor-grid {
  display: grid;
  gap: 18px;
}
.category-grid { grid-template-columns: repeat(4, 1fr); }
.category-tile,
.value-card,
.quote-card,
.plan-card,
.resource-card,
.dash-card,
.side-panel,
.notice-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.category-tile {
  min-height: 156px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .18s ease, border-color .18s ease;
}
.category-tile:hover { transform: translateY(-4px); border-color: var(--gold); }
.category-tile span { color: var(--navy); font-weight: 900; font-size: 18px; }
.category-tile small { color: var(--muted); line-height: 1.45; }

.tutor-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.tutor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 22px;
}
.tutor-card {
  --card-accent: var(--blue);
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(11, 29, 53, .09);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tutor-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--card-accent);
}
.tutor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 54px rgba(11, 29, 53, .14);
  border-color: #c5d3e2;
}
.tutor-card-premium { border-color: rgba(199,167,103,.8); }
.tutor-card-main {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 24px 18px;
}
.tutor-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-self: start;
  background:
    radial-gradient(circle at 32% 25%, rgba(255,255,255,.32), transparent 36%),
    var(--card-accent);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(11, 29, 53, .20);
  overflow: hidden;
}
.tutor-avatar span { font-size: 23px; font-weight: 950; letter-spacing: 0; }
.tutor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tutor-card * { min-width: 0; }
.tutor-summary { min-width: 0; }
.tutor-name-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.tutor-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
  color: #111827;
}
.verified-mark {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 2px solid #2563eb;
  border-radius: 50%;
  color: #2563eb;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}
.rate { color: #111827; font-size: 30px; line-height: 1; font-weight: 950; white-space: nowrap; }
.rate span { color: var(--muted); font-size: 14px; font-weight: 750; }
.headline {
  margin: 5px 0 8px;
  color: #667085;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 650;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.rating-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 14px;
}
.stars {
  color: #f5a400;
  letter-spacing: 0;
  white-space: nowrap;
  font-size: 18px;
  line-height: 1;
}
.location-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: #667085;
  font-weight: 650;
}
.pin-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-block;
  color: #6b7280;
}
.pin-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.pin-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}
.pin-icon svg,
.location-line svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  fill: currentColor;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 11px 0; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
}
.badge-gold { background: var(--gold-soft); color: #6d520f; }
.badge-soft { background: #f1f5f9; color: #475569; border: 1px solid var(--line); }
.subject-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.subject-row span,
.subject-row a {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f7fd;
  border: 1px solid transparent;
  color: #1455d9;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}
.lesson-chip-row span:nth-child(2) { background: #e9f8f1; color: #067647; }
.lesson-chip-row span:nth-child(3) { background: #f4efff; color: #5b21b6; }
.subject-row .chip-more {
  background: var(--white);
  color: #667085;
  border-color: var(--line);
}
.tutor-meta-badges {
  margin-top: 10px;
  margin-bottom: 0;
}
.tutor-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  min-height: 82px;
  padding: 16px 24px 18px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}
.tutor-price-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.free-lesson-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #0ab371;
  color: var(--white);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}
.tutor-card-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}
.tutor-card-actions form { margin: 0; }
.btn-card-primary {
  min-height: 44px;
  padding-inline: 16px;
  background: #1459ff;
  border-color: #1459ff;
  box-shadow: 0 10px 20px rgba(20, 89, 255, .24);
}
.btn-card-secondary {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.card-actions form { margin: 0; }

.process-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 34px;
  align-items: start;
}
.process-steps { display: grid; gap: 14px; }
.process-steps div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.process-steps strong {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--gold);
}
.value-grid { grid-template-columns: 1.1fr repeat(2, 1fr); align-items: stretch; }
.value-card { padding: 20px; }
.value-card strong,
.trust-grid strong { display: block; margin-bottom: 8px; color: var(--navy); font-size: 18px; }
.city-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.city-cloud a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
}
.testimonial-grid { grid-template-columns: repeat(3, 1fr); }
.quote-card { margin: 0; padding: 22px; }
.quote-card blockquote { margin: 14px 0; color: var(--ink); font-size: 18px; line-height: 1.45; }
.quote-card figcaption { color: var(--navy); font-weight: 900; }
.quote-card figcaption span { display: block; color: var(--muted); font-weight: 650; font-size: 13px; }
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.cta-split > div {
  padding: 34px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
}
.cta-split > div + div { background: #eef3f8; color: var(--navy); border: 1px solid var(--line); }
.cta-split h2 { color: inherit; }
.cta-split p { color: rgba(255,255,255,.78); }
.cta-split > div + div p { color: var(--muted); }
.trust-grid { grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { padding: 20px; border-left: 3px solid var(--gold); background: var(--white); border-radius: var(--radius); }
.faq-blog { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 14px 16px;
}
summary { cursor: pointer; color: var(--navy); font-weight: 900; }
details p { margin-top: 10px; }
.blog-list { display: grid; gap: 12px; }
.blog-list a,
.resource-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.blog-list strong,
.resource-card h2 { color: var(--navy); font-size: 19px; margin: 0; }
.blog-list span,
.resource-card span { color: var(--muted); font-size: 13px; }

.page-hero {
  width: var(--container);
  margin: 0 auto;
  padding: 70px 0 44px;
}
.page-hero.compact h1 { max-width: 900px; }
.page-hero.compact p { max-width: 760px; font-size: 18px; }
.search-shell {
  width: var(--container);
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.results { min-width: 0; }
.filters {
  position: sticky;
  top: 88px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.filters form,
.stack-form { display: grid; gap: 14px; }
label { color: var(--navy); font-weight: 850; font-size: 13px; }
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--white);
  color: var(--ink);
  outline: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,111,145,.16); }
select[multiple] { min-height: 130px; }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkline input { width: auto; margin: 0; }
.results-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
}
.results-head strong { color: var(--navy); }
.empty-state {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  text-align: center;
}
.pagination { display: flex; gap: 8px; margin-top: 22px; }
.pagination a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 850;
}
.pagination a.active { background: var(--navy); color: var(--white); }

.profile-hero {
  width: var(--container);
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}
.profile-identity-panel,
.profile-photo-panel {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f8fbff;
}
.profile-identity-panel {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 28px;
}
.profile-identity-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--profile-accent, var(--blue));
}
.profile-photo-panel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.profile-photo-panel .badge { margin: 12px; }
.profile-photo-panel {
  min-height: 360px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 28px;
}
.profile-photo-panel img {
  width: 168px;
  height: 168px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(11, 29, 53, .16);
}
.profile-photo-panel .badge { margin: 0; justify-self: center; }
.profile-portrait {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 25%, rgba(255,255,255,.32), transparent 36%),
    var(--profile-accent, var(--blue));
  color: var(--white);
  box-shadow: 0 18px 36px rgba(11, 29, 53, .18);
  overflow: hidden;
}
.profile-portrait span { font-size: 40px; font-weight: 950; }
.profile-portrait img { width: 100%; height: 100%; object-fit: cover; }
.profile-identity-copy { display: grid; gap: 7px; }
.profile-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #6d520f;
  font-size: 12px;
  font-weight: 950;
}
.profile-identity-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.05;
}
.profile-identity-copy p { margin: 0; color: var(--muted); font-weight: 750; }
.profile-mini-stats {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.profile-mini-stats div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.profile-mini-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.profile-mini-stats strong {
  color: var(--navy);
  font-size: 15px;
  text-align: right;
}
.profile-main {
  align-self: center;
  padding: 8px 0;
}
.profile-main h1 {
  max-width: 940px;
  margin-bottom: 14px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
}
.profile-main .badge-row { margin-bottom: 14px; }
.profile-headline {
  max-width: 820px;
  font-size: 22px;
  line-height: 1.35;
  color: #243044;
  font-weight: 760;
}
.profile-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 18px;
}
.profile-fact {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.profile-fact.wide { grid-column: span 2; }
.profile-fact > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.profile-fact strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.15;
}
.profile-fact small { color: var(--muted); font-weight: 750; }
.profile-fact .stars { font-size: 17px; }
.profile-main .subject-row { margin-top: 14px; }
.profile-main .subject-row a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.profile-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.profile-actions form { margin: 0; }
.profile-actions .btn {
  min-height: 52px;
  padding-inline: 24px;
}
.profile-layout {
  width: var(--container);
  margin: 42px auto 72px;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 30px;
  align-items: start;
}
.profile-content {
  display: grid;
  gap: 14px;
  padding-top: 6px;
}
.profile-content h2 {
  margin: 20px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 27px;
}
.profile-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.profile-content p { max-width: 820px; font-size: 17px; color: #334155; }
.profile-side { display: grid; gap: 16px; position: sticky; top: 88px; }
.side-panel { padding: 20px; }
.side-panel h3 { margin-bottom: 14px; }
.side-panel dl { display: grid; gap: 10px; margin: 0 0 18px; }
.side-panel dt { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.side-panel dd { margin: 0; color: var(--navy); font-weight: 800; }
.related-link {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
  font-weight: 800;
}
.review-box { margin-top: 20px; }
.review {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}
.review blockquote { margin: 8px 0; color: var(--ink); }

.plan-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan-card { padding: 24px; position: relative; }
.featured-plan { border-color: var(--gold); box-shadow: 0 22px 54px rgba(199,167,103,.20); }
.plan-price { color: var(--navy); font-size: 42px; font-weight: 950; margin: 16px 0; }
.plan-price span { color: var(--muted); font-size: 16px; font-weight: 750; }
.plan-card ul { padding-left: 18px; color: var(--ink); }
.checkout-form { display: grid; gap: 10px; margin-top: 18px; }
.notice-panel { padding: 16px 18px; margin-bottom: 18px; color: var(--navy); background: #fbfcfe; }

.article {
  width: min(820px, calc(100vw - 36px));
  margin: 62px auto 80px;
}
.article h1 { font-size: clamp(38px, 6vw, 64px); }
.article-meta { color: var(--muted); font-weight: 760; }
.article-body { font-size: 18px; color: #334155; }
.article-body p { color: #334155; }
.blog-grid { grid-template-columns: repeat(3, 1fr); }

.auth-shell {
  width: min(1040px, calc(100vw - 36px));
  min-height: 72vh;
  margin: 48px auto 80px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 20px;
  align-items: stretch;
}
.auth-shell.wide { width: var(--container); grid-template-columns: 1.35fr .65fr; }
.auth-panel,
.auth-note {
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.auth-panel { background: var(--white); box-shadow: var(--shadow); }
.auth-note { background: var(--navy); color: var(--white); }
.auth-note h2 { color: var(--white); }
.auth-note p { color: #dce8f3; }
.two-col { grid-template-columns: 1fr 1fr; }
.span-2 { grid-column: 1 / -1; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--blue); font-weight: 850; }

.site-footer {
  padding: 54px max(18px, calc((100vw - 1180px) / 2)) 86px;
  background: #08172a;
  color: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 26px;
}
.footer-brand strong,
.site-footer h3 { color: var(--white); }
.site-footer p,
.site-footer small { color: #b8c7d8; }
.site-footer a:not(.brand) {
  display: block;
  margin: 8px 0;
  color: #dce8f3;
  font-weight: 760;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #b8c7d8;
  font-size: 14px;
}
.mobile-sticky {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 50;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mobile-sticky a {
  min-height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
  box-shadow: var(--shadow);
}
.mobile-sticky a + a { background: var(--gold); color: #111827; }

.dashboard-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--gray);
}
.dash-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px;
  background: var(--navy);
  color: var(--white);
}
.dash-sidebar .brand strong { color: var(--white); }
.dash-sidebar .brand small { color: #b8c7d8; }
.dash-sidebar nav { display: grid; gap: 6px; margin-top: 28px; }
.dash-sidebar nav a {
  padding: 11px 12px;
  border-radius: 8px;
  color: #dce8f3;
  font-weight: 800;
}
.dash-sidebar nav a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.dash-main { min-width: 0; padding: 22px; }
.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.dash-top span { display: block; color: var(--muted); font-size: 13px; }
.dash-menu { display: none; border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 8px 10px; }
.dash-section { margin: 22px 0; }
.dash-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}
.dash-title h1 { font-size: clamp(30px, 4vw, 48px); }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.admin-metrics { grid-template-columns: repeat(7, 1fr); }
.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.metric span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.metric strong { display: block; margin-top: 6px; color: var(--navy); font-size: 24px; line-height: 1.1; }
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}
.dash-card { padding: 20px; min-width: 0; }
.compact-list { display: grid; gap: 10px; }
.compact-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}
.conversation-admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.conversation-admin-row > a { min-width: 0; }
.compact-list img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; }
.compact-list small { display: block; color: var(--muted); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th,
.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.data-table th { color: var(--navy); font-size: 12px; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }
.inline-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.inline-controls select,
.inline-controls input { width: auto; margin: 0; }
.tiny-input { width: 54px !important; }
.admin-detail {
  margin: 10px 0;
}

.message-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 18px;
  margin-top: 22px;
  min-height: calc(100vh - 120px);
}
.message-list,
.message-thread {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.message-list { padding: 16px; overflow: auto; }
.message-list h1 { font-size: 28px; }
.message-list a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.message-list a.active,
.message-list a:hover { border-color: var(--line); background: #f8fbff; }
.message-list span { color: var(--muted); font-size: 13px; }
.message-thread { display: grid; grid-template-rows: auto 1fr auto; min-height: 620px; overflow: hidden; }
.thread-head { padding: 16px; border-bottom: 1px solid var(--line); }
.thread-head span { display: block; color: var(--muted); font-size: 13px; }
.thread-messages {
  padding: 18px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bubble {
  max-width: min(640px, 86%);
  padding: 12px 14px;
  border-radius: 8px;
  background: #f1f5f9;
}
.bubble.mine {
  align-self: flex-end;
  background: var(--navy);
  color: var(--white);
}
.bubble p { margin: 0 0 6px; color: inherit; }
.bubble small { color: inherit; opacity: .7; }
.attachment-link {
  display: inline-flex;
  margin: 4px 0 8px;
  color: inherit;
  font-weight: 850;
  text-decoration: underline;
}
.message-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}
.message-compose textarea { margin: 0; }

@media (max-width: 1080px) {
  .category-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .tutor-grid, .plan-grid, .blog-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-metrics { grid-template-columns: repeat(3, 1fr); }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .search-shell, .profile-layout { grid-template-columns: 1fr; }
  .filters, .profile-side { position: static; }
}

@media (max-width: 820px) {
  body { padding-bottom: 64px; }
  .site-header { align-items: center; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: fixed;
    inset: 74px 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .hero { min-height: auto; }
  .hero-media { background-position: 60% center; opacity: .58; }
  .hero-overlay { background: linear-gradient(90deg, rgba(11,29,53,.96), rgba(11,29,53,.82)); }
  .hero-content { padding: 62px 0 66px; }
  .hero h1 { font-size: clamp(42px, 12vw, 64px); }
  .hero-search { grid-template-columns: 1fr; }
  .hero-search label { border-right: 0; border-bottom: 1px solid var(--line); }
  .section, .band, .band-light { padding-top: 50px; padding-bottom: 50px; }
  .section-head.split, .dash-title, .results-head, .footer-bottom { display: grid; align-items: start; }
  .category-grid, .value-grid, .trust-grid, .testimonial-grid, .plan-grid, .blog-grid, .tutor-grid, .cta-split, .faq-blog, .process-grid, .dash-grid, .metric-grid, .admin-metrics, .profile-hero, .auth-shell, .auth-shell.wide { grid-template-columns: 1fr; }
  .tutor-list { grid-template-columns: 1fr; }
  .tutor-card { grid-template-columns: 1fr; }
  .tutor-card-main { grid-template-columns: 78px 1fr; gap: 16px; padding: 22px 20px 18px; }
  .tutor-avatar { width: 78px; height: 78px; }
  .tutor-avatar span { font-size: 24px; }
  .tutor-card-footer { grid-template-columns: 1fr; gap: 12px; padding: 16px 20px 20px; }
  .tutor-card-actions { width: 100%; margin-left: 0; }
  .tutor-card-actions .btn, .tutor-card-actions form { flex: 1; }
  .profile-hero { margin-top: 20px; }
  .profile-identity-panel { padding: 24px; }
  .profile-facts { grid-template-columns: 1fr 1fr; }
  .profile-fact.wide { grid-column: span 2; }
  .two-col { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-sticky { display: grid; }
  .dashboard-body { display: block; }
  .dash-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(300px, 86vw);
    transform: translateX(-105%);
    transition: transform .2s ease;
    z-index: 80;
  }
  .sidebar-open .dash-sidebar { transform: translateX(0); }
  .dash-menu { display: inline-block; }
  .dash-main { padding: 14px; }
  .message-layout { grid-template-columns: 1fr; }
  .message-thread { min-height: 520px; }
  .message-compose { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  :root { --container: min(100vw - 24px, 1180px); }
  .brand small { display: none; }
  .hero-content { padding-top: 42px; }
  .card-actions, .profile-actions { display: grid; grid-template-columns: 1fr; }
  .card-actions .btn, .card-actions form, .profile-actions form, .profile-actions .btn { width: 100%; }
  .tutor-card-main { grid-template-columns: 1fr; }
  .tutor-card h3 { font-size: 21px; }
  .tutor-card-actions { display: grid; grid-template-columns: 1fr; }
  .tutor-card-actions .btn, .tutor-card-actions form { width: 100%; }
  .profile-main h1 { font-size: 40px; }
  .profile-facts { grid-template-columns: 1fr; }
  .profile-fact.wide { grid-column: auto; }
  .profile-actions { display: grid; grid-template-columns: 1fr; }
  .range-row { grid-template-columns: 1fr; }
  .auth-panel, .auth-note, .dash-card, .cta-split > div { padding: 20px; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
}
