/*
 * Beyond 'Biz' Experience - Style 5 Mega Hero Navigation
 * @version 1.0.0
 */


#sticky-floating-menu {
    display: none !important;
}

#sticky-floating-menu.visible {
    display: block !important;
}



/* ==========================================================================
   BASE NAVIGATION WRAPPER
   ========================================================================== */

.navigation-style-5-wrapper {
    position: relative !important;
    width: 100%;
    background: white;
    z-index: 999998 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.style-5-nav-bar {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px; 
}

/* ==========================================================================
   LOGO SECTION
   ========================================================================== */

.style-5-logo {
    flex-shrink: 0;
    z-index: 1001;
    max-height: 40px; 
}

.style-5-logo .custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.style-5-logo .site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 300;
    display: block;
}

.style-5-logo .site-title a {
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.style-5-logo .site-title a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   MAIN NAVIGATION - MEGA HERO SPECIFIC CLASSES
   ========================================================================== */

.main-navigation.navigation-style-style-5 {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
    position: relative !important;
    z-index: 999998 !important;
}

.main-navigation.navigation-style-style-5 .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation.navigation-style-style-5 .nav-menu > li {
    margin: 0 1px;
    position: relative !important;
}

/* Menu Links */
.navigation-style-style-5 .nav-menu > li > a {
    font-size: 16px !important;
    font-weight: 300 !important;
    padding: 12px 12px !important;
    color: #555555 !important;
    text-decoration: none !important;
    border-radius: 0px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    margin: 0 1px !important;
}

.navigation-style-style-5 .nav-menu > li > a[href] {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.navigation-style-style-5 .nav-menu > li > a:hover {
    color: #fc7364 !important;
}

/* Hide regular submenus - mega menu replaces them */
.navigation-style-style-5 .nav-menu .sub-menu {
    display: none !important;
}

/* ==========================================================================
   CTA BUTTONS - STYLE 5 SPECIFIC TO AVOID CONFLICTS
   ========================================================================== */

.style-5-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.style-5-cta-buttons {
    display: flex;
    gap: 10px;
}

.style-5-cta-button {
    display: inline-block !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    text-decoration: none !important;
    border-radius: 0px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
}

.style-5-cta-button.cta-primary {
    background-color: #fc7364 !important;
    color: #ffffff !important;
    border-color: none !important;
}

.style-5-cta-button.cta-secondary {
    background-color: #0a7996 !important;
    color: #ffffff !important;
    border-color: none !important;
}

.style-5-cta-button:hover {
    background-color: #0a7996 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3) !important;
}

.style-5-cta-button.cta-secondary:hover {
    background-color: #fc7364 !important;
    color: #ffffff !important;
}


/* ==========================================================================
   MEGA MENU CONTAINER - FIXED POSITIONING
   ========================================================================== */


.style-5-mega-menu {
    position: absolute !important;
    top: 50px !important;
    left: 230% !important;
    transform: translateX(-25%) !important;
    width: 98vw !important;  
    max-width: 1200px !important;
    z-index: 999999 !important;
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
}

/* Show mega menu on hover - Keep what's working! */
.navigation-style-5-wrapper:hover .style-5-mega-menu,
.main-navigation.navigation-style-style-5:hover .style-5-mega-menu,
.style-5-nav-bar:hover .style-5-mega-menu,
.nav-menu:hover .style-5-mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    display: block !important;
}

/* Hide duplicate mega menus - only show the FIRST one */
.main-navigation .nav-menu > li:not(:first-child) .style-5-mega-menu {
    display: none !important;
}


/* ==========================================================================
   HERO 1 LAYOUT 
   ========================================================================== */

.style-5-mega-menu .hero-1-layout {
    display: flex;
    flex-direction: column;
    padding: 40px 50px;
    min-height: auto;
    background: inherit;
    width: 100%;
    box-sizing: border-box;
}

.style-5-mega-menu .hero-overview-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: #555555;
    margin: 0 0 40px 0;
    text-align: left;
}

.style-5-mega-menu .hero-1-layout .hero-cards-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
}

.style-5-mega-menu .hero-1-layout .hero-cards-grid > .hero-card {
  flex: 1 1 calc(25% - 15px) !important;
  min-width: 220px !important;
}

.style-5-mega-menu .hero-1-layout .hero-cards-grid > .hero-card.hero-card-empty {
  display: none !important;
}

