/*
 * Dynamic Content Hub â€” header, footer, and global banner styles.
 */

.dch-header,
.bc-footer {
    font-family: var(--font-primary);
}

.dch-header {
    position: relative;
    left: 0;
    right: 0;
    z-index: 10001;
    background: #ffffff !important;
    box-shadow: none;
    font-family: var(--font-primary);
    border-bottom: 1px solid #f1f5f9;
    direction: rtl; /* Force RTL */
    overflow: visible !important; /* Ensure mega menu isn't clipped */
}

.dch-header.is-sticky {
    position: fixed;
    top: 0 !important;
    margin-top: 0 !important;
}

.dch-header__main-left {
    display: flex;
    align-items: center;
    gap: 12px; /* Spacing between search and whatsapp */
}

/* Hide default theme headers and footers to allow sitewide override */
body.has-dch-header {
    margin: 0;
}
body.has-dch-header header.site-header,
body.has-dch-header footer.site-footer,
body.has-dch-header .elementor-location-header,
body.has-dch-header .elementor-location-footer {
    display: none !important;
}

/* Remove default theme gaps injected below hidden headers */
body.has-dch-header .site-main,
body.has-dch-header .site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Fix wpautop injecting empty paragraphs between header and the first section */
body.has-dch-header > p:empty,
body.has-dch-header > br,
body.has-dch-header .site-main > p:empty,
body.has-dch-header .site-content > p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


.dch-header__top {
    background: var(--dch-primary);
    color: rgba(255, 255, 255, 0.88);
    padding: 7px 0;
    font-size: 0.8125rem;
}

.dch-header__top-inner {
    max-width: var(--dch-header-width, 1440px);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

[dir="rtl"] .dch-header__main-inner {
    flex-direction: row; /* Respect natural RTL flow */
}

.dch-header__top-contacts,
.dch-header__top-social,
.dch-header__top-badges,
.dch-nav,
.dch-nav__list {
    display: flex;
    align-items: center;
}

.dch-header__top-contacts {
    gap: 18px;
}

.dch-header__top-social {
    gap: 10px;
}

.dch-header__top-link {
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.dch-header__top-link i {
    color: var(--dch-accent);
}

.dch-header__top-link:hover {
    color: #ffffff !important;
}

.dch-header__top-link i.fa-phone-alt {
    transform: scaleX(-1);
    display: inline-block;
}

.dch-header__top-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.25s;
}

.dch-header__top-social a:hover,
.dch-whatsapp-fab:hover {
    background: var(--dch-accent);
    color: #ffffff;
}

.dch-header__main-inner {
    max-width: var(--dch-header-width, 1440px);
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Middle is auto, sides are equal 1fr */
    align-items: center;
    gap: 20px;
    min-height: 70px;
}

/* Hide mobile-only components on desktop */
.dch-mobile-nav__head,
.dch-mobile-nav__search,
.dch-mobile-nav__footer {
    display: none !important;
}

.dch-nav {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.dch-header__main-left {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.dch-header-search {
    width: 380px; /* Adjusted to prevent overlap */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dch-header-search:focus-within {
    width: 420px;
}

.dch-header-search form {
    position: relative;
    display: flex;
    align-items: center;
}

.dch-header-search input {
    width: 100%;
    padding: 12px 20px !important;
    padding-left: 48px !important;
    border: 1.5px solid #f1f5f9 !important;
    border-radius: 50px !important;
    font-size: 0.85rem !important;
    background: #f8fafc !important;
    transition: all 0.3s ease !important;
    font-family: var(--font-primary) !important;
    color: var(--dch-primary) !important;
}

.dch-header-search input:focus {
    outline: none;
    border-color: var(--dch-accent);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.08), inset 0 2px 4px rgba(0,0,0,0.02);
}

.dch-header-search button {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    color: var(--dch-text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dch-header-search button:hover {
    background: var(--dch-accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.dch-header-search input:focus + button {
    color: var(--dch-accent);
}

.dch-header-search input:focus + button:hover {
    color: #ffffff;
}

.dch-btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
}

.dch-btn-whatsapp i {
    font-size: 1.1rem;
}

.dch-btn-whatsapp:hover {
    background: linear-gradient(135deg, #2ae06d 0%, #16a08f 100%);
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}


.dch-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-shrink: 0;
    min-height: 70px;
}

.dch-logo__icon img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.dch-logo__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dch-logo__name {
    color: #0b48a4;
    font-size: 1.4rem;
    font-weight: 900;
}

.dch-logo__name span {
    color: #079b4c;
}

.dch-logo__tagline {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    color: #112a55;
    margin-top: 2px;
}

.dch-nav {
    margin: 0 auto; /* Center the nav */
}

.dch-nav__list {
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.dch-nav__link,
.dch-nav__list li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dch-text-main);
    padding: 6px 12px;
    border-radius: 6px;
    position: relative;
    white-space: nowrap;
    transition: all 0.2s;
    text-decoration: none;
}

.dch-nav__link::after,
.dch-nav__list li a::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: var(--dch-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.dch-nav__link:hover,
.dch-nav__link.active,
.dch-nav__list li a:hover,
.dch-nav__list li.current-menu-item > a,
.dch-nav__list li.current_page_item > a,
.dch-nav__list li.current_page_parent > a,
.dch-nav__list li.current-menu-ancestor > a,
.dch-nav__list li.current-menu-parent > a {
    color: var(--dch-primary);
}

.dch-nav__link:hover::after,
.dch-nav__link.active::after,
.dch-nav__list li a:hover::after,
.dch-nav__list li.current-menu-item > a::after,
.dch-nav__list li.current_page_item > a::after,
.dch-nav__list li.current_page_parent > a::after,
.dch-nav__list li.current-menu-ancestor > a::after,
.dch-nav__list li.current-menu-parent > a::after {
    transform: scaleX(1);
}

.dch-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    background: transparent !important;
    border: 0;
    padding: 4px;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
}

.dch-menu-toggle:hover,
.dch-menu-toggle:focus,
.dch-menu-toggle:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.dch-menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    border-radius: 3px;
    background: var(--dch-primary);
    transition: all 0.3s ease;
}

.dch-menu-toggle:hover span:nth-child(2) {
    width: 70%;
}

.dch-menu-toggle:hover span:last-child {
    width: 50%;
}

/* Open State (X) */
.dch-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7.5px) rotate(45deg);
}

.dch-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.dch-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7.5px) rotate(-45deg);
    width: 100% !important;
}

