/* --- Tabbed Mega Menu (Mikro Style - Redesigned) --- */

.mega-dropdown {
    position: static !important;
}

.mega-menu {
    padding: 0 !important;
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.2), 0 30px 60px -30px rgba(0,0,0,0.3) !important;
    background: #fff !important;
    margin-top: 0 !important;
    position: absolute !important;
    top: 100% !important;
    display: none; /* Controlled by Bootstrap/Hover */
}

.mega-menu.show {
    display: block !important;
}

.mega-menu .container-fluid {
    padding: 0 !important; /* Absolute control over padding */
    max-width: 100% !important;
}

.mega-tabs-container {
    display: flex;
    min-height: 360px; /* More compact and dense for the premium look */
    background: #fff;
    position: relative;
    overflow: hidden;
}

/* Sidebar (Left) */
.mega-tabs-sidebar {
    width: 320px;
    background: #ffffff;
    border-right: 1px solid #f0f0f0;
    padding: 35px 0;
    padding-left: 60px !important;
    flex-shrink: 0;
}

.mega-tab-link {
    display: flex;
    align-items: center;
    padding: 14px 0; /* Tightened from 20px */
    padding-left: 0 !important;
    margin-left: 0 !important;
    color: #444;
    font-weight: 600; /* Reduced from 700 */
    font-size: 14px; /* User requested 14px */
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.mega-tab-link:hover {
    color: #00c3a5;
    background: #f9f9fb;
}

.mega-tab-link.active {
    color: var(--primary-color);
    font-weight: 700;
}

.mega-tab-link.active::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    height: 24px;
    width: 3px;
    background: #00c3a5;
    border-radius: 3px 0 0 3px;
}

/* Content Area (Right) */
.mega-tabs-content-wrapper {
    flex: 1;
    background: #fff;
    padding: 40px 60px 0 60px; /* Zero bottom padding to ground footer */
    display: flex;
    flex-direction: column;
}

.mega-tab-pane {
    display: none;
    width: 100%;
    flex-direction: column;
    flex: 1; /* Fill height */
}

.mega-tab-pane.active {
    display: flex;
}

/* --- Content Style: LIST (4 Columns Grid) --- */
.mega-group-column {
    width: 100%;
}

.mega-group-items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 25px; 
}

.mega-tab-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s;
}

.mega-tab-item h6 {
    margin: 0;
    font-weight: 700; /* Reduced from 800 */
    font-size: 16px; /* User requested 16px for headings/menu titles */
    color: #1a1a2e;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mega-tab-item h6::after {
    content: '\f054'; /* Font Awesome Chevron Right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 11px;
    color: #00c3a5;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.mega-tab-item:hover h6 {
    color: #00c3a5;
    transform: translateX(5px);
}

.mega-tab-item:hover h6::after {
    opacity: 1;
    transform: translateX(8px);
}

.mega-tab-item h6 {
    transition: all 0.3s ease;
}

.mega-item-desc {
    font-size: 13px;
    color: #222;
    line-height: 1.5;
    margin: 0;
}

/* --- Content Style: PREMIUM (Vertical Cards) --- */
.mega-premium-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
}

.mega-premium-item {
    flex: 0 1 180px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.mega-premium-item:hover {
    transform: translateY(-5px);
}

.mega-premium-img-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4; /* Vertical Rectangle */
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fb;
    margin-bottom: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.mega-premium-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mega-premium-item:hover .mega-premium-img {
    transform: scale(1.1);
}

.mega-premium-item h6 {
    margin: 0 0 4px 0;
    font-weight: 700; /* Reduced from 800 */
    font-size: 16px; /* User requested 16px */
    color: #1a1a2e;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.mega-premium-item:hover h6 {
    color: var(--primary-color);
}

.mega-premium-item .mega-item-desc {
    text-align: center;
    font-size: 13px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-main-icon {
    width: 40px;
    height: 40px;
    background: #f0fdfa;
    color: #00c3a5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* --- Footer Area --- */
.mega-pane-footer {
    margin-top: auto;
    padding: 22px 9px; /* Slightly more padding for the transparent look */
    background: transparent; /* Background removed as requested */
    border-top: 1px solid #f0f0f0; /* Very subtle separator */
    display: flex;
    align-items: center;
    gap: 40px;
}

.mega-footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.mega-footer-link i {
    color: #00c3a5;
    font-size: 18px;
}

.mega-footer-link:hover {
    color: #00c3a5;
}

.explore-all-link {
    color: #00c3a5 !important;
    margin-left: auto;
}
