/* =========================================================
   Company Directory - HOME
   File: assets/css/home.css
   Notes:
   - This file is designed to load AFTER assets/css/frontend.css
   - HOME uses its own styling + small overrides for directory cards in HOME only
   - No cd-card2 / cd-cards legacy styles here
   ========================================================= */

/* تستخدم متغيرات التصميم العامة من frontend.css عبر body.cd-theme-*
   لذا لا نعيد تعريف الألوان هنا حتى تتوحّد جميع الصفحات. */

.cd-home .cd-hero{
  padding:28px 0 18px;
  background:linear-gradient(135deg,var(--cd-bg),#fff);
  border-bottom:1px solid var(--cd-border);
}
.cd-home .cd-hero__inner{
  display:grid;
  grid-template-columns:1.6fr .9fr;
  gap:14px;
  align-items:stretch;
}
.cd-home .cd-hero__copy{padding:14px}
.cd-home .cd-hero__title{margin:0;font-size:30px;line-height:1.2;font-weight:980}
.cd-home .cd-hero__sub{margin:10px 0 0;color:var(--cd-muted);font-size:15px;max-width:620px;line-height:1.7}
.cd-home .cd-hero__cta{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}
.cd-home .cd-hero__trust{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}
.cd-home .cd-hero__native{padding:14px}

/* Native Ad placeholder */
.cd-home .cd-nativead{
  height:100%;
  border-radius:18px;
  background:var(--cd-card);
  border:1px solid var(--cd-border);
  box-shadow:var(--cd-shadow-soft);
  padding:14px;
  display:flex;flex-direction:column;justify-content:space-between;gap:10px;
}
.cd-home .cd-nativead--placeholder{border-style:dashed}
.cd-home .cd-nativead__tag{
  display:inline-flex;align-self:flex-start;
  padding:6px 10px;border-radius:999px;
  background:var(--cd-soft);
  font-size:12px;font-weight:950;
}
.cd-home .cd-nativead__title{font-size:16px;font-weight:950}
.cd-home .cd-nativead__text{color:var(--cd-muted);font-size:13px;font-weight:700;line-height:1.6}
.cd-home .cd-nativead__cta{
  align-self:flex-start;
  font-weight:950;font-size:13px;
  padding:10px 12px;border-radius:14px;
  border:1px solid var(--cd-border);
  background:var(--cd-card);color:var(--cd-text);
}

/* =========================================================
   SEARCH
   ========================================================= */
.cd-home .cd-search{padding:14px 0}
.cd-home .cd-search__bar{
  display:grid;
  grid-template-columns:1.6fr 1fr auto;
  gap:10px;
  background:var(--cd-card);
  border:1px solid var(--cd-border);
  border-radius:18px;
  padding:12px;
  box-shadow:var(--cd-shadow-soft);
}
.cd-home .cd-input,
.cd-home .cd-select{
  width:100%;
  border-radius:14px;
  border:1px solid var(--cd-border);
  padding:12px 12px;
  font-size:14px;
  background:var(--cd-card);
}
.cd-home .cd-search__quick{margin-top:10px;display:flex;gap:12px;flex-wrap:wrap}

/* =========================================================
   STATS
   ========================================================= */
.cd-home .cd-stats{
  margin:18px 0;
  padding:18px 0;
  background:var(--cd-soft);
  border-top:1px solid var(--cd-border);
  border-bottom:1px solid var(--cd-border);
}
.cd-home .cd-stats__container{width:min(1120px,92vw);margin:0 auto}
.cd-home .cd-stats__head{
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:14px;margin-bottom:14px
}
.cd-home .cd-stats__title{margin:0;font-size:22px;font-weight:950}
.cd-home .cd-stats__sub{margin:0;color:var(--cd-muted);font-size:14px;max-width:520px}

.cd-home .cd-stats__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.cd-home .cd-stat{
  display:flex;gap:12px;padding:14px;border-radius:16px;
  background:var(--cd-card);
  border:1px solid var(--cd-border);
  box-shadow:var(--cd-shadow-soft);
  transition:transform .15s ease, box-shadow .15s ease;
}
.cd-home .cd-stat:hover{transform:translateY(-2px);box-shadow:var(--cd-shadow-soft)}
.cd-home .cd-stat__icon{
  width:46px;height:46px;border-radius:14px;
  display:grid;place-items:center;
  background:var(--cd-soft);
  font-size:22px;flex:0 0 auto;
}
.cd-home .cd-stat__value{font-size:28px;font-weight:980;line-height:1.1}
.cd-home .cd-stat__label{margin-top:4px;font-size:14px;font-weight:900}
.cd-home .cd-stat__hint{margin-top:4px;color:var(--cd-muted);font-size:12px}

.cd-home .cd-stats__sponsor{
  margin-top:12px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:12px 14px;border-radius:16px;
  background:rgba(255,255,255,.9);
  border:1px dashed var(--cd-border);
}
.cd-home .cd-sponsor__badge{
  font-size:12px;font-weight:950;
  padding:6px 10px;border-radius:999px;
  background:var(--cd-soft);
  flex:0 0 auto;
}
.cd-home .cd-sponsor__text{
  color:var(--cd-text);
  font-size:13px;font-weight:800;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.cd-home .cd-sponsor__cta{
  flex:0 0 auto;
  font-size:13px;font-weight:950;
  padding:8px 12px;border-radius:12px;
  border:1px solid var(--cd-border);
  background:var(--cd-card);color:var(--cd-text);
}

/* =========================================================
   CATEGORIES (Industry tiles)
   ========================================================= */
.cd-home .cd-cats{padding:18px 0}
.cd-home .cd-cats__grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
}
.cd-home .cd-cat{
  text-decoration:none;color:inherit;
  background:var(--cd-card);
  border:1px solid var(--cd-border);
  border-radius:16px;
  padding:12px;
  box-shadow:var(--cd-shadow-soft);
  display:flex;flex-direction:column;gap:6px;
  transition:transform .15s ease, box-shadow .15s ease;
}
.cd-home .cd-cat:hover{transform:translateY(-2px);box-shadow:var(--cd-shadow-soft)}
.cd-home .cd-cat--ad{border-style:dashed}
.cd-home .cd-cat__icon{
  width:52px;height:52px;border-radius:16px;
  display:grid;place-items:center;
  background:var(--cd-soft);
  overflow:hidden;
}
.cd-home .cd-cat__icon img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.cd-home .cd-cat__name{font-weight:950;font-size:14px;line-height:1.3}
.cd-home .cd-cat__meta{color:var(--cd-muted);font-size:12px;font-weight:800}

/* =========================================================
   FEATURED section wrapper + Banner placeholder (HOME only)
   - Cards themselves are styled in frontend.css (cd-card)
   ========================================================= */
.cd-home .cd-featured{padding:18px 0}
.cd-home .cd-bannerad{margin-top:14px}
.cd-home .cd-bannerad__inner{
  border-radius:18px;
  border:1px dashed var(--cd-border);
  background:rgba(255,255,255,.85);
  padding:16px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
}
.cd-home .cd-bannerad__title{font-weight:980}
.cd-home .cd-bannerad__text{color:var(--cd-muted);font-size:13px;font-weight:800}
.cd-home .cd-bannerad__cta{
  font-weight:950;font-size:13px;
  padding:10px 12px;border-radius:14px;
  border:1px solid var(--cd-border);
  background:var(--cd-card);color:var(--cd-text);
}

/* ===== HOME ONLY: Featured cd-card logo fix (odd ratios) ===== */
.cd-home .cd-grid .cd-card__logo{
  width:76px;
  height:76px;
  border-radius:16px;
  overflow:hidden;
  background:var(--cd-soft);
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
.cd-home .cd-grid .cd-card__logo img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important; /* best for logos */
  display:block;
}

/* =========================================================
   OWNERS
   ========================================================= */
.cd-home .cd-owners{padding:18px 0}
.cd-home .cd-owners__grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:12px;
  align-items:stretch;
}
.cd-home .cd-steps{
  margin:10px 0 0;
  padding:0 18px;
  color:var(--cd-text);
  font-weight:800;
}
.cd-home .cd-steps li{margin:8px 0}
.cd-home .cd-owners__card{
  background:var(--cd-card);
  border:1px solid var(--cd-border);
  border-radius:18px;
  padding:14px;
  box-shadow:var(--cd-shadow-soft);
}
.cd-home .cd-mini__k{font-size:12px;font-weight:950;color:var(--cd-muted)}
.cd-home .cd-mini__t{margin-top:6px;font-size:16px;font-weight:980}
.cd-home .cd-mini__p{margin-top:6px;color:var(--cd-muted);font-size:13px;font-weight:800}

