/*
 Theme Name:   Astra Child
 Theme URI:    https://wpastra.com/
 Description:  Astra Child Theme
 Author:       Brainstorm Force
 Author URI:   https://wpastra.com/
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/
/* ==========================================================================
   COMPONENT: WP BLOCK CUSTOM STYLES
   ========================================================================== */
.wp-block-uagb-container.wt-item {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-height: 48px !important;
  padding: 0 20px 0 40px !important;
  background: #eef0f9;
  border-radius: 8px;
  overflow: hidden;
}

.wp-block-uagb-container.wt-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 100%;
  background-color: #141675;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M13.707 7.29289C13.5348 7.12072 13.3057 7.01729 13.0627 7.002C12.8197 6.98672 12.5794 7.06064 12.387 7.20989L12.293 7.29289L9 10.5849L7.707 9.29289L7.613 9.20989C7.42058 9.06075 7.18037 8.98692 6.9374 9.00225C6.69444 9.01757 6.46541 9.12101 6.29326 9.29315C6.12112 9.4653 6.01768 9.69433 6.00235 9.9373C5.98702 10.1803 6.06086 10.4205 6.21 10.6129L6.293 10.7069L8.293 12.7069L8.387 12.7899C8.56237 12.926 8.77803 12.9998 9 12.9998C9.22197 12.9998 9.43763 12.926 9.613 12.7899L9.707 12.7069L13.707 8.70689L13.79 8.61289C13.9393 8.42049 14.0132 8.18024 13.9979 7.93721C13.9826 7.69419 13.8792 7.46509 13.707 7.29289Z' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px 26px;
  border-radius: 8px 0 0 8px;
  z-index: 1;
}

.wp-block-uagb-container.wt-item .wp-block-uagb-advanced-heading {
  padding-left: 0 !important;
  margin-left: 0 !important;
  position: relative;
  z-index: 0;
}

.wt-list-solution .wp-block-uagb-icon-list-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wt-list-solution .wp-block-uagb-icon-list-child::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cg%3E%3Cpath d='M7 7L12 12L7 17' stroke='%23141675' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M13 7L18 12L13 17' stroke='%23141675' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.wt-phone-cta .uagb-button__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-left: 36px;
}

.wt-phone-cta .uagb-button__link::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M16.95 18C14.8667 18 12.8083 17.5458 10.775 16.6375C8.74167 15.7292 6.89167 14.4417 5.225 12.775C3.55833 11.1083 2.27083 9.25833 1.3625 7.225C0.454167 5.19167 0 3.13333 0 1.05C0 0.75 0.1 0.5 0.3 0.3C0.5 0.1 0.75 0 1.05 0H5.1C5.33333 0 5.54167 0.0791667 5.725 0.2375C5.90833 0.395833 6.01667 0.583333 6.05 0.8L6.7 4.3C6.73333 4.56667 6.725 4.79167 6.675 4.975C6.625 5.15833 6.53333 5.31667 6.4 5.45L3.975 7.9C4.30833 8.51667 4.70417 9.1125 5.1625 9.6875C5.62083 10.2625 6.125 10.8167 6.675 11.35C7.19167 11.8667 7.73333 12.3458 8.3 12.7875C8.86667 13.2292 9.46667 13.6333 10.1 14L12.45 11.65C12.6 11.5 12.7958 11.3875 13.0375 11.3125C13.2792 11.2375 13.5167 11.2167 13.75 11.25L17.2 11.95C17.4333 12.0167 17.625 12.1375 17.775 12.3125C17.925 12.4875 18 12.6833 18 12.9V16.95C18 17.25 17.9 17.5 17.7 17.7C17.5 17.9 17.25 18 16.95 18ZM3.025 6L4.675 4.35L4.25 2H2.025C2.10833 2.68333 2.225 3.35833 2.375 4.025C2.525 4.69167 2.74167 5.35 3.025 6ZM11.975 14.95C12.625 15.2333 13.2875 15.4583 13.9625 15.625C14.6375 15.7917 15.3167 15.9 16 15.95V13.75L13.65 13.275L11.975 14.95Z' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

#wt-phone,
#wt-email,
#wt-address {
  min-width: 90px !important;
}

