/* ==========================================================================
   Written In The Genome - Complete Black & Gold Overhaul (2025/2026)
   ========================================================================== */

/* --- Custom Self-Hosted Supreme Font --- */
@font-face {
  font-family: 'Supreme';
  src: url('https://writteninthegenome.blog/wp-content/uploads/2026/06/Supreme-Variable.svg') format('woff2-supports-variations'),
       url('https://writteninthegenome.blog/wp-content/uploads/2026/06/Supreme-Variable.svg') format('woff2');
  font-weight: 100 800;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Supreme';
  src: url('https://writteninthegenome.blog/wp-content/uploads/2026/06/Supreme-VariableItalic.svg') format('woff2-supports-variations'),
       url('https://writteninthegenome.blog/wp-content/uploads/2026/06/Supreme-VariableItalic.svg') format('woff2');
  font-weight: 100 800;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Supreme';
  src: url('https://writteninthegenome.blog/wp-content/uploads/2026/06/Supreme-Regular-1.svg') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Supreme';
  src: url('https://writteninthegenome.blog/wp-content/uploads/2026/06/Supreme-Italic.svg') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: italic;
}
@font-face {
  font-family: 'Supreme';
  src: url('https://writteninthegenome.blog/wp-content/uploads/2026/06/Supreme-Bold.svg') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Supreme';
  src: url('https://writteninthegenome.blog/wp-content/uploads/2026/06/Supreme-BoldItalic.svg') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: italic;
}

@layer reset, base, components, utilities;

/* ==========================================================================
   1. Base & Design System Variables (Black & Gold Theme)
   ========================================================================== */
@layer base {
  :root {
    --site-bg: #050505;          /* Rich Deep Black */
    --surface: #121212;          /* Sleek Charcoal Black */
    --text-primary: #f5f5f5;     /* Warm Off-White */
    
    /* Luxury Gold Accent Colors */
    --accent-gold: #d4af37;      /* Metallic Gold */
    --accent-glow: #f9d976;      /* Bright Champagne Gold Glow */
    
    --font-size-h1: clamp(2.5rem, 8vw + 1rem, 6rem);
    --font-size-body: clamp(1rem, 1vw + 0.5rem, 1.25rem);

    background-color: var(--site-bg);
    color: var(--text-primary);
    
    /* Premium Font: Supreme */
    font-family: 'Supreme', 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
  }

  body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
  }

  /* Global Theme Enforcer (Forces rich black bg and light text on all page & post templates) */
  body, 
  #page, 
  .site, 
  #content, 
  .site-content, 
  #primary, 
  #main, 
  main,
  article, 
  .post, 
  .page, 
  .hentry,
  .entry-content,
  .post-content {
    background-color: var(--site-bg) !important;
    color: var(--text-primary) !important;
  }

  /* Forces legible off-white text inside post/page contents and paragraphs */
  p, li, dd, dt, blockquote {
    color: var(--text-primary) !important;
  }

  /* Elegant Gold Headers inside single articles, posts, and Elementor headings */
  .entry-content h2, 
  .entry-content h3, 
  .entry-content h4, 
  .entry-content h5, 
  .entry-content h6,
  .post-content h2,
  .post-content h3,
  .post-content h4,
  .elementor-widget-heading .elementor-heading-title {
    color: var(--accent-gold) !important;
  }

  /* Safe Global Font Override (enforces Supreme on all text, keeping icons intact) */
  body, h1, h2, h3, h4, h5, h6, p, a, 
  span:not([class*="fa-"]):not([class*="eicon"]):not(.fa):not(.eicon):not(.dashicons), 
  li, button, input, textarea, select {
    font-family: 'Supreme', 'Inter', system-ui, -apple-system, sans-serif !important;
  }
}

/* ==========================================================================
   2. Sleek Custom Scrollbar (Gold Style)
   ========================================================================== */
/* Firefox */
html {
  scrollbar-color: var(--accent-gold) var(--site-bg);
  scrollbar-width: thin;
}