.style-5-mega-menu .hero-card-media {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.style-5-mega-menu .hero-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.style-5-mega-menu .hero-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.style-5-mega-menu .hero-card:hover .hero-card-media img {
    transform: scale(1.05);
}

.style-5-mega-menu .hero-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.style-5-mega-menu .hero-card-content h4 {
    font-size: 1.1rem;
    font-weight: 300;
    color: #555555;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.style-5-mega-menu .hero-card-content p {
    font-size: 0.95rem;
    font-weight: 300;
    color: #666666;
    line-height: 1.3;
    margin: 0;
    flex-grow: 1;
    margin-bottom: 20px;
}

.style-5-mega-menu .hero-card-content .card-arrow {
    color: #555555;
    font-size: 1.2em;
    margin-top: 10px;
    align-self: flex-end;
    transition: transform 0.2s ease;
}

.style-5-mega-menu .hero-card:hover .card-arrow {
    transform: translateX(4px);
}

.style-5-mega-menu .hero-separator {
    width: 100%;
    height: 1px;
    background: #555555;
    margin: 0 0 20px 0;
}

.style-5-mega-menu .hero-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    align-items: center;
}

.style-5-mega-menu .hero-footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    transition: color 0.2s ease;
}

.style-5-mega-menu .hero-footer-links a:hover {
    color: #555555;
}


/* ==========================================================================
   HERO 2: LEFT SIDEBAR + 2x2 GRID
   ========================================================================== */

.style-5-mega-menu .hero-2-layout {
    display: flex !important;
    gap: 40px;
    padding: 40px 20px;
    min-height: 300px;
}

.style-5-mega-menu .hero-main-content {
    flex: 1;
    padding-right: 20px;
}

.style-5-mega-menu .hero-2-main-title {
    font-size: 37px;
    font-weight: 300;
    color: #555555;
    margin-bottom: 0px;
    margin-top: 0px;
}

.style-5-mega-menu .hero-2-subtitle {
    font-size: 28px;
    font-weight: 300;
    color: #555555;
    margin-bottom: 20px;
}

.style-5-mega-menu .hero-2-intro {
    margin-bottom: 20px;
    font-weight: 300px;
    line-height: 1.2;
    font-size: 20px;
    color: #555555;
}

.style-5-mega-menu .hero-portfolio-grid {
    flex: 1.5;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px;
}