/* ==========================================================================
   SMOOTH SCROLL & HEADER OFFSET
   ========================================================================== */
html {
  scroll-behavior: smooth !important;
  scroll-padding-top: 90px !important;
}

body.admin-bar { scroll-padding-top: 122px !important; }

@media screen and (max-width: 782px) {
  body.admin-bar { scroll-padding-top: 136px !important; }
}

:target, [id] { scroll-margin-top: 90px !important; }
body.admin-bar :target, body.admin-bar [id] { scroll-margin-top: 122px !important; }

@media screen and (max-width: 782px) {
  body.admin-bar :target,
  body.admin-bar [id] { scroll-margin-top: 136px !important; }
}

/* ==========================================================================
   CUSTOM OFFCANVAS DRAWER — MINIMAL CLEAN STYLE
   ========================================================================== */

/* Hide Astra's own offcanvas/mobile popup when our custom one is active */
body.custom-oc-open .ast-mobile-popup-drawer,
body.custom-oc-open #ast-mobile-popup,
body.custom-oc-open .ast-mobile-header-content {
  display: none !important;
  pointer-events: none !important;
}

/* Overlay */
.custom-oc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.custom-oc-open .custom-oc-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Lock body scroll */
body.custom-oc-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
}

/* Drawer Panel */
.custom-oc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 400px;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

body.custom-oc-open .custom-oc-drawer {
  transform: translateX(0);
}

/* Drawer Header */
.custom-oc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 68px;
  min-height: 68px;
  border-bottom: 1px solid #eeeeee;
  background: #ffffff;
  flex-shrink: 0;
  box-sizing: border-box;
}

.custom-oc-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.custom-oc-logo {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.custom-oc-site-name {
  font-size: 18px;
  font-weight: 700;
  color: #141675;
  letter-spacing: -0.02em;
}

/* Close Button */
.custom-oc-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #dddddd;
  color: #444444;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  outline: none;
  flex-shrink: 0;
  padding: 0;
}

.custom-oc-close:hover {
  background: #f5f5f5;
  border-color: #aaaaaa;
}

.custom-oc-close svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke: #444444;
}

/* Drawer Nav */
.custom-oc-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}

.custom-oc-nav::-webkit-scrollbar { width: 3px; }
.custom-oc-nav::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 4px; }

/* Menu List */
.custom-oc-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Menu Item */
.custom-oc-menu > li {
  border-bottom: 1px solid #eeeeee;
  position: relative;
}

/* Menu Link */
.custom-oc-menu > li > a {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: #222222;
  padding: 18px 20px;
  text-decoration: none;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
  width: 100%;
  line-height: 1.4;
}

.custom-oc-menu > li > a:hover,
.custom-oc-menu > li:hover > a {
  background: #f7f7f7;
  color: #141675;
}

/* Active item (override WP one-page anchor bug) */
.custom-oc-menu > li.current-menu-item > a,
.custom-oc-menu > li.current_page_item > a {
  color: #222222;
  font-weight: 500;
  background: transparent;
}

/* Sub-menu */
.custom-oc-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fafafa;
  border-top: 1px solid #eeeeee;
  display: none;
}

.custom-oc-menu li.submenu-open > .sub-menu {
  display: block;
}

.custom-oc-menu .sub-menu li {
  border-bottom: 1px solid #eeeeee;
}

.custom-oc-menu .sub-menu li > a {
  display: block;
  font-size: 14px;
  color: #555555;
  padding: 13px 20px 13px 36px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.custom-oc-menu .sub-menu li > a:hover {
  background: #f0f0f0;
  color: #141675;
}

/* Submenu toggle chevron */
.custom-oc-menu > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #999999;
  border-bottom: 1.5px solid #999999;
  transform: rotate(45deg);
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.custom-oc-menu > li.menu-item-has-children.submenu-open > a::after {
  transform: rotate(-135deg);
}

/* Drawer Footer: CTA Button */
.custom-oc-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid #eeeeee;
  flex-shrink: 0;
  background: #ffffff;
}

.custom-oc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 24px;
  background: transparent;
  color: #222222;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 8px;
  border: 1.5px solid #bbbbbb;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  letter-spacing: 0.01em;
  text-align: center;
}

