/* ==========================================================================
   Aanaab v4 Chrome Styles — Native Blocksy Header, Mega Menu, Offcanvas, Footer
   Matches v4 spec 1:1 while honoring Blocksy palette variables (--theme-palette-color-*)
   ========================================================================== */

@font-face {
  font-family: Ping;
  src: url("/wp-content/uploads/aanaab-v4/v4-font-01-c07a41cc.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Ping;
  src: url("/wp-content/uploads/aanaab-v4/v4-font-02-5fbc3f43.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Ping;
  src: url("/wp-content/uploads/aanaab-v4/v4-font-03-f1bc25d7.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

#header.ct-header,
#footer.ct-footer,
#offcanvas.ct-panel {
  font-family: Ping, var(--theme-font-family, "PingAR LT", Arial, sans-serif);
}

:root {
  --aanb4-gutter: clamp(24px, 4.8vw, 76px);
  --aanb4-max-width: 1280px;
}

@media (min-width: 1700px) {
  :root {
    --aanb4-max-width: 1380px;
  }
}

@media (max-width: 800px) {
  :root {
    --aanb4-gutter: 24px;
  }
}

@media (max-width: 480px) {
  :root {
    --aanb4-gutter: 20px;
  }
}

/* Smooth anchor scrolling accounting for sticky 86px header */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

@media (max-width: 800px) {
  html {
    scroll-padding-top: 94px;
  }
}

/* ==========================================================================
   Container Alignment (Header & Footer match .container 1:1)
   ========================================================================== */
#header.ct-header [data-row*="middle"] > .ct-container,
#footer.ct-footer [data-row*="middle"] > .ct-container,
#footer.ct-footer [data-row*="bottom"] > .ct-container {
  width: calc(100% - var(--aanb4-gutter) * 2);
  max-width: var(--aanb4-max-width);
  margin-inline: auto;
  padding-inline: 0;
}

/* ==========================================================================
   Header Shell (#header.ct-header)
   ========================================================================== */
#header.ct-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--theme-palette-color-8, #ffffff);
}

#header.ct-header [data-row*="middle"] {
  --height: 86px;
  min-height: 86px;
  background: var(--theme-palette-color-8, #ffffff);
  border-bottom: 1px solid var(--theme-palette-color-5, #e5e0ea);
  box-shadow: none;
}

#header.ct-header [data-row*="middle"] > .ct-container {
  min-height: 86px;
  align-items: center;
  grid-column-gap: 24px;
}

/* Start column: Logo + Primary Nav (generous 5x clear space per Brand Guidelines p.5) */
#header.ct-header [data-device="desktop"] [data-column="start"] > [data-items="primary"] {
  display: flex;
  align-items: center;
  gap: 52px;
  --items-spacing: 0px;
}

#header.ct-header [data-device="desktop"] [data-column="start"] > [data-items="primary"] > * {
  margin-inline: 0;
}

/* Logo sizing */
#header.ct-header .site-branding {
  display: flex;
  align-items: center;
  flex: 0 0 132px;
  margin: 0;
  padding: 0;
  line-height: 0;
}

#header.ct-header .site-branding .site-logo-container {
  display: block;
  width: 132px;
  height: auto;
  line-height: 0;
}

#header.ct-header .site-branding img,
#header.ct-header .site-branding svg {
  display: block;
  width: 132px;
  max-width: none;
  height: auto;
  max-height: none;
}

/* Primary Navigation */
#header.ct-header .header-menu-1 {
  height: 100%;
  min-height: 86px;
  --menu-items-spacing: 0px;
  --menu-item-height: 100%;
}

#header.ct-header .header-menu-1 > ul.menu {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

#header.ct-header .header-menu-1 > ul.menu > li.menu-item {
  position: static;
  display: flex;
  align-items: center;
  min-height: 86px;
  margin: 0;
  padding: 0;
}