/* =========================================================
   CITIES
   ========================================================= */
.cd-home .cd-cities{padding:18px 0}
.cd-home .cd-cities__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.cd-home .cd-city{
  text-decoration:none;color:inherit;
  background:var(--cd-card);
  border:1px solid var(--cd-border);
  border-radius:16px;
  padding:12px;
  box-shadow:var(--cd-shadow-soft);
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  transition:transform .15s ease, box-shadow .15s ease;
}
.cd-home .cd-city:hover{transform:translateY(-2px);box-shadow:var(--cd-shadow-soft)}
.cd-home .cd-city__name{font-weight:950}
.cd-home .cd-city__count{color:var(--cd-muted);font-size:12px;font-weight:800}
.cd-home .cd-city--ad{border-style:dashed}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .cd-home .cd-hero__inner{grid-template-columns:1fr}
  .cd-home .cd-search__bar{grid-template-columns:1fr}
  .cd-home .cd-stats__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cd-home .cd-cats__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cd-home .cd-owners__grid{grid-template-columns:1fr}
  .cd-home .cd-cities__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cd-home .cd-stats__head{flex-direction:column;align-items:flex-start}
  .cd-home .cd-stats__sponsor{flex-direction:column;align-items:flex-start}
  .cd-home .cd-sponsor__text{white-space:normal}
}

