/* =========================================
   EDFORTH TUTORS — MAIN STYLES
   ========================================= */

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

/* ---- CSS Variables ---- */
:root {
  --primary:      #f59e0b;
  --primary-dark: #d97706;
  --dark:         #0f172a;
  --dark-2:       #1e293b;
  --mid:          #334155;
  --light:        #f8fafc;
  --text:         #374151;
  --text-light:   #6b7280;
  --white:        #ffffff;
  --radius:       10px;
  --shadow:       0 4px 24px rgba(0,0,0,0.10);
  --transition:   all 0.3s ease;
  --font-main:    'Inter', sans-serif;
  --font-head:    'Poppins', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.super_container { position: relative; width: 100%; overflow: hidden; }

/* =========================================
   TOP BAR
   ========================================= */
.top_bar {
  background: var(--dark);
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.top_bar_container { width: 100%; }
.top_bar_content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top_bar_contact_list {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.top_bar_contact_list li { display: flex; align-items: center; gap: 6px; }
.top_bar_contact_list .question { font-weight: 600; color: var(--primary); }
.top_bar_link { color: rgba(255,255,255,0.8); }
.top_bar_link:hover { color: var(--primary); }
.top_bar_contact_list .fa { color: var(--primary); font-size: 13px; }

/* =========================================
   HEADER
   ========================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.header_container { padding: 14px 0; }
.header_content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo_container a { display: flex; align-items: center; }
.logo_container img { height: 50px; width: auto; max-width: 160px; object-fit: contain; }

/* Main Nav */
.main_nav_container { display: flex; align-items: center; }
.main_nav { display: flex; align-items: center; gap: 4px; }
.main_nav li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  border-radius: 6px;
  position: relative;
  transition: var(--transition);
}
.main_nav li a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  border-radius: 2px;
}
.main_nav li a:hover,
.main_nav li.active a { color: var(--primary); }
.main_nav li a:hover::after,
.main_nav li.active a::after { transform: scaleX(1); }
.main_nav li a.btn { border-radius: 50px !important; }
.main_nav li a.btn::after { display: none; }
.main_nav li a.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245,158,11,0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 6px;
  font-size: 22px;
  color: var(--dark);
  margin-left: 12px;
}
.hamburger:hover { color: var(--primary); }

/* Header Search */
.header_search_container { display: none; }

/* Mobile Slide-out Menu */
.menu {
  position: fixed;
  top: 0; right: -320px;
  width: 300px; height: 100%;
  background: var(--dark);
  z-index: 9999;
  padding: 30px 24px;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.menu.active { right: 0; }
.menu_close_container { display: flex; justify-content: flex-end; margin-bottom: 30px; }
.menu_close {
  width: 32px; height: 32px;
  cursor: pointer;
  display: flex; flex-direction: column;
  justify-content: center; gap: 7px;
}
.menu_close div {
  width: 100%; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.menu_close div:first-child { transform: rotate(45deg) translate(6px, 6px); }
.menu_close div:last-child  { transform: rotate(-45deg) translate(6px, -6px); }
.menu_nav ul { display: flex; flex-direction: column; gap: 4px; }
.menu_nav ul li a {
  display: block;
  padding: 12px 16px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
}
.menu_nav ul li a:hover,
.menu_nav ul li.active a {
  background: rgba(245,158,11,0.15);
  color: var(--primary);
  padding-left: 22px;
}
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s;
}
.menu-overlay.active { opacity: 1; pointer-events: all; }

/* =========================================
   SECTIONS - SHARED
   ========================================= */
section { padding: 80px 0; }
.section-title {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.25;
}
.section-title span { color: var(--primary); }
.section-subtitle {
  color: var(--text-light);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 48px;
}
.section-header { text-align: center; margin-bottom: 50px; }

/* =========================================
   HERO
   ========================================= */
.home_slider_container, .banner, .hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 60%, #1a3a5c 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.home_slider_container::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.slider_content { position: relative; z-index: 2; color: var(--white); }
.slider_content h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
}
.slider_content h1 span { color: var(--primary); }
.slider_content p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 520px;
}
.slider_btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(245,158,11,0.4);
}
.slider_btn:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245,158,11,0.5);
}

