/* ===== HERO v2 (centered, with overlay) ===== */
:root {
  --raqmi-navy: #1a2a43;
  --raqmi-accent: #00a2e0;
  --raqmi-secondary: #ff6f3c; /* Energetic coral orange */
}



.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: 800;
  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(36px, 5vw, 56px); /* 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: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06); /* subtle shadow for visibility */
  transition: transform .25s ease, box-shadow .25s ease;
  min-height: 340px; /* increased height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.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;
  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; }
}
.hero-search .input-group {
  display: flex;
  align-items: stretch;
}


/* ---------- “View All Listings” spacing before footer ---------- */