#header.ct-header .header-menu-1 > ul.menu > li.menu-item > a.ct-menu-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 86px;
  height: 86px;
  padding: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: var(--theme-palette-color-4, #180d27);
  --theme-link-initial-color: var(--theme-palette-color-4, #180d27);
  --theme-link-hover-color: var(--theme-palette-color-4, #180d27);
  --theme-link-active-color: var(--theme-palette-color-4, #180d27);
}

/* Single crisp 2px purple bottom indicator matching v4 .nav-trigger:after */
#header.ct-header .header-menu-1 > ul.menu > li.menu-item > a.ct-menu-link::before {
  display: none !important;
}

#header.ct-header .header-menu-1 > ul.menu > li.menu-item > a.ct-menu-link::after {
  content: "";
  position: absolute;
  bottom: -1px;
  inset-inline: 0;
  height: 2px;
  width: 100%;
  opacity: 1;
  background: var(--theme-palette-color-1, #471895);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

#header.ct-header .header-menu-1 > ul.menu > li.menu-item:hover > a.ct-menu-link::after,
#header.ct-header .header-menu-1 > ul.menu > li.menu-item:focus-within > a.ct-menu-link::after,
#header.ct-header .header-menu-1 > ul.menu > li.menu-item.ct-active > a.ct-menu-link::after,
#header.ct-header .header-menu-1 > ul.menu > li.menu-item > a.ct-menu-link[aria-expanded="true"]::after {
  transform: scaleX(1);
}

/* Dropdown chevron */
#header.ct-header .header-menu-1 > ul.menu > li.menu-item > a.ct-menu-link .ct-toggle-dropdown-desktop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: 2px;
  width: 13px;
  height: 13px;
  color: currentColor;
}

#header.ct-header .header-menu-1 > ul.menu > li.menu-item > a.ct-menu-link .ct-toggle-dropdown-desktop .ct-icon,
#header.ct-header .header-menu-1 > ul.menu > li.menu-item > a.ct-menu-link .ct-toggle-dropdown-desktop svg {
  width: 13px;
  height: 13px;
  transition: transform 0.18s ease;
}

#header.ct-header .header-menu-1 > ul.menu > li.menu-item:hover > a.ct-menu-link .ct-toggle-dropdown-desktop svg,
#header.ct-header .header-menu-1 > ul.menu > li.menu-item:focus-within > a.ct-menu-link .ct-toggle-dropdown-desktop svg,
#header.ct-header .header-menu-1 > ul.menu > li.menu-item.ct-active > a.ct-menu-link .ct-toggle-dropdown-desktop svg,
#header.ct-header .header-menu-1 > ul.menu > li.menu-item > a.ct-menu-link[aria-expanded="true"] .ct-toggle-dropdown-desktop svg {
  transform: rotate(180deg);
}

/* ==========================================================================
   Mega Menu Dropdown Container (Native Blocksy Pro Mega Menu)
   ========================================================================== */
#header.ct-header .header-menu-1 > ul.menu > li.menu-item[class*="ct-mega-menu"] > .sub-menu,
#header.ct-header .header-menu-1 > ul.menu > li.menu-item.ct-mega-menu-content > .sub-menu,
#header.ct-header .header-menu-1 > ul.menu > li.menu-item.menu-item-has-children > .sub-menu {
  --mega-menu-width: calc(100vw - var(--aanb4-gutter) * 2);
  --mega-menu-max-width: var(--aanb4-max-width);
  --dropdown-background-color: var(--theme-palette-color-8, #ffffff);
  --dropdown-divider: none;
  --columns-padding: 0px;
  --dropdown-top-offset: 0px;
  --theme-link-initial-color: var(--theme-palette-color-4, #180d27);
  --theme-link-hover-color: var(--theme-palette-color-1, #471895);
  --theme-text-color: var(--theme-palette-color-3, #655d70);
  width: calc(100vw - var(--aanb4-gutter) * 2);
  max-width: var(--aanb4-max-width);
  inset-inline: 0;
  margin-inline: auto;
  margin-top: 0;
  padding: 28px;
  background: var(--theme-palette-color-8, #ffffff);
  border: 1px solid var(--theme-palette-color-5, #e5e0ea);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 35px #25123c14;
  max-height: calc(100dvh - 108px);
  overflow-y: auto;
  color: var(--theme-palette-color-4, #180d27);
}

/* Eliminate unwanted padding, borders, dividers, or empty links on the single hook child li */
#header.ct-header .header-menu-1 > ul.menu > li.menu-item[class*="ct-mega-menu"] > .sub-menu > li,
#header.ct-header .header-menu-1 > ul.menu > li.menu-item.ct-mega-menu-content > .sub-menu > li {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: visible;
  min-width: 0;
}

#header.ct-header .header-menu-1 > ul.menu > li.menu-item[class*="ct-mega-menu"] > .sub-menu > li::before,
#header.ct-header .header-menu-1 > ul.menu > li.menu-item[class*="ct-mega-menu"] > .sub-menu > li::after {
  display: none !important;
}

#header.ct-header .header-menu-1 > ul.menu > li.menu-item[class*="ct-mega-menu"] > .sub-menu > li > a.ct-menu-link:empty {
  display: none;
}

#header.ct-header .header-menu-1 > ul.menu > li.menu-item[class*="ct-mega-menu"] > .sub-menu .entry-content {
  padding: 0;
  margin: 0;
  color: var(--theme-palette-color-4, #180d27);
}

/* ==========================================================================
   Header End Column: Login Button & Primary CTA
   ========================================================================== */
#header.ct-header [data-column="end"] > [data-items="primary"] {
  display: flex;
  align-items: center;
  gap: 12px;
  --items-spacing: 0px;
}

#header.ct-header [data-column="end"] > [data-items="primary"] > * {
  margin-inline: 0;
}

#header.ct-header .ct-header-text,
#header.ct-header .ct-header-text .entry-content {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

#header.ct-header .ct-header-text .entry-content > p {
  margin: 0;
}

