/* Ceddu UI final: horizontal home sections without touching admin/search logic */
:root{--ceddu-burgundy:#7A1F2E;--ceddu-gold:#c9a227;--ceddu-ink:#151515;--ceddu-soft:#f7f5f3}

/* Make the search area lighter and more premium; overrides the heavy dark block only on mobile. */
@media(max-width:760px){
  .cu-hero-has-search{background-color:#161313!important;}
  .cu-hero-has-search:after{
    content:""!important;position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:155px!important;
    background:linear-gradient(180deg,rgba(22,19,19,0),rgba(255,255,255,.92) 78%,#fff 100%)!important;z-index:1!important;pointer-events:none!important;
  }
  body #cedduUnifiedHomeSearch{
    background:rgba(255,255,255,.96)!important;border:1px solid rgba(255,255,255,.7)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;
    box-shadow:0 18px 42px rgba(0,0,0,.22),0 2px 0 rgba(255,255,255,.45) inset!important;z-index:90!important;
  }
  .cu-hero-has-search + *{box-shadow:0 -12px 28px rgba(122,31,46,.05)!important;}
}

/* Dynamic sections: keep desktop grid, switch only phone/tablet to modern horizontal sliders */
#dynamic-home-root .ceddu-dynamic-section{overflow:hidden!important;}
#dynamic-home-root .ceddu-dynamic-section>div{overflow:visible!important;}
#dynamic-home-root .ceddu-home-slider-track{align-items:stretch!important;}
#dynamic-home-root .ceddu-card{height:100%!important;}

@media(max-width:1024px){
  #dynamic-home-root .ceddu-dynamic-section{padding:54px 0!important;}
  #dynamic-home-root .ceddu-dynamic-section>div{padding-left:16px!important;padding-right:16px!important;}
  #dynamic-home-root .ceddu-dynamic-section [style*="margin-bottom:50px"]{margin-bottom:26px!important;}
  #dynamic-home-root .ceddu-dynamic-section h2{font-size:28px!important;line-height:1.35!important;}
  #dynamic-home-root .ceddu-dynamic-section span[style*="font-size:22px"]{font-size:17px!important;}
  #dynamic-home-root .ceddu-home-slider-track{
    display:flex!important;grid-template-columns:none!important;gap:16px!important;overflow-x:auto!important;overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;scroll-behavior:smooth!important;-webkit-overflow-scrolling:touch!important;padding:4px 2px 20px!important;margin-left:-2px!important;margin-right:-2px!important;
  }
  html[lang="ar"] #dynamic-home-root .ceddu-home-slider-track{direction:ltr!important;}
  html[lang="ar"] #dynamic-home-root .ceddu-home-slider-track>.ceddu-card{direction:rtl!important;}
  #dynamic-home-root .ceddu-home-slider-track::-webkit-scrollbar{height:6px!important;}
  #dynamic-home-root .ceddu-home-slider-track::-webkit-scrollbar-track{background:#eee!important;border-radius:20px!important;}
  #dynamic-home-root .ceddu-home-slider-track::-webkit-scrollbar-thumb{background:var(--ceddu-burgundy)!important;border-radius:20px!important;}
  #dynamic-home-root .ceddu-home-slider-track>.ceddu-card{
    flex:0 0 82vw!important;max-width:370px!important;min-width:270px!important;scroll-snap-align:start!important;border-radius:18px!important;
    box-shadow:0 8px 28px rgba(20,20,20,.08)!important;border:1px solid rgba(122,31,46,.07)!important;
  }
  #dynamic-home-root .ceddu-home-slider-track>.ceddu-card img{height:210px!important;}
  #dynamic-home-root .ceddu-dynamic-section a[href$=".php"]{border-radius:12px!important;padding:12px 28px!important;}
}
@media(min-width:761px) and (max-width:1024px){
  #dynamic-home-root .ceddu-home-slider-track>.ceddu-card{flex-basis:42vw!important;max-width:430px!important;}
}