.custom-oc-cta:hover {
  border-color: #141675;
  color: #141675;
  background: #f4f5fd;
}

/* Only show on mobile */
@media (min-width: 1025px) {
  .custom-oc-drawer,
  .custom-oc-overlay {
    display: none !important;
  }
}



/* ==========================================================================
   1. FIXED TRANSPARENT HEADER — 74PX
   ========================================================================== */
#masthead.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  z-index: 999;
  background: transparent !important;
  transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-sizing: border-box !important;
}

#masthead .ast-desktop-header,
#masthead .ast-mobile-header-wrap,
#masthead .main-header-bar,
#masthead .ast-primary-header-bar,
#masthead .ast-main-header-wrap,
#masthead .ast-builder-grid-row {
  height: 74px !important;
  min-height: 74px !important;
  max-height: 74px !important;
  background: transparent !important;
  border-bottom: none !important;
  box-sizing: border-box !important;
}

#masthead .ast-container,
#masthead .main-header-bar .ast-container,
#masthead .ast-primary-header-bar .ast-container {
  max-width: 1200px !important;
  width: 100% !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 100% !important;
}

#masthead .ast-builder-grid-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  flex: 1 1 100% !important;
}

#masthead .site-header-primary-section-left,
#masthead .site-header-section-left {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  height: 100% !important;
}

#masthead .site-header-primary-section-center,
#masthead .site-header-section-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  height: 100% !important;
}

#masthead .site-header-primary-section-right,
#masthead .site-header-section-right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
  height: 100% !important;
  gap: clamp(16px, 2.5vw, 36px) !important;
}

#masthead .site-branding,
#masthead .ast-site-identity {
  display: flex !important;
  align-items: center !important;
  max-height: 74px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#masthead .site-logo-img img,
#masthead .custom-logo-link img {
  max-height: 52px !important;
  width: auto !important;
  object-fit: contain !important;
}

#masthead .main-header-bar-navigation,
#masthead .ast-builder-menu {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

#masthead .main-header-menu {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  margin: 0 !important;
  gap: clamp(4px, 1vw, 16px) !important;
}

#masthead .main-header-menu > .menu-item {
  height: 74px !important;
  display: flex !important;
  align-items: center !important;
}

#masthead .main-header-menu > .menu-item > .menu-link {
  height: 74px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 clamp(12px, 1.2vw, 20px) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 74px !important;
}

#masthead .ast-builder-button-wrap,
#masthead .ast-header-button-1,
#masthead .ast-header-button-2 {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

#masthead .ast-custom-button,
#masthead .ast-button-wrap .ast-custom-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 24px !important;
  line-height: 1.4 !important;
  max-height: 46px !important;
  white-space: nowrap !important;
}

body.admin-bar #masthead.site-header { top: 32px !important; }

@media screen and (max-width: 782px) {
  body.admin-bar #masthead.site-header { top: 46px !important; }
}

@media screen and (max-width: 600px) {
  body.admin-bar #masthead.site-header { top: 0 !important; }
}

/* ==========================================================================
   2. HEADER TRANSPARENT STATE — WHITE TEXT
   ========================================================================== */
#masthead:not(.is-scrolled) .site-title,
#masthead:not(.is-scrolled) .site-title a,
#masthead:not(.is-scrolled) .ast-site-title-wrap a {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

#masthead:not(.is-scrolled) .main-header-menu .menu-item > .menu-link,
#masthead:not(.is-scrolled) .ast-builder-menu .main-navigation .main-header-menu .menu-item > .menu-link,
#masthead:not(.is-scrolled) .main-header-bar-navigation .main-header-menu .menu-item > .menu-link {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

#masthead:not(.is-scrolled) .main-header-menu .menu-item > .menu-link:hover {
  opacity: 0.85;
}

#masthead:not(.is-scrolled) .ast-mobile-menu-trigger,
#masthead:not(.is-scrolled) .menu-toggle,
#masthead:not(.is-scrolled) .ast-button-wrap .menu-toggle {
  color: #ffffff !important;
}

#masthead:not(.is-scrolled) .ast-mobile-menu-trigger svg,
#masthead:not(.is-scrolled) .menu-toggle svg,
#masthead:not(.is-scrolled) .ast-button-wrap .menu-toggle svg,
#masthead:not(.is-scrolled) .ast-mobile-svg {
  fill: #ffffff !important;
}

