/* ========================================
   Excalibur Solutions — Main Stylesheet
   Colors: Dark Blue #0d2b55 | Orange #f97316
   Font: Poppins
   ======================================== */

:root {
  --dark-blue:   #0d2b55;
  --dark-blue-2: #0a2244;
  --dark-blue-3: #1a3a6b;
  --orange:      #f97316;
  --orange-2:    #ea6a0d;
  --orange-light:#fff3e8;
  --text-light:  rgba(255,255,255,0.75);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; color: #333; background: #f8f9fb; }
a { transition: all .2s; }

/* ── Utility Classes ── */
.text-orange      { color: var(--orange) !important; }
.text-dark-blue   { color: var(--dark-blue) !important; }
.bg-orange        { background-color: var(--orange) !important; }
.bg-dark-blue     { background-color: var(--dark-blue) !important; }
.bg-orange-light  { background-color: var(--orange-light) !important; }
.text-white-75    { color: rgba(255,255,255,.75) !important; }
.border-orange    { border-color: var(--orange) !important; }

/* ── Buttons ── */
.btn-orange {
  background-color: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 500;
}
.btn-orange:hover, .btn-orange:focus {
  background-color: var(--orange-2);
  border-color: var(--orange-2);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(249,115,22,.35);
}
.btn-outline-orange {
  border: 1.5px solid var(--orange);
  color: var(--orange);
  font-weight: 500;
}
.btn-outline-orange:hover {
  background-color: var(--orange);
  color: #fff;
}
.btn-dark-blue {
  background-color: var(--dark-blue);
  border-color: var(--dark-blue);
  color: #fff;
  font-weight: 500;
}
.btn-dark-blue:hover {
  background-color: var(--dark-blue-2);
  border-color: var(--dark-blue-2);
  color: #fff;
}
.btn-outline-dark-blue {
  border: 1.5px solid var(--dark-blue);
  color: var(--dark-blue);
  font-weight: 500;
}
.btn-outline-dark-blue:hover {
  background-color: var(--dark-blue);
  color: #fff;
}
.btn-outline-white {
  border: 1.5px solid rgba(255,255,255,.7);
  color: #fff;
  font-weight: 500;
}
.btn-outline-white:hover {
  background-color: rgba(255,255,255,.15);
  color: #fff;
  border-color: #fff;
}
.btn-xs {
  padding: .2rem .5rem;
  font-size: .75rem;
  border-radius: .25rem;
}

/* ── Navbar ── */
.et-navbar {
  background-color: var(--dark-blue);
  box-shadow: 0 2px 20px rgba(13,43,85,.3);
  padding: .75rem 0;
}
.et-navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  padding: .4rem .85rem !important;
  border-radius: 6px;
  transition: all .2s;
}
.et-navbar .nav-link:hover,
.et-navbar .nav-link.active {
  color: var(--orange) !important;
  background: rgba(249,115,22,.1);
}
.et-navbar .dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  padding: .5rem;
}
.et-navbar .dropdown-item {
  border-radius: 8px;
  padding: .5rem .75rem;
  font-size: .875rem;
}
.et-navbar .dropdown-item:hover { background: var(--orange-light); color: var(--orange); }

/* ── Hero ── */
.hero-section {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-3) 60%, #1e4a8a 100%);
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3rem;
  min-height: 520px;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.min-vh-hero { min-height: 420px; }
.hero-search-card {
  background: #fff;
  border-radius: 16px;
}

/* ── Stats Bar ── */
.stats-bar { border-top: 3px solid var(--orange); }

/* ── Subject Cards ── */
.subject-card {
  border-radius: 12px !important;
  transition: all .25s;
  background: #fff;
}
.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(249,115,22,.2) !important;
  background: var(--orange-light);
}
.subject-card .fw-semibold { color: var(--dark-blue); }

/* ── Tutor Cards ── */
.tutor-card {
  border-radius: 14px !important;
  transition: all .25s;
}
.tutor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12) !important;
}
.tutor-list-card { border-radius: 12px !important; transition: all .2s; }
.tutor-list-card:hover { box-shadow: 0 6px 20px rgba(13,43,85,.1) !important; }

/* ── How It Works ── */
.how-card { border-radius: 12px; transition: all .25s; }
.how-card:hover { background: var(--orange-light); transform: translateY(-4px); }
.how-icon-wrap {
  width: 72px; height: 72px;
  background: var(--orange-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.how-step-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--orange); color: #fff;
  font-size: .7rem; font-weight: 700;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-3) 100%);
}

/* ── Footer ── */
.et-footer {
  background: #0a1f3f;
}
.footer-links li { margin-bottom: .4rem; }
.footer-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .875rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--orange); }

/* ── Auth Pages ── */
.auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-3) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.auth-container { width: 100%; max-width: 480px; }
.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
}

/* ── Dashboard ── */
.page-header { border-bottom: 3px solid var(--orange); }

/* ── Pagination ── */
.pagination .page-link {
  color: var(--dark-blue);
  border-color: #dee2e6;
}
.pagination .page-item.active .page-link {
  background-color: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.pagination .page-link:hover {
  background-color: var(--orange-light);
  color: var(--orange);
}

/* ── Input focus ── */
.form-control:focus,
.form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 .2rem rgba(249,115,22,.2);
}
.input-group-text {
  background: #f8f9fb;
  border-right: none;
}
.input-group .form-control { border-left: none; }
.input-group .form-control:focus { border-left: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ── Role Tabs (Register) ── */
.btn-check:checked + .btn-outline-dark-blue {
  background-color: var(--dark-blue);
  color: #fff;
  border-color: var(--dark-blue);
}

/* ── Review ── */
.review-item:last-child { border-bottom: none !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-section { padding: 3rem 0 2rem; }
  .auth-card { padding: 1.5rem; }
}