/* Services section slider on mobile/tablet, applied by ceddu-home-horizontal-ui.js */
.ceddu-services-slider-ready{overflow:hidden!important;}
.ceddu-services-slider-ready .ceddu-services-slider-track{align-items:stretch!important;}
@media(max-width:1024px){
  .ceddu-services-slider-ready{padding-left:0!important;padding-right:0!important;}
  .ceddu-services-slider-ready .ceddu-services-slider-track{
    display:flex!important;grid-template-columns:none!important;gap:16px!important;overflow-x:auto!important;overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;scroll-behavior:smooth!important;-webkit-overflow-scrolling:touch!important;padding:6px 18px 22px!important;
  }
  html[lang="ar"] .ceddu-services-slider-ready .ceddu-services-slider-track{direction:ltr!important;}
  html[lang="ar"] .ceddu-services-slider-ready .ceddu-services-slider-card{direction:rtl!important;}
  .ceddu-services-slider-ready .ceddu-services-slider-card{
    flex:0 0 82vw!important;max-width:360px!important;min-width:260px!important;scroll-snap-align:start!important;border-radius:18px!important;
    box-shadow:0 9px 28px rgba(20,20,20,.08)!important;border:1px solid rgba(122,31,46,.08)!important;background:#fff!important;
  }
}
@media(min-width:761px) and (max-width:1024px){
  .ceddu-services-slider-ready .ceddu-services-slider-card{flex-basis:42vw!important;max-width:420px!important;}
}

/* Make titles readable across all mobile home sections */
@media(max-width:760px){
  #root section:not(.cu-hero-has-search) h1,#root section:not(.cu-hero-has-search) h2,#root section:not(.cu-hero-has-search) h3,
  #dynamic-home-root h1,#dynamic-home-root h2,#dynamic-home-root h3{line-height:1.42!important;white-space:normal!important;overflow:visible!important;letter-spacing:0!important;}
}


/* Ceddu verified force sliders for dynamic home sections on phone/tablet */
@media (max-width:1024px){
  body #dynamic-home-root .ceddu-dynamic-properties .ceddu-home-slider-track,
  body #dynamic-home-root .ceddu-dynamic-projects .ceddu-home-slider-track,
  body #dynamic-home-root .ceddu-dynamic-blog .ceddu-home-slider-track,
  body #dynamic-home-root .ceddu-dynamic-news .ceddu-home-slider-track,
  body #dynamic-home-root .ceddu-force-horizontal-track{
    display:flex!important;
    grid-template-columns:none!important;
    flex-wrap:nowrap!important;
    gap:16px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    -webkit-overflow-scrolling:touch!important;
    padding:6px 4px 22px!important;
    margin:0!important;
    width:100%!important;
  }
  body #dynamic-home-root .ceddu-dynamic-properties .ceddu-home-slider-track > *,
  body #dynamic-home-root .ceddu-dynamic-projects .ceddu-home-slider-track > *,
  body #dynamic-home-root .ceddu-dynamic-blog .ceddu-home-slider-track > *,
  body #dynamic-home-root .ceddu-dynamic-news .ceddu-home-slider-track > *,
  body #dynamic-home-root .ceddu-force-horizontal-card{
    flex:0 0 82vw!important;
    width:82vw!important;
    min-width:270px!important;
    max-width:370px!important;
    scroll-snap-align:start!important;
  }
  body #dynamic-home-root .ceddu-home-slider-track::-webkit-scrollbar{height:6px!important;display:block!important;}
  body #dynamic-home-root .ceddu-home-slider-track::-webkit-scrollbar-track{background:#eee!important;border-radius:20px!important;}
  body #dynamic-home-root .ceddu-home-slider-track::-webkit-scrollbar-thumb{background:#7A1F2E!important;border-radius:20px!important;}
}
@media (min-width:761px) and (max-width:1024px){
  body #dynamic-home-root .ceddu-home-slider-track > *,
  body #dynamic-home-root .ceddu-force-horizontal-card{flex-basis:42vw!important;width:42vw!important;max-width:430px!important;}
}


