/* ==========================================================================
   ENG Academy Design System — White + Navy (#0D3559) + Orange (#F56A00)
   Bilingual LTR (EN) & RTL (AR) Support
   ========================================================================== */

:root {
  --navy: #0d3559;
  --navy-dark: #07223b;
  --navy-soft: #144875;
  --orange: #f56a00;
  --orange-hover: #dc5b00;
  --orange-50: #fff4eb;
  --orange-100: #ffe4cc;
  --white: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #fafafa;
  --border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --gold: #f59e0b;
  --shadow-sm: 0 2px 8px rgba(13, 53, 89, 0.06);
  --shadow-md: 0 10px 30px rgba(13, 53, 89, 0.09);
  --shadow-lg: 0 20px 45px rgba(13, 53, 89, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: "Cairo", "Inter", Tahoma, Arial, sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(245, 106, 0, 0.26);
}

.btn-primary:hover {
  background: var(--orange-hover);
  box-shadow: 0 8px 20px rgba(245, 106, 0, 0.34);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

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

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--navy);
  background: var(--bg-subtle);
}

.btn-green {
  background: var(--success);
  color: var(--white);
}

.btn-green:hover {
  background: #15803d;
}

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

.btn-sm {
  padding: 8px 15px;
  font-size: 0.875rem;
}

/* ---------- Header / Navbar (Crisp White so Logo1-Banner.png blends cleanly) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(13, 53, 89, 0.05);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-banner {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 6px 2px;
  position: relative;
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--orange);
}

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

.nav-pricing-link {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 10px;
}

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

.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

.lang-btn:hover {
  border-color: var(--navy);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 148px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: none;
  z-index: 120;
}

.lang-dropdown.open .lang-menu {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: start;
}

.lang-option:hover,
.lang-option.active {
  background: var(--orange-50);
  color: var(--orange);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 34, 59, 0.55);
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(320px, 86vw);
  background: var(--white);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-list a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--navy);
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
  background: var(--orange-50);
  color: var(--orange);
}

/* ---------- Hero Section ---------- */
.hero-section {
  padding: 58px 0 68px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--orange-50);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 1.14;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.hero-title .accent {
  color: var(--orange);
  display: block;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 1.03rem;
}

.hero-bullets li strong {
  color: var(--navy);
}

.bullet-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 9px;
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

/* ---------- Stats Strip (Deep Navy) ---------- */
.stats-strip {
  background: var(--navy);
  color: var(--white);
  padding: 36px 0;
}

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

.stat-item {
  padding: 8px 12px;
}

.stat-value {
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

/* ---------- Generic Section Layout ---------- */
.section {
  padding: 74px 0;
}

.section-subtle {
  background: var(--bg-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
}

.section-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.section-cta {
  text-align: center;
  margin-top: 34px;
}

/* ---------- 4 Steps Grid ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange-100);
}

.step-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--orange-50);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 14px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: var(--navy);
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Features 4-Column ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--orange-50);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--navy);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---------- Live Sessions Promo ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 44px;
}

.promo-content h2 {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  color: var(--navy);
  font-weight: 800;
}

.promo-content p {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.meet-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--orange-50);
  border: 1px solid var(--orange-100);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  margin-bottom: 24px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.94rem;
}

/* ---------- Carousel Controls & Cards ---------- */
.carousel-wrapper {
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 14px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--orange);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 106, 0, 0.25);
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.carousel-arrow:hover {
  background: var(--orange-hover);
  transform: scale(1.05);
}

/* Tutor Card */
.tutor-card {
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

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

.tutor-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tutor-avatar {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--orange-100);
}

.tutor-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.tutor-specialty {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: var(--orange);
  font-weight: 600;
}

.tutor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.87rem;
  color: var(--text-muted);
}

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

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-free {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--orange-50);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
}

.tutor-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.tutor-actions .btn {
  flex: 1;
}

