/* ============================================
   PIXEL SWARM DRONES - Premium Dark Theme
   Brand Colors: Purple #8B5CF6, Gold #F5C518, Pink #EC4899, Black #0A0A0F
   ============================================ */

/* === GLOBAL RESET & BASE === */
:root {
    --ps-black: #0A0A0F;
    --ps-dark: #111118;
    --ps-dark-card: #1A1A24;
    --ps-purple: #8B5CF6;
    --ps-purple-light: #A78BFA;
    --ps-purple-dark: #6D28D9;
    --ps-gold: #F5C518;
    --ps-gold-light: #FBBF24;
    --ps-pink: #EC4899;
    --ps-white: #FFFFFF;
    --ps-gray: #9CA3AF;
    --ps-gray-light: #E5E7EB;
    --ps-gradient: linear-gradient(135deg, #8B5CF6 0%, #EC4899 50%, #F5C518 100%);
    --ps-gradient-subtle: linear-gradient(135deg, rgba(139,92,246,0.1) 0%, rgba(236,72,153,0.05) 100%);
    --ps-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --ps-shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
    --ps-radius: 16px;
    --ps-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body, .hfeed.site {
    background-color: var(--ps-black) !important;
    color: var(--ps-gray-light) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    line-height: 1.7 !important;
    overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    color: var(--ps-white) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem) !important; }
h2 { font-size: clamp(2rem, 4vw, 3rem) !important; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem) !important; }

p {
    color: var(--ps-gray) !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
}

a {
    color: var(--ps-purple-light) !important;
    text-decoration: none !important;
    transition: var(--ps-transition) !important;
}

a:hover {
    color: var(--ps-gold) !important;
}

/* === HEADER / NAVBAR === */
.ast-primary-header-bar,
.ast-primary-header,
.main-header-bar,
.site-header,
header.site-header {
    background-color: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
    transition: var(--ps-transition) !important;
}

.ast-primary-header-bar.ast-header-sticked {
    background-color: rgba(10, 10, 15, 0.98) !important;
    box-shadow: 0 4px 30px rgba(139, 92, 246, 0.15) !important;
}

/* Logo styling */
.custom-logo {
    max-height: 60px !important;
    width: auto !important;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3)) !important;
    transition: var(--ps-transition) !important;
}

.custom-logo:hover {
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6)) !important;
    transform: scale(1.05) !important;
}

/* Navigation links */
.main-header-menu .menu-item > a,
.ast-nav-menu .menu-item > a {
    color: var(--ps-white) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.02em !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    transition: var(--ps-transition) !important;
    position: relative !important;
}

.main-header-menu .menu-item > a:hover,
.ast-nav-menu .menu-item > a:hover {
    color: var(--ps-gold) !important;
    background: rgba(139, 92, 246, 0.1) !important;
}

/* Highlight Book a Call nav item */
.menu-item:last-child > a,
.menu-item a[href*="book-a-call"] {
    background: var(--ps-gradient) !important;
    color: var(--ps-white) !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4) !important;
}

.menu-item:last-child > a:hover,
.menu-item a[href*="book-a-call"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6) !important;
}

/* === HERO SECTION === */
.hero-section,
[style*="background-image"] {
    position: relative !important;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--ps-black), transparent);
    pointer-events: none;
}

/* === CONTENT AREA === */
.entry-content,
.content-area,
.site-content {
    background-color: var(--ps-black) !important;
}

.entry-content h2 {
    text-align: center !important;
    margin-bottom: 1rem !important;
    position: relative !important;
    padding-bottom: 1rem !important;
}

.entry-content h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80px !important;
    height: 3px !important;
    background: var(--ps-gradient) !important;
    border-radius: 2px !important;
}

/* === CARDS & SECTIONS === */
.entry-content > div[style*="background"] {
    border-radius: var(--ps-radius) !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    transition: var(--ps-transition) !important;
    overflow: hidden !important;
}

.entry-content > div[style*="background"]:hover {
    border-color: rgba(139, 92, 246, 0.4) !important;
    box-shadow: var(--ps-shadow-glow) !important;
    transform: translateY(-4px) !important;
}

/* Service cards / grid items */
.entry-content div[style*="border-radius"] {
    background: var(--ps-dark-card) !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    border-radius: var(--ps-radius) !important;
    transition: var(--ps-transition) !important;
    overflow: hidden !important;
}