/* Ceddu real dynamic sliders - final hard override */
#dynamic-home-root .ceddu-home-slider-track{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:22px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x mandatory!important;
  -webkit-overflow-scrolling:touch!important;
  padding:8px 4px 24px!important;
  margin:0 -4px!important;
  grid-template-columns:none!important;
}
#dynamic-home-root .ceddu-home-slider-track>.ceddu-card{
  flex:0 0 clamp(280px,28vw,370px)!important;
  width:clamp(280px,28vw,370px)!important;
  min-width:280px!important;
  max-width:370px!important;
  scroll-snap-align:start!important;
}
#dynamic-home-root .ceddu-home-slider-track::-webkit-scrollbar{height:7px!important;display:block!important}
#dynamic-home-root .ceddu-home-slider-track::-webkit-scrollbar-track{background:#eee!important;border-radius:20px!important}
#dynamic-home-root .ceddu-home-slider-track::-webkit-scrollbar-thumb{background:#7A1F2E!important;border-radius:20px!important}
@media(max-width:760px){
  #dynamic-home-root .ceddu-home-slider-track{gap:16px!important;padding:6px 2px 22px!important;margin:0!important}
  #dynamic-home-root .ceddu-home-slider-track>.ceddu-card{flex-basis:84vw!important;width:84vw!important;min-width:270px!important;max-width:360px!important}
  #dynamic-home-root .ceddu-home-slider-track>.ceddu-card img{height:205px!important}
}
@media(min-width:761px) and (max-width:1024px){
  #dynamic-home-root .ceddu-home-slider-track>.ceddu-card{flex-basis:42vw!important;width:42vw!important;max-width:430px!important}
}
html[lang=ar] #dynamic-home-root .ceddu-home-slider-track{direction:ltr!important}
html[lang=ar] #dynamic-home-root .ceddu-home-slider-track>.ceddu-card{direction:rtl!important}


/* Ceddu final typography polish + projects more button */
.ceddu-section-more-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:46px!important;
  border-radius:12px!important;
  transition:all .22s ease!important;
}
.ceddu-section-more-btn:hover{background:#7A1F2E!important;color:#fff!important;transform:translateY(-1px)!important;box-shadow:0 10px 24px rgba(122,31,46,.16)!important;}

/* Bigger and cleaner typography across home services/dynamic sections */
#root section:not(.cu-hero-has-search) h2,
#dynamic-home-root .ceddu-dynamic-section h2{
  font-weight:900!important;
  letter-spacing:-.01em!important;
}
#root section:not(.cu-hero-has-search) h3,
#dynamic-home-root .ceddu-card h3{
  font-weight:900!important;
}
#root section:not(.cu-hero-has-search) p,
#dynamic-home-root .ceddu-card p{
  line-height:1.85!important;
}

@media(min-width:1025px){
  #root section:not(.cu-hero-has-search) h2{font-size:clamp(34px,3vw,46px)!important;line-height:1.28!important;}
  #root section:not(.cu-hero-has-search) h3{font-size:22px!important;line-height:1.45!important;}
  #root section:not(.cu-hero-has-search) p{font-size:17px!important;}
  #dynamic-home-root .ceddu-dynamic-section h2{font-size:clamp(34px,3.2vw,46px)!important;line-height:1.3!important;}
  #dynamic-home-root .ceddu-card h3{font-size:21px!important;line-height:1.55!important;}
  #dynamic-home-root .ceddu-card p{font-size:16px!important;}
}
@media(max-width:760px){
  #root section:not(.cu-hero-has-search) h2{font-size:31px!important;line-height:1.35!important;}
  #root section:not(.cu-hero-has-search) h3{font-size:23px!important;line-height:1.45!important;}
  #root section:not(.cu-hero-has-search) p{font-size:17px!important;line-height:1.8!important;}
  #dynamic-home-root .ceddu-dynamic-section h2{font-size:31px!important;line-height:1.35!important;}
  #dynamic-home-root .ceddu-card h3{font-size:21px!important;line-height:1.55!important;}
  #dynamic-home-root .ceddu-card p{font-size:16px!important;line-height:1.85!important;}
  .ceddu-section-more-btn{width:min(92%,340px)!important;font-size:17px!important;padding:13px 22px!important;}
}