body.has-dch-header {
    padding-top: 0 !important;
}

/* Admin Bar Offset - Only for Sticky */
.admin-bar .dch-header.is-sticky {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar .dch-header.is-sticky {
        top: 0 !important;
    }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   Bio Care Footer â€” Premium Design
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */


.bc-footer-exact,
.bc-footer-exact * {
  box-sizing: border-box;
}

.bc-footer-exact {
  --bc-deep-blue: #0D47A1;
  --bc-ocean: #0288D1;
  --bc-teal: #00BFA5;
  --bc-green: #43A047;
  --bc-navy: #0A192F;
  --bc-light: #E0E6ED;
  --bc-white: #FFFFFF;

  position: relative;
  direction: rtl;
  overflow: hidden;
  color: #fff;
  font-family: var(--font-primary), "Cairo", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 191, 165, 0.16), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(2, 136, 209, 0.16), transparent 30%),
    linear-gradient(145deg, #061326 0%, #0A192F 62%, #061326 100%);
  padding: 84px 0 0;
}

/* Top white wave like screenshot */
@keyframes footerWaveAnim {
  0%, 100% { clip-path: ellipse(58% 42% at 50% 0%); }
  50% { clip-path: ellipse(62% 46% at 50% 0%); }
}

.bc-footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 70px;
  background: #ffffff;
  clip-path: ellipse(58% 42% at 50% 0%);
  animation: footerWaveAnim 8s ease-in-out infinite;
  z-index: 1;
}

/* Grid overlay */
.bc-footer-exact::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 58px 58px;
    opacity: 0.28;
    pointer-events: none;
}

