/* ===== HERO v2 (centered, with overlay) ===== */
:root {
  --raqmi-navy: #1a2a43;
  --raqmi-accent: #00a2e0;
  --raqmi-secondary: #ff6f3c; /* Energetic coral orange */
}

/* Global font setup: English = Poppins, Arabic = Cairo */
html[dir="ltr"] body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[dir="rtl"] body {
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


.hero-v2 {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;         /* center everything */
  text-align: center;              /* center text */
  background: url('../images/saudi.jpg') center/cover no-repeat;
  overflow: hidden;                /* ensure overlay edges are clipped */
  padding-bottom: 50px;
  padding-top: 50px;
}

/* the dark layer so text pops on the photo */
.hero-v2 .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(0,0,0,0.75), /* was 0.45 */
    rgba(0,0,0,0.65)  /* was 0.35 */
  );
}

.hero-v2 .hero-content {
  position: relative;              /* above overlay */
  z-index: 1;
  color: #fff;
  padding: 40px 16px;
  max-width: 900px;
  margin: 0 auto;
}

/* Headline */
.heading-primary {
  margin: 0 0 20px 0;
  line-height: 1.2;
  font-weight: 700;
  padding-top: 20px;
  padding-bottom: 3%;
}

.heading-primary .line1 {
  display: block;
  font-size: clamp(36px, 5vw, 56px); /* bigger */
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.heading-primary .line2 {
  display: block;
  font-size: clamp(32px, 3vw, 50px); /* bigger */
  color: var(--raqmi-accent);
  background: none; /* removed box */
  padding: 0;
  border-radius: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.heading-primary .accent {
  color: var(--raqmi-accent);      /* blue accent for “Raqmi” */
}

/* Tagline */
.hero-tagline {
  margin-top: -30px;
  font-size: clamp(16px, 2.1vw, 18px);
  max-width: 760px;
  color: #f3f7fb;
  margin-left: auto;
  margin-right: auto;
}

/* Search */
.hero-search .input-group { justify-content: center; }
.hero-search .form-control {
  border: 2px solid rgba(255,255,255,0.85);
  border-right: 0;
  background: rgba(255,255,255,0.95);
  color: #1a2a43;
  margin-top: 15px;
  margin-bottom: 15px;
}
.hero-search .form-control::placeholder { color: #667085; }

.btn-theme-dark {
  background-color: var(--raqmi-navy);
  color: #fff;
  border: 1px solid var(--raqmi-navy);
  }
.btn-theme-dark:hover {
  background-color: var(--raqmi-accent);
  border-color: var(--raqmi-accent);
  color: #fff;
}
.btn-theme-light {
  background-color: #ffffff;
  color: var(--raqmi-navy);
  border: 1px solid #ffffff;
}
.btn-theme-light:hover {
  background-color: rgba(255,255,255,0.85);
  color: var(--raqmi-accent);
  border-color: rgba(255,255,255,0.85);
}
.hero-cta .btn {
  padding: 10px 18px;
  font-weight: 700;
  border-radius: 8px;
}

/* ===== HERO STATS (NO BOXES) ===== */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 25px;
  padding-top: 20px;
}

.hero-stats .stat {
  background: none; /* removed box */
  box-shadow: none;
  padding: 0;
  min-width: auto;
  color: #ffffff; /* white text over hero bg */
  text-align: center;
}

.hero-stats .value {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  color: #00a2e0;
}

.hero-stats .label {
  margin-top: 4px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

@media (max-width: 767.98px) {
  .hero-stats {
    gap: 20px;
  }
  .hero-stats .value {
    font-size: 26px;
  }
}

/* =========================
   Header (logo → contact → nav)
   ========================= */
.custom-header {
  background: #fff;
  border-bottom: 2px solid #eaeaea;
  min-height: 85px;
  display: flex;
  align-items: center;
  font-family: 'Poppins','Inter','Montserrat',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

/* Logo */
.custom-header .navbar-brand img {
  max-height: 55px;
  object-fit: contain;
  display: block;
}

/* Contact row after logo */
.custom-header .contact-info {
  margin-right: auto;             /* pushes nav to the right */
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;                /* avoid overflow on narrower screens */
}

.custom-header .contact-info span,
.custom-header .contact-info a {
  color: #1a2a43;                 /* navy */
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1;
}

.custom-header .contact-info a:hover {
  color: #00a2e0;                 /* accent */
  text-decoration: none;
}

.custom-header .contact-info i {
  color: #1a2a43;
  font-size: 1.1rem;
  margin-right: 6px;
}

/* Nav (right side) */
.custom-header .navbar-nav {
  align-items: center;
  flex-wrap: wrap;                /* prevents overflow when narrow */
}

.custom-header .nav-link {
  color: #1a2a43 !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 10px;
}

.custom-header .nav-link:hover {
  color: #00a2e0 !important;
  text-decoration: none;
}

/* Spacing utilities used in your markup */
.custom-header .navbar-brand.me-4 { margin-right: 1.5rem !important; }
.custom-header .nav-item.mx-2 { margin-left: .5rem !important; margin-right: .5rem !important; }

/* Responsive rules */
@media (max-width: 1199.98px) {
  .custom-header .contact-info {
    gap: 12px;
  }
}

@media (max-width: 991.98px) {
  /* Keep everything readable on tablets */
  .custom-header { min-height: 80px; }
  .custom-header .contact-info span,
  .custom-header .contact-info a { font-size: 0.9rem; }
}

@media (max-width: 767.98px) {
  /* On mobile: keep layout in one line as long as possible; if cramped, contact wraps gracefully */
  .custom-header .navbar-brand img { max-height: 48px; }
  .custom-header .contact-info { gap: 10px; }
  .custom-header .nav-link { padding: 6px 8px; font-size: 0.9rem; }
}

/* Optional: ensure Bootstrap’s light toggler (if you add one later) is visible on white bg */
.navbar-light .navbar-toggler { border-color: rgba(0,0,0,.1); }
.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(26,42,67,0.8)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}




/* Search bar */
.search-input {
  height: 48px;
  border-radius: 6px 0 0 6px;
  border: 1px solid #ccc;
  padding: 0 15px;
  font-size: 1rem;
}

/* Search button */
.search-btn {
    margin-top: 15px!important;
  height: 48px;
  border-radius: 0 6px 6px 0;
  border: none;
  background-color: var(--raqmi-secondary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}



.search-btn:hover {
  background-color: #e64e30; /* Slightly darker coral */
}
/* Energetic coral orange button (same as search button) */
.btn-energetic {
  background-color: #ff6b35;
  color: #fff;
  border: none;
  padding: 10px 25px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
.btn-energetic:hover {
  background-color: #e65a28;
  color: #fff;
}

/* Theme light blue button */
.btn-theme-light-blue {
  background-color: #00a2e0;
  color: #fff;
  border: none;
  padding: 10px 25px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
.btn-theme-light-blue:hover {
  background-color: #0089bf;
  color: #fff;
}


/* Mixed listings grid */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--raqmi-navy);
}
.section-subtitle {
  color: #555;
  max-width: 720px;
  margin: 0 auto;
}

/* Cards */
.listing-card {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.1); /* stronger shadow on hover */
}

/* Placeholder cards match the size */
.placeholder-mixed {
  border-radius: 12px;
  background: #f9fbff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  min-height: 340px; /* same height as filled cards */
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.listing-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 60px;
  color: var(--raqmi-navy);
  line-height: 1.3;
}
.listing-price {
  font-weight: 800;
  color: var(--raqmi-navy);
  font-size: 1.1rem;
}

/* Category badges */
.badge {
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}
.badge-navy { background: var(--raqmi-navy); color: #fff; }
.badge-blue { background: var(--raqmi-accent); color: #fff; }

/* Placeholder cards with logo background */
.placeholder-mixed {
  position: relative;
  background: #f9fbff;
  overflow: hidden;
}

.placeholder-mixed .placeholder-logo {
  background: url('assets/images/logo.png') center/120px no-repeat;
  opacity: 0.15;
  width: 100%;
  height: 90px;
  margin: 10px auto 0;
}

.placeholder-mixed .listing-title {
  color: var(--raqmi-navy);
}

.placeholder-mixed .btn {
  margin-top: 6px;
}
.btn-theme-dark {
    background-color: #2a2a2a; /* or your search button energetic color */
    color: #fff;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color .2s ease;
}
.btn-theme-dark:hover {
    background-color: #1d1d1d;
    color: #fff;
}
/* Faded logo inside empty placeholder cards */
.placeholder-mixed {
  border-radius: 12px;
  background: #f9fbff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.placeholder-logo-wrap {
  height: 120px;                /* logo area height */
  margin-top: 6px;
}

.placeholder-logo-img {
  max-width: 140px;
  opacity: 0.15;                /* fade */
  filter: grayscale(100%);      /* subtle, premium look */
  pointer-events: none;
}


/* =========================================================
   Raqmi – Responsive Add-ons (safe to append at end)
   ========================================================= */

/* ---------- General typography rhythm ---------- */
.section-title { line-height: 1.25; }
.section-subtitle { line-height: 1.6; }

/* ---------- Header (tablet/mobile) ---------- */
@media (max-width: 991.98px) {
  .custom-header { min-height: 78px; }
  .custom-header .navbar-brand img { max-height: 50px; }
  .custom-header .contact-info { display: none; } /* save space on small screens */
}
@media (max-width: 767.98px) {
  .custom-header .nav-link { padding: 6px 8px; font-size: 0.9rem; }
}

/* ---------- HERO: layout & spacing ---------- */
@media (max-width: 1199.98px) {
  .hero-v2 { min-height: 520px; }
}
@media (max-width: 991.98px) {
  .hero-v2 { padding-top: 36px; padding-bottom: 36px; }
  .hero-v2 .hero-content { padding: 28px 16px; max-width: 860px; }
}
@media (max-width: 767.98px) {
  .hero-v2 { min-height: 560px; }
  .hero-v2 .hero-content { padding: 24px 14px; max-width: 680px; }
  .heading-primary .line1,
  .heading-primary .line2 { font-size: clamp(28px, 7vw, 36px); }
  .hero-tagline { font-size: 15.5px; margin-top: -16px; }
}
@media (max-width: 575.98px) {
  .heading-primary .line1,
  .heading-primary .line2 { font-size: clamp(24px, 8.5vw, 32px); }
  .hero-tagline { font-size: 15px; margin-top: -12px; max-width: 92%; }
}

/* ---------- HERO: search alignment & sizing ---------- */
/* keep input and button perfectly level */
.hero-search .input-group { max-width: 640px; margin: 0 auto; }
.hero-search .search-input,
.hero-search .search-btn { height: 54px; }
.hero-search .search-btn { margin-top: 0; } /* override global margin so it aligns */

@media (max-width: 767.98px) {
  .hero-search .input-group { max-width: 520px; }
  .hero-search .search-input,
  .hero-search .search-btn { height: 50px; }
}
@media (max-width: 575.98px) {
  .hero-search .input-group { max-width: 100%; padding: 0 12px; }
  .hero-search .search-input,
  .hero-search .search-btn { height: 48px; }
}

/* ---------- HERO: CTA buttons ---------- */
.hero-cta .btn { min-width: 180px; }
@media (max-width: 575.98px) {
  .hero-cta { gap: 10px; padding: 0 12px; }
  .hero-cta .btn { width: 100%; min-width: 0; }
}

/* ---------- HERO: stats (no boxes) ---------- */
@media (max-width: 767.98px) {
  .hero-stats { gap: 16px; }
  .hero-stats .value { font-size: 26px; }
  .hero-stats .label { font-size: 12px; }
}
@media (max-width: 575.98px) {
  .hero-stats { gap: 12px; padding: 0 12px; }
}

/* ---------- Categories section ---------- */
@media (max-width: 991.98px) {
  .section-title { font-size: 1.7rem; }
  .section-subtitle { font-size: 1rem; max-width: 640px; }
}
@media (max-width: 575.98px) {
  .section-title { font-size: 1.55rem; }
  .section-subtitle { font-size: 0.98rem; max-width: 92%; }
  .category-card { padding: 1rem !important; }
  .category-card h5 { font-size: 1.05rem; }
  .category-card p.small { font-size: 0.92rem; }
}

/* ---------- Mixed Listings (cards + placeholders) ---------- */
.listing-card,
.placeholder-mixed { min-height: 340px; }
@media (max-width: 991.98px) {
  .listing-card { padding: 1.25rem !important; }
}
@media (max-width: 575.98px) {
  .listing-card,
  .placeholder-mixed { min-height: 320px; }
  .listing-card { padding: 1rem !important; }
  .listing-title { font-size: 1rem; }
  .listing-price { font-size: 1rem; }
  .placeholder-logo-wrap { height: 100px; }
  .placeholder-logo-img { max-width: 120px; }
}

/* ---------- “View All Listings” spacing before footer ---------- */
.view-all-wrap { margin-top: 1.5rem; margin-bottom: 3rem; } /* optional helper if you wrap the button */
/* Mobile-only language pill in header */
.btn-lang {
  background: #ffffff;
  color: #1a2a43;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
}
.btn-lang:hover {
  color: #00a2e0;
  border-color: rgba(0,0,0,0.15);
}

/* Ensure mobile header items align left/center/right */
@media (max-width: 991.98px) {
  .custom-header .navbar-brand { margin-right: 0; }
  .custom-header .contact-info { display: none !important; }

  /* layout helpers: left (logo), center (lang), right (toggler) */
  .custom-header .navbar-brand.order-1 { order: 1; }
  .custom-header .btn-lang.order-2 { order: 2; margin: 0 auto; } /* center */
  .custom-header .navbar-toggler.order-3 { order: 3; margin-left: auto; }
}

/* ==== KSA Plate (Raqmi) ==== */

/* KSA plate — larger overall, smaller digits, bigger/bolder letters, vertical right column */

/* KSA plate — +40% width, smaller digits, much larger Arabic, English below Arabic,
   right-side vertical stack (tree, swords, K/S/A, dot) */
/* ================= RAGMI KSA PLATE ================= */
/* ===============================================
   SAUDI LICENSE PLATE - Larger Size + Merged Emblem
   =============================================== */

/* ===============================================
   SAUDI LICENSE PLATE - CORRECT LAYOUT
   Matching reference image exactly:
   - Letters on LEFT
   - Numbers in MIDDLE  
   - Emblem on RIGHT (merged cell)
   =============================================== */

/* ===============================================
   SAUDI LICENSE PLATE - CORRECT LAYOUT
   Matching reference image exactly:
   - Letters on LEFT
   - Numbers in MIDDLE  
   - Emblem on RIGHT (merged cell)
   =============================================== */

.ksa-plate {
  display: grid;
  grid-template-columns: 2fr 2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  border: 3px solid #000;
  border-radius: 6px;
  background: #fff;
  max-width: 520px;
  width: 100%;
  height: 150px!important;
  margin: 0 auto;
  direction: ltr !important;  /* FORCE LTR always - don't inherit page direction */
}

.ksa-platevl {
  display: grid;
  grid-template-columns: 2fr 2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  border: 3px solid #000;
  border-radius: 6px;
  background: #fff;
  max-width: 520px;
  width: 100%;
  height: 170px!important;
  margin: 0 auto;
  direction: ltr !important;  /* FORCE LTR always - don't inherit page direction */
}

/* ===== TOP ROW ===== */
.ksa-plate .top-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  padding: 8px;
  border-bottom: 2px solid #000;
}

/* Numbers - LEFT (Arabic) */
.ksa-plate .numbers-ar {
  grid-column: 1;
  grid-row: 1;
  border-right: 2px solid #000;
  font-size: 24px!important;
  letter-spacing: 8px;
  /* Removed direction: rtl - numbers display naturally */
}

/* Letters Container - MIDDLE */
.ksa-plate .letters-container {
  grid-column: 2;
  grid-row: 1;
  border-right: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 6px;
  padding: 6px;
  border-bottom: 2px solid #000;
}

/* Individual letter stack */
.ksa-plate .letter-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex: 1;
}

.ksa-plate .letter-stack .stack-ar {
  font-size: 24px!important;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 2px;
  
  /* Removed direction: rtl */
}

.ksa-plate .letter-stack .stack-en {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  padding-top: 2px;
}

/* ===== BOTTOM ROW ===== */
.ksa-plate .bottom-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  padding: 8px;
}

.ksa-plate .numbers-en {
  grid-column: 1;
  grid-row: 2;
  border-right: 2px solid #000;
  font-size: 42px;
  letter-spacing: 6px;
}

.ksa-plate .letters-en-bottom {
  grid-column: 2;
  grid-row: 2;
  border-right: 2px solid #000;
  font-size: 38px;
  letter-spacing: 10px;
}

/* ===== EMBLEM (spans both rows) ===== */
.ksa-plate .emblem-cell {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 8px 4px;
}

.ksa-plate .emblem-icon {
  font-size: 28px;
  line-height: 1;
}

.ksa-plate .emblem-ksa {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.ksa-plate .emblem-dot {
  font-size: 20px;
  font-weight: 900;
}

/* ===== SMALL VERSION ===== */
.ksa-plate.sm {
  max-width: 320px;
  height: 90px;
  border: 2px solid #000;
}

.ksa-plate.sm .numbers-ar {
  font-size: 32px!important;
  letter-spacing: 5px;
}

.ksa-plate.sm .letters-container {
  gap: 3px;
  padding: 3px;
}

.ksa-plate.sm .letter-stack .stack-ar {
  font-size: 14px;
}

.ksa-plate.sm .letter-stack .stack-en {
  font-size: 16px;
}

.ksa-plate.sm .numbers-en {
  font-size: 26px;
  letter-spacing: 4px;
}

.ksa-plate.sm .letters-en-bottom {
  font-size: 24px;
  letter-spacing: 6px;
}

.ksa-plate.sm .emblem-icon {
  font-size: 18px;
}

.ksa-plate.sm .emblem-ksa {
  font-size: 10px;
}

.ksa-plate.sm .emblem-dot {
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
  .ksa-plate {
    max-width: 100%;
    height: 120px;
  }
  
  .ksa-plate .numbers-ar {
    font-size: 32px;
  }
  
  .ksa-plate .letter-stack .stack-ar {
    font-size: 18px;
  }
  
  .ksa-plate .letter-stack .stack-en {
    font-size: 20px;
  }
  
  .ksa-plate .numbers-en {
    font-size: 36px;
  }
  
  .ksa-plate .letters-en-bottom {
    font-size: 32px;
  }
}

/* CRITICAL: Override any global RTL rules that might affect the plate */
html[dir="rtl"] .ksa-plate {
  direction: ltr !important;
}

html[dir="rtl"] .ksa-plate * {
  direction: inherit !important;  /* Inherit from .ksa-plate (which is LTR) */
}



/* new css for cards */

/* Watermark base for listing cards */
/* Watermark base for listing cards */
.listing-card.card-has-watermark {
  position: relative;
  overflow: hidden;
}

/* Watermark layer (logo behind everything, including plate) */
.card-watermark {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;                /* sits *behind* plate & text, below content */
  opacity: 0.09;             /* adjust visibility 0.10–0.20 */
  pointer-events: none;
}

.card-watermark img {
  max-width: 100%;
  max-height: 120%;
  filter: grayscale(100%) contrast(80%) brightness(120%);
}

/* Ensure real card content is above watermark */
.listing-card .card-content {
  position: relative;
  z-index: 2;
}

/* Placeholder logo visibility (make it more visible than before) */
.placeholder-logo-wrap {
  opacity: 0.40 !important;     /* was ~0.2; now clearly visible */
}
  /* SIM tile look */
.sim-tile {
  /* border: 2px solid #e6eef9;
  border-radius: 10px; */
  padding: 38px 12px;
  /* background: #f8fbff; */
}
.sim-number {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}
.sim-provider {
  font-size: 26px;
  margin-top: 2px;
  color: #4f6b8a;
  text-transform: uppercase;
}

/* ===== Login input-group overrides ===== */

/* When LTR (default), button is first (left), input follows (right) */
/* === Password input & Show/Hide Eye alignment === */

/* Default: LTR (English) → Eye button on LEFT, field text left-aligned */
.input-group:not(.flex-row-reverse) {
  flex-direction: row; /* ensure normal LTR order */
}
.input-group:not(.flex-row-reverse) .toggle-eye-btn {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 1px solid #ced4da;
  border-left: 0;
}
.input-group:not(.flex-row-reverse) .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
   direction: ltr !important;
  text-align: left !important;
}

/* RTL (Arabic) → Eye button on RIGHT, text aligned right */
.input-group.flex-row-reverse {
  flex-direction: row-reverse;
}
.input-group.flex-row-reverse .toggle-eye-btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 1px solid #ced4da;
  border-right: 0;
}
.input-group.flex-row-reverse .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  text-align: right;
  direction: ltr; /* keep password visible left-to-right */
}