/* Chrome, Safari, Edge */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--site-bg);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: color-mix(in oklch, var(--accent-gold) 45%, var(--surface));
  border-radius: 9999px;
  border: 2px solid var(--site-bg);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-glow);
}

/* ==========================================================================
   3. Single Column Stack (Social Media Layout Style)
   ========================================================================== */
@layer components {
  /* Dynamic Flex Column Stack with maximum width for ideal readability (1000px) */
  .hfe-posts-grid, .elementor-posts-container, .archive-container, .modern-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important; 
    max-width: 1000px !important; 
    width: 100% !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem !important;
  }

  /* Expand parent Elementor section/column constraints for post widgets to 1000px */
  .elementor-widget-hfe-posts, 
  .elementor-widget-hfe-posts .elementor-widget-container,
  .elementor-widget-posts,
  .elementor-widget-posts .elementor-widget-container,
  .elementor-posts-container {
    max-width: 1000px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Remove bento-grid multi-column spanning styles */
  .hfe-post-card:nth-child(4n+1), .elementor-post:nth-child(4n+1) {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* Glassmorphism Cards + Frosted Noise Texture + Forced High Contrast Light Text */
  .hfe-post-card, .elementor-post, .bento-box, 
  .single-post .page-content, .page:not(.home) .page-content {
    position: relative;
    width: 100% !important;
    box-sizing: border-box !important;
    background: color-mix(in oklch, var(--surface), transparent 10%) !important;
    backdrop-filter: blur(20px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    padding: 2.5rem !important;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    margin-bottom: 0px !important;
    color: #ffffff !important; /* Forces light text */
  }

  /* Center and limit the page content bento container width to 1000px for reading */
  .single-post .page-content, 
  .page:not(.home) .page-content,
  .single-post .entry-content,
  .page:not(.home) .entry-content {
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
  }

  /* Force high contrast for all child elements inside the cards */
  .hfe-post-card *, .elementor-post *, .bento-box *,
  .single-post .page-content *, .page:not(.home) .page-content * {
    color: #ffffff !important;
  }

  /* Title link style: luxury gold */
  .hfe-post-card h3 a, 
  .hfe-post-card h2 a, 
  .elementor-post h3 a, 
  .elementor-post h2 a,
  .hfe-post-card .hfe-post-title a,
  .elementor-post .elementor-post__title a {
    color: var(--accent-gold) !important;
    transition: color 0.2s ease-in-out !important;
  }

  .hfe-post-card h3 a:hover, 
  .hfe-post-card h2 a:hover, 
  .elementor-post h3 a:hover, 
  .elementor-post h2 a:hover,
  .hfe-post-card .hfe-post-title a:hover,
  .elementor-post .elementor-post__title a:hover {
    color: var(--accent-glow) !important;
  }

  /* Muted post meta-data */
  .hfe-post-card .hfe-post-meta,
  .hfe-post-card .hfe-post-meta *,
  .elementor-post .elementor-post__meta-data,
  .elementor-post .elementor-post__meta-data * {
    color: rgba(255, 255, 255, 0.6) !important;
  }

  /* Excerpts & paragraphs: crisp, highly-legible off-white */
  .hfe-post-card .hfe-post-excerpt,
  .hfe-post-card .hfe-post-excerpt *,
  .elementor-post .elementor-post__excerpt,
  .elementor-post .elementor-post__excerpt * {
    color: #f3f3f3 !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
  }

  /* Microscopic Frosted Noise Overlay */
  .hfe-post-card::before, .elementor-post::before, .bento-box::before,
  .single-post .page-content::before, .page:not(.home) .page-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    border-radius: 20px;
  }

  /* Keep content layered above the noise */
  .hfe-post-card > *, .elementor-post > *, .bento-box > *,
  .single-post .page-content > *, .page:not(.home) .page-content > * {
    position: relative;
    z-index: 2;
  }

  /* Card Hover Lift & Gold Border Glow (Only active on feed cards, not page content) */
  .hfe-post-card:hover, .elementor-post:hover {
    transform: translateY(-8px) scale(1.015) !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.6),
      0 0 20px color-mix(in oklch, var(--accent-gold) 15%, transparent) !important;
    background: color-mix(in oklch, var(--surface), transparent 15%) !important;
  }

  /* Reading Progress Bar (Gold style) */
  .reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gold);
    transform-origin: 0 50%;
    animation: grow-progress auto linear forwards;
    animation-timeline: scroll();
    z-index: 9999;
  }

  @keyframes grow-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}