/* Skyline silhouette */
.bc-footer-exact::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 48px;
    height: 180px;
    background-image: url("data:image/svg+xml,%3Csvg width='1920' height='230' viewBox='0 0 1920 230' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23E0E6ED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='.20'%3E%3Cpath d='M0 166C140 144 260 148 390 162C520 176 640 175 760 158C900 139 1010 141 1140 160C1285 181 1400 176 1530 158C1665 139 1790 144 1920 165'/%3E%3Cpath d='M0 188H1920'/%3E%3Cpath d='M0 202H1920' opacity='.55'/%3E%3Cpath d='M55 188V96L150 39L260 96V188'/%3E%3Cpath d='M72 96H244'/%3E%3Cpath d='M94 188V134H135V188'/%3E%3Cpath d='M172 188V145H218V188'/%3E%3Cpath d='M115 113h37M180 113h36'/%3E%3Cpath d='M280 188V82C280 49 302 25 330 25C358 25 380 49 380 82V188'/%3E%3Cpath d='M299 84h62M299 112h62M299 140h62'/%3E%3Cpath d='M36 188v-34M100 188v-34M164 188v-34M228 188v-34M292 188v-34M356 188v-34M420 188v-34M484 188v-34M548 188v-34M612 188v-34M676 188v-34M740 188v-34M804 188v-34M868 188v-34M932 188v-34M996 188v-34M1060 188v-34M1124 188v-34M1188 188v-34M1252 188v-34M1316 188v-34M1380 188v-34M1444 188v-34M1508 188v-34M1572 188v-34M1636 188v-34M1700 188v-34M1764 188v-34M1828 188v-34M1892 188v-34' opacity='.75'/%3E%3Cpath d='M36 154H1892' opacity='.75'/%3E%3Cpath d='M36 172H1892' opacity='.55'/%3E%3Cpath d='M520 160C548 128 594 120 630 142C662 161 675 180 697 188'/%3E%3Cpath d='M548 188V151M630 188V151M665 188V164'/%3E%3Cpath d='M520 160C505 151 503 136 516 128C535 116 551 126 557 143'/%3E%3Cpath d='M594 128C603 106 628 103 642 120'/%3E%3Cpath d='M690 148C713 138 734 139 756 151'/%3E%3Cpath d='M756 151C742 164 724 168 697 160'/%3E%3Cpath d='M810 188C818 152 846 133 888 137C924 141 951 163 969 188'/%3E%3Cpath d='M853 188V153M927 188V159'/%3E%3Cpath d='M833 147C850 126 883 120 915 132'/%3E%3Cpath d='M967 150C990 139 1012 142 1032 158'/%3E%3Cpath d='M1032 158C1017 169 992 170 969 161'/%3E%3Cpath d='M1170 188V108H1304V188'/%3E%3Cpath d='M1150 108L1234 54L1320 108'/%3E%3Cpath d='M1202 188V139H1246V188'/%3E%3Cpath d='M1268 188V151H1292V188'/%3E%3Cpath d='M1336 188V78C1336 52 1352 36 1373 36C1395 36 1410 52 1410 78V188'/%3E%3Cpath d='M1353 83h40M1353 111h40M1353 139h40'/%3E%3Cpath d='M1470 166C1490 134 1527 123 1564 139C1593 151 1608 170 1625 188'/%3E%3Cpath d='M1512 188V151M1586 188V158'/%3E%3Cpath d='M1470 166C1454 158 1451 143 1463 134C1479 122 1498 130 1504 147'/%3E%3Cpath d='M1650 188C1657 158 1682 141 1718 144C1752 147 1776 168 1794 188'/%3E%3Cpath d='M1687 188V158M1756 188V163'/%3E%3Cpath d='M1815 151C1844 140 1870 145 1894 166'/%3E%3Cpath d='M1894 166C1874 176 1843 174 1815 160'/%3E%3Cpath d='M1010 142c22-44 75-44 97 0' opacity='.5'/%3E%3Cpath d='M1058 188V102' opacity='.5'/%3E%3Cpath d='M1028 122c20 5 42 5 62 0M1034 104c18 6 36 6 54 0' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
    opacity: 0.9;
    pointer-events: none;
}

.bc-footer-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr .95fr .75fr .95fr;
  gap: 36px;
  align-items: start;
  padding: 40px 0 60px;
}

.bc-footer-brand {
  text-align: right;
}

