/* --- VEDIC SKILLS MASTER MEGA MENU (LOVABLE STYLE) --- */

/* 1. MAIN PANEL CONTAINER */
.vs-mega-menu > .sub-menu {
    position: absolute !important;
    left: 0 !important; right: 0 !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    background: #FCFAFA !important; /* Sattvic Off-White */
    border-top: 3px solid #D4A373 !important; /* Muted Gold */
    box-shadow: 0px 20px 40px rgba(0,0,0,0.08) !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    padding: 80px 10% !important; /* Refined vertical spacing */
    gap: 40px !important;
    opacity: 0; visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 9999;
    align-items: start !important;
}

.vs-mega-menu:hover > .sub-menu { opacity: 1; visibility: visible; top: 100%; }

/* 2. SCHOLARLY HEADERS WITH ICONS */
.vs-mega-menu > .sub-menu > li > a {
    font-family: "Lora", serif !important;
    font-weight: 600 !important;
    color: #5E503F !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 2px !important;
    border-bottom: 1px solid #EAE2B7 !important;
    padding-bottom: 15px !important;
    margin-bottom: 25px !important;
    display: flex !important; /* Fixes icon alignment */
    align-items: center !important;
}

/* Adds the 'Temple Library' icon before headers */
.vs-mega-menu .sub-menu > li > a::before {
    content: "\f518"; 
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 12px;
    color: #D4A373;
    font-size: 14px;
}

/* 3. VERTICAL LINK STYLING */
.vs-mega-menu .sub-menu .sub-menu {
    display: flex !important; flex-direction: column !important;
    position: static !important; visibility: visible !important; opacity: 1 !important;
    padding: 0 !important; background: transparent !important;
    box-shadow: none !important;
}

.vs-mega-menu .sub-menu .sub-menu li a {
    padding: 10px 0 !important;
    color: #7A7A7A !important;
    font-size: 15px !important;
    transition: all 0.3s ease;
    display: block !important;
}

.vs-mega-menu .sub-menu .sub-menu li a:hover { 
    color: #D4A373 !important; 
    transform: translateX(8px); /* More noticeable premium movement */
}

/* 4. SPECIAL FEATURE CLASSES */

/* The 'NEW' Badge */
.vs-new-badge > a::after {
    content: "NEW";
    font-size: 9px;
    background: #FF6600;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: bold;
    vertical-align: middle;
}

/* Featured Cards (Mentoring/Sadhana) */
.vs-card > a {
    background: #FFFFFF !important;
    border: 1px solid #F1EDE4 !important;
    border-radius: 12px !important;
    padding: 25px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
    display: block !important;
    transition: all 0.3s ease !important;
}

.vs-card > a:hover {
    border-color: #D4A373 !important;
    box-shadow: 0 8px 30px rgba(212, 163, 115, 0.15) !important;
}

/* Green Qualification Box */
.vs-info-box > a {
    background: #F4F9F4 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    color: #4A6741 !important;
    font-size: 14px !important;
    border-left: 4px solid #8FB996 !important;
    line-height: 1.6 !important;
}

/* --- LIVE EVENT TRACKER (COMMUNITY) --- */
.vs-live-event > a {
    background: #FFF9F2 !important; /* Soft Saffron Glow */
    border: 1px dashed #D4A373 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    position: relative !important;
}

.vs-live-event > a::before {
    content: "● LIVE";
    color: #FF0000;
    font-size: 10px;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    animation: blink 1.5s infinite;
}

@keyframes blink { 
    0% { opacity: 1; } 
    50% { opacity: 0.3; } 
    100% { opacity: 1; } 
}