/* ==========================================================================
   4. 3D Pill Button Header Menu (Gold Style)
   ========================================================================== */
@media (min-width: 992px) {
  .site-header .site-navigation ul.menu {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .site-header .site-navigation ul.menu > li.menu-item {
    margin: 0;
    padding: 0;
  }

  .site-header .site-navigation ul.menu > li.menu-item > a {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 9999px;
    background: var(--surface);
    color: var(--text-primary) !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    top: 0;
    transition: all 0.15s cubic-bezier(0.2, 1, 0.3, 1);
    box-shadow: 
      0 4px 0px rgba(0, 0, 0, 0.8), 
      0 6px 12px rgba(0, 0, 0, 0.5),
      inset 0 1px 0px rgba(255, 255, 255, 0.1);
  }

  .site-header .site-navigation ul.menu > li.menu-item > a:hover {
    background: color-mix(in oklch, var(--surface) 90%, var(--accent-gold));
    border-color: var(--accent-gold);
    color: var(--accent-glow) !important;
    transform: translateY(-3px);
    box-shadow: 
      0 7px 0px rgba(0, 0, 0, 0.8),
      0 10px 20px rgba(0, 0, 0, 0.6),
      0 0 15px color-mix(in oklch, var(--accent-gold) 30%, transparent),
      inset 0 1px 0px rgba(255, 255, 255, 0.2);
  }

  .site-header .site-navigation ul.menu > li.menu-item > a:active {
    transform: translateY(2px);
    box-shadow: 
      0 2px 0px rgba(0, 0, 0, 0.8),
      0 3px 6px rgba(0, 0, 0, 0.3),
      inset 0 1px 0px rgba(255, 255, 255, 0.05);
  }

  /* Current Active Page indicated by bright Champagne Gold Glow */
  .site-header .site-navigation ul.menu > li.current-menu-item > a,
  .site-header .site-navigation ul.menu > li.current_page_item > a {
    background: var(--surface);
    border-color: var(--accent-glow);
    color: var(--accent-glow) !important;
    box-shadow: 
      0 4px 0px rgba(0, 0, 0, 0.8),
      0 6px 12px rgba(0, 0, 0, 0.5),
      0 0 8px color-mix(in oklch, var(--accent-glow) 20%, transparent),
      inset 0 1px 0px rgba(255, 255, 255, 0.1);
  }

  /* Sub-menu Dropdowns */
  .site-header .site-navigation ul.menu li.menu-item ul.sub-menu {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    margin-top: 10px;
  }

  .site-header .site-navigation ul.menu li.menu-item ul.sub-menu li.menu-item a {
    display: block;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-primary) !important;
    text-transform: none;
    font-weight: 500;
    box-shadow: none !important;
    border: none;
    border-radius: 0;
    transform: none !important;
    top: 0 !important;
    transition: all 0.2s ease;
  }

  .site-header .site-navigation ul.menu li.menu-item ul.sub-menu li.menu-item a:hover {
    background: color-mix(in oklch, var(--surface) 80%, var(--accent-gold));
    color: var(--accent-glow) !important;
  }
}

/* ==========================================================================
   5. Scroll-Driven Reveal Animations (CSS)
   ========================================================================== */
.hfe-post-card.reveal-hidden, .elementor-post.reveal-hidden, .bento-box.reveal-hidden {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: 
    opacity 0.9s cubic-bezier(0.2, 1, 0.3, 1), 
    transform 0.9s cubic-bezier(0.2, 1, 0.3, 1);
}

.hfe-post-card.reveal-visible, .elementor-post.reveal-visible, .bento-box.reveal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   6. Center Page & Post Titles Globally & Apply Metallic Gold Gradient
   ========================================================================== */
