.dropdown-m-style{
    /* background-color: rgb(234, 198, 20); */
    /*width: 100vw;*/
    /* padding: 3px; */
    /* padding-left: 16px; */
    display: flex;
    justify-content: center;
    position: relative;
}

/* Dropdown Header Styles */
.dropdown-header-center ul {
    position: relative;
}

.dropdown-header-center ul li {
    position: relative;
}

.dropdown-header-center ul li.has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #333;
    text-decoration: none;
    /* font-weight: 500; */
    /* padding: 8px 12px; */
    transition: all 0.3s ease;
    position: relative;
}

/* .dropdown-header-center ul li.has-dropdown > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 500;
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
} */

.dropdown-header-center ul li.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-header-center ul li.has-dropdown > a:hover {
    color: #d4af37;
}

/* Regular Dropdown Styles */
.dropdown-header-center .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    /* padding: 15px 0; */
}

.dropdown-header-center ul li.has-dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header-center .submenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-header-center .submenu li {
    display: block;
    width: 100%;
    margin: 0;
}

.dropdown-header-center .submenu li a {
    display: block;
    /* padding: 8px 20px; */
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-header-center .submenu li:last-child a {
    border-bottom: none;
}

.dropdown-header-center .submenu li a:hover {
    background-color: #f8f9fa;
    color: #d4af37;
    padding-left: 25px;
}

/* Mega Menu Styles */
.dropdown-header-center .mega-dropdown .mega-menu {
    width: 100%;
    left: 0;
    right: auto;
    transform: none;
    max-width: none;
    padding: 0;
    border-radius: 0;
    border: none;
    border-top: 3px solid #d4af37;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown-header-center .mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    display: block;
}

/* Multi-level Mega Menu */
.dropdown-header-center .mega-menu.full-width {
    width: 100vw;
    left: 0;
    right: 0;
    position: relative;
    top: 100px;
}

/* Ensure all mega menus span full viewport */
.dropdown-header-center .mega-dropdown .mega-menu,
.dropdown-header-center .mega-menu.full-width {
    width: 100%;
    left: 0;
    right: auto;
    position: absolute;
    top: 100%;
    max-width: none;
}

.dropdown-header-center .mega-menu-container {
    display: flex;
    min-height: 400px;
    background: #fff;
    width: 100%;
    max-width: 100vw;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 10px;
    margin-right: 15px;
    z-index: 1002;
    position: relative;
}

.mobile-menu-toggle:hover {
    color: #d4af37;
}

.mobile-menu-toggle:focus {
    outline: none;
}

/* Ensure dropdown header is properly positioned */
.dropdown-header {
    position: relative;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.dropdown-header-center {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile and Tablet Responsive Styles */
@media (max-width: 1024px) {
    .dropdown-header-center ul {
        font-size: 14px;
        gap: 15px !important;
    }
    
    .dropdown-header-center ul li a {
        padding: 8px 10px;
        font-size: 14px;
        font-weight: 600;
    }
    
    .mega-menu-container {
        min-height: 350px;
    }
    
    .mega-menu-left {
        width: 200px;
        padding: 15px 0;
    }
    
    .mega-menu-right {
        padding: 20px;
    }
    
    .category-item a {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .subcategory-content h6 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .subcategory-content ul li a {
        font-size: 12px;
        padding: 4px 0;
    }
}

@media (max-width: 768px) {
    /* Hide the entire mega dropdown section on mobile */
    .dropdown-m-style {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .dropdown-header-center ul {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 20px;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .dropdown-header-center ul.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .dropdown-header-center ul li {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .dropdown-header-center ul li a {
        display: block;
        padding: 12px 15px;
        font-size: 16px;
        font-weight: 600;
        color: #333;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
    }
    
    .dropdown-header-center ul li a:hover {
        background-color: #f8f9fa;
        color: #d4af37;
    }
    
    /* Hide mega menus completely on mobile */
    .dropdown-header-center .mega-dropdown .mega-menu,
    .dropdown-header-center .mega-dropdown .submenu,
    .dropdown-header-center .has-dropdown .submenu,
    .mega-dropdown.multi-level .mega-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Prevent any hover or click events from showing dropdowns */
    .dropdown-header-center .mega-dropdown:hover .mega-menu,
    .dropdown-header-center .mega-dropdown:hover .submenu,
    .dropdown-header-center .has-dropdown:hover .submenu,
    .dropdown-header-center .mega-dropdown .mega-menu.show {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Remove dropdown indicators on mobile */
    .dropdown-header-center .has-dropdown::after,
    .dropdown-header-center .mega-dropdown::after {
        display: none !important;
    }
    
    .mega-menu-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .mega-menu-left {
        width: 100%;
        background: #fff;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 15px;
    }
    
    .mega-menu-right {
        width: 100%;
        padding: 15px;
    }
    
    .category-item {
        margin-bottom: 5px;
    }
    
    .category-item a {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 4px;
        background: #f8f9fa;
        margin-bottom: 5px;
        display: block;
    }
    
    .category-item.active a {
        background: #d4af37;
        color: #fff;
    }
    
    .subcategory-content {
        margin-top: 15px;
    }
    
    .subcategory-content h6 {
        font-size: 15px;
        margin-bottom: 10px;
        color: #333;
        font-weight: 600;
    }
    
    .subcategory-content ul li a {
        font-size: 13px;
        padding: 6px 0;
        color: #666;
    }
    
    .subcategory-content .row {
        margin: 0;
    }
    
    .subcategory-content .col-md-4,
    .subcategory-content .col-md-6 {
        padding: 10px 0;
        margin-bottom: 15px;
    }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .dropdown-m-style {
        padding: 0 15px;
    }
    
    .dropdown-header-center ul {
        gap: 20px !important;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .dropdown-header-center ul li a {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    /* Hide all dropdowns on tablet - show only main menu items */
    .mega-dropdown .mega-menu,
    .has-dropdown .submenu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Disable hover effects on dropdowns for tablet */
    .mega-dropdown:hover .mega-menu,
    .has-dropdown:hover .submenu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Make main menu links work as normal links on tablet */
    .mega-dropdown > a,
    .has-dropdown > a {
        cursor: pointer;
        pointer-events: auto;
    }
    
    /* Remove dropdown indicators on tablet */
    .mega-dropdown > a::after,
    .has-dropdown > a::after,
    .mega-dropdown > a i,
    .has-dropdown > a i {
        display: none !important;
    }
    
    /* Enhanced tablet menu styling */
    .dropdown-header-center ul li a {
        transition: background-color 0.3s ease, color 0.3s ease;
        border-radius: 4px;
    }
    
    .dropdown-header-center ul li a:hover {
        background-color: rgba(212, 175, 55, 0.1);
        color: #d4af37 !important;
        transform: translateY(-1px);
    }
}

/* Small tablet adjustments */
@media (min-width: 640px) and (max-width: 768px) {
    .dropdown-header-center ul {
        gap: 15px !important;
        padding: 0 10px;
    }
    
    .dropdown-header-center ul li a {
        padding: 8px 10px;
        font-size: 12px;
    }
}

.dropdown-header-center .mega-menu-left {
    width: 250px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    /* padding: 20px 0; */
}

.dropdown-header-center .mega-menu-right {
    flex: 1;
    padding: 30px;
    background: #fff;
}

.dropdown-header-center .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-header-center .category-item {
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.dropdown-header-center .category-item:last-child {
    border-bottom: none;
}

.dropdown-header-center .category-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: none;
}

.dropdown-header-center .category-item:hover a,
.dropdown-header-center .category-item.active a {
    background-color: #fff;
    color: #d4af37;
    padding-left: 25px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.dropdown-header-center .category-item a i {
    font-size: 14px;
    width: 20px;
    text-align: center;
    color: #d4af37;
}

.dropdown-header-center .subcategory-content {
    display: none;
}

.dropdown-header-center .subcategory-content.active {
    display: block;
}

.dropdown-header-center .subcategory-content h6 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d4af37;
    text-transform: uppercase;
}

.dropdown-header-center .subcategory-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-header-center .subcategory-content ul li {
    margin-bottom: 8px;
}

.dropdown-header-center .subcategory-content ul li a {
    display: block;
    padding: 6px 0;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: none;
}

.dropdown-header-center .subcategory-content ul li a:hover {
    color: #d4af37;
    padding-left: 10px;
    background: transparent;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .dropdown-header-center .mega-menu {
        width: 100vw;
        max-width: none;
    }
    
    .dropdown-header-center .mega-menu .row {
        flex-direction: column;
    }
    
    .dropdown-header-center .mega-menu .col-md-3,
    .dropdown-header-center .mega-menu .col-md-4 {
        margin-bottom: 20px;
    }
    
    .dropdown-header-center .mega-menu-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .dropdown-header-center .mega-menu-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .dropdown-header-center .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px;
    }
    
    .dropdown-header-center .category-item {
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        flex: 1;
        min-width: 120px;
    }
    
    .dropdown-header-center .category-item a {
        padding: 10px;
        text-align: center;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    /* Hide navigation by default on mobile */
    .dropdown-header-center ul {
        display: none;
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column !important;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
        z-index: 1001;
        padding: 20px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    
    .dropdown-header-center ul.show {
        display: flex !important;
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
    
    .dropdown-header-center ul li {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .dropdown-header-center ul li a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #e0e0e0;
        text-align: left;
        font-weight: 600;
    }
    
    .dropdown-header-center .submenu,
    .dropdown-header-center .mega-menu,
    .dropdown-header-center .mega-menu.full-width {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        background: #f8f9fa !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        margin-top: 10px !important;
        width: 100% !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        display: none;
    }
    
    .dropdown-header-center .mega-menu.show {
        display: block !important;
    }
    
    .dropdown-header-center .mega-menu {
        padding: 15px;
    }
    
    .dropdown-header-center .mega-menu-container {
        display: block;
        width: 100%;
    }
    
    .dropdown-header-center .mega-menu-left {
        margin-bottom: 20px;
        width: 100%;
    }
    
    .dropdown-header-center .category-list {
        display: block;
    }
    
    .dropdown-header-center .category-item {
        border-bottom: 1px solid #e0e0e0;
        border-radius: 0;
    }
    
    .dropdown-header-center .subcategory-content {
        display: block !important;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 2px solid #d4af37;
    }
}

/* Hide mega menu dropdown on tablet and below */
@media (max-width: 1199px) {
  .dropdown-m-style,
  .dropdown-header-center,
  .dropdown-header-center ul li.has-dropdown .submenu,
  .dropdown-header-center ul li.has-dropdown .others-dropdown-list {
    display: none !important;
  }
}

/* OTHERS dropdown in mega menu (width fits content) */
.dropdown-header-center ul li.has-dropdown .others-dropdown-list {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 0;
    margin: 0;
    min-width: unset;
    width: max-content;
    list-style: none;
    z-index: 1000;
    white-space: nowrap;
}
.dropdown-header-center ul li.has-dropdown:hover .others-dropdown-list {
    display: block;
}
.others-dropdown-list li a {
    display: block;
    padding: 8px 24px;
    color: #222;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
    min-width: 120px;
}
.others-dropdown-list li a:hover {
    background: #f5f5f5;
    color: #bfa15a;
}
@media (max-width: 991px) {
    .dropdown-header-center ul li.has-dropdown .others-dropdown-list {
        position: static;
        box-shadow: none;
        width: 100%;
    }
}