@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1a5276;
  --primary-dark: #154360;
  --primary-light: #2e86c1;
  --primary-soft: #eaf2f8;
  --accent: #f39c12;
  --accent-dark: #d68910;
  --bg: #f8f9fa;
  --card: #ffffff;
  --dark: #1a202c;
  --muted: #64748b;
  --border: rgba(0,0,0,0.08);
  --shadow: 0 4px 24px rgba(26,82,118,0.08);
  --radius: 14px;
  --success: #27ae60;
  --danger: #e74c3c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1.6;
}

/* ========== NAVBAR ========== */
.sb-navbar {
  background: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.sb-nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sb-brand .logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.sb-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.sb-brand-name { font-size: 18px; font-weight: 800; color: var(--primary); letter-spacing: -0.3px; }
.sb-brand-sub { font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 0.5px; }

.sb-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.sb-menu a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.sb-menu a:hover, .sb-menu a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.sb-login {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.sb-login:hover {
  background: var(--primary);
  color: #fff;
}

.sb-daftar {
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.sb-daftar:hover {
  background: var(--primary-dark);
}

/* ========== HERO ========== */
.hero-section {
  width: 100%;
  min-height: 480px;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlideFade 15s infinite;
}

.hero-slider .slide:nth-child(1) { animation-delay: 0s; }
.hero-slider .slide:nth-child(2) { animation-delay: 5s; }
.hero-slider .slide:nth-child(3) { animation-delay: 10s; }

@keyframes heroSlideFade {
  0% { opacity: 0; transform: scale(1.05); }
  5% { opacity: 1; transform: scale(1.05); }
  33% { opacity: 1; transform: scale(1); }
  38% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 82, 118, 0.85);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  z-index: 2;
}

.hero-inner {
  max-width: 720px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.25);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 18px 0;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

.accent {
  color: var(--accent);
  font-weight: 700;
}

/* ========== CONTAINER ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== SEARCH ========== */
.search-box {
  margin: -40px auto 60px;
  max-width: 720px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px 12px 12px 24px;
  display: flex;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 16px 40px rgba(26,82,118,0.15);
  position: relative;
  z-index: 10;
}

.search-box input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 16px;
  font-family: inherit;
  color: var(--dark);
  background: transparent;
}

.search-box input::placeholder { color: #94a3b8; }

.search-box .btn-search {
  padding: 14px 32px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(26,82,118,0.2);
}

.search-box .btn-search:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(26,82,118,0.3); }

/* ========== SECTIONS ========== */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-desc {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  font-size: 1.05rem;
  margin: 0 auto 50px;
}

/* ========== CATEGORY ========== */
.section-category { padding: 100px 0; background: #fff; }

.category-card-item {
  background: var(--primary-soft);
  padding: 40px 24px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.category-card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(26,82,118,0.15);
}

/* ========== STEPS ========== */
.section-steps { padding: 100px 0; background: var(--bg); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.step-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.2s;
}

.step-card:hover { transform: translateY(-4px); }

.step-number {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}

.step-title { font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.step-desc { color: var(--muted); font-size: 0.9rem; }

/* ========== TUTOR CARDS ========== */
.section-rekomendasi { padding: 100px 0; background: #fff; }
.section-rekomendasi .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.tutor-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}

.tutor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(26,82,118,0.12);
}

.tutor-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 auto;
}

.tutor-name {
  font-weight: 700;
  text-align: center;
  margin-top: 12px;
  font-size: 1rem;
  color: var(--dark);
}

.tutor-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.tutor-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.9rem;
}

.rating { color: var(--accent); font-weight: 600; }
.tutor-price { color: var(--primary); font-weight: 700; }

