/**
 * Yiontech Header Widget Styles
 */

/* Base Header Styles */
.header, .main-nav-bar {
    background-color: #386641;
    padding: 10px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
    transition: background-color 0.3s ease;
    width: 100% !important;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

/* Admin Bar Fixes */
.admin-bar .fixed-header {
    top: 32px;
}

.admin-bar .mobile-menu.slide-right,
.admin-bar .mobile-menu-container.slide-right {
    top: 32px;
}

.admin-bar .mobile-menu.slide-left,
.admin-bar .mobile-menu-container.slide-left {
    top: 32px;
}

/* For smaller screens where admin bar is responsive */
@media screen and (max-width: 782px) {
    .admin-bar .fixed-header,
    .admin-bar .header.transparent-header {
        top: 46px;
    }
    
    .admin-bar .mobile-menu.slide-right,
    .admin-bar .mobile-menu-container.slide-right {
        top: 46px;
    }
    
    .admin-bar .mobile-menu.slide-left,
    .admin-bar .mobile-menu-container.slide-left {
        top: 46px;
    }
}

/* Body padding adjustment for fixed header */
body.fixed-header-enabled {
    padding-top: 0 !important;
}

/* Transparent Header Styles */
.header.transparent-header, .main-nav-bar.transparent-header {
    background-color: rgba(56, 102, 65, 0.8);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: none;
}

.header.transparent-header.scrolled, .main-nav-bar.transparent-header.scrolled {
    background-color: #2b5232;
    position: fixed;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Container */
.container {
    width: 100%;
  max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 0px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

/* Scroll Background */
.scroll-background.scrolled {
    background-color: #2b5232;
}

/* Header placeholder adjustments */
.header-placeholder {
    background: transparent;
}

.admin-bar .header-placeholder {
    margin-top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header-placeholder {
        margin-top: 46px;
    }
}

/* Logo Styles */
.logo {
    text-decoration: none;
    line-height: 1;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 300px;
}

.fsbo-logo-text, .logo-text {
    color: #ffffff;
    font-size: 1.8em;
    font-weight: 600;
    white-space: nowrap;
}

.fsbo-logo-text small, .logo-tagline {
    display: block;
    font-size: 0.4em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -5px;
    white-space: nowrap;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 100px;
   
    display: none;
    margin-right: 5px;
    flex-shrink: 0;
    object-fit: contain;
}

.logo.logo-image-present .fsbo-logo-text small,
.logo.logo-image-present .logo-tagline {
    display: none;
}

.logo.logo-image-present img {
    display: block;
    width: auto !important;
}

.logo.logo-image-present .fsbo-logo-text,
.logo.logo-image-present .logo-text {
    font-size: 1.5em;
    line-height: 40px;
}

/* Header Sections */
.header-left {
    flex-shrink: 0;
    max-width: 250px;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    overflow: visible;
}

.header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 10px;
}

/* Header Split Style Specific */
.header-split .header-top,
.header-split .header-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-split .container{
    flex-direction: column !important;
}
.header-split .header-bottom {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

/* Header Centered Style Specific */
.header-centered .header-center {
    flex-direction: column;
    align-items: center;
}

.header-centered .nav-menu {
    margin-top: 15px;
}

/* Navigation Menu */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    overflow: visible;
}

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

.nav-menu ul li {
    margin: 0 10px;
    position: relative;
}

.nav-menu ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
}

.nav-menu ul li a:hover {
    color: #fce803;
}

/* Dropdown Menu */
.nav-menu ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #2b5232;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    flex-direction: column;
    padding: 10px 0;
    border-radius: 4px;
}

.nav-menu ul li:hover > ul {
    display: flex;
}

.nav-menu ul ul li {
    margin: 0;
    width: 100%;
}

.nav-menu ul ul li a {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu ul ul li:last-child a {
    border-bottom: none;
}

/* More Menu Dropdown */
.more-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background-color: #2b5232;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    flex-direction: column;
    padding: 10px 0;
    border-radius: 4px;
}