.style-5-mega-menu .portfolio-item {
    flex: 0 0 calc(50% - 10px);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
    background-size: cover;
    background-position: center;
    min-height: 180px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.style-5-mega-menu .portfolio-item:hover {
    transform: translateY(-5px);
}

.style-5-mega-menu .portfolio-item.has-background {
    background-size: cover;
    background-position: center;
}

.style-5-mega-menu .portfolio-overlay {
    display: none;
}


.style-5-mega-menu .portfolio-category {
    font-size: 0.875rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    opacity: 0.8;
}

.style-5-mega-menu .portfolio-item {
    color: #ffffff !important;
}

/* Shared action link colors */
.style-5-mega-menu .hero-2-action-link {
    text-decoration: none;
    font-weight: 300;
    color: #555555 !important;
    Font-size: 16px;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0px;
    
}

.style-5-mega-menu .hero-2-action-link:hover {
    color: var(--wp--preset--color--primary, var(--theme-accent-color, currentColor)) !important;
}

/* Dark theme action links */
body.style-5-dark-theme .style-5-mega-menu .hero-2-action-link {
    color: var(--wp--preset--color--contrast, var(--theme-text-light, #cccccc)) !important;
}

body.style-5-dark-theme .style-5-mega-menu .hero-2-action-link:hover {
    color: var(--wp--preset--color--primary, var(--theme-accent-color, #66c8d3)) !important;
}

body.style-5-dark-theme .style-5-mega-menu .portfolio-item {
    border: none;
}
/* Image background handling */
.style-5-mega-menu .portfolio-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Portfolio content */
.style-5-mega-menu .portfolio-item .portfolio-content {
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: 115px !important;
    padding: 12px !important;
    background: linear-gradient(transparent, rgba(0,0,0,0.6)) !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.style-5-mega-menu .portfolio-item .portfolio-link {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 11 !important;
}

.style-5-mega-menu .portfolio-link:hover {
    background: rgba(255,255,255,0.3);
}


/* Video container styling */
.style-5-mega-menu .portfolio-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.style-5-mega-menu .portfolio-video-container iframe,
.style-5-mega-menu .portfolio-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}




/* ==========================================================================
   HERO 3 LAYOUT - CUSTOMIZABLE 2-COLUMN VERSION
   ========================================================================== */


.style-5-mega-menu .hero-3-layout {
    display: flex !important;
    gap: 30px !important;
    padding: 30px 20px !important;
    min-height: 300px !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.style-5-mega-menu .hero-3-cards-grid {
    flex: 2;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    width: 100% !important;
}

.style-5-mega-menu .use-case-item {
    flex: 0 0 calc(50% - 10px) !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    padding: 20px !important;
    background: white !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
}

.style-5-mega-menu .use-case-item:hover {
    transform: translateY(-3px) !important;
}

.style-5-mega-menu .use-case-icon {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    width: 48px !important;
    height: 48px !important;
}

.style-5-mega-menu .use-case-icon img {
    object-fit: contain !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.style-5-mega-menu .use-case-content {
    flex-grow: 1 !important;
}

.style-5-mega-menu .use-case-content h4 {
    margin: 0 0 8px 0 !important;
    font-size: 1.1rem !important;
    font-weight: 300 !important;
    color: #555555 !important;
    line-height: 1.2 !important;
}

.style-5-mega-menu .use-case-content p {
    margin: 0 0 12px 0 !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
    color: #555555 !important;
}

.style-5-mega-menu .use-case-link {
    font-size: 1.1rem !important;
    font-weight: 300 !important;
    color: #555555 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.style-5-mega-menu .use-case-link:hover {
    font-size: 1rem !important;
    color: var(--style-5-primary-color, var(--primary-color, #66c8d3)) !important;
}

.style-5-mega-menu .hero-3-featured-content {
    flex: 1;
    padding: 30px !important;
    color: #555555 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
}

.style-5-mega-menu .hero-3-text-content {
    display: flex !important;
    flex-direction: column !important;
}

.style-5-mega-menu .hero-3-featured-content h3 {
    font-size: 1.8rem !important;
    font-weight: 300;
    margin-bottom: 8px !important;
    line-height: 1.2;
    color: #555555 !important;
}

.style-5-mega-menu .hero-3-description p {
    margin: 0 !important;
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
    opacity: 0.9 !important;
    color: #555555 !important;
}

.style-5-mega-menu .hero-3-description {
    margin-bottom: 20px !important;
}

.style-5-mega-menu .hero-3-media-container {
    width: 100% !important;
    margin-bottom: 20px !important;
    overflow: hidden !important;
}

.style-5-mega-menu .hero-3-featured-image {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
}

.style-5-mega-menu .hero-3-video {
    width: 100% !important;
    height: 200px !important;
    border-radius: 12px !important;
}

.style-5-mega-menu .hero-3-video iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

.style-5-mega-menu .hero-3-main-link {
    color: #555555 !important;
    text-decoration: none !important;
    font-weight: 300 !important;
    font-size: 1.1rem !important;
    transition: color 0.3s ease !important;
    display: inline-block !important;
}

.style-5-mega-menu .hero-3-main-link:hover {
    font-size: 1rem !important;
    color: var(--style-5-primary-color, var(--primary-color, #66c8d3)) !important;
}


/* Dark theme for Hero 3 */
body.style-5-dark-theme .style-5-mega-menu .use-case-item {
    background: #555555 !important; 
    border: none !important; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 
                0 4px 10px rgba(0, 0, 0, 0.2) !important; 
}

/* Optional: Add a subtle hover effect to enhance the shadow */
body.style-5-dark-theme .style-5-mega-menu .use-case-item:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 
                0 6px 15px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-2px) !important; 
}

body.style-5-dark-theme .style-5-mega-menu .use-case-content h4 {
    color: #fffff !important; /* Light gray text */
}

body.style-5-dark-theme .style-5-mega-menu .use-case-content p {
    color: #ffffff !important; /* Slightly dimmer text */
}

body.style-5-dark-theme .style-5-mega-menu .hero-3-featured-content {
    color: #ffffff !important;
}

body.style-5-dark-theme .style-5-mega-menu .hero-3-featured-content h3 {
    color: #ffffff !important; /* White title */
}

body.style-5-dark-theme .style-5-mega-menu .hero-3-description p {
    color: #ffffff !important;
}

/* Dark theme links - keep the same teal color for consistency */
body.style-5-dark-theme .style-5-mega-menu .use-case-link {
    font-size: 1.1rem !important;
    color: #ffffff !important;
}

body.style-5-dark-theme .style-5-mega-menu .use-case-link:hover {
    font-size: 1rem !important;
    color: var(--style-5-primary-color, var(--primary-color, #66c8d3)) !important; 
}

body.style-5-dark-theme .style-5-mega-menu .hero-3-main-link {
    font-size: 1.1rem !important;
    color: #ffffff !important;
}

body.style-5-dark-theme .style-5-mega-menu .hero-3-main-link:hover {
    font-size: 1rem !important;
    color: var(--style-5-primary-color, var(--primary-color, #66c8d3)) !important;
}

/* ==========================================================================
   HERO 4: RUNWAY RESEARCH STYLE - 2 COLUMN SPLIT WITH SUB-COLUMNS
   ========================================================================== */

.style-5-mega-menu .hero-4-layout {
    display: flex !important;
    padding: 40px 50px !important;
    min-height: 500px !important;
    background: inherit !important;
    gap: 40px !important;
    align-items: flex-start !important;
}

.style-5-mega-menu .hero-4-left-column {
    flex: 0 0 45% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.style-5-mega-menu .hero-4-media {
    width: 100% !important;
    height: 280px !important;
    border-radius: 0px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.style-5-mega-menu .hero-4-media img,
.style-5-mega-menu .hero-4-media video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: var(--media-radius, 12px) !important;
}

.style-5-mega-menu .hero-4-intro {
    padding: 0 !important;
}

.style-5-mega-menu .hero-4-intro h3 {
    font-size: 1.8rem !important;
    font-weight: 300 !important;
    color: #1a1a1a !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.3 !important;
}

.style-5-mega-menu .hero-4-intro p {
    font-size: 1.1rem !important;
    color: #666 !important;
    line-height: 1.2 !important;
    margin: 0 0 15px 0 !important;
    font-weight: 300px;
}

.style-5-mega-menu .hero-4-intro-link {
    display: inline-block !important;
    color: #555555 !important;
    text-decoration: none !important;
    font-weight: 300 !important;
    font-size: 1.1rem !important;
    transition: color 0.2s ease !important;
}

.style-5-mega-menu .hero-4-intro-link:hover {
    color: var(--style-5-primary-color, var(--primary-color, #66c8d3)) !important;
    font-size: 1rem !important;
}

.style-5-mega-menu .hero-4-right-column {
    flex: 0 0 50% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
}

.style-5-mega-menu .hero-4-main-content {
    padding: 0 !important;
}

.style-5-mega-menu .hero-4-main-content h2 {
    font-size: .9rem !important;
    font-weight: 200;
    color: #555555 !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.2 !important;
}

.style-5-mega-menu .hero-4-main-content p {
    font-size: 2.7rem !important;
    color: #555555 !important;
    line-height: 1 !important;
    margin: 0 !important;
    font-weight: 300px;
}

.style-5-mega-menu .hero-4-sub-columns {
    display: flex !important;
    gap: 30px !important;
    margin-top: 20px !important;
}

.style-5-mega-menu .hero-4-sub-column {
    flex: 1 !important;
}

.style-5-mega-menu .hero-4-sub-column h4 {
    font-size: 2rem !important;
    font-weight: 300 !important;
    color: #555555 !important;
    margin: 0 0 15px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #e5e7eb !important;
}

.style-5-mega-menu .hero-4-sub-column ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.style-5-mega-menu .hero-4-sub-column li {
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
}

.style-5-mega-menu .hero-4-sub-column a {
    color: #555555 !important;
    text-decoration: none !important;
    font-size: .8rem !important;
    line-height: 1 !important;
    transition: color 0.2s ease !important;
    display: block !important;
}

.style-5-mega-menu .hero-4-sub-column a:hover {
    color: var(--style-5-primary-color, var(--primary-color, #66c8d3)) !important;
    font-size: 1.1rem !important;
}

.style-5-mega-menu .latest-update-badge {
    background: transparent !important; 
    color: #555555 !important;
    padding: 4px 12px !important;
    font-size: .8rem !important;
    font-weight: 300 !important;
    margin: 0 0 15px 0 !important;
    border: none !important; 
    outline: none !important;
    box-shadow: none !important;
}

/* Dark theme backgrounds and general styling */

body.style-5-dark-theme .style-5-mega-menu .latest-update-badge {
    background: transparent !important; 
    color: #ffffff !important;
    border: none !important; 
    outline: none !important;
    box-shadow: none !important;
}

body.style-5-dark-theme .style-5-mega-menu .hero-4-layout {
    background: inherit !important;
}

/* Latest Update Badge */
body.style-5-dark-theme .style-5-mega-menu .latest-update-badge {
    background: transparent !important;
    color: #ffffff !important;
}

/* Left Column Text */
body.style-5-dark-theme .style-5-mega-menu .hero-4-intro h3 {
    color: #ffffff !important;
}

body.style-5-dark-theme .style-5-mega-menu .hero-4-intro p {
    color: #ffffff !important;
}

body.style-5-dark-theme .style-5-mega-menu .hero-4-intro-link {
    font-weight: 300 !important;
    color: #ffffff !important;
}

body.style-5-dark-theme .style-5-mega-menu .hero-4-intro-link:hover {
    color: var(--style-5-primary-color, var(--primary-color, #66c8d3)) !important;
}

/* Right Column Main Content */
body.style-5-dark-theme .style-5-mega-menu .hero-4-main-content h2 {
    color: #ffffff !important;
}

body.style-5-dark-theme .style-5-mega-menu .hero-4-main-content p {
    color: #ffffff !important;
}

/* Sub-column Headers */
body.style-5-dark-theme .style-5-mega-menu .hero-4-sub-column h4 {
    color: #ffffff !important;
    border-bottom: 1px solid #ffffff !important;
}

/* Sub-column Links */
body.style-5-dark-theme .style-5-mega-menu .hero-4-sub-column a {
    color: #ffffff !important;
}

body.style-5-dark-theme .style-5-mega-menu .hero-4-sub-column a:hover {
    color: var(--style-5-primary-color, var(--primary-color, #66c8d3)) !important;
}

/* Non-link text spans */
body.style-5-dark-theme .style-5-mega-menu .hero-4-impact-text,
body.style-5-dark-theme .style-5-mega-menu .hero-4-update-text {
    color: #ffffff !important;
}
/* ==========================================================================
   TOGGLE BUTTON
   ========================================================================== */

/* Final Style 5 toggle */
.style-5-theme-toggle,
button.style-5-theme-toggle {
  position: relative !important;
  display: inline-block !important;
  width: 50px !important;
  height: 24px !important;
  min-width: 50px !important;
  min-height: 24px !important;
  padding: 0 !important;
  margin-left: 5px !important;
  border: none !important;
  border-radius: 999px !important;
  background: var(--e-global-color-secondary) !important;
  cursor: pointer !important;
  overflow: hidden !important;

  /* hide text label */
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
  white-space: nowrap !important;
}

.style-5-theme-toggle::before {
  content: "" !important;
  position: absolute !important;
  top: 2px !important;
  left: 2px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25) !important;
  transform: translateX(0) !important;
  transition: transform 0.25s ease !important;
}

.style-5-theme-toggle[data-theme="dark"] {
  background: #fc7364 !important;
}

.style-5-theme-toggle[data-theme="dark"]::before {
  transform: translateX(26px) !important;
}

/* optional hover */
.style-5-theme-toggle:hover {
  filter: brightness(1.03) !important;
}

/* Ensure knob moves when dark mode is active (both state patterns supported) */
.style-5-theme-toggle::before {
  left: 2px !important;
  transform: translateX(0) !important;
  transition: transform 0.25s ease !important;
}

.style-5-theme-toggle[data-theme="dark"]::before,
body.style-5-dark-theme .style-5-theme-toggle::before {
  transform: translateX(26px) !important;
}

/* ==========================================================================
   ADDITIONAL DARK THEME NAVIGATION STYLES
   ========================================================================== */

body.style-5-dark-theme .navigation-style-5-wrapper {
    background: #555555 !important;
}

body.style-5-dark-theme .style-5-logo .site-title a {
    color: #ffffff !important;
}

body.style-5-dark-theme .navigation-style-style-5 .nav-menu > li > a:hover {
    color: var(--style-5-primary-color, var(--primary-color, #fc7364)) !important;
    background: none !important; 
}

body.navigation-style-style-5.style-5-dark-theme .navigation-style-5-wrapper {
    background: #555555 !important;
}

body.navigation-style-style-5.style-5-dark-theme .style-5-mega-menu {
    background: #555555 !important;
}

/* ==========================================================================
   LOGO COLOR INVERSION FOR DARK MODE
   ========================================================================== */

/* Logo image inversion in dark mode */
body.style-5-dark-theme .style-5-logo .custom-logo {
    filter: brightness(0) invert(1) !important;
    transition: filter 0.3s ease !important;
}


/* Site title already covered by existing code */
body.style-5-dark-theme .style-5-logo .site-title a {
    color: #ffffff !important;
}