.btn-detail {
  display: block;
  margin-top: 16px;
  background: var(--primary);
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-detail:hover { background: var(--primary-dark); }

/* ========== TESTIMONIALS ========== */
.section-testimoni { padding: 100px 0; background: var(--primary-soft); }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.testi-card {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.testi-card:hover { transform: translateY(-4px); }
.testi-text { font-size: 0.95rem; color: var(--dark); margin-bottom: 16px; line-height: 1.7; }
.testi-user { font-weight: 700; color: var(--primary); }
.testi-rating { color: var(--accent); font-size: 0.9rem; }

/* ========== FAQ ========== */
.section-faq { padding: 100px 0; background: #fff; }

.faq-item {
  background: var(--primary-soft);
  border-radius: 12px;
  padding: 18px 24px;
  border: 1px solid transparent;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.faq-item:hover { border-color: var(--primary-light); }
.faq-question { font-weight: 600; font-size: 0.95rem; color: var(--dark); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--muted); font-size: 0.9rem; }
.faq-item.active .faq-answer { max-height: 200px; margin-top: 10px; }
.faq-item.active { background: #fff; border-color: var(--primary-light); box-shadow: var(--shadow); }

/* ========== CTA ========== */
.section-cta {
  padding: 80px 24px;
  background: linear-gradient(135deg, #1a5276 0%, #2e86c1 100%);
  text-align: center;
  margin: 0 0 40px 0;
  border-radius: 20px;
  width: 100%;
}

.cta-title { font-size: 2.2rem; font-weight: 800; color: #fff; }
.cta-sub { margin-top: 8px; font-size: 1rem; color: rgba(255,255,255,0.8); }

.cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 14px 32px;
  margin-top: 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ========== FOOTER ========== */
.sb-footer {
  background: var(--primary-dark);
  padding: 80px 24px 24px;
  margin-top: 0;
  color: #fff;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  margin-top: 0;
  letter-spacing: -0.3px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 14px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-logo-big { font-size: 26px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.5px; }
.footer-logo-sub { font-size: 13px; opacity: 0.8; margin-bottom: 16px; font-weight: 500; }
.footer-desc { font-size: 15px; opacity: 0.75; margin-bottom: 24px; line-height: 1.7; max-width: 360px; }

.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
}

.footer-socials a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.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: 16px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  margin-left: 20px;
}

.footer-bottom-links a:hover {
  color: #fff;
}

.footer-copy { margin: 0; opacity: 0.6; font-size: 14px; }

/* ========== SEARCH RESULTS ========== */
.card-clean {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
}

.search-result-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 20px; color: var(--dark); }

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.result-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  transition: all 0.25s;
  box-shadow: var(--shadow);
}

.result-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(26,82,118,0.12); }

.result-photo {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary);
  font-weight: 700;
}

.result-name { font-size: 1rem; font-weight: 700; margin-top: 12px; }
.result-subject { color: var(--muted); margin-bottom: 4px; font-size: 0.9rem; }
.result-price { color: var(--primary); font-weight: 700; margin: 6px 0; }

.result-btn {
  padding: 10px 16px;
  width: 100%;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  font-size: 14px;
  transition: background 0.2s;
}

.result-btn:hover { background: var(--primary-dark); }

/* ========== DETAIL TUTOR ========== */
.detail-wrapper { max-width: 1100px; margin: 40px auto; padding: 0 24px; }

.profile-main {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.detail-head { display: flex; gap: 32px; flex-wrap: wrap; }

.detail-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--primary-soft);
  overflow: hidden;
  background: var(--primary-soft);
}

.detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.detail-info .mapel { font-size: 1.1rem; color: var(--primary); font-weight: 600; }
.detail-rating { margin-top: 8px; color: var(--accent); font-size: 1rem; font-weight: 700; }

.detail-section { margin-top: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.detail-section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }

.skill-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.skill-badges span {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}

.price-box {
  background: var(--primary-soft);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #d4e6f1;
  margin-top: 10px;
}

.price-box strong { font-size: 1.2rem; color: var(--primary); }

.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.review-user { font-weight: 700; color: var(--primary); }
.review-rating { color: var(--accent); font-weight: 700; }

/* ========== AUTH PAGES ========== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a5276 0%, #2e86c1 60%, #3498db 100%);
  padding: 24px;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.auth-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--primary-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo svg { width: 32px; height: 32px; fill: var(--primary); }

.auth-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 2px;
}

.auth-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 24px;
}

.auth-tabs {
  display: flex;
  border-radius: 10px;
  background: var(--primary-soft);
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--primary);
  color: #fff;
}

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 600; color: var(--dark); margin-bottom: 6px; font-size: 14px; }

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d5dbdb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-input:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(46,134,193,0.1); }

.form-control { /* alias */
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d5dbdb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.form-control:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(46,134,193,0.1); }

.password-toggle { position: relative; }
.toggle-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--primary-dark); }

.auth-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.auth-footer a { color: var(--primary); font-weight: 600; text-decoration: none; }

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-error { background: #fdedee; color: #c0392b; border: 1px solid #f5c6cb; }
.alert-success { background: #eafaf1; color: #1e8449; border: 1px solid #a9dfbf; }

/* ========== ANIMATIONS ========== */
.fade-up { opacity: 0; transform: translateY(20px); transition: 0.5s ease; }
.fade-up.show { opacity: 1; transform: translateY(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-section { min-height: 280px; }
  .sb-menu { display: none; }
  .detail-head { text-align: center; justify-content: center; }
  .section-title { font-size: 1.6rem; }
  .auth-card { padding: 28px 20px; }
}

html { overflow-y: scroll; }