.aanb-v4-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid #d5ccdf;
  border-radius: 999px;
  background: transparent;
  color: var(--theme-palette-color-4, #180d27) !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.aanb-v4-login-btn:hover,
.aanb-v4-login-btn:focus-visible {
  background: #f7f4fb;
  color: var(--theme-palette-color-4, #180d27) !important;
  text-decoration: none;
}

#header.ct-header .ct-header-cta {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

#header.ct-header .ct-header-cta .ct-button,
#header.ct-header .ct-header-cta .aanb-v4-cta-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--theme-palette-color-1, #471895);
  border: 1.5px solid var(--theme-palette-color-1, #471895);
  color: var(--theme-palette-color-8, #ffffff);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

#header.ct-header .ct-header-cta .ct-button:hover,
#header.ct-header .ct-header-cta .aanb-v4-cta-trigger:hover {
  background: #35116e;
  border-color: #35116e;
  color: var(--theme-palette-color-8, #ffffff);
  transform: translateY(-2px);
}

/* Compact desktop range (1001px – 1200px) */
@media (max-width: 1200px) and (min-width: 1000px) {
  #header.ct-header [data-device="desktop"] [data-column="start"] > [data-items="primary"] {
    gap: 27px;
  }

  #header.ct-header .site-branding,
  #header.ct-header .site-branding .site-logo-container,
  #header.ct-header .site-branding img,
  #header.ct-header .site-branding svg {
    flex-basis: 120px;
    width: 120px;
  }

  #header.ct-header .header-menu-1 > ul.menu {
    gap: 20px;
  }

  #header.ct-header .header-menu-1 > ul.menu > li.menu-item > a.ct-menu-link {
    font-size: 16px;
  }

  #header.ct-header [data-column="end"] > [data-items="primary"] {
    gap: 8px;
  }

  .aanb-v4-login-btn {
    padding-inline: 12px;
    font-size: 14px;
  }

  #header.ct-header .ct-header-cta .ct-button,
  #header.ct-header .ct-header-cta .aanb-v4-cta-trigger {
    padding-inline: 15px;
    font-size: 14px;
  }
}

/* ==========================================================================
   Mobile Header & Offcanvas Drawer (<= 999.98px)
   ========================================================================== */
@media (max-width: 999.98px) {
  #header.ct-header [data-row*="middle"] {
    --height: 74px;
    min-height: 74px;
  }

  #header.ct-header [data-row*="middle"] > .ct-container {
    min-height: 74px;
    grid-column-gap: 12px;
  }

  #header.ct-header .site-branding,
  #header.ct-header .site-branding .site-logo-container,
  #header.ct-header .site-branding img,
  #header.ct-header .site-branding svg {
    flex-basis: 118px;
    width: 118px;
  }

  #header.ct-header .ct-header-cta .ct-button,
  #header.ct-header .ct-header-cta .aanb-v4-cta-trigger {
    min-height: 42px;
    font-size: 14px;
    padding: 9px 16px;
  }

  #header.ct-header .ct-header-trigger {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    background: #f5f1fa;
    border-radius: 7px;
    color: var(--theme-palette-color-1, #471895);
    --theme-icon-color: var(--theme-palette-color-1, #471895);
    --theme-icon-size: 20px;
    transition: background-color 0.18s ease;
  }

  #header.ct-header .ct-header-trigger:hover,
  #header.ct-header .ct-header-trigger[aria-expanded="true"] {
    background: #e7ddf5;
  }
}

