/* =============================================================
   Modern Mega Menu Styles (Category Dropdown)
   ============================================================= */

/* Outer Mega Menu Container */
.modern-mega-menu-wrapper {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); /* Soft floating shadow */
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-top: 10px; /* Slight offset from header */
    padding: 0;
    width: 100%;
    min-width: 960px; /* Force wide layout for split view */
    max-width: 1200px;
    z-index: 9999;
}

/* Split Layout */
.modern-mega-menu-layout {
    display: flex;
    min-height: 380px;
}

/* Left Sidebar - Categories */
.modern-mega-menu-sidebar {
    width: 250px;
    background-color: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.modern-mega-category-link {
    display: block;
    padding: 12px 16px;
    color: #475569;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modern-mega-category-link:hover,
.modern-mega-category-link.cur-sub-cat {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 600;
}

/* Right Content Area - News Grid */
.modern-mega-menu-content {
    flex: 1;
    padding: 28px 32px;
    background-color: #ffffff;
}

.modern-mega-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Individual News Card */
.modern-mega-news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.modern-mega-news-card:hover {
    transform: translateY(-4px);
}

/* Reset default link color */
.modern-mega-news-card:hover .modern-mega-news-title {
    color: #2563eb !important;
}

.modern-mega-news-card:hover .modern-mega-news-thumb span.entry-thumb {
    transform: scale(1.08); /* Smooth zoom effect on hover */
}

.modern-mega-news-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    background-color: #f1f5f9;
}

.modern-mega-news-thumb span.entry-thumb {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

/* News Title & Meta */
.modern-mega-news-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
    white-space: normal;
}

.modern-mega-news-date {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Category Badge over News Card */
.modern-mega-news-category-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

/* Sub-Menu Reset for Mega Menu Container itself */
.tdb-mega-menu ul.sub-menu {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}