.entry-content div[style*="border-radius"]:hover {
    border-color: var(--ps-purple) !important;
    box-shadow: var(--ps-shadow-glow) !important;
    transform: translateY(-6px) !important;
}

/* === BUTTONS / CTAs === */
.entry-content a[style*="background"],
.wp-block-button__link,
a.ast-button,
.ast-button,
input[type="submit"],
button[type="submit"] {
    background: var(--ps-gradient) !important;
    color: var(--ps-white) !important;
    border: none !important;
    padding: 16px 40px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4) !important;
    transition: var(--ps-transition) !important;
    cursor: pointer !important;
    display: inline-block !important;
    text-align: center !important;
}

.entry-content a[style*="background"]:hover,
.wp-block-button__link:hover,
a.ast-button:hover,
.ast-button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.6) !important;
    filter: brightness(1.1) !important;
}

/* Secondary / outline buttons */
.entry-content a[style*="border"][style*="transparent"] {
    background: transparent !important;
    border: 2px solid var(--ps-purple) !important;
    color: var(--ps-purple-light) !important;
}

.entry-content a[style*="border"][style*="transparent"]:hover {
    background: var(--ps-purple) !important;
    color: var(--ps-white) !important;
}

/* === STAR RATINGS === */
.entry-content span[style*="color: #FFD700"],
.entry-content [style*="gold"] {
    text-shadow: 0 0 10px rgba(245, 197, 24, 0.5) !important;
}

/* === VIDEOS === */
.entry-content iframe {
    border-radius: var(--ps-radius) !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
    box-shadow: var(--ps-shadow) !important;
    transition: var(--ps-transition) !important;
}

.entry-content iframe:hover {
    border-color: var(--ps-purple) !important;
    box-shadow: var(--ps-shadow-glow) !important;
}

/* === IMAGES === */
.entry-content img:not(.custom-logo) {
    border-radius: var(--ps-radius) !important;
    transition: var(--ps-transition) !important;
}

.entry-content img:not(.custom-logo):hover {
    transform: scale(1.02) !important;
    box-shadow: var(--ps-shadow-glow) !important;
}

/* === TESTIMONIALS === */
.entry-content blockquote,
.entry-content [style*="italic"] {
    border-left: 4px solid var(--ps-purple) !important;
    padding: 1.5rem 2rem !important;
    background: var(--ps-dark-card) !important;
    border-radius: 0 var(--ps-radius) var(--ps-radius) 0 !important;
    margin: 2rem 0 !important;
    font-style: italic !important;
}

/* === FORMS === */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    background: var(--ps-dark-card) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 12px !important;
    color: var(--ps-white) !important;
    padding: 14px 20px !important;
    font-size: 1rem !important;
    transition: var(--ps-transition) !important;
    width: 100% !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: var(--ps-purple) !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2) !important;
    outline: none !important;
}

/* === FOOTER === */
.site-footer,
.ast-footer-overlay,
footer {
    background: var(--ps-dark) !important;
    border-top: 1px solid rgba(139, 92, 246, 0.2) !important;
    color: var(--ps-gray) !important;
}

.ast-footer-copyright {
    color: var(--ps-gray) !important;
}

/* === SCROLL TO TOP === */
.ast-scroll-top-icon {
    background: var(--ps-gradient) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4) !important;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.6); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.entry-content > div,
.entry-content > p,
.entry-content > h2 {
    animation: fadeInUp 0.6s ease-out both !important;
}

/* Stagger animations */
.entry-content > *:nth-child(1) { animation-delay: 0.1s !important; }
.entry-content > *:nth-child(2) { animation-delay: 0.2s !important; }
.entry-content > *:nth-child(3) { animation-delay: 0.3s !important; }
.entry-content > *:nth-child(4) { animation-delay: 0.4s !important; }
.entry-content > *:nth-child(5) { animation-delay: 0.5s !important; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.75rem !important; }
    
    .entry-content a[style*="background"] {
        padding: 14px 30px !important;
        font-size: 1rem !important;
    }
    
    .custom-logo {
        max-height: 45px !important;
    }
}

/* === SELECTION COLOR === */
::selection {
    background: var(--ps-purple) !important;
    color: var(--ps-white) !important;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ps-black);
}

::-webkit-scrollbar-thumb {
    background: var(--ps-purple-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ps-purple);
}