@media (max-width: 480px) {
  #header.ct-header [data-row*="middle"] {
    --height: 68px;
    min-height: 68px;
  }

  #header.ct-header [data-row*="middle"] > .ct-container {
    min-height: 68px;
    grid-column-gap: 10px;
  }

  #header.ct-header [data-column="end"] > [data-items="primary"] {
    gap: 10px;
  }

  #header.ct-header .site-branding,
  #header.ct-header .site-branding .site-logo-container,
  #header.ct-header .site-branding img,
  #header.ct-header .site-branding svg {
    flex-basis: 100px;
    width: 100px;
  }

  #header.ct-header .ct-header-cta .ct-button,
  #header.ct-header .ct-header-cta .aanb-v4-cta-trigger {
    font-size: 12px;
    min-height: 39px;
    padding: 8px 12px;
  }

  #header.ct-header .ct-header-trigger {
    width: 38px;
    height: 39px;
    min-width: 38px;
  }
}

/* Offcanvas drawer styling */
#offcanvas.ct-panel {
  --side-panel-width: min(100vw, 440px);
}

#offcanvas.ct-panel .ct-panel-inner {
  background: var(--theme-palette-color-8, #ffffff);
  color: var(--theme-palette-color-4, #180d27);
}

#offcanvas.ct-panel .ct-panel-actions {
  padding: 16px var(--aanb4-gutter) 8px;
}

#offcanvas.ct-panel .ct-toggle-close {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  background: #f5f1fa;
  color: var(--theme-palette-color-1, #471895);
  --theme-icon-color: var(--theme-palette-color-1, #471895);
}

#offcanvas.ct-panel .ct-panel-content-inner {
  padding: 0 var(--aanb4-gutter) 28px;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
}

#offcanvas .mobile-menu {
  width: 100%;
  margin: 0;
  color: var(--theme-palette-color-4, #180d27);
}

#offcanvas .mobile-menu > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#offcanvas .mobile-menu > ul > li.menu-item {
  border-bottom: 1px solid var(--theme-palette-color-5, #e5e0ea);
  padding: 0;
  margin: 0;
}

#offcanvas .mobile-menu > ul > li.menu-item > .ct-sub-menu-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}

#offcanvas .mobile-menu > ul > li.menu-item > a.ct-menu-link,
#offcanvas .mobile-menu > ul > li.menu-item > .ct-sub-menu-parent > a.ct-menu-link {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--theme-palette-color-4, #180d27);
  --theme-link-initial-color: var(--theme-palette-color-4, #180d27);
  --theme-link-hover-color: var(--theme-palette-color-1, #471895);
  --theme-link-active-color: var(--theme-palette-color-1, #471895);
}

#offcanvas .mobile-menu > ul > li.menu-item.dropdown-active > .ct-sub-menu-parent > a.ct-menu-link {
  color: var(--theme-palette-color-1, #471895);
}

#offcanvas .mobile-menu .ct-toggle-dropdown-mobile {
  color: var(--theme-palette-color-4, #180d27);
  --theme-icon-color: var(--theme-palette-color-4, #180d27);
}

#offcanvas .mobile-menu .sub-menu {
  padding: 8px 0 20px;
  margin: 0;
  list-style: none;
}

#offcanvas .mobile-menu .sub-menu > li {
  padding: 0;
  margin: 0;
  border: 0;
}

#offcanvas .mobile-menu .sub-menu > li > a.ct-menu-link:empty,
#offcanvas .mobile-menu .sub-menu > li > .ct-sub-menu-parent:has(> a.ct-menu-link:empty) {
  display: none;
}

#offcanvas .mobile-menu .sub-menu > li > a.ct-menu-link::before {
  display: none;
}

#offcanvas .aanb-v4-mobile-login {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 18px;
  font-size: 16px;
}

/* ==========================================================================
   Footer (#footer.ct-footer) — Enterprise B2B Native Blocksy 2-Row Footer
   ========================================================================== */
#footer.ct-footer {
  background: #faf9fc;
  border-top: 0;
  box-shadow: none;
  color: var(--theme-palette-color-3, #655d70);
}

/* Middle row: 4 columns (Brand + Platform Menu + Solutions Menu + Contact/CTA) */
#footer.ct-footer [data-row*="middle"] {
  background: #faf9fc;
  border-top: 0;
  border-bottom: 1px solid var(--theme-palette-color-5, #e5e0ea);
  padding-block: 64px 56px;
  --theme-container-spacing: 0px;
  --container-spacing: 0px;
}