/* =========================================
   COURSES
   ========================================= */
.courses { background: var(--light); }
.course_col {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}
.course_col:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.14);
}
.course_image { width: 100%; height: 200px; object-fit: cover; }
.course_body { padding: 20px; }
.course_tag {
  display: inline-block;
  background: rgba(245,158,11,0.12);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.course_title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.course_text { color: var(--text-light); font-size: 14px; line-height: 1.6; }

/* Carousel Controls */
.custom-next, .custom-prev {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}
.custom-next:hover, .custom-prev:hover { background: var(--primary); color: var(--white); }
.owl-dots { text-align: center; margin-top: 24px; }
.owl-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  margin: 0 4px;
  cursor: pointer;
  transition: var(--transition);
}
.owl-dot.active { background: var(--primary); transform: scale(1.3); }
.owl-carousel .owl-item { padding: 10px; }

/* =========================================
   ABOUT
   ========================================= */
.about { background: var(--white); }
.about_image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about_image img { width: 100%; height: 420px; object-fit: cover; }
.about_content { padding-left: 40px; }
.about_content h2 {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}
.about_content h2 span { color: var(--primary); }
.about_content p { color: var(--text-light); margin-bottom: 20px; line-height: 1.8; }
.about_list { margin: 20px 0 30px; }
.about_list li {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px;
  color: var(--text); font-size: 15px;
}
.about_list li .fa { color: var(--primary); margin-top: 4px; flex-shrink: 0; }

/* =========================================
   MILESTONES
   ========================================= */
.milestones {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 70px 0;
}
.milestone_item { text-align: center; padding: 20px; }
.milestone_counter {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.milestone_label {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials { background: var(--light); }
.testimonial_slider { padding: 10px 0; }
.testimonial_item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin: 10px;
  position: relative;
}
.testimonial_item::before {
  content: '\201C';
  position: absolute;
  top: 16px; left: 20px;
  font-size: 60px;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial_text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial_author { display: flex; align-items: center; gap: 12px; }
.testimonial_name { font-weight: 600; color: var(--dark); font-size: 15px; }
.testimonial_role { font-size: 12px; color: var(--text-light); }
.testimonial_stars { color: var(--primary); font-size: 13px; margin-bottom: 4px; }
.testimonial_nav { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.testimonial_nav_prev, .testimonial_nav_next {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.testimonial_nav_prev:hover, .testimonial_nav_next:hover {
  background: var(--primary); color: var(--white);
}

/* =========================================
   CONTACT FORM
   ========================================= */
.contact { background: var(--white); }
.contact_form_container {
  background: var(--light);
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow);
}
.form-control, .form-select {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  width: 100%;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-group { margin-bottom: 20px; }
.mb-3 { margin-bottom: 16px; }
textarea.form-control { resize: vertical; min-height: 120px; }
.btn-primary-custom, #submitForm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245,158,11,0.35);
}
.btn-primary-custom:hover, #submitForm:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.45);
  color: var(--white);
}
.hidden { display: none !important; }
#errorMessage {
  background: #fef2f2; color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 8px; padding: 12px 16px;
  font-size: 14px; margin-bottom: 16px;
}
#confirmationMessage {
  background: #f0fdf4; color: #16a34a;
  border: 1px solid #86efac;
  border-radius: 8px; padding: 12px 16px;
  font-size: 14px; margin-bottom: 16px;
}

/* =========================================
   FOOTER
   ========================================= */