/* Testimonial Card */
.testimonial-card {
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quote-icon {
  color: var(--orange);
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

.testimonial-text {
  margin: 0;
  color: var(--text-main);
  font-size: 0.97rem;
  flex: 1;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.student-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.student-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.stars {
  color: var(--gold);
  letter-spacing: 1px;
  font-size: 0.95rem;
}

/* ---------- Pricing Cards (3 EGP Packages) ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.pricing-card.popular {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
}

.pricing-head {
  padding: 24px 24px 18px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.pricing-card.popular .pricing-head {
  background: var(--orange-50);
}

.popular-pill {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--orange);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 700;
}

.pricing-name {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
}

.pricing-sub {
  margin: 0;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9rem;
}

.pricing-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pricing-amount {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.pricing-currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange);
}

.pricing-per {
  color: var(--text-light);
  font-size: 0.9rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-icon {
  color: var(--orange);
  font-weight: 800;
}

.pricing-body .btn {
  margin-top: auto;
  width: 100%;
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

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

.faq-trigger {
  width: 100%;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: start;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
}

.faq-chevron {
  color: var(--orange);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  display: none;
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.faq-item.open .faq-panel {
  display: block;
}

/* ---------- Footer (Deep Navy) ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 28px;
}

.newsletter-banner {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
}

.newsletter-banner h4 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  color: var(--white);
}

.newsletter-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex: 1;
  max-width: 440px;
}

.newsletter-form input {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--white);
  color: var(--text-main);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.footer-logo-badge img {
  height: 36px;
  width: auto;
}

.footer-logo-badge span {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
}

.footer-blurb {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
  margin: 0 0 18px;
  max-width: 340px;
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease;
}

.social-icon:hover {
  background: var(--orange);
}

.footer-col h5 {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 0.98rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  transition: color 0.16s ease;
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Subpage Hero Banner (Deep Navy) ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 52px 0;
  text-align: center;
}

.page-banner h1 {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 800;
}

.page-banner p {
  margin: 0 auto;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Forms, Auth, Filter & Profile Layout ---------- */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 12px;
  margin-bottom: 26px;
}

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

.form-control,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-main);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 106, 0, 0.15);
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.auth-wrapper {
  max-width: 540px;
  margin: 54px auto;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
}

.role-chooser {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 740px;
  margin: 48px auto;
}

.role-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.role-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Tutor Profile + Availability Slot Picker */
.profile-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.tabs-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1.5px solid var(--border);
  margin: 22px 0;
}

.tab-btn {
  padding: 10px 18px;
  border: 0;
  background: transparent;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
}

.tab-btn.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.date-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.date-pill,
.slot-pill {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.date-pill:hover,
.slot-pill:hover {
  border-color: var(--orange);
}

.date-pill.active,
.slot-pill.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

/* Status & Toast Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 14px;
}

.alert-success {
  background: var(--success-bg);
  color: #166534;
}

.alert-error {
  background: var(--danger-bg);
  color: #991b1b;
}

.toast-region {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px;
  z-index: 300;
  display: grid;
  gap: 10px;
}

.toast {
  background: var(--navy);
  color: var(--white);
  padding: 13px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border-inline-start: 4px solid var(--orange);
  font-size: 0.92rem;
  font-weight: 600;
  max-width: 360px;
}

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 22px;
  z-index: 90;
  background: #16a34a;
  color: var(--white);
  padding: 11px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
}

.whatsapp-float:hover {
  background: #15803d;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links,
  .nav-actions .btn,
  .nav-actions .nav-pricing-link {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-grid,
  .promo-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid,
  .tutors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-track {
    grid-auto-columns: calc((100% - 20px) / 2);
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid,
  .features-grid,
  .pricing-grid,
  .tutors-grid,
  .form-grid-2,
  .role-chooser,
  .filter-bar,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .carousel-track {
    grid-auto-columns: 100%;
  }

  .newsletter-form {
    flex-direction: column;
    max-width: 100%;
  }
}
