/* ---------- Basic ---------- */
:root{
  --accent:#0077b6; --muted:#6b7280; --bg:#f6f9fb; --card:#ffffff;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,'Segoe UI',Roboto,Arial;background:var(--bg);color:#0b1720}
.container{max-width:1100px;margin:0 auto;padding:20px}

/* ---------- Header ---------- */
/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: linear-gradient(90deg,#fff,rgba(255,255,255,0.95));
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Brand (logo + title) */
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo-img {
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.brand h1 {
  margin: 0;
  font-size: 1rem;
  color: var(--accent);
}

.tag {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Navigation */
.nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav a {
  color: #0b1720;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}

.add-tutor-btn {
  background: linear-gradient(90deg,var(--accent),#00b4d8);
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
}

/* Mobile Responsive: Logo center */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .brand {
    justify-content: center;
    width: 100%;
  }

  .nav {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 6px;
  }

  .nav a, .add-tutor-btn {
    width: 90%;
    text-align: center;
  }
}

/* ---------- hero ---------- */
.hero{display:flex;gap:20px;align-items:flex-start;padding:28px 20px;background:linear-gradient(180deg,rgba(0,119,182,0.04),rgba(0,180,216,0.01));border-radius:12px;margin:20px auto;max-width:1100px}
.hero-left{flex:1}
.hero-right{width:320px;background:#fff;border-radius:10px;padding:14px;box-shadow:0 6px 20px rgba(2,6,23,0.04)}
.hero h2{margin:0 0 8px;color:var(--accent)}
.hero p{margin:0 0 12px;color:var(--muted)}
.btn-primary{background:var(--accent);color:#fff;border:none;padding:10px 14px;border-radius:8px;cursor:pointer}
.btn-ghost{background:transparent;border:1px solid rgba(2,6,23,0.06);padding:10px 14px;border-radius:8px;cursor:pointer}
.facts{padding:10;margin:8px 0 0;color:var(--muted);font-size:0.95rem}

/* ---------- flag strip ---------- */
.flag-strip{max-width:1100px;margin:18px auto;padding:12px;background:var(--card);border-radius:10px;overflow:hidden;border:1px solid rgba(0,0,0,0.04);box-shadow:0 8px 24px rgba(2,6,23,0.03)}
.flag-track{display:flex;gap:18px;align-items:center;animation:flagMove 30s linear infinite;}
.flag-track img{height:42px;border-radius:6px;box-shadow:0 6px 18px rgba(2,6,23,0.06)}
@keyframes flagMove{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* pause on hover */
.flag-strip:hover .flag-track{animation-play-state:paused}

/* ---------- sections ---------- */
.section{padding:28px 20px}
.section h2{text-align:center;color:var(--accent);margin-bottom:16px}

/* ---------- tutors grid: 3 per row ---------- */
.tutor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tutor {
  background: var(--card);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 8px 24px rgba(2,6,23,0.03);
  text-align: center;
}

.tutor .photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.tutor h3 {
  margin: 6px 0 6px;
  color: #07324a;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.bio {
  color: #374151;
  margin: 8px 0;
  font-size: 0.95rem;
}

.pill {
  display: inline-block;
  background: rgba(2,6,23,0.04);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  margin-right: 8px;
}

.hire-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
}


/* horizontal slide (secondary) */
.tutor-slide{margin-top:18px;overflow:auto;display:flex;gap:12px;padding-bottom:8px}
.tutor-slide .tutor{min-width:260px;flex:0 0 auto}

/* ---------- samples 4 across, but arranged to show 2 columns per group visually ---------- */
.samples-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.sample{background:linear-gradient(180deg,#fff,#fbfdff);padding:14px;border-radius:10px;border:1px solid rgba(0,0,0,0.04);text-align:center}
.sample button{margin-top:8px;padding:8px 12px;border-radius:8px;border:none;background:var(--accent);color:#fff}

/* subjects: 4 boxes each row in two columns visual grouping */
.subjects-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.subject{background:#fff;padding:12px;border-radius:10px;border:1px solid rgba(0,0,0,0.04);text-align:center;font-weight:700;color:#07324a}

/* features grid 4 x 2 (same as 4 across but mobile collapses) */
.features-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.feature{background:#fff;padding:14px;border-radius:10px;text-align:center;border:1px solid rgba(0,0,0,0.04)}

/* faq two column */
.faq-grid{display:flex;gap:14px;justify-content:center;align-items:flex-start}
.faq-grid > div{flex:1;display:flex;flex-direction:column;gap:10px}
.faq-item{background:#fff;padding:12px;border-radius:10px;border:1px solid rgba(0,0,0,0.04)}

/* refs: 3 columns grid on wide screens*/
.refs-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.ref{background:#fff;padding:14px;border-radius:10px;border:1px solid rgba(0,0,0,0.04);text-align:center}

/* reviews grid 3 per column (two columns) but we'll show six in grid 3 columns */
.reviews-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.review{background:#fff;padding:12px;border-radius:10px;border:1px solid rgba(0,0,0,0.04)}
.stars{color:#ffb703;font-weight:700}

/* ---------- popup hire ---------- */
.popup{position:fixed;inset:0;display:none;place-items:center;background:rgba(2,6,23,0.45);z-index:9999;padding:18px}
.modal{background:#fff;padding:18px;border-radius:12px;width:100%;max-width:520px;position:relative}
.modal .close{position:absolute;right:10px;top:8px;border:none;background:transparent;font-size:22px;cursor:pointer}
.modal input,.modal textarea{width:100%;padding:10px;border-radius:8px;border:1px solid rgba(0,0,0,0.06);margin-bottom:10px}
.modal-actions{display:flex;gap:10px}

/* ---------- form (add tutor) styling */
.form-row{margin-bottom:12px}
.form-row label{display:block;margin-bottom:6px;color:var(--muted)}
.form-row input, .form-row textarea{width:100%;padding:10px;border-radius:8px;border:1px solid rgba(0,0,0,0.06)}

/* ---------- WhatsApp ---------- */
/* WhatsApp Vertical Sidebar */
.whatsapp-vertical {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: #25d366;
  color: #fff;
  width: 60px;
  height: 150px;
  border-radius: 30px 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 9999;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  text-decoration: none;
}
.whatsapp-vertical:hover {
  right: 5px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}


/* ---------- footer ---------- */
.site-footer{background:#000;color:#fff;padding:18px;text-align:center;margin-top:28px}

/* ---------- responsive ---------- */
@media (max-width:1000px){
  .tutor-grid{grid-template-columns:repeat(2,1fr)}
  .samples-grid{grid-template-columns:repeat(2,1fr)}
  .subjects-grid{grid-template-columns:repeat(2,1fr)}
  .features-grid{grid-template-columns:repeat(2,1fr)}
  .refs-grid{grid-template-columns:repeat(2,1fr)}
  .reviews-grid{grid-template-columns:repeat(2,1fr)}
  .hero{flex-direction:column}
}
@media (max-width:640px){
  .tutor-grid{grid-template-columns:1fr}
  .flag-track{animation-duration:36s}
  .nav{display:none}
  .samples-grid{grid-template-columns:1fr}
  .subjects-grid{grid-template-columns:1fr}
  .features-grid{grid-template-columns:1fr}
  .refs-grid{grid-template-columns:1fr}
  .reviews-grid{grid-template-columns:1fr}
  .faq-grid{flex-direction:column}
}