@media (max-width: 520px){
  .cd-home .cd-hero__title{font-size:24px}
  .cd-home .cd-h2{font-size:22px}
  .cd-home .cd-p{font-size:15px}

  /* Categories bigger & easier tap */
  .cd-home .cd-cats__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .cd-home .cd-cat{padding:14px;border-radius:18px}
  .cd-home .cd-cat__icon{width:60px;height:60px;border-radius:18px}
  .cd-home .cd-cat__name{font-size:15px}

  /* Cities one column */
  .cd-home .cd-cities__grid{grid-template-columns:1fr}

  /* Featured logo bigger in HOME */
  .cd-home .cd-grid .cd-card__logo{width:92px;height:92px}
  .cd-home .cd-grid .cd-card__name a{font-size:16px;font-weight:950}
  .cd-home .cd-grid .cd-card__desc{font-size:14px;line-height:1.7}
}

/* =========================================================
   Optional: reveal animation helpers (if JS adds classes)
   ========================================================= */
.cd-home .cd-anim{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .6s ease, transform .6s ease;
}
.cd-home .cd-anim.is-visible{
  opacity:1;
  transform:none;
}
/* ===== HOME Featured layout overrides (strong) ===== */
.cd-home .cd-grid{
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap: 14px !important;
}

@media (max-width: 520px){
  .cd-home .cd-grid{
    grid-template-columns: 1fr !important;
  }
  .cd-home .cd-card__link{
    padding: 16px !important;
  }
  .cd-home .cd-card__desc{
    -webkit-line-clamp: 2 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
  }
  .cd-home .cd-card__name{
    font-size: 17px !important;
  }
}
/* =========================
   Ads in HOME - make cd-ad match home blocks
   ========================= */

.cd-home .cd-ad__card{
  border-radius:18px;
  border:1px solid var(--cd-border);
  box-shadow:var(--cd-shadow-soft);
}

.cd-home .cd-ad__badge{
  background: var(--cd-soft);
  border-color: var(--cd-border);
  font-weight:950;
}