#footer.ct-footer [data-row*="middle"] > .ct-container {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.9fr) minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 44px;
  align-items: start;
  padding-block: 0 !important;
  border-bottom: 0 !important;
}

#footer.ct-footer [data-row*="middle"] > .ct-container > [data-column] {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 18px;
  min-width: 0;
  width: 100%;
}

/* Col 1: Brand mark + أعناب + description + socials */
#footer.ct-footer .aanb-v4-footer-brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: var(--theme-palette-color-1, #471895);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

#footer.ct-footer .aanb-v4-footer-brand .site-logo-container {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  height: 38px;
  margin: 0;
}

#footer.ct-footer .aanb-v4-footer-brand img,
#footer.ct-footer .aanb-v4-footer-brand svg {
  display: block;
  width: auto;
  height: 38px;
  max-height: 38px;
  object-fit: contain;
}

#footer.ct-footer .aanb-v4-footer-brand .site-title-container {
  margin: 0;
}

#footer.ct-footer .aanb-v4-footer-brand .site-title,
#footer.ct-footer .aanb-v4-footer-brand .site-title a {
  display: block;
  margin: 0;
  color: var(--theme-palette-color-1, #471895);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

#footer.ct-footer .ct-header-text,
#footer.ct-footer .ct-header-text .entry-content {
  margin: 0;
  padding: 0;
  max-width: 360px;
}

#footer.ct-footer .aanb-v4-footer-desc {
  margin: 0;
  color: var(--theme-palette-color-3, #655d70);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
}

/* Native Blocksy Socials pill icons */
#footer.ct-footer .ct-footer-socials {
  margin-top: 4px;
}

#footer.ct-footer .ct-footer-socials .ct-social-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#footer.ct-footer .ct-footer-socials .ct-social-box a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #efebf7;
  border: 1px solid #e4dcf2;
  color: var(--theme-palette-color-1, #471895);
  --theme-icon-color: var(--theme-palette-color-1, #471895);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

#footer.ct-footer .ct-footer-socials .ct-social-box a:hover,
#footer.ct-footer .ct-footer-socials .ct-social-box a:focus-visible {
  background: var(--theme-palette-color-1, #471895);
  border-color: var(--theme-palette-color-1, #471895);
  color: #ffffff;
  --theme-icon-color: #ffffff;
  transform: translateY(-2px);
}

/* Column headings for native Blocksy menu, menu-secondary, and contacts columns */
#footer.ct-footer [data-column="menu"]::before,
#footer.ct-footer [data-column="menu-secondary"]::before,
#footer.ct-footer [data-column="contacts"]::before {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--theme-palette-color-4, #180d27);
  padding-bottom: 10px;
  margin-bottom: 2px;
  position: relative;
  border-bottom: 2px solid var(--theme-palette-color-2, #6f52ff);
}

#footer.ct-footer [data-column="menu"]::before {
  content: "المنصة";
}

#footer.ct-footer [data-column="menu-secondary"]::before {
  content: "الحلول والموارد";
  border-bottom-color: var(--theme-palette-color-7, #2ebd90);
}

#footer.ct-footer [data-column="contacts"]::before {
  content: "تواصل معنا";
  border-bottom-color: var(--theme-palette-color-1, #471895);
}

/* Native Blocksy Footer Menus (vertical lists) */
#footer.ct-footer .footer-menu-inline {
  width: 100%;
  margin: 0;
}

#footer.ct-footer .footer-menu-inline > ul.menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer.ct-footer .footer-menu-inline > ul.menu > li {
  margin: 0;
  padding: 0;
}