/* ==========================================================================
   3. HEADER SCROLLED STATE — GLASSMORPHISM
   ========================================================================== */
#masthead.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 4px 24px -2px rgba(20, 22, 117, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
}

#masthead.site-header.is-scrolled .site-title,
#masthead.site-header.is-scrolled .site-title a,
#masthead.site-header.is-scrolled .ast-site-title-wrap a {
  color: #141675 !important;
  text-shadow: none !important;
}

#masthead.site-header.is-scrolled .main-header-menu > .menu-item > .menu-link,
#masthead.site-header.is-scrolled .ast-builder-menu .main-navigation .main-header-menu > .menu-item > .menu-link {
  color: #141675 !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  text-shadow: none !important;
}

#masthead.site-header.is-scrolled .main-header-menu > .menu-item > .menu-link:hover {
  color: #2563eb !important;
}

#masthead.site-header.is-scrolled .ast-mobile-menu-trigger,
#masthead.site-header.is-scrolled .menu-toggle {
  color: #141675 !important;
}

#masthead.site-header.is-scrolled .ast-mobile-menu-trigger svg,
#masthead.site-header.is-scrolled .menu-toggle svg,
#masthead.site-header.is-scrolled .ast-search-icon svg {
  fill: #141675 !important;
}

/* ==========================================================================
   4. DESKTOP NAV DROPDOWNS
   ========================================================================== */
.main-header-menu > .menu-item > .menu-link {
  font-size: 18px !important;
  font-weight: 400 !important;
  letter-spacing: 0.2px;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.main-header-menu .sub-menu {
  background: rgba(255, 255, 255, 0.98) !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 12px !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 16px 36px -4px rgba(20, 22, 117, 0.12) !important;
  padding: 8px !important;
  min-width: 220px !important;
  overflow: hidden;
}

.main-header-menu .sub-menu .menu-item .menu-link {
  padding: 10px 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  text-shadow: none !important;
  transition: all 0.2s ease !important;
}

.main-header-menu .sub-menu .menu-item:hover > .menu-link {
  background: #eef0f9 !important;
  color: #141675 !important;
  transform: translateX(4px);
}

/* ==========================================================================
   5. MOBILE HAMBURGER BUTTON
   ========================================================================== */
.ast-mobile-menu-trigger-fill,
.ast-mobile-menu-trigger-outline,
.ast-button-wrap .menu-toggle,
.ast-mobile-menu-trigger {
  border-radius: 8px !important;
  transition: background 0.2s ease !important;
  padding: 8px 12px !important;
}

.ast-mobile-menu-trigger:hover,
.ast-button-wrap .menu-toggle:hover {
  background: rgba(20, 22, 117, 0.08) !important;
}

/* ==========================================================================
   6. OFFCANVAS MOBILE MENU — MINIMAL CLEAN STYLE
   ========================================================================== */

/* 6.1 Lock scroll when drawer open */
html.ast-main-header-nav-open,
body.ast-main-header-nav-open,
html.ast-popup-nav-open,
body.ast-popup-nav-open,
html.ast-off-canvas-active,
body.ast-off-canvas-active,
html.offcanvas-open,
body.offcanvas-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  touch-action: none !important;
}

/* 6.2 Full-viewport wrapper */
#ast-mobile-popup,
.ast-mobile-popup-drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  pointer-events: none !important;
}

#ast-mobile-popup.active,
#ast-mobile-popup.show,
.ast-mobile-popup-drawer.active {
  pointer-events: auto !important;
}

/* 6.3 Overlay */
.ast-mobile-popup-drawer .ast-mobile-popup-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  z-index: 1 !important;
  opacity: 0;
  transition: opacity 0.3s ease !important;
  cursor: pointer;
}

.ast-mobile-popup-drawer.active .ast-mobile-popup-overlay {
  opacity: 1 !important;
}

/* 6.4 Drawer Panel */
.ast-mobile-popup-drawer .ast-mobile-popup-inner {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  height: 100vh !important;
  width: 86% !important;
  max-width: 400px !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  transform: translateX(100%) !important;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1) !important;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1) !important;
}