h1.entry-title, 
h1.post-title, 
h1.page-title, 
.entry-header h1, 
.post-header h1, 
.page-header h1,
.elementor-page-title,
.hfe-post-title {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
  justify-content: center !important;
  
  /* Supreme Bold typography overrides */
  font-family: 'Supreme', 'Inter', sans-serif !important;
  font-weight: 800 !important; /* Extra Bold weight */
  
  /* Metallic Gold Gradient styling */
  background: linear-gradient(135deg, #f9d976 0%, #d4af37 50%, #ab8212 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.hfe-post-card h3, .elementor-post__title {
  text-align: center !important;
}

/* ==========================================================================
   7. Premium Sticky Frosted Header & General Layout Fixes
   ========================================================================== */
#masthead, .site-header, #site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: rgba(5, 5, 5, 0.75) !important;
  backdrop-filter: blur(16px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(130%) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important; /* Elegant gold border line */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s ease-in-out !important;
}

/* Force the Elementor header container to be shorter */
#masthead .elementor-section, 
.site-header .elementor-section,
header.site-header {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  min-height: auto !important;
}

#content, .site-content, main {
  position: relative !important;
  width: 100% !important;
  margin: 0 auto !important;
  left: 0 !important;
  background: transparent;
}

/* ==========================================================================
   8. Pinterest Board Sizing Overrides
   ========================================================================== */
.elementor-widget-pinterest_board_8774bdf1,
.elementor-widget-pinterest_board_8774bdf1 .elementor-widget-container,
.pinterest-carousel-container {
  width: 100% !important;
  max-width: 1000px !important; /* Matches the blog cards */
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.pinterest-carousel-container span[data-pin-log="embed_grid_wrapper"],
.pinterest-carousel-container iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  height: 500px !important; /* Keep it tall but safe */
}

/* ==========================================================================
   9. Sticky Table of Contents (TOC) Sidebars
   ========================================================================== */
