/* ══════════════════════════════════════════════════════
   ACADEMIST — Shared sub-page styles
   Used by: tutors.html, leaderboard.html, about.html, contact.html
   ══════════════════════════════════════════════════════ */

/* ── Shared hero ── */
.page-hero {
  background: var(--ti);
  padding: 100px 24px 64px;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content:''; position:absolute; inset:0;
  pointer-events:none;
}
.page-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8); padding: 6px 16px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 24px;
}
.page-hero h1 {
  font-size: clamp(2rem,5vw,3.2rem); font-weight: 900; color: #fff;
  line-height: 1.15; margin-bottom: 16px; letter-spacing: -.02em;
}
.page-hero h1 em { font-style: normal; color: var(--su); }
.page-hero p {
  font-size: 1rem; color: rgba(255,255,255,.65);
  max-width: 560px; margin: 0 auto; line-height: 1.75;
}

/* ── Page body wrapper ── */
.page-body { background: var(--bg); min-height: 60vh; }
.page-section { padding: 64px 24px; max-width: 1200px; margin: 0 auto; }
.page-section-title {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.page-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900;
  color: var(--ti); margin-bottom: 12px;
}
.page-section-sub {
  font-size: .9rem; color: var(--muted); max-width: 600px; line-height: 1.7; margin-bottom: 40px;
}

/* ── Shared CTA band ── */
.page-cta {
  background: var(--ti); padding: 64px 24px; text-align: center;
}
.page-cta h2 { color: white; font-size: 1.8rem; font-weight: 900; margin-bottom: 12px; }
.page-cta p  { color: rgba(255,255,255,.65); margin-bottom: 28px; max-width: 500px; margin-left:auto; margin-right:auto; }
.page-cta-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.page-cta-btns a { padding:14px 28px; border-radius:10px; font-weight:800; font-size:.85rem; text-decoration:none; transition:all .2s; }
.page-cta-primary  { background:var(--su); color:#111; }
.page-cta-secondary { background:rgba(255,255,255,.1); color:white; border:1px solid rgba(255,255,255,.2); }
.page-cta-primary:hover  { filter:brightness(1.08); transform:translateY(-1px); }
.page-cta-secondary:hover { background:rgba(255,255,255,.15); }

/* ── Shared footer ── */
.page-footer {
  background:#0d1117; padding:32px 24px; text-align:center;
  border-top:1px solid rgba(255,255,255,.06);
}
.page-footer img  { height:32px; opacity:.7; margin-bottom:16px; }
.page-footer p    { font-size:.75rem; color:rgba(255,255,255,.3); }
.page-footer-links { margin-top:12px; display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }
.page-footer-links a { font-size:.72rem; color:rgba(255,255,255,.3); text-decoration:none; transition:color .2s; }
.page-footer-links a:hover { color:var(--su); }
.page-footer-links a.active { color:var(--su); }

/* ══════════════════════════════════════════════════════
   TUTORS PAGE
   ══════════════════════════════════════════════════════ */
.tutors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 24px;
}
.tutor-card {
  background: white; border-radius: 18px;
  border: 1px solid #e2e8f0; overflow: hidden;
  transition: box-shadow .2s, transform .15s;
}
.tutor-card:hover { box-shadow: 0 10px 36px rgba(0,0,0,.1); transform: translateY(-3px); }