.bc-footer-logo {
  width: 190px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 0 18px auto;
}

.bc-footer-brand p {
  margin: 0;
  max-width: 360px;
  color: rgba(255,255,255,.86);
  font-size: 15px;
  font-weight: 500;
  line-height: 2;
}

.bc-footer-social {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.bc-footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  transition: .2s ease;
}

.bc-footer-social a:hover {
  background: var(--bc-teal);
  border-color: var(--bc-teal);
  transform: translateY(-3px) scale(1.05);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 191, 165, 0.4);
}

.bc-footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.bc-footer-col {
  position: relative;
  padding: 26px;
  min-height: 210px;
  border-right: 1px solid rgba(255,255,255,.12);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.bc-footer-col:hover {
  background: rgba(255, 255, 255, 0.04);
}

.bc-footer-contact {
  position: relative;
  padding-inline-start: 10px;
}

.bc-footer-col h3,
.bc-footer-contact h3 {
  position: relative;
  margin: 0 0 30px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.4;
  background: linear-gradient(90deg, #ffffff, #E0E6ED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bc-footer-col h3::after,
.bc-footer-contact h3::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -11px;
  width: 72px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--bc-teal), var(--bc-green));
}

.bc-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bc-footer-col li {
  margin-bottom: 12px;
}

.bc-footer-col a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.86);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  transition: .2s ease;
}

.bc-footer-col a::before {
  content: "›";
  color: var(--bc-teal);
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

.bc-footer-col a:hover {
  color: #ffffff;
  transform: translateX(-5px);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.bc-footer-contact {
  text-align: right;
}

@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(0,191,165, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(0,191,165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0,191,165, 0); }
}

.bc-footer-whatsapp-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #0fbf73, #00BFA5);
  box-shadow: 0 14px 34px rgba(0,191,165,.28);
  animation: waPulse 2s infinite;
}

.bc-footer-whatsapp-icon svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.bc-footer-contact p {
  margin: 0 0 22px;
  max-width: 260px;
  color: rgba(255,255,255,.86);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.9;
}

.bc-footer-wa-btn {
  min-height: 52px;
  width: 235px;
  max-width: 100%;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #00BFA5, #43A047);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(0,191,165,.22);
  transition: .2s ease;
}

.bc-footer-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0,191,165,.30);
  color: #ffffff;
}

.bc-footer-bottom {
  position: relative;
  z-index: 2;
  min-height: 58px;
  display: grid;
  place-items: center;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.75);
  font-size: 14px;
  font-weight: 600;
}

/* Hide skyline on mobile to simplify layout */
@media (max-width: 920px) {
  .bc-footer-exact::after {
    background-image: none;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .bc-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 34px 28px;
  }

  .bc-footer-col {
    border-right: 0;
    padding-inline: 0;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .bc-footer-exact {
    padding-top: 56px;
  }

  .bc-footer-wave {
    height: 46px;
  }

  .bc-footer-inner {
    width: min(100% - 32px, 520px);
    grid-template-columns: 1fr;
    padding: 24px 0 42px;
    gap: 32px;
  }

  .bc-footer-brand,
  .bc-footer-contact,
  .bc-footer-col {
    text-align: center;
  }

  .bc-footer-logo {
    margin-inline: auto;
  }

  .bc-footer-brand p,
  .bc-footer-contact p {
    margin-inline: auto;
  }

  .bc-footer-social {
    justify-content: center;
  }

  .bc-footer-col h3::after,
  .bc-footer-contact h3::after {
    right: 50%;
    transform: translateX(50%);
  }

  .bc-footer-col a {
    justify-content: center;
  }

  .bc-footer-whatsapp-icon {
    margin-inline: auto;
  }

  .bc-footer-wa-btn {
    width: 100%;
  }
}


.dch-whatsapp-fab {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dch-whatsapp-bg, #25d366);
    color: #ffffff;
    font-size: 1.4rem;
    z-index: 1025;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s, background 0.2s;
}

.dch-whatsapp-fab:hover {
    background: #128c7e;
    transform: scale(1.1);
    color: #ffffff;
}

/* â”€â”€ Back to Top Button â”€â”€ */
.dch-back-to-top {
    position: fixed;
    right: 28px;
    bottom: 96px; /* Above WhatsApp FAB */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dch-btt-color, #0d9488);
    color: #ffffff;
    font-size: 1rem;
    z-index: 1024;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.2s;
    opacity: 0.9;
}

.dch-back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    opacity: 1;
}