#footer.ct-footer .footer-menu-inline > ul.menu > li > a.ct-menu-link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  text-transform: none;
  letter-spacing: 0;
  color: var(--theme-palette-color-3, #655d70);
  --theme-link-initial-color: var(--theme-palette-color-3, #655d70);
  --theme-link-hover-color: var(--theme-palette-color-1, #471895);
  transition: color 0.18s ease, transform 0.18s ease;
}

#footer.ct-footer .footer-menu-inline > ul.menu > li > a.ct-menu-link:hover,
#footer.ct-footer .footer-menu-inline > ul.menu > li > a.ct-menu-link:focus-visible {
  color: var(--theme-palette-color-1, #471895);
  transform: translateX(-3px);
}

/* Col 4: Native Blocksy Contacts + Footer CTA Button */
#footer.ct-footer .ct-contact-info {
  width: 100%;
}

#footer.ct-footer .ct-contact-info > ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer.ct-footer .ct-contact-info > ul > li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

#footer.ct-footer .ct-contact-info .ct-icon-container {
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #efebf7;
  border: 1px solid #e4dcf2;
  color: var(--theme-palette-color-1, #471895);
  --theme-icon-color: var(--theme-palette-color-1, #471895);
}

#footer.ct-footer .ct-contact-info .contact-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

#footer.ct-footer .ct-contact-info .contact-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: #847892;
}

#footer.ct-footer .ct-contact-info .contact-text,
#footer.ct-footer .ct-contact-info .contact-text a {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--theme-palette-color-4, #180d27);
  text-decoration: none;
}

#footer.ct-footer .ct-contact-info .contact-text a[href^="mailto:"],
#footer.ct-footer .ct-contact-info .contact-text a[href^="https://aanaab.com"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

#footer.ct-footer .ct-contact-info .contact-text a:hover {
  color: var(--theme-palette-color-1, #471895);
}

#footer.ct-footer .ct-header-cta {
  margin-top: 6px;
}

#footer.ct-footer .ct-header-cta .ct-button,
#footer.ct-footer .aanb-v4-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--theme-palette-color-1, #471895);
  border: 1.5px solid var(--theme-palette-color-1, #471895);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

#footer.ct-footer .ct-header-cta .ct-button:hover,
#footer.ct-footer .aanb-v4-footer-cta:hover {
  background: #35116e;
  border-color: #35116e;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Bottom row: Copyright + Legal/Utility Links */
#footer.ct-footer [data-row*="bottom"] {
  background: var(--theme-palette-color-8, #ffffff);
  border-top: 0;
  border-bottom: 0;
  padding-block: 22px;
  --theme-container-spacing: 0px;
  --container-spacing: 0px;
}

#footer.ct-footer [data-row*="bottom"] > .ct-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 0 !important;
  color: #7a6f86;
  font-size: 14px;
  grid-template-columns: none;
}

#footer.ct-footer [data-row*="bottom"] > .ct-container > [data-column] {
  display: flex;
  align-items: center;
  width: auto;
  min-width: 0;
}

#footer.ct-footer .ct-footer-copyright {
  margin: 0;
  padding: 0;
  color: #7a6f86;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  text-align: start;
}

#footer.ct-footer .ct-footer-copyright p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

#footer.ct-footer .aanb-v4-footer-legal {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

#footer.ct-footer .aanb-v4-footer-legal a {
  color: #655d70;
  text-decoration: none;
  transition: color 0.18s ease;
}

#footer.ct-footer .aanb-v4-footer-legal a:hover,
#footer.ct-footer .aanb-v4-footer-legal a:focus-visible {
  color: var(--theme-palette-color-1, #471895);
}

#footer.ct-footer .aanb-v4-footer-sep {
  color: #cdc4d9;
  font-size: 12px;
  user-select: none;
}

@media (max-width: 999.98px) {
  #footer.ct-footer [data-row*="middle"] {
    padding-block: 48px 42px;
  }

  #footer.ct-footer [data-row*="middle"] > .ct-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
  }

  #footer.ct-footer .aanb-v4-footer-brand,
  #footer.ct-footer .aanb-v4-footer-brand .site-title,
  #footer.ct-footer .aanb-v4-footer-brand .site-title a {
    font-size: 22px;
  }

  #footer.ct-footer .aanb-v4-footer-brand .site-logo-container,
  #footer.ct-footer .aanb-v4-footer-brand img,
  #footer.ct-footer .aanb-v4-footer-brand svg {
    flex-basis: auto;
    width: auto;
    height: 34px;
    max-height: 34px;
  }
}

@media (max-width: 720px) {
  #footer.ct-footer [data-row*="middle"] {
    padding-block: 40px 34px;
  }

  #footer.ct-footer [data-row*="middle"] > .ct-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  #footer.ct-footer [data-row*="bottom"] {
    padding-block: 20px;
  }

  #footer.ct-footer [data-row*="bottom"] > .ct-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  #footer.ct-footer .ct-footer-copyright {
    text-align: center;
    font-size: 13px;
  }

  #footer.ct-footer .aanb-v4-footer-legal {
    justify-content: center;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #header.ct-header *,
  #footer.ct-footer * {
    transition: none !important;
  }
}
