/* Fresh dropdown CSS - completely rewritten */

/* Reset all dropdown positioning */
.c-submenu:not(.c-submenu--mobile) {
    /* Hide by default */
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    
    /* Position fixed to viewport - full width */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    
    /* Styling */
    background: white !important;
    border-bottom: 1px solid #e1e5e9 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    
    /* Positioning below header - moved down 20px more */
    margin-top: 100px !important;
    padding: 15px 0 !important;
    
    /* Limit HEIGHT not width */
    max-height: 300px !important;
    overflow-y: auto !important;
    
    /* Smooth transition */
    transition: all 0.2s ease !important;
}

/* Show dropdown when active */
.c-submenu:not(.c-submenu--mobile).active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Container styling for dropdown content */
.c-submenu:not(.c-submenu--mobile) .o-layout__colset {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Text styling */
.c-submenu:not(.c-submenu--mobile) {
    color: #333 !important;
    font-family: inherit !important;
}

.c-submenu:not(.c-submenu--mobile) h6 {
    color: #666 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
}

.c-submenu:not(.c-submenu--mobile) a {
    color: #333 !important;
    text-decoration: none !important;
    display: block !important;
    padding: 8px 0 !important;
    border-bottom: none !important;
}

.c-submenu:not(.c-submenu--mobile) a:hover {
    color: #017ac6 !important;
}

/* Module spacing */
.c-submenu:not(.c-submenu--mobile) .o-layout__module {
    margin-bottom: 20px !important;
}

/* List styling */
.c-submenu:not(.c-submenu--mobile) .o-menu__list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.c-submenu:not(.c-submenu--mobile) .o-menu__item {
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobile menu - keep original behavior */
.c-submenu--mobile {
    /* Mobile menu styles stay as they were */
}

/* Only apply desktop styles on larger screens */
@media (max-width: 992px) {
    .c-submenu:not(.c-submenu--mobile) {
        position: relative !important;
        margin-top: 0 !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }
}

/* Fix hero signup button text visibility */
.c-page-content main .o-layout__wrapper section:first-child a[href*="my.sitebay.org"],
.c-page-content main .o-layout__wrapper section:first-child a[href*="auth"] {
    color: #1a202c !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    margin: 4px !important;
    display: inline-block !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

/* Special styling for "Start free with email" button - light blue */
.c-page-content main .o-layout__wrapper section:first-child a[href*="my.sitebay.org"][href*="signup"]:first-of-type {
    background: #e6f3ff !important;
    border: 1px solid #017ac6 !important;
    color: #017ac6 !important;
    font-weight: 700 !important;
}

.c-page-content main .o-layout__wrapper section:first-child a[href*="my.sitebay.org"]:hover,
.c-page-content main .o-layout__wrapper section:first-child a[href*="auth"]:hover {
    background: rgba(255, 255, 255, 1) !important;
    color: #1a202c !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Special hover for email signup button */
.c-page-content main .o-layout__wrapper section:first-child a[href*="my.sitebay.org"][href*="signup"]:first-of-type:hover {
    background: #017ac6 !important;
    color: white !important;
}

/* Improve grey text visibility across the site */
.c-page-content,
.c-page-content p,
.c-page-content span,
.c-page-content div,
body {
    color: #2d3748 !important;
}

/* Specifically target light grey text and make it darker */
[style*="color: #666"],
[style*="color: #888"],
[style*="color: #999"],
[style*="color: rgb(102, 102, 102)"],
[style*="color: rgb(136, 136, 136)"],
[style*="color: rgb(153, 153, 153)"] {
    color: #4a5568 !important;
}

/* Fix dropdown text contrast */
.c-submenu:not(.c-submenu--mobile) h6 {
    color: #4a5568 !important;
}

/* Fix any remaining light text */
.text-gray-500,
.text-gray-400,
.text-gray-600 {
    color: #4a5568 !important;
}