.ast-mobile-popup-drawer.active .ast-mobile-popup-inner {
  transform: translateX(0) !important;
}

.ast-mobile-popup-drawer.ast-mobile-popup-left .ast-mobile-popup-inner {
  left: 0 !important;
  right: auto !important;
  transform: translateX(-100%) !important;
}

.ast-mobile-popup-drawer.ast-mobile-popup-left.active .ast-mobile-popup-inner {
  transform: translateX(0) !important;
}

/* 6.5 Drawer Header — white, logo + close button */
.ast-mobile-popup-drawer .ast-mobile-popup-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 20px !important;
  height: 68px !important;
  min-height: 68px !important;
  flex-shrink: 0 !important;
  background: #ffffff !important;
  border-bottom: 1px solid #eeeeee !important;
  box-sizing: border-box !important;
}

/* Logo in drawer header */
.ast-mobile-popup-drawer .ast-mobile-popup-header .site-logo-img img,
.ast-mobile-popup-drawer .ast-mobile-popup-header .custom-logo-link img {
  max-height: 38px !important;
  width: auto !important;
}

/* Close button — minimal circle X */
#menu-toggle-close,
.ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: 1px solid #dddddd !important;
  color: #444444 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  outline: none !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

#menu-toggle-close:hover,
.ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close:hover {
  background: #f5f5f5 !important;
  border-color: #aaaaaa !important;
}

#menu-toggle-close svg,
.ast-mobile-popup-drawer .ast-mobile-popup-header .menu-toggle-close svg {
  fill: #444444 !important;
  width: 16px !important;
  height: 16px !important;
  display: block !important;
}

/* 6.6 Drawer Content Area */
.ast-mobile-popup-drawer .ast-mobile-popup-content,
.ast-mobile-popup-drawer .ast-desktop-popup-content {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  scrollbar-width: thin !important;
  scrollbar-color: #e0e0e0 transparent !important;
}

.ast-mobile-popup-drawer .ast-mobile-popup-content::-webkit-scrollbar {
  width: 3px !important;
}
.ast-mobile-popup-drawer .ast-mobile-popup-content::-webkit-scrollbar-thumb {
  background: #e0e0e0 !important;
  border-radius: 4px !important;
}

/* 6.7 Navigation wrapper */
.ast-mobile-popup-drawer .main-navigation,
.ast-mobile-popup-drawer .main-header-bar-navigation,
.ast-mobile-header-content .main-navigation,
.ast-mobile-header-content .main-header-bar-navigation {
  width: 100% !important;
  display: block !important;
}

/* 6.8 Menu List */
.ast-mobile-popup-drawer ul.main-header-menu,
.ast-mobile-popup-drawer .main-navigation ul,
.ast-mobile-header-content ul.main-header-menu,
.ast-mobile-header-content .main-navigation ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 0 !important;
}

/* 6.9 Menu Item — row with bottom border divider */
.ast-mobile-popup-drawer .menu-item,
.ast-mobile-header-content .menu-item {
  margin: 0 !important;
  border: none !important;
  border-bottom: 1px solid #eeeeee !important;
  position: relative !important;
  width: 100% !important;
  display: block !important;
}