.custom-footer {
  background: var(--dark);
  padding: 64px 0 0;
  color: rgba(255,255,255,0.75);
}
.footer-logo { max-height: 50px; margin-bottom: 16px; }
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  font-style: italic;
  line-height: 1.6;
}
.footer-contact {
  font-size: 14px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.footer-contact .fa { color: var(--primary); }
.footer-contact a { color: rgba(255,255,255,0.75); }
.footer-contact a:hover { color: var(--primary); }
.footer-heading {
  font-family: var(--font-head);
  font-size: 16px; font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative; padding-bottom: 10px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--primary); border-radius: 2px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.footer-links li a::before { content: '›'; color: var(--primary); font-size: 16px; }
.footer-links li a:hover { color: var(--primary); padding-left: 4px; }
.footer-social-links { display: flex; gap: 12px; margin-bottom: 16px; }
.footer-social-links li a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  transition: var(--transition);
}
.footer-social-links li a:hover {
  background: var(--primary); border-color: var(--primary);
  color: var(--white); transform: translateY(-3px);
}
.footer-note { font-size: 13px; color: rgba(255,255,255,0.45); font-style: italic; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 40px 0 0; }
.footer-copyright { padding: 20px 0; font-size: 13px; color: rgba(255,255,255,0.4); }

/* =========================================
   FIND TUTOR PAGE
   ========================================= */
.find-tutor-section { padding: 80px 0; background: var(--light); }
.filter-card {
  background: var(--white); border-radius: 16px;
  padding: 32px; box-shadow: var(--shadow); margin-bottom: 32px;
}
.filter-card h3 {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 700; color: var(--dark);
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 2px solid var(--light);
}
.tutor-card {
  background: var(--white); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow);
  transition: var(--transition); margin-bottom: 24px;
}
.tutor-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.13); }
.tutor-card-body { padding: 24px; }
.tutor-name { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.tutor-subject { color: var(--primary-dark); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.tutor-badge {
  display: inline-block; padding: 3px 10px; border-radius: 50px;
  font-size: 12px; font-weight: 600;
  background: rgba(245,158,11,0.12); color: var(--primary-dark); margin: 2px;
}

/* =========================================
   AUTH PAGES
   ========================================= */
.auth-section {
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 40px 0;
}
.auth-card {
  background: var(--white); border-radius: 20px;
  padding: 48px; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-width: 460px; margin: 0 auto; width: 100%;
}
.auth-title { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.auth-subtitle { color: var(--text-light); font-size: 14px; margin-bottom: 32px; }
.auth-link { color: var(--primary); font-weight: 600; }
.auth-link:hover { color: var(--primary-dark); }

/* =========================================
   DASHBOARD
   ========================================= */
.dash-layout { display: flex; }
.dash-sidebar { background: var(--dark); width: 260px; min-height: 100vh; padding: 24px 0; flex-shrink: 0; }
.dash-main { flex: 1; padding: 32px; background: var(--light); min-height: 100vh; }
.dash-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 24px;
  color: rgba(255,255,255,0.7);
  font-size: 14px; font-weight: 500;
  transition: var(--transition);
}
.dash-nav a:hover, .dash-nav a.active {
  background: rgba(245,158,11,0.15);
  color: var(--primary);
  border-right: 3px solid var(--primary);
}
.stat-card {
  background: var(--white); border-radius: 16px;
  padding: 28px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 20px; margin-bottom: 24px;
}
.stat-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(245,158,11,0.12); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-number { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--dark); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.fade-in    { animation: fadeIn 0.5s ease forwards; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
  .main_nav { display: none; }
  .hamburger { display: flex; align-items: center; }
  .about_content { padding-left: 0; margin-top: 32px; }
  section { padding: 60px 0; }
  .dash-sidebar { width: 200px; }
}
@media (max-width: 768px) {
  .section-title { font-size: 28px; }
  .contact_form_container { padding: 28px 20px; }
  .auth-card { padding: 32px 20px; }
  .milestone_counter { font-size: 40px; }
  .milestones { padding: 48px 0; }
  .top_bar { display: none; }
  .footer-logo-section, .footer-links-section, .footer-social-section { margin-bottom: 36px; }
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; min-height: auto; }
}
@media (max-width: 576px) {
  .header_container { padding: 10px 0; }
  .slider_content h1 { font-size: 28px; }
  .slider_btn { padding: 12px 24px; font-size: 14px; }
  section { padding: 48px 0; }
}