/* لو عايز زر الإعلان نفس زرّ الهوم */
.cd-home .cd-ad__btn{
  border-color: var(--cd-border);
  background: var(--cd-card);
  color: var(--cd-text);
}
/* ===== FEATURED AD FIX (home override) ===== */
.cd-home .cd-card.cd-card--featured .cd-adlogo{
  margin: 10px 0 12px !important;
  width: 100% !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.cd-home .cd-card.cd-card--featured .cd-adlogo img{
  width: 100% !important;
  height: 150px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 14px !important;
}

.cd-home .cd-card.cd-card--featured .cd-adtitle{
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  margin: 6px 0 8px !important;

  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
/* ==================================================
   HOME HERO – Isolated Layout (Fix grid/flex conflicts + RTL squeeze)
   Put at END of home.css
   ================================================== */

/* 1) منع أي تعريف عام (grid/flex) من التأثير على cd-hero داخل الهوم */
.cd.cd-home .cd-hero{
  display: block !important;
}

/* 2) اجبار inner يكون Grid عمودين على الديسكتوب */
.cd.cd-home .cd-hero .cd-wrap.cd-hero__inner{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 420px !important; /* عدّل 420 حسب رغبتك */
  gap: 18px !important;
  align-items: stretch !important;

  /* عزل مشاكل RTL/Theme Containers */
  width: min(1200px, 92vw) !important;
  margin-inline: auto !important;
}

/* 3) أهم سطرين لمنع “الحروف تحت بعض” */
.cd.cd-home .cd-hero .cd-hero__copy{
  min-width: 0 !important;
}
.cd.cd-home .cd-hero aside.cd-hero__native{
  min-width: 0 !important;
}

/* 4) منع الثيم من تحويل الإعلان لعمود رفيع */
.cd.cd-home .cd-hero aside.cd-hero__native{
  width: 420px !important;
  max-width: 420px !important;
  justify-self: stretch !important;

  position: static !important;
  float: none !important;
  inset: auto !important;
  display: block !important;
}

/* 5) الكارت داخل الإعلان يملأ العمود */
.cd.cd-home .cd-hero aside.cd-hero__native .cd-card,
.cd.cd-home .cd-hero aside.cd-hero__native > *{
  width: 100% !important;
  max-width: 100% !important;
}

/* 6) الصور لا تسبب ضغط عرض */
.cd.cd-home .cd-hero aside.cd-hero__native img{
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* 7) موبايل/تابلت: Stack */
@media (max-width: 980px){
  .cd.cd-home .cd-hero .cd-wrap.cd-hero__inner{
    grid-template-columns: 1fr !important;
  }
  .cd.cd-home .cd-hero aside.cd-hero__native{
    width: auto !important;
    max-width: none !important;
  }
}
/* =========================================
   Fix: Hero Ad Logo size
   ========================================= */

.cd.cd-home .cd-hero .cd-adlogo{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px; /* يدي مساحة بصرية محترمة */
  padding: 12px;
}

.cd.cd-home .cd-hero .cd-adlogo img{
  max-height: 150px !important;  /* زوّد/قلّل حسب الذوق */
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

/* ==================================================
   HOME uses TOKENS
   ================================================== */

.cd.cd-home{
  color: var(--cd-text);
  font-family: var(--cd-font);
}

.cd.cd-home .cd-card{
  background: var(--cd-card-bg);
  border: 1px solid var(--cd-line);
}

.cd.cd-home .cd-meta{
  color: var(--cd-meta-text);
  border-top: 1px dashed var(--cd-dash);
}
.cd.cd-home .cd-meta strong{
  color: var(--cd-meta-label);
  font-weight: 1000;
}

.cd.cd-home .cd-meta--loc{
  background: var(--cd-pill-bg);
  border: 1px solid var(--cd-line);
  color: var(--cd-text);
}

/* Buttons */
.cd.cd-home .cd-btn,
.cd.cd-home .button,
.cd.cd-home a.button{
  background: var(--cd-btn-bg);
  border: 1px solid var(--cd-btn-border);
  color: var(--cd-btn-text);
  border-radius: 12px;
  font-weight: 1000;
}
.cd.cd-home .cd-btn--primary{
  background: color-mix(in srgb, var(--cd-accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--cd-accent) 28%, transparent);
}
/* ==================================================
   Home Section Headings use TOKENS
   ================================================== */

.cd.cd-home .cd-sechead{
  color: var(--cd-text);
}

.cd.cd-home .cd-sechead .cd-h2{
  color: var(--cd-text) !important;
  font-weight: 1000;
  letter-spacing: .2px;
}

.cd.cd-home .cd-sechead .cd-p{
  color: var(--cd-muted) !important;
  font-weight: 700;
}
/* ==================================================
   STATS SECTION – Token Binding
   ================================================== */

/* اجعل قسم الإحصائيات يعتمد على المتغيرات */
.cd.cd-home .cd-stats{
  color: var(--cd-text);
}

/* عنوان القسم */
.cd.cd-home .cd-stats__title{
  color: var(--cd-text) !important;
  font-weight: 1000;
}

/* الوصف */
.cd.cd-home .cd-stats__sub{
  color: var(--cd-muted) !important;
  font-weight: 700;
}
/* ==================================================
   HOME FINAL POLISH PATCH
   آمن وخفيف بعد حذف البلوكات القديمة
   ضعه في آخر home.css
   ================================================== */

/* 1) English homepage must stay LTR */
.cd.cd-home,
.cd-home{
  direction: ltr;
  text-align: left;
}

.cd.cd-home h1,
.cd.cd-home h2,
.cd.cd-home h3,
.cd.cd-home p,
.cd.cd-home li,
.cd.cd-home .cd-section-head,
.cd.cd-home .cd-section-head__text,
.cd.cd-home .cd-section-head__title,
.cd.cd-home .cd-section-head__sub{
  direction: ltr;
  text-align: left;
}

/* 2) Hero balance */
.cd.cd-home .cd-hero{
  align-items: center;
}

.cd.cd-home .cd-hero__content{
  text-align: left;
}

.cd.cd-home .cd-hero__title{
  max-width: 14ch;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cd.cd-home .cd-hero__desc{
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--cd-muted);
}

/* 3) CTA buttons in hero */
.cd.cd-home .cd-hero__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.cd.cd-home .cd-hero__actions .cd-btn{
  min-height: 48px;
  padding-inline: 18px;
  font-size: 15px;
  font-weight: 700;
}

.cd.cd-home .cd-hero__actions .cd-btn--primary{
  color: var(--cd-on-primary, #fff);
}

.cd.cd-home .cd-hero__actions .cd-btn--secondary,
.cd.cd-home .cd-hero__actions .cd-btn--ghost{
  background: color-mix(in srgb, var(--cd-card) 88%, transparent 12%);
  color: var(--cd-text);
  border-color: var(--cd-border);
}

/* 4) Hero bullets / trust points */
.cd.cd-home .cd-hero__trust{
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
}

.cd.cd-home .cd-hero__trust li{
  font-size: 15px;
  line-height: 1.4;
  color: var(--cd-muted);
}

/* 5) Search strip */
.cd.cd-home .cd-searchbar,
.cd.cd-home .cd-home-search,
.cd.cd-home .cd-search{
  direction: ltr;
}

.cd.cd-home .cd-searchbar{
  border-radius: calc(var(--cd-radius) + 2px);
  box-shadow: var(--cd-shadow-soft);
}

.cd.cd-home .cd-searchbar input,
.cd.cd-home .cd-searchbar select,
.cd.cd-home .cd-home-search input,
.cd.cd-home .cd-home-search select{
  text-align: left;
  direction: ltr;
}

/* 6) Section headings */
.cd.cd-home .cd-section-head__title{
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cd-text);
}

.cd.cd-home .cd-section-head__sub{
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--cd-muted);
  max-width: 60ch;
}

/* 7) Stats cards */
.cd.cd-home .cd-stats .cd-card,
.cd.cd-home .cd-statcard,
.cd.cd-home .cd-home-stats .cd-card{
  border-radius: calc(var(--cd-radius) + 2px);
}

.cd.cd-home .cd-stats .cd-stat__v,
.cd.cd-home .cd-statcard__value,
.cd.cd-home .cd-home-stats .cd-stat__v{
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cd.cd-home .cd-stats .cd-stat__label,
.cd.cd-home .cd-statcard__label,
.cd.cd-home .cd-home-stats .cd-stat__label{
  font-size: 16px;
  font-weight: 700;
  color: var(--cd-text);
}

.cd.cd-home .cd-stats .cd-stat__meta,
.cd.cd-home .cd-statcard__meta,
.cd.cd-home .cd-home-stats .cd-stat__meta{
  font-size: 14px;
  line-height: 1.6;
  color: var(--cd-muted);
}

/* 8) Featured cards / category cards / city cards */
.cd.cd-home .cd-card,
.cd.cd-home .cd-home-card,
.cd.cd-home .cd-featured .cd-card,
.cd.cd-home .cd-cats .cd-card,
.cd.cd-home .cd-cities .cd-card{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cd.cd-home .cd-card:hover,
.cd.cd-home .cd-home-card:hover,
.cd.cd-home .cd-featured .cd-card:hover,
.cd.cd-home .cd-cats .cd-card:hover,
.cd.cd-home .cd-cities .cd-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--cd-shadow);
}

/* 9) Card titles and descriptions */
.cd.cd-home .cd-card__title,
.cd.cd-home .cd-home-card__title{
  font-size: 20px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cd-text);
}

.cd.cd-home .cd-card__desc,
.cd.cd-home .cd-home-card__desc{
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--cd-muted);
}