.tutor-card-top {
  padding: 28px 24px 20px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
}
.tutor-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  font-size: 1.8rem; font-weight: 900; color: white;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.tutor-name  { font-size: .95rem; font-weight: 800; color: var(--ti); margin-bottom: 4px; }
.tutor-title { font-size: .75rem; color: var(--muted); margin-bottom: 12px; line-height: 1.4; }
.tutor-subjects { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.tutor-subject-tag {
  padding: 3px 9px; border-radius: 999px;
  font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}

.tutor-card-body { padding: 16px 24px; }
.tutor-bio { font-size: .82rem; color: var(--text); line-height: 1.7; margin-bottom: 14px; }
.tutor-stats-row { display: flex; gap: 8px; }
.tutor-stat {
  flex: 1; background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 10px; padding: 10px 8px; text-align: center;
}
.tutor-stat span  { display: block; font-size: .95rem; font-weight: 900; color: var(--ti); }
.tutor-stat small { font-size: .6rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.tutor-card-footer {
  padding: 14px 24px; background: #f8fafc;
  border-top: 1px solid #f1f5f9; display: flex; gap: 8px;
}
.tutor-btn-book {
  flex: 1; padding: 11px; border-radius: 9px; border: none;
  font-family: var(--font); font-size: .78rem; font-weight: 800;
  cursor: pointer; text-align: center; text-decoration: none;
  color: white; transition: filter .2s; display: block;
}
.tutor-btn-book:hover { filter: brightness(1.08); }
.tutor-btn-wa {
  padding: 11px 14px; border-radius: 9px;
  background: #25D366; color: white;
  border: none; font-family: var(--font); font-size: .78rem;
  font-weight: 700; cursor: pointer; text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  transition: filter .2s;
}
.tutor-btn-wa:hover { filter: brightness(1.08); }

/* Tutor filter */
.tutors-filter {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
}
.tutors-filter-btn {
  padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid #e2e8f0; background: white;
  color: var(--muted); font-family: var(--font);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; cursor: pointer; transition: all .2s;
}
.tutors-filter-btn:hover,
.tutors-filter-btn.active { background: var(--ti); border-color: var(--ti); color: white; }

/* Tutor page hero accent */
.page-hero.tutors-hero::before {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(20,184,166,.18), transparent);
}

/* ══════════════════════════════════════════════════════
   LEADERBOARD PAGE
   ══════════════════════════════════════════════════════ */
.page-hero.lb-hero::before {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(250,204,21,.15), transparent);
}

