/* =============================================
   Base
============================================= */

body {
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  color: #1e293b;
  margin: 0;
}

/* Arabic RTL support */
body.rtl {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
body.rtl .ms-auto { margin-left: 0 !important; margin-right: auto !important; }
body.rtl .ms-2    { margin-left: 0 !important; margin-right: .5rem !important; }
body.rtl .me-2    { margin-right: 0 !important; margin-left: .5rem !important; }
body.rtl .text-end { text-align: start !important; }

/* =============================================
   Navbar
============================================= */

.navbar {
  background: #0f172a;
  box-shadow: 0 2px 14px rgba(2, 6, 23, .35);
  position: sticky;
  top: 0;
  z-index: 1030;
  padding-top: .45rem;
  padding-bottom: .45rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.brand-logo {
  height: 52px;
  width: 52px;
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  display: block;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .2px;
  color: #ffffff;
  line-height: 1;
}

.navbar-dark .navbar-nav .nav-link {
  color: #cbd5e1;
  font-weight: 500;
  padding-inline: .85rem;
  position: relative;
  transition: color .15s ease;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus { color: #ffffff; }
.navbar-dark .navbar-nav .nav-link.active { color: #ffffff; }
.navbar-dark .navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #3b82f6;
}
.navbar-toggler { border-color: rgba(255, 255, 255, .25); }

/* =============================================
   Hero
============================================= */

.hero {
  background: linear-gradient(160deg, #1d4ed8 0%, #0ea5e9 100%);
  padding: 80px 0 90px;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero p {
  font-size: 18px;
  opacity: .85;
}

/* =============================================
   Search Box
============================================= */

.search-box {
  background: white;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  margin: -40px auto 40px;
  position: relative;
  z-index: 10;
  max-width: 900px;
}

.search-box .form-select,
.search-box .form-control {
  height: 48px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
}

/* =============================================
   Buttons
============================================= */

.btn-primary {
  background: #2563eb;
  border: none;
}
.btn-primary:hover { background: #1d4ed8; }

.btn-warning {
  background: #f59e0b;
  border: none;
  color: white;
}
.btn-warning:hover { background: #d97706; }

.btn-success { background: #16a34a; border: none; }
.btn-success:hover { background: #15803d; }

/* =============================================
   Services Section
============================================= */

.services-section {
  padding: 60px 0 40px;
  background: white;
}

.service-card {
  background: #ffffff;
  padding: 20px 14px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: .2s;
  cursor: pointer;
}

.service-card h5 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 0;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(37,99,235,.15);
}

.service-icon {
  font-size: 29px;
  line-height: 1;
  color: #2563eb;
  margin-bottom: 8px;
}

/* =============================================
   Worker Cards
============================================= */

.worker-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
  transition: .2s;
  height: 100%;
}

.worker-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(37,99,235,.15);
}

.worker-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f1f5f9;
}

.worker-info {
  padding: 18px;
  text-align: center;
}

.worker-career {
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 4px;
}

.worker-area {
  color: #64748b;
  font-size: .9rem;
  margin-bottom: 4px;
}

.worker-exp {
  color: #94a3b8;
  font-size: .85rem;
  margin-bottom: 12px;
}

/* =============================================
   Forms & Cards
============================================= */

.card {
  border: none;
  border-radius: 14px;
}

.page-header h2 {
  font-weight: 700;
  color: #1e293b;
}

.form-label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.form-control:focus,
.form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* =============================================
   Alerts
============================================= */

.alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
  border-radius: 10px;
}

/* =============================================
   Homepage sections (extracted from inline styles)
============================================= */

/* Generic section spacing / backgrounds */
.section-pad     { padding: 56px 0; }
.section-light   { background: #f8fafc; }
.section-white   { background: #ffffff; }

/* Featured workers */
.featured-section { padding: 48px 0; background: #ffffff; }

/* "How it works" step icons */
.how-icon {
  font-size: 2.8rem;
  line-height: 1;
  color: #2563eb;
  margin-bottom: .25rem;
}

/* Worker-card inline markers (icon before career / area) */
.worker-career i,
.worker-area i { margin-inline-end: 4px; }

/* =============================================
   Worker-help banner (gradient)
============================================= */

.help-banner {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  padding: 48px 0;
  color: #ffffff;
}
.help-banner .help-text { color: #cbd5e1; font-size: 1.05rem; }

/* WhatsApp call-to-action button */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25d366;
  color: #ffffff;
  border-radius: 16px;
  padding: 18px 32px;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(37,211,102,.4);
  transition: transform .15s, box-shadow .15s;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,.5);
  color: #ffffff;
}
.btn-whatsapp i { font-size: 1.6rem; }

/* =============================================
   Download-app section
============================================= */

.app-section { background: #ffffff; padding: 60px 0; }

.app-logo {
  max-width: 240px;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(29,78,216,.18);
}

.app-badge   { font-size: .85rem; padding: 8px 14px; border-radius: 20px; }
.app-brand   { color: #0f172a; }
.app-title   { color: #1d4ed8; }
.app-desc    { color: #64748b; }
.app-meta    { color: #94a3b8; font-size: .85rem; }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1d4ed8;
  color: #ffffff;
  border-radius: 14px;
  padding: 16px 30px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(29,78,216,.35);
  transition: background .15s;
}
.btn-download:hover { background: #1740c0; color: #ffffff; }
.btn-download i { font-size: 1.4rem; }

/* =============================================
   Stats / counters
============================================= */

.stats-section { background: #ffffff; padding: 40px 0; border-top: 1px solid #eef2f7; }
.stat-num   { font-size: 2.5rem; font-weight: 800; color: #1d4ed8; line-height: 1; }
.stat-num i { font-size: 1.6rem; vertical-align: middle; margin-inline-end: 4px; color: #93c5fd; }
.stat-label { color: #64748b; font-weight: 600; margin-top: 6px; }

/* =============================================
   Testimonials
============================================= */

.testimonials-section { background: #f8fafc; padding: 56px 0; }
.testimonial-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  height: 100%;
}
.testimonial-card .stars { color: #f59e0b; font-size: .95rem; }
.testimonial-card .quote { color: #334155; margin: 10px 0 14px; }
.testimonial-card .who   { color: #0f172a; font-weight: 700; }
.testimonial-card .where { color: #94a3b8; font-size: .85rem; }

/* =============================================
   Footer
============================================= */

.site-footer { background: #0f172a; color: #cbd5e1; padding: 48px 0 26px; margin-top: 48px; }
.site-footer .footer-head  { color: #fff; font-weight: 700; margin-bottom: 12px; font-size: .95rem; }
.site-footer .footer-link  { color: #94a3b8; text-decoration: none; font-size: .9rem; padding: 3px 0; }
.site-footer .footer-link:hover { color: #fff; }
.site-footer .footer-muted { color: #94a3b8; font-size: .88rem; }
.site-footer .footer-hr    { border-color: #1e293b; margin: 28px 0 18px; opacity: 1; }

/* =============================================
   Simple content pages (About / Terms / Privacy / Contact)
============================================= */

.content-page { max-width: 820px; margin: 0 auto; padding: 48px 0; }
.content-page h1 { font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.content-page h2 { font-weight: 700; color: #1d4ed8; font-size: 1.25rem; margin: 28px 0 10px; }
.content-page p, .content-page li { color: #475569; line-height: 1.7; }
.content-page .updated { color: #94a3b8; font-size: .88rem; margin-bottom: 28px; }
