/*
 * DrAlaa Clinic — Homepage footer V26 (17 Nov 2026)
 * Rearranges existing live WordPress widgets; never removes their content.
 * Active only when the companion script has identified five widget columns.
 */
body.dc26-footer-on footer.wd-footer.footer-container{
  --dc26-gold:#e7bc84;
  --dc26-rose:#e1a09c;
  --dc26-mint:#c6e4d6;
  --dc26-white:#f6fbf8;
  --dc26-line:rgba(208,235,218,.18);
  position:relative;
  isolation:isolate;
  color:var(--dc26-white)!important;
  background:
    radial-gradient(ellipse 38% 55% at 3% 0%,rgba(53,128,106,.22),transparent 90%),
    radial-gradient(ellipse 45% 80% at 98% 100%,rgba(26,115,100,.18),transparent 92%),
    linear-gradient(120deg,#082e31 0%,#0a3c3b 56%,#072a2e 100%)!important;
  border-top:0!important;
  overflow:hidden;
}
body.dc26-footer-on footer.wd-footer.footer-container::before{
  content:"";position:absolute;z-index:0;top:0;right:0;left:0;height:3px;
  background:linear-gradient(90deg,transparent,#c99a68 24%,#f4d7ae 55%,#bb8a70 82%,transparent);
}
body.dc26-footer-on footer.wd-footer .main-footer{
  position:relative;z-index:1;
  box-sizing:border-box;
  width:min(100%,1370px)!important;
  max-width:1370px!important;
  margin:0 auto!important;
  padding:clamp(40px,4.5vw,65px) clamp(20px,4vw,62px) clamp(27px,3vw,41px)!important;
}
body.dc26-footer-on footer.wd-footer .footer-sidebar.dc26-layout{
  box-sizing:border-box;
  display:grid!important;
  direction:rtl;
  grid-template-columns:minmax(0,1.12fr) minmax(0,.82fr) minmax(0,1.18fr) minmax(0,1.1fr)!important;
  grid-template-rows:auto auto;
  grid-template-areas:"brand links articles map" "brand legal articles map";
  gap:16px clamp(17px,2.15vw,34px)!important;
  align-items:start;
  margin:0!important;
  padding:0!important;
  width:100%!important;
  --wd-gap-lg:0px!important;
  --wd-gap-sm:0px!important;
}
body.dc26-footer-on footer.wd-footer .dc26-layout>.footer-column{
  box-sizing:border-box!important;display:block!important;align-self:start;
  min-width:0!important;max-width:none!important;width:100%!important;
  margin:0!important;padding:0!important;float:none!important;
  flex:none!important;
  direction:rtl!important;text-align:right!important;
  grid-column:auto!important;
}
body.dc26-footer-on footer.wd-footer .dc26-layout>.dc26-brand{grid-area:brand!important}
body.dc26-footer-on footer.wd-footer .dc26-layout>.dc26-links{grid-area:links!important}
body.dc26-footer-on footer.wd-footer .dc26-layout>.dc26-legal{grid-area:legal!important}
body.dc26-footer-on footer.wd-footer .dc26-layout>.dc26-articles{grid-area:articles!important}
body.dc26-footer-on footer.wd-footer .dc26-layout>.dc26-map{grid-area:map!important}
body.dc26-footer-on footer.wd-footer .dc26-layout .footer-widget,
body.dc26-footer-on footer.wd-footer .dc26-layout .widget{
  min-width:0!important;width:100%;max-width:100%;
  margin:0 0 17px!important;padding:0!important;
  border:0!important;background:transparent!important;
  text-align:right!important;
}
body.dc26-footer-on footer.wd-footer .dc26-layout .widget:last-child{margin-bottom:0!important}
body.dc26-footer-on footer.wd-footer .dc26-layout :is(h3,h4,h5,h6,.widget-title){
  color:#fffaf3!important;
  font-family:"Noto Kufi Arabic","Almarai",Tahoma,Arial,sans-serif!important;
  font-size:clamp(14px,1.14vw,17px)!important;
  font-weight:800!important;
  line-height:1.75!important;
  text-align:right!important;
  margin:0 0 19px!important;padding:0!important;
  background:transparent!important;
  border:0!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
body.dc26-footer-on footer.wd-footer .dc26-layout :is(h3,h4,h5,h6,.widget-title)::after{
  content:"";display:block;width:34px;height:2px;margin-top:10px;
  border-radius:100px;background:linear-gradient(90deg,var(--dc26-gold),var(--dc26-rose));
}
body.dc26-footer-on footer.wd-footer .dc26-layout :is(p,span,li,small,address,.textwidget){
  color:#cfe2dc!important;
  font-family:"Almarai",Tahoma,Arial,sans-serif!important;
  line-height:1.95!important;
  letter-spacing:0!important;
  text-align:right!important;
}
body.dc26-footer-on footer.wd-footer .dc26-layout p{
  font-size:clamp(11px,.93vw,13px)!important;
  margin:0 0 12px!important;
  overflow-wrap:break-word!important;
}
body.dc26-footer-on footer.wd-footer .dc26-layout a{
  color:#e6f0eb!important;
  text-decoration:none!important;
  line-height:1.8!important;
  transition:color .24s ease,transform .24s ease,background-color .24s ease,border-color .24s ease!important;
  overflow-wrap:break-word;
  word-break:normal!important;
}
body.dc26-footer-on footer.wd-footer .dc26-layout a:hover,
body.dc26-footer-on footer.wd-footer .dc26-layout a:focus-visible{
  color:#ffe0b5!important;
}
body.dc26-footer-on footer.wd-footer .dc26-layout :is(a,button):focus-visible{
  outline:2px solid #f6d2a1!important;outline-offset:3px!important;border-radius:5px;
}
body.dc26-footer-on footer.wd-footer .dc26-layout :is(ul,ol){
  box-sizing:border-box;list-style:none!important;
  margin:0!important;padding:0!important;
}
body.dc26-footer-on footer.wd-footer .dc26-layout li{
  display:block!important;
  min-width:0!important;
  padding:0!important;
  margin:0 0 8px!important;
  background:transparent!important;
  border:0!important;
}
body.dc26-footer-on footer.wd-footer .dc26-layout li::marker{content:""}
body.dc26-footer-on footer.wd-footer .dc26-links li a,
body.dc26-footer-on footer.wd-footer .dc26-legal li a{
  position:relative;
  display:inline-flex!important;
  align-items:flex-start;
  gap:9px;
  font-size:clamp(12px,.96vw,14px)!important;
  font-weight:600!important;
  padding:3px 0!important;
  max-width:100%;
}
body.dc26-footer-on footer.wd-footer .dc26-links li a::before,
body.dc26-footer-on footer.wd-footer .dc26-legal li a::before{
  content:"›";
  flex:none;
  color:var(--dc26-gold);font:800 20px/1.2 Arial,sans-serif;
  transition:transform .25s ease,color .25s ease;
}
@media(hover:hover) and (pointer:fine){
  body.dc26-footer-on footer.wd-footer .dc26-links li a:hover::before,
  body.dc26-footer-on footer.wd-footer .dc26-legal li a:hover::before{
    transform:translateX(-3px);
    color:var(--dc26-rose);
  }
}
/* Existing original clinic logo, address and phone remain in the brand column. */
body.dc26-footer-on footer.wd-footer .dc26-brand{
  padding-left:clamp(6px,1vw,18px)!important;
}
body.dc26-footer-on footer.wd-footer .dc26-brand :is(img,svg){
  max-width:min(100%,185px)!important;
  width:auto!important;
  height:auto!important;
  object-fit:contain!important;
  object-position:right center;
  display:block;
  margin:0 0 12px auto!important;
}
body.dc26-footer-on footer.wd-footer .dc26-brand p,
body.dc26-footer-on footer.wd-footer .dc26-brand .textwidget{
  max-width:38ch;
  font-size:13px!important;
  line-height:2.04!important;
}
body.dc26-footer-on footer.wd-footer .dc26-brand :is(hr,.wp-block-separator){
  border:0!important;border-top:1px solid var(--dc26-line)!important;
  margin:14px 0!important;
  background:none!important;
}
body.dc26-footer-on footer.wd-footer .dc26-brand a[href^="tel:"],
body.dc26-footer-on footer.wd-footer .dc26-brand a[href*="whatsapp"]{
  color:#f6d9ae!important;
  direction:ltr!important;unicode-bidi:isolate;
}
/* Keep both live article links and their original dates/comments. */
body.dc26-footer-on footer.wd-footer .dc26-articles :is(ul,ol,.wd-recent-posts,.recent-posts){
  display:grid!important;grid-template-columns:1fr;gap:10px!important;
  list-style:none!important;padding:0!important;margin:0!important;
}
body.dc26-footer-on footer.wd-footer .dc26-articles li{
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;max-width:100%!important;
  padding:13px 15px!important;margin:0!important;
  border:1px solid rgba(199,227,213,.16)!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.035)!important;
  transition:background .24s ease,border-color .24s ease,transform .24s ease;
}
body.dc26-footer-on footer.wd-footer .dc26-articles :is(a,.post-title){
  font-size:clamp(11px,.95vw,13px)!important;
  font-weight:750!important;line-height:1.85!important;
  display:inline!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
}
body.dc26-footer-on footer.wd-footer .dc26-articles :is(.post-date,.post-date-text,.post-meta,.entry-meta,small,.comments-count){
  color:#aac8bc!important;font-size:10px!important;
  line-height:1.7!important;
  margin-top:6px!important;
}
body.dc26-footer-on footer.wd-footer .dc26-articles :is(img,.recent-posts-thumbnail){
  border-radius:7px;max-width:56px!important;
  object-fit:cover;
}
/* Same live embedded map, now at a readable width and with a heading. */
body.dc26-footer-on footer.wd-footer .dc26-map{
  min-width:0!important;
}
body.dc26-footer-on footer.wd-footer .dc26-map iframe{
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;
  height:clamp(190px,16.8vw,224px)!important;
  border:1px solid rgba(228,203,159,.28)!important;
  border-radius:13px!important;
  box-shadow:0 12px 32px rgba(0,14,18,.13);
  background:#e9f0eb;
}
body.dc26-footer-on footer.wd-footer .dc26-map :is(.wp-block-embed,.wp-block-html,.textwidget){
  width:100%!important;max-width:100%!important;margin:0!important;
}
body.dc26-footer-on footer.wd-footer .dc26-map .dc26-map-heading{
  margin-bottom:17px!important;
}
body.dc26-footer-on footer.wd-footer .dc26-socials{
  display:flex;align-items:center;justify-content:flex-start;
  flex-wrap:wrap;gap:9px;margin-top:18px;padding:0;
  direction:ltr;
}
body.dc26-footer-on footer.wd-footer .dc26-social{
  position:relative;isolation:isolate;
  overflow:hidden;display:inline-grid!important;
  place-items:center;flex:none;
  width:39px;height:39px;
  padding:0!important;
  border:1px solid rgba(236,200,169,.38)!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.08)!important;
  color:#ffe8d0!important;
  transition:transform .25s ease,border-color .25s ease,color .25s ease!important;
}
body.dc26-footer-on footer.wd-footer .dc26-social::before{
  content:"";position:absolute;z-index:-1;inset:0;
  background:linear-gradient(145deg,#de9d99,#bd7479);
  transform:translateY(102%);
  transition:transform .32s cubic-bezier(.16,.8,.25,1);
}
body.dc26-footer-on footer.wd-footer .dc26-social svg{
  display:block;width:17px;height:17px;max-width:17px!important;
  margin:0!important;fill:none;stroke:currentColor;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round;
}
body.dc26-footer-on footer.wd-footer .dc26-social svg.dc26-facebook{
  fill:currentColor;stroke:none;
}
body.dc26-footer-on footer.wd-footer .dc26-social span{
  color:inherit!important;font:800 15px/1 Arial,sans-serif!important;
}
@media(hover:hover) and (pointer:fine){
  body.dc26-footer-on footer.wd-footer .dc26-social:hover{
    transform:translateY(-3px);
    color:#fff!important;border-color:#f3b8bb!important;
  }
  body.dc26-footer-on footer.wd-footer .dc26-social:hover::before{
    transform:translateY(0);
  }
  body.dc26-footer-on footer.wd-footer .dc26-articles li:hover{
    transform:translateY(-2px);
    border-color:rgba(236,194,148,.46)!important;
    background:rgba(255,255,255,.075)!important;
  }
}
body.dc26-footer-on footer.wd-footer .wd-copyrights{
  position:relative;z-index:1;
  background:rgba(0,19,22,.31)!important;
  border-top:1px solid rgba(196,220,211,.17)!important;
  padding:14px clamp(20px,4vw,60px)!important;
  margin:0!important;
  color:#b7d1c4!important;
}
body.dc26-footer-on footer.wd-footer .wd-copyrights .container{
  max-width:1250px!important;margin:0 auto!important;
}
body.dc26-footer-on footer.wd-footer .wd-copyrights :is(p,a,span,div){
  color:#b7d1c4!important;
  font:500 11px/1.9 "Almarai",Tahoma,Arial,sans-serif!important;
}
body.dc26-footer-on footer.wd-footer .wd-copyrights a:hover{color:#f7d5a1!important}
@media(max-width:1100px){
  body.dc26-footer-on footer.wd-footer .footer-sidebar.dc26-layout{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:"brand articles" "links map" "legal map";
    gap:22px 32px!important;
  }
  body.dc26-footer-on footer.wd-footer .main-footer{
    padding:42px 27px 35px!important;
  }
  body.dc26-footer-on footer.wd-footer .dc26-map iframe{height:226px!important}
}
@media(max-width:650px){
  body.dc26-footer-on footer.wd-footer .main-footer{
    padding:35px 18px 26px!important;
  }
  body.dc26-footer-on footer.wd-footer .footer-sidebar.dc26-layout{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"brand" "links" "legal" "articles" "map";
    gap:26px!important;
  }
  body.dc26-footer-on footer.wd-footer .dc26-brand{
    border-bottom:1px solid var(--dc26-line)!important;
    padding:0 0 20px!important;
  }
  body.dc26-footer-on footer.wd-footer .dc26-layout :is(h3,h4,h5,h6,.widget-title){
    font-size:16px!important;margin-bottom:13px!important;
  }
  body.dc26-footer-on footer.wd-footer .dc26-brand :is(img,svg){max-width:160px!important}
  body.dc26-footer-on footer.wd-footer .dc26-brand p{font-size:12px!important}
  body.dc26-footer-on footer.wd-footer .dc26-articles li{padding:13px 14px!important}
  body.dc26-footer-on footer.wd-footer .dc26-articles a{font-size:13px!important}
  body.dc26-footer-on footer.wd-footer .dc26-map iframe{height:210px!important}
  body.dc26-footer-on footer.wd-footer .wd-copyrights{text-align:center!important}
}
@media(prefers-reduced-motion:reduce){
  body.dc26-footer-on footer.wd-footer *,
  body.dc26-footer-on footer.wd-footer *::before,
  body.dc26-footer-on footer.wd-footer *::after{
    transition-duration:.01ms!important;
    animation:none!important;
    transform:none!important;
  }
}