@media (max-width: 920px) {
    body.has-dch-header {
        padding-top: 138px; /* fallback - JS calculates the exact value */
    }

    .dch-header {
        border: 0;
        border-radius: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        background: #ffffff !important;
    }

    .dch-header__top {
        display: none;
    }

    .dch-header__main {
        padding: 0;
    }

    .dch-header__main-inner {
        min-height: 138px;
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        grid-template-areas:
            "toggle logo spacer"
            "actions actions actions";
        row-gap: 12px;
        padding: 12px 16px 16px;
        direction: rtl; 
        gap: 0;
    }

    /* Spacer for grid centering */
    .dch-header__main-inner::after {
        content: "";
        grid-area: spacer;
        width: 44px;
    }

    .dch-logo {
        grid-area: logo;
        justify-self: center;
        min-height: unset;
        min-width: 0;
        gap: 8px;
        padding: 0;
    }

    .dch-logo__icon img {
        height: 56px;
        width: auto;
    }

    .dch-logo__name {
        font-size: 1.6rem;
        line-height: 1;
    }

    .dch-logo__tagline {
        font-size: 0.65rem;
        text-align: center;
    }

    .dch-menu-toggle {
        grid-area: toggle;
        display: flex;
        align-self: center;
        width: 44px;
        height: 44px;
        justify-content: center;
        align-items: center;
    }

    .dch-header__main-left {
        grid-area: actions;
        display: grid !important;
        grid-template-columns: 1fr auto;
        width: 100%;
        padding: 0;
        gap: 10px;
        align-items: center;
    }

    .dch-header-search {
        width: 100% !important;
        height: 40px;
    }

    .dch-header-search input {
        height: 40px !important;
        padding: 0 12px !important;
        padding-right: 40px !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
    }

    .dch-header-search button {
        width: 40px;
        height: 40px;
        right: 4px;
        left: auto;
    }

    .dch-btn-whatsapp {
        min-width: 120px;
        height: 40px;
        padding: 0 12px;
        border-radius: 8px;
        font-size: 0.75rem;
        gap: 6px;
        justify-content: center;
        background: linear-gradient(135deg, #079743 0%, #09ad57 100%);
        box-shadow: 0 8px 16px rgba(7, 151, 67, 0.2);
    }

    .dch-btn-whatsapp i {
        font-size: 1rem;
    }

    .dch-nav {
        position: fixed !important;
        direction: rtl;
        top: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        right: 0 !important;
        width: 300px !important;
        max-width: 80% !important;
        height: 100vh !important;
        background: #ffffff !important;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, visibility 0.3s;
        z-index: 10000;
        overflow-y: auto;
    }

    .dch-nav.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: all;
    }

    /* Remove backdrop entirely to avoid shadows/blockage */
    body.is-menu-open::after {
        display: none !important;
    }

    /* Re-show mobile components in drawer */
    .dch-mobile-nav__head,
    .dch-mobile-nav__search,
    .dch-mobile-nav__footer {
        display: flex !important;
    }

    /* Mobile Drawer Head */
    .dch-mobile-nav__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        border-bottom: 1px solid #f1f5f9;
    }

    .dch-mobile-nav__close {
        width: 42px;
        height: 42px;
        background: #f0f7ff !important;
        border: none;
        border-radius: 12px;
        color: #0b48a4 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .dch-mobile-nav__close:hover {
        background: #0b48a4 !important;
        color: #ffffff !important;
    }

    .dch-mobile-nav__logo .dch-logo {
        min-height: unset;
        gap: 8px;
    }
    
    .dch-mobile-nav__logo .dch-logo__icon img {
        height: 48px;
        width: auto;
    }

    /* Mobile Drawer Search */
    .dch-mobile-nav__search {
        padding: 15px 20px;
        background: #ffffff;
    }

    .dch-mobile-nav__search form {
        position: relative;
        display: flex;
        align-items: center;
    }

    .dch-mobile-nav__search i {
        position: absolute;
        right: 14px; /* Right for RTL */
        left: auto;
        color: #0b48a4;
        font-size: 1rem;
        z-index: 10;
    }

    .dch-mobile-nav__search input {
        width: 100%;
        height: 58px; /* Increased size */
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 15px; /* Updated to 15px */
        padding-right: 52px !important;
        padding-left: 18px !important;
        font-size: 1.05rem; /* Slightly larger text */
        color: #1e293b;
        text-align: right;
        box-shadow: none;
        transition: all 0.3s ease;
    }

    .dch-nav__list {
        display: flex;
        flex-direction: column;
        padding: 10px 20px;
        gap: 12px;
        list-style: none;
        margin: 0;
    }

    .dch-nav__list li {
        width: 100%;
        margin: 0;
    }

    .dch-nav__list li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        background: #f8fafc;
        border-radius: 12px;
        color: #1e293b;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.2s ease;
        text-decoration: none;
        border: 1px solid transparent;
        width: 100%;
    }

    .dch-nav__list li a:active,
    .dch-nav__list li a.active {
        background: #f0f7ff;
        color: #0b48a4;
        border-color: #0b48a4;
        box-shadow: inset 0 0 0 1px rgba(11, 72, 164, 0.1);
    }

    /* Mobile Drawer Footer */
    .dch-mobile-nav__footer {
        margin-top: auto;
        padding: 20px;
        padding-bottom: 40px;
    }

    .dch-mobile-nav__footer .dch-btn-whatsapp {
        width: 100%;
        height: 52px;
        font-size: 1.05rem;
        border-radius: 12px;
        background: #00a859; /* Solid green like image */
        box-shadow: 0 10px 20px rgba(0, 168, 89, 0.2);
    }


}