/* 6.10 Menu Link — clean text, generous padding */
.ast-mobile-popup-drawer .menu-item > .menu-link,
.ast-mobile-header-content .menu-item > .menu-link {
  display: flex !important;
  align-items: center !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #222222 !important;
  text-shadow: none !important;
  padding: 18px 20px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  line-height: 1.4 !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

.ast-mobile-popup-drawer .menu-item > .menu-link:hover,
.ast-mobile-header-content .menu-item > .menu-link:hover {
  background: #f7f7f7 !important;
  color: #141675 !important;
}

/* Active item */
.ast-mobile-popup-drawer .menu-item.current-menu-item > .menu-link,
.ast-mobile-popup-drawer .menu-item.current_page_item > .menu-link,
.ast-mobile-header-content .menu-item.current-menu-item > .menu-link,
.ast-mobile-header-content .menu-item.current_page_item > .menu-link {
  color: #141675 !important;
  font-weight: 600 !important;
  background: #f4f5fd !important;
}

/* No pseudo accent bar in this style */
.ast-mobile-popup-drawer .menu-item > .menu-link::before,
.ast-mobile-header-content .menu-item > .menu-link::before {
  display: none !important;
}

/* 6.11 Submenu Toggle Chevron */
.ast-mobile-popup-drawer .menu-item-has-children > .ast-menu-toggle,
.ast-mobile-header-content .menu-item-has-children > .ast-menu-toggle {
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  background: transparent !important;
  border: 1px solid #dddddd !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.ast-mobile-popup-drawer .menu-item-has-children > .ast-menu-toggle svg,
.ast-mobile-header-content .menu-item-has-children > .ast-menu-toggle svg {
  fill: #666666 !important;
  width: 12px !important;
  height: 12px !important;
}

.ast-mobile-popup-drawer .menu-item-has-children.ast-submenu-expanded > .ast-menu-toggle,
.ast-mobile-header-content .menu-item-has-children.ast-submenu-expanded > .ast-menu-toggle {
  background: #f4f5fd !important;
  border-color: #141675 !important;
  transform: translateY(-50%) rotate(180deg) !important;
}

.ast-mobile-popup-drawer .menu-item-has-children.ast-submenu-expanded > .ast-menu-toggle svg,
.ast-mobile-header-content .menu-item-has-children.ast-submenu-expanded > .ast-menu-toggle svg {
  fill: #141675 !important;
}

/* 6.12 Sub-Menu */
.ast-mobile-popup-drawer .sub-menu,
.ast-mobile-header-content .sub-menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fafafa !important;
  border-top: 1px solid #eeeeee !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.ast-mobile-popup-drawer .sub-menu .menu-item,
.ast-mobile-header-content .sub-menu .menu-item {
  border-bottom: 1px solid #eeeeee !important;
}

.ast-mobile-popup-drawer .sub-menu .menu-item > .menu-link,
.ast-mobile-header-content .sub-menu .menu-item > .menu-link {
  font-size: 14px !important;
  color: #555555 !important;
  padding: 14px 20px 14px 36px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.ast-mobile-popup-drawer .sub-menu .menu-item > .menu-link:hover,
.ast-mobile-header-content .sub-menu .menu-item > .menu-link:hover {
  background: #f0f0f0 !important;
  color: #141675 !important;
}

/* 6.13 CTA Button — outlined, at bottom of drawer */
.ast-mobile-popup-drawer .ast-custom-button,
.ast-mobile-popup-drawer .ast-builder-button-wrap a,
.ast-mobile-header-content .ast-custom-button,
.ast-mobile-header-content .ast-builder-button-wrap a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: calc(100% - 40px) !important;
  margin: 20px 20px 8px !important;
  padding: 13px 24px !important;
  background: transparent !important;
  color: #222222 !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  border: 1.5px solid #bbbbbb !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  letter-spacing: 0.01em !important;
}

.ast-mobile-popup-drawer .ast-custom-button:hover,
.ast-mobile-popup-drawer .ast-builder-button-wrap a:hover,
.ast-mobile-header-content .ast-custom-button:hover,
.ast-mobile-header-content .ast-builder-button-wrap a:hover {
  border-color: #141675 !important;
  color: #141675 !important;
  background: #f4f5fd !important;
}

/* 6.14 Dropdown-style mobile panel (non-offcanvas) */
.ast-mobile-header-wrap .ast-mobile-header-content {
  position: fixed !important;
  top: 74px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 90% !important;
  max-width: 400px !important;
  height: auto !important;
  max-height: calc(100vh - 90px) !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14) !important;
  border: 1px solid #e8e8e8 !important;
  padding: 0 !important;
  overflow-y: auto !important;
  z-index: 99999 !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch !important;
}

body.admin-bar .ast-mobile-header-wrap .ast-mobile-header-content {
  top: 106px !important;
  max-height: calc(100vh - 122px) !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar .ast-mobile-header-wrap .ast-mobile-header-content {
    top: 120px !important;
    max-height: calc(100vh - 136px) !important;
  }
}

@media screen and (max-width: 600px) {
  body.admin-bar .ast-mobile-header-wrap .ast-mobile-header-content {
    top: 74px !important;
  }
}