/* Eye button look and spacing */
.toggle-eye-btn {
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toggle-eye-btn .bi {
  vertical-align: -1px;
  font-size: 1rem;
}

/* Prevent odd autofill text shifting */
html[dir="ltr"] .form-control { text-align: left; }
html[dir="rtl"] .form-control { text-align: right; }

/* Small screen polish */
@media (max-width: 576px) {
  .toggle-eye-btn .bi { font-size: 0.9rem; }
}
/* Force email & password to be left/LTR no matter the page dir */
.ltr-input {
  text-align: left !important;
  direction: ltr !important;
}

/* In case global RTL rules exist, override them for these fields */
html[dir="rtl"] .ltr-input {
  text-align: left !important;
  direction: ltr !important;
}

html[dir="ltr"] input.form-control,
html[dir="ltr"] textarea.form-control,
html[dir="ltr"] select.form-select {
  text-align: left !important;
}

/* === Header Typography (English + Arabic) === */
header.navbar,
header.navbar .nav-link,
header.navbar .navbar-brand,
header.navbar .navbar-text {
  font-family: "Poppins", "Cairo", sans-serif;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Ensure good contrast for Arabic */
html[dir="rtl"] header.navbar {
  font-family: "Cairo", "Poppins", sans-serif;
}

/* ===== Why Ragmi section ===== */
.why-ragmi-section {
  background: linear-gradient(135deg, #f4f6fb, #e8f3ff);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.why-title {
  font-weight: 700;
  font-size: 1.6rem;
}

.why-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
}

/* Card */
.why-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 16px 20px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  border-top: 3px solid #0ea5e9; /* light blue accent */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

/* Icon circle */
.why-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.1); /* same blue, very soft */
  color: #0ea5e9;
  font-size: 1.6rem;
}

