/* Hide the specific duplicate footer container */
[id="466caa48"],
.elementor-element-466caa48 {
    display: none !important;
}
/* --- Fix: Remove Magenta/Purple Highlight Post-Click --- */

/* 1. Reset the title background and outline on focus/active */
.elementor-accordion .elementor-tab-title,
.elementor-accordion .elementor-tab-title a,
.elementor-accordion .elementor-tab-title:focus,
.elementor-accordion .elementor-tab-title:active,
.elementor-accordion .elementor-tab-title:visited {
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important; /* Removes mobile tap highlight */
    color: #1d1b20 !important; /* Forces the text back to Neutral M3 color */
}

/* 2. Ensure the item container doesn't retain a background color after closing */
.elementor-accordion .elementor-accordion-item {
    background-color: #f7f9fc !important; /* Default surface color */
}

/* 3. Redefine the Active state clearly so it ONLY shows when open */
.elementor-accordion .elementor-tab-title.elementor-active {
    background-color: #e8f0fe !important; /* Light M3 Blue instead of Magenta */
    transition: background-color 0.2s ease-in-out;
}

/* 4. Fix for the specific 'a' tag inside which often carries theme colors */
.elementor-accordion .elementor-tab-title a:focus {
    color: inherit !important;
    background: none !important;
}
/* Hide EVERYTHING except the iframe on AI Timeline page */
.page-id-690 header,
.page-id-690 .site-header,
.page-id-690 .elementor-location-header,
.page-id-690 #masthead,
.page-id-690 nav.navbar,
.page-id-690 footer,
.page-id-690 .site-footer,
.page-id-690 .elementor-location-footer,
.page-id-690 #colophon,
.page-id-690 .entry-title,
.page-id-690 .page-title,
.page-id-690 .page-header,
.page-id-690 h1.entry-title,
.page-id-690 .ast-breadcrumbs-wrapper { 
    display: none !important; 
}

/* Make the iframe fill the full screen */
.page-id-690 .entry-content iframe,
.page-id-690 .elementor-widget-container iframe {
    width: 100% !important;
    height: 100vh !important;
    border: none !important;
}

/* Remove padding/margins on the content area */
.page-id-690 .site-content,
.page-id-690 .entry-content,
.page-id-690 .elementor-section,
.page-id-690 article {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}
/* --- Fix: Force Mobile Menu to the Front Layer --- */
.ast-mobile-header-wrap,
.ast-mobile-menu-buttons,
.ast-button-wrap,
.elementor-location-header,
.site-header,
#masthead,
.elementor-nav-menu--dropdown,
.hfe-nav-menu__toggle,
.hfe-nav-menu,
.hfe-nav-menu__toggle input[type="checkbox"] {
    z-index: 999999 !important;
    position: relative;
}

/* Ensure the dropdown container actually displays when active */
.elementor-nav-menu--dropdown.elementor-active {
    display: block !important;
}

/* Prevent Elementor sections from overlapping the menu */
.elementor-section,
.elementor-top-section {
    z-index: auto !important;
}

/* Fix tap/click area on mobile toggle */
.ast-mobile-menu-buttons,
.ast-button-wrap {
    pointer-events: auto !important;
    cursor: pointer;
} 
/* Fix: SVG inside hamburger button absorbing clicks */
.ehp-header__toggle-icon,
.ehp-header__toggle-icon *,
.ehp-header__toggle-icon svg,
.ehp-header__toggle-icon svg path {
    pointer-events: none !important;
}

  .bup-back-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6366f1;
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.2s ease;
  }
 
  .bup-back-cta:hover {
    color: #4f46e5;
  }
 
  .bup-back-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
  }
 
  .bup-back-cta:hover svg {
    transform: translateX(-3px);
  }