/* 10) Owner section conversion block */
.cd.cd-home .cd-owners,
.cd.cd-home .cd-for-owners{
  direction: ltr;
}

.cd.cd-home .cd-owners .cd-h2,
.cd.cd-home .cd-for-owners .cd-h2{
  text-align: left;
}

.cd.cd-home .cd-owners ol,
.cd.cd-home .cd-for-owners ol{
  padding-left: 20px;
  padding-right: 0;
}

.cd.cd-home .cd-owners li,
.cd.cd-home .cd-for-owners li{
  text-align: left;
  line-height: 1.75;
}

/* 11) Better spacing on mobile */
@media (max-width: 900px){
  .cd.cd-home .cd-hero__title{
    max-width: none;
  }

  .cd.cd-home .cd-hero__desc,
  .cd.cd-home .cd-section-head__sub{
    max-width: none;
    font-size: 16px;
  }

  .cd.cd-home .cd-hero__actions{
    gap: 10px;
  }

  .cd.cd-home .cd-hero__actions .cd-btn{
    width: auto;
    min-width: 0;
  }
}

/* 12) Small safety fix for any leftover centered/rtl content */
.cd.cd-home .cd-hero__content,
.cd.cd-home .cd-section-head,
.cd.cd-home .cd-section-head__text,
.cd.cd-home .cd-card__content,
.cd.cd-home .cd-home-copy{
  text-align: left;
}
/* ==================================================
   CD RTL/LTR PRODUCTION COMPATIBILITY PATCH
   Keep this block at the very end of frontend.css/home.css.
   ================================================== */