.why-card-title {
  font-weight: 600;
}

.why-card-text {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Make sure text aligns correctly in RTL as well */
html[dir="rtl"] .why-card-text,
html[dir="rtl"] .why-card-title,
html[dir="rtl"] .why-title,
html[dir="rtl"] .why-subtitle {
  text-align: center; /* cards already centered, but this keeps Arabic neat */
}
/* ===== Categories section ===== */
.categories-section {
  background: #f9fafb;               /* light neutral to sit after Why Ragmi gradient */
}

.categories-section .section-title {
  font-weight: 700;
  font-size: 1.5rem;
}

.categories-section .section-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
}

/* Category cards */
.category-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 16px 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  border-color: #0ea5e9;
}

/* Icon circle */
.category-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 1.7rem;
}

/* Different accent colors per category */
.category-icon-orange {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
}

.category-icon-blue {
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
}

.category-icon-gold {
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
}

.category-icon-purple {
  background: rgba(147, 51, 234, 0.12);
  color: #9333ea;
}

/* Text inside card */
.category-title {
  font-weight: 600;
}

.category-text {
  font-size: 0.9rem;
  color: #6b7280;
}

/* RTL tweaks: keep everything centered anyway */
html[dir="rtl"] .category-card {
  text-align: center;
}
/* How It Works section styling */
.how-section {
  background: #f5f7fb;   /* soft neutral background */
}

.how-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.how-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.how-icon i {
  font-size: 2.5rem;
  color: #0d6efd; /* match your blue accent or adjust to your theme */
}
/* ===== Demo Notice Bar ===== */
.demo-bar {
  background: linear-gradient(90deg, #facc15, #f97316);
  color: #1f2937;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.4);
  position: relative;
  z-index: 999;
}
html[dir="rtl"] .demo-bar {
  direction: rtl;
}