.sidebar-toc {
  position: fixed;
  top: 185px;
  /* Mathematically centered and aligned to the left edge of the 1000px content card:
     50% of viewport minus half the card width (500px) minus TOC width (210px) minus safety gap (30px) = 740px */
  left: calc(50% - 740px); 
  width: 210px;
  max-height: 65vh;
  overflow-y: auto;
  background: color-mix(in oklch, var(--surface), transparent 20%) !important;
  backdrop-filter: blur(16px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(120%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
  z-index: 100 !important;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s cubic-bezier(0.2, 1, 0.3, 1), transform 0.6s cubic-bezier(0.2, 1, 0.3, 1) !important;
}

.sidebar-toc.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Thin premium scrollbar inside TOC */
.sidebar-toc::-webkit-scrollbar {
  width: 4px;
}
.sidebar-toc::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-toc::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

@media (max-width: 1500px) {
  /* Shift closer to the content card on medium resolutions */
  .sidebar-toc {
    left: calc(50% - 690px); 
  }
}

@media (max-width: 1400px) {
  /* Keep it relative to the viewport edge when space gets narrow */
  .sidebar-toc {
    left: 15px;
    width: 180px;
  }
}

@media (max-width: 1250px) {
  /* Completely hide on screens where sidebar space is restricted */
  .sidebar-toc {
    display: none !important;
  }
}

/* ==========================================================================
   10. Core Centering Rules for Sub-Pages, Posts & Archives
   ========================================================================== */
.single-post #primary, 
.single-post #content,
.single-post #main, 
.single-post .site-main,
.page:not(.home) #primary, 
.page:not(.home) #content,
.page:not(.home) #main, 
.page:not(.home) .site-main,
.archive #primary,
.archive #content,
.archive #main,
.archive .site-main,
.single-post article,
.page:not(.home) article,
.archive article {
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1000px !important;
  width: 100% !important;
}

/* ==========================================================================
   11. Genotype Scout Full-Width Exception (Page ID 510)
   ========================================================================== */
.page-id-510 #primary, 
.page-id-510 #content,
.page-id-510 #main, 
.page-id-510 .site-main,
.page-id-510 article,
.page-id-510 .page-content,
.page-id-510 .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #121212 !important;
  border: none !important;
}

/* Remove the bento-box styling and frosted noise for the app page */
.page-id-510 .page-content::before,
.page-id-510 .entry-content::before {
  display: none !important;
}

.page-id-510 .page-content,
.page-id-510 .entry-content {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Make the iframe container fill the screen height minus the header */
.page-id-510 .genotype-scout-container {
  height: calc(100vh - 80px) !important;
  min-height: 800px !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  width: 100% !important;
  margin: 0 !important;
}

/* ==========================================================================
   12. Footer Copyright Injection
   ========================================================================== */
.site-footer .copyright p::before {
  content: "© 2026 Written In The Genome. ";
  color: var(--accent-gold);
}

/* ==========================================================================
   13. Mobile Menu Toggle (Hamburger) & Dropdown Menu (Black & Gold Theme)
   ========================================================================== */

@media (max-width: 991px) {
  /* Position hamburger on the left, logo/branding on the right, on the same horizontal line */
  .site-header .header-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 70px !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  .site-header .site-navigation-toggle-holder {
    order: -1 !important; /* Move toggle button to the left */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
  }

  .site-header .site-branding {
    order: 1 !important; /* Move logo/branding to the right */
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
  }

  .site-header .site-branding .site-logo {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .site-header .site-branding .site-logo img {
    height: 44px !important;
    width: auto !important;
    display: block !important;
  }

  /* Hide description on mobile to keep the header clean and compact */
  .site-header .site-description {
    display: none !important;
  }

  /* Style the Toggle Button itself */
  .site-header .site-navigation-toggle {
    background: var(--surface) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 50% !important; /* Make it a circular button */
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--accent-gold) !important; /* Make the icon/currentColor gold */
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1) !important;
    box-shadow: 
      0 4px 10px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    position: relative;
    z-index: 10001 !important;
  }

  .site-header .site-navigation-toggle:hover {
    background: color-mix(in oklch, var(--surface) 80%, var(--accent-gold)) !important;
    color: var(--accent-glow) !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 
      0 6px 15px rgba(0, 0, 0, 0.6),
      0 0 10px color-mix(in oklch, var(--accent-gold) 30%, transparent) !important;
    transform: scale(1.05);
  }

  .site-header .site-navigation-toggle:active {
    transform: scale(0.95);
  }

  /* Styling the Hamburger Menu Lines (Icon) */
  .site-header .site-navigation-toggle-icon {
    display: block !important;
    position: relative !important;
    width: 18px !important;
    height: 2px !important;
    background-color: currentColor !important;
    transition: background-color 0.3s ease !important;
  }

  .site-header .site-navigation-toggle-icon::before,
  .site-header .site-navigation-toggle-icon::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    width: 18px !important;
    height: 2px !important;
    background-color: currentColor !important;
    transition: all 0.3s ease !important;
  }

  .site-header .site-navigation-toggle-icon::before {
    top: -6px !important;
  }

  .site-header .site-navigation-toggle-icon::after {
    top: 6px !important;
  }

  /* Transform into 'X' when Menu is Open */
  .site-header .site-navigation-toggle-holder.elementor-active .site-navigation-toggle-icon {
    background-color: transparent !important;
  }

  .site-header .site-navigation-toggle-holder.elementor-active .site-navigation-toggle-icon::before {
    transform: rotate(45deg) !important;
    top: 0 !important;
  }

  .site-header .site-navigation-toggle-holder.elementor-active .site-navigation-toggle-icon::after {
    transform: rotate(-45deg) !important;
    top: 0 !important;
  }

  /* Style the Mobile Dropdown Menu Container */
  .site-header .site-navigation-dropdown {
    position: absolute !important;
    top: 100% !important;
    bottom: auto !important; /* Force bottom auto to allow height to expand */
    left: 0 !important;
    width: 100% !important;
    background: rgba(18, 18, 18, 0.95) !important; /* Premium Charcoal Black */
    backdrop-filter: blur(20px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
    z-index: 10000 !important;
    height: auto !important; /* Override theme height: 0 */
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scaleY(0.9) translateY(-10px) !important;
    transform-origin: top !important;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1) !important;
    overflow: hidden !important;
  }

  /* Show Dropdown Menu when elementor-active class is toggled on toggle-holder, or when focus is inside the dropdown */
  .site-header .site-navigation-toggle-holder.elementor-active + .site-navigation-dropdown,
  .site-header .site-navigation-dropdown:focus-within {
    bottom: auto !important;
    height: auto !important;
    max-height: 100vh !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: scaleY(1) translateY(0) !important;
  }

  /* Force mobile sub-menus to be visible at all times */
  .site-header .site-navigation-dropdown ul.menu > li li {
    max-height: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Style the Dropdown Menu list */
  .site-header .site-navigation-dropdown ul.menu {
    position: relative !important; /* Bring ul back into normal document flow to compute height */
    list-style: none !important;
    padding: 1rem 1.5rem !important;
    margin: 0 !important;
    background: transparent !important;
  }

  .site-header .site-navigation-dropdown ul.menu li {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  .site-header .site-navigation-dropdown ul.menu li:last-child {
    margin-bottom: 0 !important;
  }

  /* Style the mobile menu links to match the 3D tactile theme in a flat-elegant list format */
  .site-header .site-navigation-dropdown ul.menu li a {
    display: block !important;
    padding: 14px 20px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    color: var(--text-primary) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.2, 1, 0.3, 1) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
  }

  .site-header .site-navigation-dropdown ul.menu li a:hover {
    background: rgba(212, 175, 55, 0.08) !important;
    border-color: var(--accent-gold) !important;
    color: var(--accent-glow) !important;
    padding-left: 25px !important; /* Elegant slide-right effect on hover */
  }

  /* Active current-menu-item style for mobile */
  .site-header .site-navigation-dropdown ul.menu li.current-menu-item a,
  .site-header .site-navigation-dropdown ul.menu li.current_page_item a {
    background: rgba(212, 175, 55, 0.12) !important;
    border-color: var(--accent-glow) !important;
    color: var(--accent-glow) !important;
  }

  /* Mobile sub-menus styling */
  .site-header .site-navigation-dropdown ul.menu li ul.sub-menu {
    list-style: none !important;
    padding: 8px 0 0 15px !important; /* Indent sub-menu */
    margin: 0 !important;
    background: transparent !important;
  }

  .site-header .site-navigation-dropdown ul.menu li ul.sub-menu li a {
    padding: 10px 15px !important;
    font-size: 13px !important;
    text-transform: none !important;
    border-radius: 8px !important;
  }
}

/* ==========================================================================
   14. Brevo Subscription Form Styling (Dark Glassmorphic Theme)
   ========================================================================== */
.witg-brevo-form-wrapper input[type="text"],
.witg-brevo-form-wrapper input[type="email"] {
  width: 100% !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: rgba(0, 0, 0, 0.25) !important;
  color: #fff !important;
  font-size: 15px !important;
  outline: none !important;
  box-sizing: border-box !important;
  margin-top: 5px !important;
  margin-bottom: 15px !important;
  transition: all 0.3s ease !important;
}

.witg-brevo-form-wrapper input[type="text"]:focus,
.witg-brevo-form-wrapper input[type="email"]:focus {
  border-color: #ffc107 !important;
  background: rgba(0, 0, 0, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15) !important;
}

.witg-brevo-form-wrapper input[type="submit"] {
  width: 100% !important;
  padding: 14px !important;
  border-radius: 12px !important;
  border: none !important;
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
  color: #000 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.25) !important;
  margin-top: 15px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.witg-brevo-form-wrapper input[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4) !important;
  background: linear-gradient(135deg, #ffd043 0%, #f0b400 100%) !important;
}

.witg-brevo-form-wrapper p {
  margin-bottom: 15px !important;
  color: #e9ecef !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.witg-brevo-form-wrapper label {
  color: #ffc107 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.sib_signup_form {
  padding: 0 !important;
  margin: 0 !important;
}