.menu-item-more:hover > .more-menu-dropdown,
.more-menu-dropdown.open {
    display: flex;
}

/* More Menu Icon Styles */
.menu-item-more .dropdown-toggle svg {
    width: 1em;
    height: 1em;
    margin: 0;
}

/* More Menu Dropdown Sub-items - Fixed for proper toggling */
.more-menu-dropdown .sub-menu {
    display: none;
    position: static;
    background-color: rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    margin-left: 10px;
    border-radius: 4px;
    padding: 10px 0;
}

.more-menu-dropdown .menu-item-has-children:hover > .sub-menu,
.more-menu-dropdown .sub-menu.open {
    display: block;
}

/* More Menu Dropdown Nested Sub-items */
.more-menu-dropdown .sub-menu .sub-menu {
    background-color: rgba(0, 0, 0, 0.05);
    margin-top: 5px;
    margin-left: 15px;
}

/* More Menu Dropdown Toggle Icons */
.more-menu-dropdown .dropdown-toggle i {
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.more-menu-dropdown .menu-item-has-children:hover > .dropdown-toggle i,
.more-menu-dropdown .dropdown-toggle.open i {
    transform: rotate(180deg);
}

/* Mobile Menu More Dropdown Fixes */
.mobile-menu-content .more-menu-dropdown {
    display: block;
    position: static;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-content .more-menu-dropdown .sub-menu {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: transparent;
    margin: 0;
    padding: 0 0 0 15px;
}

.mobile-menu-content .more-menu-dropdown .sub-menu.open {
    max-height: 500px;
}

.mobile-menu-content .more-menu-dropdown .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-content .more-menu-dropdown .dropdown-toggle.open i {
    transform: rotate(180deg);
}

/* Dropdown Toggle */
.nav-menu .dropdown-toggle i {
    margin-left: 5px;
    font-size: 0.8em;
}

/* Icon Button */
.icon-button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2em;
    margin-left: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-button:hover {
    color: #fce803;
}

.icon-button.with-separator::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.5);
}

/* Vertical Divider */
.vertical-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
}

