/* ============================================================
   VidyaSetu - Modern Tutor Marketplace & Demo Booking CSS
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --accent-green: #10b981;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography & Subheaders */
h1, h2, h3, h4 {
  color: var(--secondary);
  font-weight: 800;
  line-height: 1.25;
}

.subhead-pill {
  display: inline-block;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: #cbd5e1;
}

.btn-outline:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--secondary);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-block {
  width: 100%;
}

/* Announcement Top Bar */
.top-bar {
  background: #1e1b4b;
  color: #e0e7ff;
  font-size: 13px;
  padding: 8px 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-link {
  color: var(--accent);
  font-weight: 600;
}

/* Navbar */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 26px;
  background: var(--primary-light);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-weight: 500;
  font-size: 15px;
  color: #334155;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--secondary);
}

/* Hero Section */
.hero-section {
  padding: 60px 0 70px 0;
  background: radial-gradient(circle at 50% 10%, #eff6ff 0%, #f8fafc 80%);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dbeafe;
  color: #1e40af;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #2563eb;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.hero-title {
  font-size: 46px;
  max-width: 850px;
  margin: 0 auto 16px auto;
  letter-spacing: -1px;
}

.highlight-text {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 40px auto;
}

/* Search Filter Box */
.search-filter-card {
  background: #ffffff;
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-width: 1050px;
  margin: 0 auto;
  text-align: left;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.2fr 1fr auto;
  gap: 16px;
  align-items: flex-end;
}

.filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #f8fafc;
  color: var(--text-dark);
  transition: all 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-search {
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  height: 48px;
  font-size: 15px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-search:hover {
  background-color: #d97706;
  transform: translateY(-1px);
}

.quick-tags {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.tag-label {
  font-weight: 600;
}

.tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.tag:hover {
  background: #e2e8f0;
  color: var(--primary);
}

/* Trust Stats Bar */
.trust-bar {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 30px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.trust-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.trust-desc {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* How It Works */
.how-it-works {
  padding: 80px 0;
}

.section-head {
  margin-bottom: 50px;
}

.section-head h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  font-weight: 900;
  color: #e2e8f0;
}

.step-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Featured / Tutors Section */
.tutors-section {
  padding: 80px 0;
  background: #f1f5f9;
}

.tutor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 10px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s;
}

.tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tutors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

/* Tutor Card */
.tutor-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s;
}

.tutor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.tutor-top {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.tutor-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  flex-shrink: 0;
}

.tutor-meta h4 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.badge-verified {
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tutor-qualification {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.tutor-rating {
  font-size: 13px;
  font-weight: 600;
  color: #b45309;
}

.tutor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tutor-badge-mode {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
}

.tutor-badge-mode.online {
  background: #eff6ff;
  color: #1d4ed8;
}

.tutor-badge-mode.offline {
  background: #ecfdf5;
  color: #047857;
}

.tutor-info-row {
  font-size: 13px;
  color: #475569;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tutor-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-box {
  font-size: 12px;
  color: var(--text-muted);
}

.price-box strong {
  font-size: 18px;
  color: var(--secondary);
}

/* Why Us Section */
.why-us {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.feat-icon {
  font-size: 34px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
  background: #ffffff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.test-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  font-size: 16px;
  margin-bottom: 12px;
}

.quote {
  font-size: 15px;
  font-style: italic;
  color: #334155;
  margin-bottom: 24px;
  line-height: 1.6;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer .avatar {
  width: 44px;
  height: 44px;
  background: #cbd5e1;
  color: #1e293b;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.reviewer strong {
  display: block;
  font-size: 14px;
}

.reviewer span {
  font-size: 12px;
  color: var(--text-muted);
}

/* FAQs */
.faqs-section {
  padding: 80px 0;
}

.faq-container {
  max-width: 850px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-icon {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
  background: #ffffff;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
  padding: 40px 0 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  color: #ffffff;
  font-size: 36px;
  margin-bottom: 12px;
}

.cta-box p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 680px;
  margin: 0 auto 30px auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: #0b132b;
  color: #94a3b8;
  padding: 70px 0 0 0;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 20px;
}

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

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

.footer-desc {
  font-size: 14px;
  margin: 16px 0;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.trust-badge-footer {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #38bdf8;
  margin-top: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  font-size: 13px;
}

.bottom-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.bottom-links {
  display: flex;
  gap: 20px;
}

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

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
}

.modal-close:hover {
  background: #e2e8f0;
}

.modal-header {
  margin-bottom: 24px;
}

.badge-accent {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.modal-header h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.form-check-group {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #475569;
  margin: 18px 0 24px 0;
}

.form-check-group input {
  margin-top: 3px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-action {
    grid-column: span 2;
  }
  .features-grid, .steps-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }
  .menu-toggle {
    display: block;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .filter-action {
    grid-column: span 1;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .features-grid, .steps-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .tutor-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
