:root {
  --bg: #0b122b;
  --surface: #f8fafc;
  --text: #111827;
  --muted: #475569;
  --primary: #ff5e7a;
  --secondary: #f59e0b;
  --accent: #10b981;
  --tertiary: #8b5cf6;
  --quaternary: #38bdf8;
  --card: rgba(255,255,255,0.94);
  --shadow: 0 26px 60px rgba(15,23,42,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: radial-gradient(circle at top left, #fdf2f8 0%, #dbeafe 40%, #fef9c3 100%);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.main-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(236,72,153,0.10));
  padding: 16px 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: linear-gradient(135deg, #ff7c7c, #7c6cff);
  color: #fff;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.site-nav a:nth-child(1) { background: #6366f1; }
.site-nav a:nth-child(2) { background: #10b981; }
.site-nav a:nth-child(3) { background: #f97316; }
.site-nav a:nth-child(4) { background: #ec4899; }
.site-nav a:nth-child(5) { background: #22c55e; }
.site-nav a:nth-child(6) { background: #8b5cf6; }
.site-nav a:nth-child(7) { background: #0ea5e9; }
.site-nav a:nth-child(8) { background: #f59e0b; }
.site-nav a:nth-child(9) { background: #f43f5e; }
.site-nav a:nth-child(10) { background: #fb7185; }
.site-nav a:nth-child(11) { background: #38bdf8; }
.site-nav a:nth-child(12) { background: #a855f7; }
.site-nav a:nth-child(13) { background: #14b8a6; }
.site-nav a:nth-child(14) { background: #f97316; }
.site-nav a:nth-child(15) { background: #22c55e; }
.site-nav a:nth-child(16) { background: #f472b6; }
.site-nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
  opacity: 0.97;
}

main { padding: 24px; max-width: 1300px; margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
  padding: 42px;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #eff6ff 0%, #fdf2f8 45%, #ede9fe 100%);
}
.hero-content h2 { font-size: clamp(2.4rem, 4vw, 3.6rem); margin-bottom: 16px; }
.hero-content p { font-size: 1.05rem; max-width: 700px; margin-bottom: 24px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
  background: #3b82f6;
  color: #ffffff;
}
button:hover, .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
  opacity: 0.98;
  filter: brightness(1.04);
}
a.button {
  color: #ffffff;
}
a.button.light {
  background: #ec4899;
  color: #ffffff;
}
.primary {
  background: #3b82f6;
  color: #ffffff;
}
.secondary {
  background: #10b981;
  color: #ffffff;
}
.tertiary {
  background: #f59e0b;
  color: #111827;
}
.success {
  background: #06b6d4;
  color: #ffffff;
}
.warning {
  background: #f97316;
  color: #ffffff;
}
.danger {
  background: #ef4444;
  color: #ffffff;
}
.info {
  background: #8b5cf6;
  color: #ffffff;
}
.light {
  background: #ec4899;
  color: #ffffff;
}
button#logoutButton, #logoutButton, button#searchTutors, #searchTutors, button#searchStudents, #searchStudents, button#sendMessage, #sendMessage, button#loadHistory, #loadHistory {
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}
button#logoutButton, #logoutButton {
  background: #f59e0b;
  color: #111827;
}
button#searchTutors, #searchTutors {
  background: #38bdf8;
  color: #111827;
}
button#searchStudents, #searchStudents {
  background: #22c55e;
  color: #ffffff;
}
button#sendMessage, #sendMessage {
  background: #ec4899;
  color: #ffffff;
}
button#loadHistory, #loadHistory {
  background: #8b5cf6;
  color: #ffffff;
}
a.button[href$="contact.html"] {
  background: #22c55e;
  color: #ffffff;
}
a.button[href$="blogs.html"] {
  background: #fb7185;
  color: #ffffff;
}
a.button[href$="student-register.html"] {
  background: #38bdf8;
  color: #111827;
}
a.button[href$="tutor-register.html"] {
  background: #f97316;
  color: #ffffff;
}
a.button[href$="find-tutor.html"] {
  background: #8b5cf6;
  color: #ffffff;
}
a.button[href$="find-students.html"] {
  background: #22c55e;
  color: #ffffff;
}
.hero-visual { display: grid; gap: 18px; }
.hero-card {
  padding: 26px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.7));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
}
.hero-card .badge { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: rgba(124, 108, 255, 0.16); color: #4b2efe; font-weight: 700; margin-bottom: 12px; }
.hero-card h3 { margin-bottom: 10px; }

.feature-grid,
.steps-grid,
.city-links { display: grid; gap: 20px; }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 32px; }
.feature-card {
  padding: 26px;
  border-radius: 28px;
  color: #fff;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.gradient-2 { background: linear-gradient(135deg, #f9c846, #ff7c7c); }
.gradient-3 { background: linear-gradient(135deg, #7c6cff, #2dd4bf); }
.gradient-4 { background: linear-gradient(135deg, #47b5ff, #a855f7); }
.gradient-5 { background: linear-gradient(135deg, #16a34a, #22d3ee); }
.gradient-6 { background: linear-gradient(135deg, #ff7c7c, #ffca6a); margin: 40px 0; padding: 40px; border-radius: 32px; color: #111827; }
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { opacity: 0.9; }

.city-cta { margin-bottom: 32px; }
.city-links { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.city-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  min-height: 56px;
  border-radius: 22px;
  color: #ffffff;
  font-weight: 700;
  border: none;
  text-align: center;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.city-links a:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.city-links a:nth-child(1) { background: #6366f1; }
.city-links a:nth-child(2) { background: #10b981; }
.city-links a:nth-child(3) { background: #f97316; }
.city-links a:nth-child(4) { background: #ec4899; }
.city-links a:nth-child(5) { background: #0ea5e9; }
.city-links a:nth-child(6) { background: #f59e0b; color: #111827; }
.city-links a:nth-child(7) { background: #8b5cf6; }
.city-links a:nth-child(8) { background: #22d3ee; color: #111827; }
.city-links a:nth-child(9) { background: #14b8a6; }
.city-links a:nth-child(10) { background: #f472b6; }
.city-links a:nth-child(11) { background: #a855f7; }
.city-links a:nth-child(12) { background: #e11d48; }

.how-it-works { margin: 40px 0; }
.steps-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step-box { padding: 24px; border-radius: 28px; background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(251,207,232,0.92)); box-shadow: var(--shadow); }
.step-box span { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #ec4899, #22c55e); color: #fff; font-weight: 700; margin-bottom: 18px; }

.page-content { padding-bottom: 80px; }
.search-intro { margin: 32px 0; background: rgba(255,255,255,0.8); padding: 24px; border-radius: 24px; }
.profile-grid { display: grid; gap: 24px; }
.profile-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow);
}
.profile-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.profile-card h4 { margin-bottom: 10px; }
.profile-card p { margin-bottom: 6px; color: var(--muted); }
.info-message { padding: 24px; background: rgba(255,255,255,0.8); border-radius: 20px; color: #1f2937; }

.form-card {
  max-width: 980px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248, 244, 255, 0.95));
  padding: 32px;
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form-group { display: grid; gap: 8px; }
.form-group label { font-weight: 700; }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: 14px 16px; border: 1px solid rgba(15,23,42,0.15); border-radius: 16px; background: #fff; }
textarea { min-height: 120px; resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; gap: 16px; margin-top: 18px; }
.message-box { margin-top: 18px; padding: 18px 20px; border-radius: 22px; background: rgba(124, 108, 255, 0.12); color: #1e293b; }

.main-footer {
  margin-top: 40px;
  padding: 28px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(59,130,246,0.85));
  color: #f8fafc;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #ffffff;
}
.footer-links a:nth-child(1) { background: #8b5cf6; }
.footer-links a:nth-child(2) { background: #22c55e; }
.footer-links a:nth-child(3) { background: #f97316; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .profile-card { grid-template-columns: 1fr; }
  .site-nav { justify-content: center; }
}

@media (max-width: 680px) {
  .site-nav { gap: 6px; }
  .site-nav a { padding: 8px 10px; font-size: 0.95rem; }
  .hero { padding: 24px; }
  .main-header { padding: 12px 14px; }
}