/* ============================================= */
/* GLOBAL PAGE BANNER (Soft Cards Style)         */
/* ============================================= */
.page-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 160px 0 100px;
    margin-top: 0 !important;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background-color: var(--dch-primary);
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.9) 0%, rgba(51, 65, 85, 0.6) 100%);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-banner h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.page-banner p {
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-banner { padding: 140px 0 70px; }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Glass Effect (Glassmorphism)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dch-glass-effect {
    -webkit-backdrop-filter: saturate(180%) blur(16px) !important;
    backdrop-filter: saturate(180%) blur(16px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Mega Menu Styles
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dch-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border: 1px solid #f1f5f9;
    border-top: none;
    padding: 15px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    width: fit-content;
    min-width: min(900px, 95vw);
    max-width: calc(100vw - 40px);
    border-radius: 20px;
}

.dch-mega-menu.is-visible,
.dch-mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dch-mega-menu__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.dch-mega-menu__card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.dch-mega-menu__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: var(--dch-primary);
}

.dch-mega-menu__card-image {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.dch-mega-menu__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dch-mega-menu__card:hover .dch-mega-menu__card-image img {
    transform: scale(1.08);
}

.dch-mega-menu__card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dch-mega-menu__card-number {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--dch-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dch-mega-menu__card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dch-primary);
    margin: 0;
}

.dch-mega-menu__card-desc {
    font-size: 0.8rem;
    color: var(--dch-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Top Bar Badges */
.dch-header__top-badges {
    gap: 24px;
}

.dch-header__top-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.dch-header__top-badge i {
    color: var(--dch-accent);
}

/* RTL Specific Fixes */
[dir="rtl"] .dch-header-search input {
    padding-right: 48px !important;
    padding-left: 20px !important;
}

[dir="rtl"] .dch-header-search button {
    left: auto;
    right: 6px;
}

[dir="rtl"] .dch-header__top-badge i {
    margin-left: 4px;
}

@media (max-width: 1200px) {
    .dch-mega-menu__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .dch-header__top-badges {
        display: none;
    }
}

@media (max-width: 768px), (max-width: 880px) and (orientation: landscape) {
    .dch-mega-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 20px;
        box-shadow: none;
        border-top: 1px solid #f1f5f9;
    }

    .dch-mega-menu.is-open {
        display: block;
    }

    .dch-mega-menu__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