.lb-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
}
.lb-tab {
  padding: 9px 20px; border-radius: 999px;
  border: 1.5px solid #e2e8f0; background: white;
  color: var(--muted); font-family: var(--font);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; cursor: pointer; transition: all .2s;
}
.lb-tab:hover,
.lb-tab.active { background: var(--su); border-color: var(--su); color: #111; }

.lb-table {
  background: white; border-radius: 16px;
  border: 1px solid #e2e8f0; overflow: hidden;
}
.lb-header {
  display: grid; grid-template-columns: 60px 1fr 120px 100px 100px;
  padding: 14px 20px; background: var(--ti); gap: 12px;
  font-size: .65rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
}
.lb-row {
  display: grid; grid-template-columns: 60px 1fr 120px 100px 100px;
  padding: 14px 20px; border-bottom: 1px solid #f1f5f9;
  align-items: center; gap: 12px;
  transition: background .15s;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: #f8fafc; }
.lb-row.gold   { background: linear-gradient(135deg,#FACC1508,transparent); }
.lb-row.silver { background: linear-gradient(135deg,#e2e8f008,transparent); }
.lb-row.bronze { background: linear-gradient(135deg,#F9731608,transparent); }

.lb-rank {
  font-size: 1.1rem; font-weight: 900; text-align: center;
}
.lb-rank.r1 { color: #FACC15; }
.lb-rank.r2 { color: #94a3b8; }
.lb-rank.r3 { color: #F97316; }
.lb-rank.rn { color: var(--muted); font-size: .9rem; }

.lb-student { display: flex; align-items: center; gap: 12px; }
.lb-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  font-weight: 800; font-size: .78rem; color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lb-student-name  { font-size: .85rem; font-weight: 700; color: var(--ti); }
.lb-student-state { font-size: .7rem; color: var(--muted); }

.lb-exam { font-size: .72rem; font-weight: 700; color: var(--muted); }

.lb-score {
  font-size: .95rem; font-weight: 900; text-align: center;
}
.lb-score.high   { color: var(--mg); }
.lb-score.medium { color: var(--io); }
.lb-score.low    { color: #ef4444; }

.lb-streak { display: flex; align-items: center; gap: 4px; justify-content: center; font-size: .82rem; font-weight: 700; color: var(--io); }

.lb-stats-strip {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 16px; margin-bottom: 32px;
}
.lb-strip-card {
  background: white; border-radius: 14px; padding: 20px;
  border: 1px solid #e2e8f0; text-align: center;
}
.lb-strip-card .num { font-size: 1.8rem; font-weight: 900; color: var(--ti); display: block; }
.lb-strip-card .lbl { font-size: .68rem; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* Mobile leaderboard */
@media (max-width: 640px) {
  .lb-header, .lb-row { grid-template-columns: 48px 1fr 90px; }
  .lb-header > :nth-child(4),
  .lb-header > :nth-child(5),
  .lb-row > :nth-child(4),
  .lb-row > :nth-child(5) { display: none; }
}

/* ══════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════ */
.page-hero.about-hero::before {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,70,229,.18), transparent);
}

.about-story {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; margin-bottom: 64px;
}
@media (max-width: 768px) { .about-story { grid-template-columns: 1fr; gap: 32px; } }

.about-story-text h2 { font-size: 1.6rem; font-weight: 900; color: var(--ti); margin-bottom: 16px; line-height: 1.3; }
.about-story-text p  { font-size: .9rem; color: var(--text); line-height: 1.8; margin-bottom: 16px; }
.about-story-text p:last-child { margin-bottom: 0; }
.about-story-text strong { color: var(--ti); }

.about-visual {
  background: linear-gradient(135deg, var(--ti), #1e293b);
  border-radius: 20px; padding: 36px;
  display: flex; flex-direction: column; gap: 16px;
}
.about-stat-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
}
.about-stat-icon { font-size: 1.6rem; flex-shrink: 0; }
.about-stat-val  { font-size: 1.4rem; font-weight: 900; color: var(--su); display: block; line-height: 1; }
.about-stat-lbl  { font-size: .7rem; color: rgba(255,255,255,.5); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

.about-values {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 20px; margin-bottom: 64px;
}
.about-value-card {
  background: white; border-radius: 16px; padding: 24px;
  border: 1px solid #e2e8f0; border-top: 4px solid var(--accent, var(--er));
}
.about-value-icon { font-size: 2rem; margin-bottom: 12px; }
.about-value-title { font-size: .9rem; font-weight: 800; color: var(--ti); margin-bottom: 8px; }
.about-value-text  { font-size: .82rem; color: var(--muted); line-height: 1.7; }

.about-founder {
  background: white; border-radius: 20px; padding: 36px;
  border: 1px solid #e2e8f0; display: flex; gap: 28px;
  align-items: flex-start; margin-bottom: 48px;
}
@media (max-width: 600px) { .about-founder { flex-direction: column; } }
.about-founder-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ac), var(--er));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900; color: white; flex-shrink: 0;
}
.about-founder-info h3 { font-size: 1rem; font-weight: 800; color: var(--ti); margin-bottom: 4px; }
.about-founder-info .title { font-size: .75rem; color: var(--muted); margin-bottom: 14px; }
.about-founder-info p { font-size: .85rem; color: var(--text); line-height: 1.8; }
.about-founder-info p + p { margin-top: 12px; }

.about-milestones { margin-bottom: 48px; }
.milestone-list { display: flex; flex-direction: column; gap: 0; position: relative; }
.milestone-list::before {
  content:''; position:absolute; left:20px; top:0; bottom:0;
  width:2px; background: linear-gradient(to bottom, var(--er), var(--ca));
}
.milestone-item {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 0 0 28px 52px; position: relative;
}
.milestone-item:last-child { padding-bottom: 0; }
.milestone-dot {
  position: absolute; left: 12px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--er); border: 3px solid var(--bg);
  flex-shrink: 0;
}
.milestone-year { font-size: .72rem; font-weight: 800; color: var(--er); letter-spacing: .06em; text-transform: uppercase; min-width: 40px; padding-top: 2px; }
.milestone-content h4 { font-size: .88rem; font-weight: 800; color: var(--ti); margin-bottom: 4px; }
.milestone-content p  { font-size: .78rem; color: var(--muted); line-height: 1.6; }

/* ══════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════ */
.page-hero.contact-hero::before {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(249,115,22,.15), transparent);
}

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 40px; align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* Contact info cards */
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
  background: white; border-radius: 14px; padding: 20px 22px;
  border: 1px solid #e2e8f0; display: flex; gap: 16px; align-items: flex-start;
  transition: box-shadow .2s;
}
.contact-info-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 12px;
  font-size: 1.2rem; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.contact-info-label { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-info-value { font-size: .85rem; font-weight: 700; color: var(--ti); }
.contact-info-sub   { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.contact-info-link  { text-decoration: none; color: inherit; }
.contact-info-link:hover .contact-info-value { color: var(--er); }

/* Contact form */
.contact-form-card {
  background: white; border-radius: 18px; padding: 36px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.contact-form-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--ti); margin-bottom: 4px; }
.contact-form-card p  { font-size: .82rem; color: var(--muted); margin-bottom: 24px; }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .cf-row { grid-template-columns: 1fr; } }

.cf-field { margin-bottom: 14px; }
.cf-label {
  display: block; font-size: .68rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.cf-input, .cf-select, .cf-textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-family: var(--font); font-size: .85rem; color: var(--ti);
  outline: none; transition: border .2s;
  background: white; box-sizing: border-box;
}
.cf-input:focus, .cf-select:focus, .cf-textarea:focus { border-color: var(--er); }
.cf-textarea { resize: vertical; min-height: 120px; }

.cf-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--er), var(--dy));
  color: white; border: none; border-radius: 10px;
  font-family: var(--font); font-size: .88rem; font-weight: 800;
  cursor: pointer; transition: filter .2s, transform .2s;
  letter-spacing: .04em; margin-top: 4px;
}
.cf-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }

.cf-success {
  text-align: center; padding: 40px 20px; display: none;
}
.cf-success-icon { font-size: 3rem; margin-bottom: 12px; }
.cf-success h3   { font-size: 1.1rem; font-weight: 800; color: var(--ti); margin-bottom: 8px; }
.cf-success p    { font-size: .85rem; color: var(--muted); }

/* Map placeholder */
.contact-map {
  margin-top: 48px; background: white; border-radius: 18px;
  border: 1px solid #e2e8f0; overflow: hidden;
  display: flex; flex-direction: column;
}
.contact-map-header {
  padding: 20px 24px; border-bottom: 1px solid #f1f5f9;
}
.contact-map-header h3 { font-size: .9rem; font-weight: 800; color: var(--ti); }
.contact-map-header p  { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.contact-map-frame {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  height: 220px; display: flex; align-items: center;
  justify-content: center; flex-direction: column; gap: 8px;
}
.contact-map-frame span { font-size: 2.5rem; }
.contact-map-frame p { font-size: .78rem; color: var(--muted); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.faq-item {
  background: white; border-radius: 12px; border: 1px solid #e2e8f0;
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px; font-size: .88rem; font-weight: 700;
  color: var(--ti); cursor: pointer; display: flex;
  align-items: center; justify-content: space-between; gap: 12px;
  transition: background .15s;
}
.faq-q:hover { background: #f8fafc; }
.faq-arrow { font-size: .75rem; color: var(--muted); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 20px; max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: .83rem; color: var(--text); line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 16px; }

/* Social links */
.social-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.social-link {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  background: white; border: 1.5px solid #e2e8f0;
  font-size: .78rem; font-weight: 700; color: var(--ti);
  text-decoration: none; transition: all .2s;
}
.social-link:hover { border-color: var(--er); color: var(--er); transform: translateY(-1px); }