html[dir="rtl"] .cd,html[dir="rtl"] .cd-directory,html[dir="rtl"] .cd-archive,html[dir="rtl"] .cd-single,html[dir="rtl"] .cd-owner,html[dir="rtl"] .cd-portal,html[dir="rtl"] .cd-form,html[dir="rtl"] .cd-auth,html[dir="rtl"] .cd-mycompany,html[dir="rtl"] .cd-main,html[dir="rtl"] .cd-app,body.rtl .cd,body.rtl .cd-directory,body.rtl .cd-archive,body.rtl .cd-single,body.rtl .cd-owner,body.rtl .cd-portal,body.rtl .cd-form,body.rtl .cd-auth,body.rtl .cd-mycompany,body.rtl .cd-main,body.rtl .cd-app,.cd[dir="rtl"],.cd-directory[dir="rtl"],.cd-archive[dir="rtl"],.cd-single[dir="rtl"]{direction:rtl !important;text-align:right !important;}
html[dir="rtl"] .cd :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,small,strong,span),html[dir="rtl"] .cd-directory :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,small,strong,span),html[dir="rtl"] .cd-single :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,small,strong,span),html[dir="rtl"] .cd-main :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,small,strong,span),body.rtl .cd :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,small,strong,span),body.rtl .cd-directory :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,small,strong,span),body.rtl .cd-single :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,small,strong,span),body.rtl .cd-main :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,small,strong,span),.cd[dir="rtl"] :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,small,strong,span),.cd-directory[dir="rtl"] :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,small,strong,span),.cd-archive[dir="rtl"] :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,small,strong,span),.cd-single[dir="rtl"] :where(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,small,strong,span){direction:rtl !important;text-align:right !important;}
html[dir="rtl"] .cd :where(input,select,textarea),html[dir="rtl"] .cd-directory :where(input,select,textarea),html[dir="rtl"] .cd-single :where(input,select,textarea),body.rtl .cd :where(input,select,textarea),body.rtl .cd-directory :where(input,select,textarea),body.rtl .cd-single :where(input,select,textarea),.cd[dir="rtl"] :where(input,select,textarea),.cd-directory[dir="rtl"] :where(input,select,textarea),.cd-single[dir="rtl"] :where(input,select,textarea){direction:rtl !important;text-align:right !important;}
html[dir="rtl"] .cd :where(ul,ol),html[dir="rtl"] .cd-directory :where(ul,ol),html[dir="rtl"] .cd-single :where(ul,ol),body.rtl .cd :where(ul,ol),body.rtl .cd-directory :where(ul,ol),body.rtl .cd-single :where(ul,ol),.cd[dir="rtl"] :where(ul,ol),.cd-directory[dir="rtl"] :where(ul,ol),.cd-single[dir="rtl"] :where(ul,ol){padding-right:20px !important;padding-left:0 !important;}
html[dir="rtl"] :where(.cd-sechead,.cd-card__head,.cd-card__meta,.cd-results__meta,.cd-archive__topbar,.cd-filters__head,.cd-owner__notice,.cd-adcard__top,.cd-hero__rating-line,.cd-hours__item,.cd-hdr,.cd-hdr__wrap,.cd-hdr__nav,.cd-hdr__cta,.cd-tabs,.cd-social-icons,.cd-hero,.cd-kv,.cd-similar,.cd-related,.cd-hub,.cd-single__grid,.cd-archive__layout),body.rtl :where(.cd-sechead,.cd-card__head,.cd-card__meta,.cd-results__meta,.cd-archive__topbar,.cd-filters__head,.cd-owner__notice,.cd-adcard__top,.cd-hero__rating-line,.cd-hours__item,.cd-hdr,.cd-hdr__wrap,.cd-hdr__nav,.cd-hdr__cta,.cd-tabs,.cd-social-icons,.cd-hero,.cd-kv,.cd-similar,.cd-related,.cd-hub,.cd-single__grid,.cd-archive__layout){direction:rtl !important;text-align:right !important;}
html[dir="rtl"] .cd :where(a[href^="tel:"],a[href^="mailto:"],a[href*="wa.me"],a[href^="http"],.cd-kv-link,.cd-btn--whatsapp,.cd-code,.cd-url,.cd-email,.cd-phone),html[dir="rtl"] .cd-directory :where(a[href^="tel:"],a[href^="mailto:"],a[href*="wa.me"],a[href^="http"],.cd-kv-link,.cd-btn--whatsapp,.cd-code,.cd-url,.cd-email,.cd-phone),html[dir="rtl"] .cd-single :where(a[href^="tel:"],a[href^="mailto:"],a[href*="wa.me"],a[href^="http"],.cd-kv-link,.cd-btn--whatsapp,.cd-code,.cd-url,.cd-email,.cd-phone),body.rtl .cd :where(a[href^="tel:"],a[href^="mailto:"],a[href*="wa.me"],a[href^="http"],.cd-kv-link,.cd-btn--whatsapp,.cd-code,.cd-url,.cd-email,.cd-phone),body.rtl .cd-directory :where(a[href^="tel:"],a[href^="mailto:"],a[href*="wa.me"],a[href^="http"],.cd-kv-link,.cd-btn--whatsapp,.cd-code,.cd-url,.cd-email,.cd-phone),body.rtl .cd-single :where(a[href^="tel:"],a[href^="mailto:"],a[href*="wa.me"],a[href^="http"],.cd-kv-link,.cd-btn--whatsapp,.cd-code,.cd-url,.cd-email,.cd-phone){direction:ltr !important;unicode-bidi:embed !important;text-align:left !important;}
body.cd-ui .cd-btn--whatsapp::before,body.cd-ui .cd-btn--whatsapp::after,.cd-btn--whatsapp::before,.cd-btn--whatsapp::after{content:none !important;}
body.cd-ui:not(.cd-theme-dark):not(.cd-theme-lux) .cd-btn--whatsapp,body.cd-ui:not(.cd-theme-dark):not(.cd-theme-lux) .cd-side-contact__buttons .cd-btn--whatsapp,body.cd-ui:not(.cd-theme-dark):not(.cd-theme-lux) .cd-cta-bar .cd-btn--whatsapp{display:inline-flex !important;align-items:center !important;justify-content:center !important;min-height:44px !important;color:#0f172a !important;background:#ffffff !important;border:1px solid var(--cd-border,#dbe3ef) !important;box-shadow:var(--cd-shadow-soft,0 8px 20px rgba(15,23,42,.06)) !important;opacity:1 !important;visibility:visible !important;text-indent:0 !important;font-size:14px !important;font-weight:800 !important;}
body.cd-ui:not(.cd-theme-dark):not(.cd-theme-lux) .cd-btn--whatsapp:hover{color:#ffffff !important;background:#22c55e !important;border-color:#22c55e !important;}