/* === LOADING ANIMATION FOR LOGO === */
.custom-logo-link {
    animation: glow 3s ease-in-out infinite !important;
    border-radius: 12px !important;
}

/* === GRADIENT TEXT FOR HEADINGS === */
.entry-content h2 {
    background: var(--ps-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* === MEDIA LOGOS (As Seen On) === */
.entry-content img[src*="logo"],
.entry-content img[alt*="logo"],
.entry-content img[alt*="Logo"] {
    filter: brightness(0) invert(1) !important;
    opacity: 0.7 !important;
    transition: var(--ps-transition) !important;
}

.entry-content img[src*="logo"]:hover,
.entry-content img[alt*="logo"]:hover,
.entry-content img[alt*="Logo"]:hover {
    opacity: 1 !important;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(139, 92, 246, 0.5)) !important;
}

/* === PHONE NUMBER STYLING === */
a[href^="tel:"] {
    color: var(--ps-gold) !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
}

a[href^="tel:"]:hover {
    text-shadow: 0 0 10px rgba(245, 197, 24, 0.5) !important;
}

/* === HIDE DEFAULT PAGE TITLES (we use custom ones) === */
.entry-title,
.entry-header.ast-no-thumbnail {
    display: none !important;
}

/* === SMOOTH SCROLL === */
html {
    scroll-behavior: smooth !important;
}

/* === PARTICLE/DOT BACKGROUND EFFECT === */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(236, 72, 153, 0.2), transparent),
        radial-gradient(1px 1px at 50px 160px, rgba(245, 197, 24, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(236, 72, 153, 0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(245, 197, 24, 0.2), transparent);
    background-size: 200px 200px;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

/* Make homepage content full-width - no container padding */
.page-id-7 .ast-container,
.page-id-7 .site-content .ast-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.page-id-7 .entry-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.page-id-7 .site-content {
  padding-top: 0 !important;
}

.page-id-7 article {
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove any Astra content area padding on homepage */
.page-id-7 .site-main {
  padding: 0 !important;
  margin: 0 !important;
}

/* === HERO SECTION OVERRIDE === */
.ps-hero,
.entry-content > .ps-hero,
.entry-content > div.ps-hero {
  border-radius: 0 !important;
  border: none !important;
  overflow: visible !important;
  transform: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  animation: none !important;
}
.ps-hero:hover {
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
.ps-hero img {
  border-radius: 0 !important;
  transform: none !important;
  box-shadow: none !important;
}
.ps-hero img:hover {
  transform: none !important;
  box-shadow: none !important;
}
.ps-hero h2 {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #FFD700 !important;
  background-clip: unset !important;
}

/* === DROPDOWN SUB-MENU FIX === */
.sub-menu,
.ast-header-break-point .sub-menu,
.main-header-menu .sub-menu,
.ast-nav-menu .sub-menu,
ul.sub-menu {
  background: #0A0A0F !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
  padding: 10px 0 !important;
  min-width: 220px !important;
}
.sub-menu .menu-item > a,
.sub-menu .menu-item .menu-link,
.main-header-menu .sub-menu .menu-item > a {
  color: #FFFFFF !important;
  background: transparent !important;
  padding: 10px 20px !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.sub-menu .menu-item > a:hover,
.sub-menu .menu-item .menu-link:hover,
.main-header-menu .sub-menu .menu-item > a:hover {
  color: #FFD700 !important;
  background: rgba(139, 92, 246, 0.15) !important;
}
/* Fix the last item in sub-menu not getting the gradient button style */
.sub-menu .menu-item:last-child > a {
  background: transparent !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 10px 20px !important;
}
.sub-menu .menu-item:last-child > a:hover {
  color: #FFD700 !important;
  background: rgba(139, 92, 246, 0.15) !important;
}
/* Hide the arrow SVGs in sub-menu items */
.sub-menu .menu-item .ast-icon.icon-arrow {
  display: none !important;
}

/* === HIDE LOGO AND SITE TITLE FROM NAVBAR === */
.site-branding,
.ast-site-identity,
.site-logo-img,
.custom-logo-link,
.custom-logo,
.site-title,
.site-title a,
.ast-site-title-wrap {
  display: none !important;
}
/* Reclaim the space for nav items */
.ast-builder-layout-element.ast-flex.site-header-focus-item.ast-header-html-1,
.site-header .ast-builder-grid-row {
  justify-content: center !important;
}

/* === CLEAN NAVBAR: Small logo, no site title text === */
.site-title,
.site-title a,
.ast-site-title-wrap .site-title {
  display: none !important;
}
.custom-logo-link img,
.custom-logo,
.site-logo-img .custom-logo {
  max-height: 40px !important;
  width: auto !important;
}
.site-branding {
  padding: 0 !important;
  margin-right: 10px !important;
}
/* Center the nav items better */
.main-header-menu {
  justify-content: center !important;
}

/* === SLIM NAVBAR & BOOK A CALL BUTTON === */
/* Reduce overall header padding */
.ast-primary-header,
.ast-primary-header .ast-builder-grid-row {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  min-height: auto !important;
}
/* Slim down the Book a Call CTA button */
.main-header-menu .menu-item:last-child > a,
.menu-item-73 > a,
.ast-header-button-1 .ast-custom-button,
.main-header-menu > .menu-item:last-child > .menu-link {
  padding: 8px 20px !important;
  font-size: 0.85rem !important;
  line-height: 1.2 !important;
}
/* Reduce nav link vertical padding */
.main-header-menu > .menu-item > a,
.main-header-menu > .menu-item > .menu-link {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
/* Shrink logo area */
.custom-logo-link img,
.custom-logo {
  max-height: 35px !important;
}

/* === FIX BOOK A CALL BUTTON - Remove giant gradient circle === */
.menu-item-73 > a,
.menu-item-73 > .menu-link,
.main-header-menu > .menu-item:last-child > a,
.main-header-menu > .menu-item:last-child > .menu-link {
  background: linear-gradient(135deg, #8B5CF6, #FFD700) !important;
  border-radius: 25px !important;
  padding: 8px 22px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  width: auto !important;
  height: auto !important;
  min-width: auto !important;
  min-height: auto !important;
  aspect-ratio: unset !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}
/* Kill any ::before or ::after pseudo-elements creating the circle */
.menu-item-73 > a::before,
.menu-item-73 > a::after,
.menu-item-73 > .menu-link::before,
.menu-item-73 > .menu-link::after,
.main-header-menu > .menu-item:last-child > a::before,
.main-header-menu > .menu-item:last-child > a::after {
  display: none !important;
  content: none !important;
}

/* === REDUCE HEADER BLACK BAND HEIGHT === */
.ast-primary-header,
.ast-primary-header > .ast-builder-grid-row,
.ast-primary-header .ast-builder-layout-element,
#ast-desktop-header .ast-primary-header,
.site-header .ast-primary-header-bar {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
  min-height: unset !important;
  height: auto !important;
}
.ast-primary-header .ast-builder-grid-row .site-primary-header-wrap {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
.site-primary-header-wrap {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  min-height: unset !important;
}
#masthead {
  min-height: unset !important;
}

/* === FORCE THIN HEADER - Override Astra 80px min-height === */
.ast-primary-header-bar,
.ast-primary-header-bar .site-primary-header-wrap {
  min-height: 50px !important;
  height: auto !important;
}
.ast-primary-header-bar .main-header-menu > .menu-item {
  line-height: 50px !important;
}

/* === FIX SERVICE CARD HEADINGS - Prevent word breaks === */
.entry-content a[href*="drone-shows"] h3,
.entry-content a[href*="corporate"] h3,
.entry-content a[href*="wedding"] h3,
.entry-content a[href*="gender"] h3,
.entry-content a[href*="birthday"] h3,
.entry-content a[href*="engagement"] h3,
.entry-content a[href*="municipal"] h3,
.entry-content div[style*="grid"] a h3,
.entry-content div[style*="grid"] h3 {
  font-size: 1.1rem !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  white-space: nowrap !important;
}

/* Show logo again - small and clickable */
.site-branding .custom-logo-link,
.site-branding .custom-logo {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-height: 35px !important;
  width: auto !important;
}
/* Keep site title text hidden */
.site-branding .site-title,
.site-branding .ast-site-title-wrap .site-title {
  display: none !important;
}

/* Mobile hero image fix - show full image without cropping */
@media (max-width: 768px) {
  .ps-hero {
    background-size: contain !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
    min-height: 40vh !important;
  }
  .ps-hero img,
  .entry-content > div:first-child img {
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
  }
  /* Make CTA buttons stack nicely on mobile */
  .ps-hero a,
  .entry-content > div:first-child a {
    display: block !important;
    margin: 10px auto !important;
    max-width: 300px !important;
  }
  /* Reduce header padding on mobile */
  .ast-primary-header-bar {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }
}

/* Mobile hero fix v2 - override previous contain rule */
@media (max-width: 768px) {
  .ps-hero {
    background-size: cover !important;
    background-position: top center !important;
    min-height: 70vh !important;
  }
  .ps-hero img {
    object-fit: cover !important;
    object-position: top center !important;
    width: 100% !important;
    height: 70vh !important;
  }
  /* Remove the card styling border-radius on mobile hero */
  .entry-content > div:first-child {
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    overflow: visible !important;
  }
}

/* Mobile menu fix - dark background with visible white text */
@media (max-width: 921px) {
  .ast-mobile-popup-drawer .ast-mobile-popup-inner,
  .ast-mobile-popup-drawer,
  .ast-mobile-popup-content,
  .ast-builder-menu-mobile .main-navigation,
  .ast-builder-menu-mobile .main-navigation ul,
  .ast-builder-menu-mobile .main-navigation ul li,
  .ast-mobile-header-content,
  .ast-mobile-popup-drawer .ast-mobile-popup-content {
    background-color: #0a0a2e !important;
    background: #0a0a2e !important;
  }
  .ast-mobile-popup-drawer .menu-item a,
  .ast-builder-menu-mobile .menu-item a,
  .ast-mobile-popup-drawer a,
  .ast-nav-menu .menu-item a,
  .ast-mobile-popup-content .menu-item a,
  .ast-mobile-popup-content a {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    padding: 12px 20px !important;
  }
  .ast-mobile-popup-drawer .menu-item a:hover,
  .ast-builder-menu-mobile .menu-item a:hover {
    color: #FFD700 !important;
  }
  /* Fix the close button */
  .ast-mobile-popup-drawer .menu-toggle-close,
  .ast-mobile-popup-close,
  .ast-mobile-popup-drawer button {
    color: #ffffff !important;
  }
  /* Fix sub-menu items */
  .ast-mobile-popup-drawer .sub-menu,
  .ast-mobile-popup-drawer .sub-menu li,
  .ast-mobile-popup-drawer .sub-menu a {
    background-color: #111155 !important;
    color: #ffffff !important;
  }
}

/* NUCLEAR mobile menu fix - force dark bg and white text everywhere */
@media (max-width: 921px) {
  .ast-mobile-header-content,
  .ast-mobile-header-content *,
  .ast-mobile-header-wrap,
  .ast-builder-menu-mobile,
  .ast-builder-menu-mobile ul,
  .ast-builder-menu-mobile li,
  .ast-builder-menu-mobile nav,
  .main-header-menu.ast-nav-menu,
  .main-header-menu.ast-nav-menu li,
  .ast-mobile-header-content nav,
  .ast-mobile-header-content ul,
  .ast-mobile-header-content li {
    background-color: #0a0a2e !important;
    background: #0a0a2e !important;
  }
  .ast-mobile-header-content a,
  .ast-mobile-header-content .menu-link,
  .ast-builder-menu-mobile a,
  .ast-builder-menu-mobile .menu-link,
  .main-header-menu .menu-link,
  .page_item a,
  .page_item .menu-link,
  .ast-mobile-header-content .page_item a {
    color: #ffffff !important;
    background-color: #0a0a2e !important;
    background: #0a0a2e !important;
    border-bottom: 1px solid #1a1a4e !important;
    padding: 14px 20px !important;
    display: block !important;
  }
  /* The toggle icon color */
  .menu-toggle .mobile-menu-toggle-icon svg,
  .ast-mobile-menu-trigger-minimal .ast-button-wrap {
    fill: #ffffff !important;
    color: #ffffff !important;
  }
}

/* ===== SHARPER DESIGN OVERHAUL ===== */

/* Remove soft rounded corners from cards - use sharper edges */
.entry-content > div[style*="background"],
.entry-content > div[style*="border-radius"] {
  border-radius: 8px !important;
}

/* Tighter spacing throughout */
.entry-content > div {
  margin-bottom: 0 !important;
}

/* Sharper typography */
body, p, a, li, span {
  letter-spacing: 0.02em !important;
}
h1, h2, h3, h4 {
  letter-spacing: 0.03em !important;
  font-weight: 700 !important;
}

/* Social media icons bar in footer */
.ps-social-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 30px 0;
  background: #0a0a2e;
}
.ps-social-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}
.ps-social-bar a:hover {
  background: #FFD700;
  transform: scale(1.1);
}
.ps-social-bar a svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}
.ps-social-bar a:hover svg {
  fill: #000000;
}

/* Top announcement bar */
.ps-top-bar {
  background: #0a0a2e;
  border-bottom: 1px solid rgba(255,215,0,0.3);
  text-align: center;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: #ffffff;
}
.ps-top-bar a {
  color: #FFD700;
  text-decoration: none;
  margin: 0 15px;
}
.ps-top-bar a:hover {
  text-decoration: underline;
}

/* Tighter testimonials on mobile */
@media (max-width: 768px) {
  .entry-content blockquote,
  .entry-content [style*='font-style: italic'],
  .entry-content [style*='border-left'] {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    padding: 10px 15px !important;
    margin: 10px 0 !important;
  }
  .entry-content [style*='border-left'] p,
  .entry-content blockquote p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
  }
}

/* Tighter testimonials on all screens */
.entry-content [style*='border-left'] {
  padding: 15px 20px !important;
  margin: 15px 0 !important;
}
.entry-content [style*='border-left'] p {
  font-size: 1rem !important;
  line-height: 1.5 !important;
  margin-bottom: 8px !important;
}

/* Blog archive page - dark theme styling */
.blog article,
.archive article,
.search article,
article.post {
  background: #111133 !important;
  border: 1px solid rgba(139,92,246,0.3) !important;
  border-radius: 8px !important;
  padding: 25px !important;
  margin-bottom: 20px !important;
}
.blog article *,
.archive article *,
article.post * {
  color: #ffffff !important;
}
.blog article a,
.archive article a,
article.post a {
  color: #FFD700 !important;
}
.blog article .entry-meta,
.archive article .entry-meta,
article.post .entry-meta {
  color: #aaaacc !important;
}
.blog article .entry-meta *,
article.post .entry-meta * {
  color: #aaaacc !important;
}
.blog article .cat-links a,
article.post .cat-links a {
  color: #8B5CF6 !important;
}
.blog .ast-article-inner,
article.post .ast-article-inner {
  background: transparent !important;
}
/* Remove white background from blog page content area */
.blog .site-content,
.archive .site-content,
.blog #primary,
.archive #primary {
  background: transparent !important;
}

/* ===== MOBILE MENU SCROLL FIX ===== */
/* Make mobile menu scrollable and not stuck */
@media (max-width: 921px) {
  /* The mobile popup/off-canvas container */
  .ast-mobile-popup-inner,
  .ast-mobile-header-content,
  .ast-builder-menu-mobile .main-navigation,
  #ast-hf-mobile-menu {
    max-height: 80vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* Collapse sub-menus by default on mobile */
  .ast-builder-menu-mobile .sub-menu {
    display: none !important;
  }
  
  /* Show sub-menu only when parent is toggled/active */
  .ast-builder-menu-mobile .menu-item.ast-submenu-expanded > .sub-menu,
  .ast-builder-menu-mobile .menu-item.toggled-on > .sub-menu {
    display: block !important;
  }
  
  /* Make menu items more compact on mobile */
  .ast-builder-menu-mobile .menu-item > .menu-link {
    padding: 10px 15px !important;
    font-size: 15px !important;
  }
  
  /* Style the toggle arrows for sub-menus */
  .ast-builder-menu-mobile .ast-menu-toggle {
    display: inline-flex !important;
    padding: 10px !important;
  }
  
  /* Ensure the mobile header wrapper doesn't block scrolling */
  .ast-mobile-header-wrap,
  .ast-mobile-header-content {
    position: relative !important;
    overflow: visible !important;
  }
  
  /* Fix body scroll lock when mobile menu is open */
  body.ast-main-header-nav-open {
    overflow: hidden !important;
  }
  
  body.ast-main-header-nav-open .ast-mobile-header-content {
    overflow-y: auto !important;
    max-height: 100vh !important;
    padding-bottom: 80px !important;
  }
}

/* Shrink navbar header height */
.ast-primary-header-bar, .site-header .ast-builder-layout-element {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}
.site-header {
    min-height: auto !important;
}
.ast-builder-menu .main-header-menu > .menu-item > a {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}
.site-header .ast-builder-layout-element .site-branding img {
    max-height: 35px !important;
}
.ast-header-break-point .ast-mobile-header-wrap .ast-primary-header-bar {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}