/* Enquire Button */
.enquire-button {
    background-color: #fce803;
    color: #386641;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 660;
    font-size: 0.9em;
    cursor: pointer;
    margin-left: 15px;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

.enquire-button:hover {
    background-color: #f5d803;
}

/* Button Style Variations */
.enquire-button.button-outline {
    background-color: transparent;
    border: 2px solid #fce803;
    color: #fce803;
}

.enquire-button.button-outline:hover {
    background-color: #fce803;
    color: #386641;
}

.enquire-button.button-rounded {
    border-radius: 30px;
    padding-left: 20px;
    padding-right: 20px;
}

.enquire-button.button-shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.enquire-button.button-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Mobile Menu Styles */
.mobile-menu, .mobile-menu-container {
    position: fixed;
    top: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: transform 0.3s ease, width 0.3s ease;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    display: block;
}

.mobile-menu.slide-left, .mobile-menu-container.slide-left {
    left: 0;
    transform: translateX(-100%);
}

.mobile-menu.slide-right, .mobile-menu-container.slide-right {
    right: 0;
    transform: translateX(100%);
}

/* Ensure mobile menu is visible when active */
.mobile-menu.active, .mobile-menu-container.active {
    transform: translateX(0);
    width: 350px; /* Increased width for longer menu items */
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hamburger Button */
.mobile-menu-toggle, .mobile-toggle {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 24px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Close Button */
.mobile-menu-close, .mobile-menu-container-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.mobile-menu-close:hover, .mobile-menu-container-close:hover {
    background-color: rgba(0,0,0,0.1);
}

/* Mobile Menu Content */
.mobile-menu-content {
    padding: 60px 20px 20px;
}

/* Mobile Menu Logo - Added for logo in mobile menu */
.mobile-menu-logo {
    position: absolute;
    top: 15px;
    left: 20px;
    display: flex;
    align-items: center;
    z-index: 10;
}

.mobile-menu-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.mobile-menu-logo img {
    height: 30px !important;
    width: auto !important;
    margin-right: 8px;
}

.mobile-logo-text {
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
}

.mobile-logo-tagline {
    display: block;
    font-size: 0.7em;
    font-weight: 400;
    color: #666;
}

/* Mobile Menu List - Fixed for visibility */
.mobile-menu-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.mobile-menu-list li {
    margin: 0;
    padding: 0;
}

.mobile-menu-list li a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.mobile-menu-list li a:hover {
    color: #00bcd4;
}

.mobile-menu-list li:last-child a {
    border-bottom: none;
}

/* Mobile Dropdown Menu */
.mobile-menu-list .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 15px;
    margin-top: 0;
}

.mobile-menu-list .sub-menu.open {
    max-height: 500px; /* Adjust based on your content */
}

.mobile-menu-list .sub-menu li a {
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px dashed #eee;
}

.mobile-menu-list .sub-menu li:last-child a {
    border-bottom: none;
}

.mobile-menu-list a.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-list a.dropdown-toggle i {
    transition: transform 0.3s ease;
}

.mobile-menu-list a.dropdown-toggle.open i {
    transform: rotate(180deg);
}

/* Mobile Menu Widgets */
.mobile-menu-widgets {
    margin: 20px 0;
}

.mobile-menu-widget {
    margin-bottom: 20px;
}

.mobile-menu-widget:last-child {
    margin-bottom: 0;
}

/* Mobile Enquire Button - Fixed to remain visible */
.mobile-enquire-button {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Search Modal */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay .overlay-content {
    width: 100%;
    max-width: 700px;
    position: relative;
}

.search-overlay .close-overlay {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    font-size: 24px;
}

.search-overlay .close-overlay:hover {
    transform: rotate(90deg);
}

.search-overlay .search-wrapper {
    background: white;
    border-radius: 16px;
    padding: 16px 24px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-overlay .search-input {
    width: 100%;
    font-size: 18px;
    padding: 8px 0;
    border: none;
    background: transparent;
    color: #334155;
    outline: none;
}

.search-overlay .search-input::placeholder {
    color: #334155;
}

.search-overlay .search-results {
    position: static;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: 60vh;
    overflow-y: auto;
    background: white;
}

.search-overlay .search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-overlay .search-results li {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.search-overlay .search-results li:last-child {
    border-bottom: none;
}

.search-overlay .search-results li:hover {
    background: #f8fafc;
}

.search-overlay .search-results img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.search-overlay .search-results .result-content {
    flex: 1;
}

.search-overlay .search-results .result-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1e293b;
}

.search-overlay .search-results .result-meta {
    font-size: 13px;
    color: #64748b;
    display: flex;
    gap: 8px;
}

.search-overlay .search-results .result-type {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.search-overlay .search-results .result-category {
    font-size: 11px;
}

.search-overlay .search-highlight {
    background-color: #fbbf24;
    color: #000;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 2px;
}

.search-overlay .search-footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.search-overlay .loading {
    padding: 16px;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

.search-overlay .no-results,
.search-overlay .error {
    padding: 16px;
    text-align: center;
    color: #64748b;
}

.search-overlay .error {
    color: #ef4444;
}

/* Classic Header Styles */
.main-header-wrapper {
    padding: 30px 50px 30px 50px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.main-nav-bar {
    background-color: #ffffff;
    border-radius: 50px;
    padding: 15px 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 100px);
    max-width: 1200px;
    z-index: 10;
    box-sizing: border-box;
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    max-width: 250px;
}

.logo-image {
    margin-right: 8px;
    line-height: 1;
    flex-shrink: 0;
}

.logo-image img {
    height: 40px;
    width: auto;
    max-width: 100px !important;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #32475a;
    white-space: nowrap;
}

.logo-text small {
    display: block;
    font-size: 0.4em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -5px;
    white-space: nowrap;
    color: #6b7280;
}

/* CTA Button */
.cta-button {
    background-color: #fce803;
    color: #386641;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 660;
    font-size: 0.9em;
    cursor: pointer;
    margin-left: 15px;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

.cta-button:hover {
    background-color: #f5d803;
}

/* CTA Button Style Variations */
.cta-button.button-outline {
    background-color: transparent;
    border: 2px solid #fce803;
    color: #fce803;
}

.cta-button.button-outline:hover {
    background-color: #fce803;
    color: #386641;
}

.cta-button.button-rounded {
    border-radius: 30px;
    padding-left: 20px;
    padding-right: 20px;
}

.cta-button.button-shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-button.button-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #32475a;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG Icon Color Fixes */
.icon-button svg,
.mobile-toggle svg,
.search-toggle svg,
.mobile-menu-close svg,
.mobile-menu-container-close svg,
.menu-item-more .dropdown-toggle svg {
    fill: currentColor;
    stroke: currentColor;
}

/* Search Modal Close Button Color */
.search-overlay .close-overlay {
    color: #ffffff;
}

/* Mobile Menu Button Hover States */
.mobile-menu-toggle:hover,
.mobile-toggle:hover {
    color: #fce803;
}

.mobile-menu-close:hover,
.mobile-menu-container-close:hover {
    color: #000000;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-header-wrapper {
        padding: 0;
    }
    
    .main-nav-bar {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: none;
        border-radius: 0;
        padding: 10px 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .cta-button {
        padding: 5px 10px;
        margin-right: 15px;
        font-size: 0.9rem;
    }
    
    .logo-image img {
        height: 30px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    /* Header Split Responsive */
    .header-split .header-bottom {
        display: none;
    }
    
    /* Header Centered Responsive */
    .header-centered .header-center {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .header-centered .nav-menu {
        display: none;
    }
    
    .header-centered .header-left {
        order: 1;
    }
    
    .header-centered .header-right {
        order: 2;
    }
}

@media (max-width: 768px) {
    .header, .main-nav-bar {
        padding: 10px 5px;
    }
    
    .fsbo-logo-text, .logo-text {
        font-size: 1.4em;
    }
    
    .icon-button {
        margin-left: 10px;
    }
    
    .icon-button.with-separator::before {
        left: -5px;
        height: 18px;
    }
    
    .enquire-button {
        display: none;
    }
    
    .mobile-menu, .mobile-menu-container {
        display: block;
    }
    
    /* Adjust mobile layout */
    .header {
        flex-wrap: nowrap;
    }
    
    .logo {
        max-width: 150px;
        margin-left: 5px; /* Reduced margin on mobile */
    }
    
    .header-right {
        margin-left: auto;
    }
    
    .search-overlay .overlay-content {
        max-width: 100%;
    }
    
    .search-overlay .search-wrapper {
        padding: 12px 16px;
    }
    
    .search-overlay .search-input {
        font-size: 16px;
    }
    
    .search-overlay .search-results li {
        padding: 10px 12px;
    }
    
    .search-overlay .search-results img {
        width: 40px;
        height: 40px;
    }
    
    /* Ensure hamburger button is visible */
    .mobile-menu-toggle, .mobile-toggle {
        margin-right: 0;
        z-index: 1001;
    }
    
    /* Fix for mobile menu visibility */
    .mobile-menu-list {
        display: block !important;
    }
    
    .mobile-menu-list li {
        display: block !important;
    }
    
    .mobile-menu-list li a {
        display: block !important;
    }
    
    /* Ensure enquire button remains visible in mobile menu */
    .mobile-menu.active .mobile-enquire-button,
    .mobile-menu-container.active .mobile-enquire-button {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Adjust mobile menu width for smaller screens */
    @media (max-width: 480px) {
        .mobile-menu.active, .mobile-menu-container.active {
            width: 85%; /* Use percentage for very small screens */
            max-width: 320px; /* But cap at a reasonable maximum */
        }
    }
}