/* ==========================================================================
   Global Variables & Base Setup
   ========================================================================== */
:root {
    --primary-red: #dc3546;
    --primary-red-hover: #b02a37;
    --bg-light-custom: #f8f9fa;
    --text-dark: #212529;
    --border-light-custom: #dee2e6;
    --card-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.075);
    --transition-smooth: all 0.25s ease-in-out;
}

body {
    font-family: 'Inter', sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light-custom);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .display-5 {
    font-family: 'Plus Jakarta Sans', sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
}

.bg-light-custom {
    background-color: var(--bg-light-custom);
}

/* ==========================================================================
   Interactive Components & Buttons
   ========================================================================== */
.btn-danger {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transition: var(--transition-smooth);
}

.btn-danger:hover, 
.btn-danger:focus, 
.btn-danger:active {
    background-color: var(--primary-red-hover) !important;
    border-color: var(--primary-red-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 70, 0.25);
}

.btn-outline-danger {
    color: var(--primary-red);
    border-color: var(--primary-red);
    transition: var(--transition-smooth);
}

.btn-outline-danger:hover, 
.btn-outline-danger:focus, 
.btn-outline-danger:active {
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.rounded-4 {
    border-radius: 1rem !important;
}

.card {
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Accordion Customization
   ========================================================================== */
.accordion-button {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-red);
    background-color: rgba(220, 53, 70, 0.04);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(220, 53, 70, 0.2);
}

.accordion-item {
    border-color: var(--border-light-custom);
}

/* ==========================================================================
   Horoscope & Moon Sign Specific UI
   ========================================================================== */
.sign-pill {
    transition: var(--transition-smooth);
    cursor: pointer;
    font-weight: 600;
}
.sign-pill:hover {
    color: #dc3546;
}
.sign-pill.active {
    background-color: var(--primary-red) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(220, 53, 70, 0.3);
    border-color: var(--primary-red) !important;
}

.sign-pill:not(.active):hover {
    background-color: #e9ecef !important;
    color: var(--primary-red);
}

.horoscope-pane {
    display: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease-in-out, transform 0.35s ease-in-out;
}

.horoscope-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Media Queries (Global Mobile)
   ========================================================================== */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .card {
        padding: 1.25rem !important;
    }
}

/* ==========================================================================
   Clean Navigation, 5-Column Mega-Menu & Icon System
   ========================================================================== */
.navbar-nav {
    font-family: 'Inter', sans-serif;
}

.navbar-nav .nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #333333 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    transition: color 0.15s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-red) !important;
}

.navbar .dropdown-menu {
    border-radius: 0.75rem;
    padding: 0.75rem 0;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08) !important;
    animation: dropdownFade 0.2s ease-in-out forwards;
    border: 1px solid rgba(0,0,0,0.04);
    min-width: 240px;
    width: max-content;
}

.navbar .dropdown-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: #495057;
    padding: 0.45rem 1rem 0.45rem 2.5rem !important;
    position: relative;
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
}

.navbar .dropdown-item:hover {
    background-color: rgba(220, 53, 70, 0.05);
    color: var(--primary-red);
    padding-left: 2.75rem !important;
}

/* Desktop Hover & 5-Centered Mega Menu Architecture */
@media (min-width: 992px) {
    .navbar-nav .dropdown {
        position: relative !important;
    }

    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block !important;
        margin-top: 0 !important;
    }

    /* 5-Column Centered Mega Menu (No scrolling, perfectly centered) */
    .navbar-nav .dropdown-menu.mega-menu {
        width: 1240px !important;
        max-width: 96vw !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        position: absolute !important;
        top: 100% !important;
        padding: 1.5rem !important;
        max-height: none !important;
        overflow-y: visible !important;
        column-count: auto !important;
    }

    .navbar-nav .dropdown-menu.mega-menu .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        margin-right: -0.5rem;
        margin-left: -0.5rem;
    }

    .navbar-nav .dropdown-menu.mega-menu .col-lg {
        flex: 1 0 0% !important;
        max-width: 20% !important;
        padding-right: 0.5rem;
        padding-left: 0.5rem;
        column-count: auto !important;
    }

    .navbar-nav .dropdown-menu.mega-menu li {
        column-count: auto !important;
        break-inside: avoid !important;
        display: block !important;
    }

    .navbar-nav .mega-menu .dropdown-item {
        white-space: normal !important;
        font-size: 0.8rem !important;
        padding-left: 2.2rem !important;
    }

    /* Prevent standard single-column dropdowns from breaking */
    .navbar-nav .dropdown:not(:has(.mega-menu)) .dropdown-menu {
        left: 0;
        right: auto;
        transform: none !important;
    }
}
.navbar-zindex {
    z-index :99999;
}
/* ==========================================================================
   Automatic Icon Injection via CSS
   ========================================================================== */
.navbar .dropdown-item::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--primary-red);
    opacity: 0.8;
}

/* Premium Reports Icons */
.navbar .dropdown-item[href*="sadesati-report"]::before { content: "\f254"; }
.navbar .dropdown-item[href*="lucky-stone-report"]::before { content: "\f3a5"; }
.navbar .dropdown-item[href*="manglik-report"]::before { content: "\f004"; }
.navbar .dropdown-item[href*="kaalsarp-report"]::before { content: "\f6d5"; }
.navbar .dropdown-item[href="horoscope-pdf"]::before { content: "\f2ea"; }

/* Tool Icons */
.navbar .dropdown-item[href*="lagna-ascendant"]::before { content: "\f062"; }
.navbar .dropdown-item[href*="moon-sign"]::before { content: "\f186"; }
.navbar .dropdown-item[href*="sun-sign"]::before { content: "\f185"; }
.navbar .dropdown-item[href*="nakshatra"]::before { content: "\f005"; }
.navbar .dropdown-item[href*="vimshottari"]::before { content: "\f073"; }
.navbar .dropdown-item[href*="navamsa"]::before { content: "\f009"; }
.navbar .dropdown-item[href*="manglik-dosh"]::before { content: "\f06d"; }
.navbar .dropdown-item[href*="sadesati-calculator"]::before { content: "\f252"; }
.navbar .dropdown-item[href*="shani-dhaiya"]::before { content: "\f017"; }
.navbar .dropdown-item[href*="gandmool"]::before { content: "\f681"; }
.navbar .dropdown-item[href*="pitra-dosh"]::before { content: "\f54e"; }
.navbar .dropdown-item[href*="kemdrum"]::before { content: "\f128"; }
.navbar .dropdown-item[href*="guru-chandal"]::before { content: "\f0e7"; }
.navbar .dropdown-item[href*="raj-yoga"]::before { content: "\f521"; }
.navbar .dropdown-item[href*="dhana-yoga"]::before { content: "\f53d"; }
.navbar .dropdown-item[href*="gajakesari"]::before { content: "\f091"; }
.navbar .dropdown-item[href*="nadi-dosha"]::before { content: "\f46b"; }
.navbar .dropdown-item[href*="bhakoot"]::before { content: "\f127"; }
.navbar .dropdown-item[href*="gana-dosha"]::before { content: "\f0c0"; }
.navbar .dropdown-item[href*="love-compatibility"]::before { content: "\f04e"; }
.navbar .dropdown-item[href*="kalathra"]::before { content: "\f578"; }
.navbar .dropdown-item[href*="rahu-kaal"]::before { content: "\f2f2"; }
.navbar .dropdown-item[href*="choghadiya"]::before { content: "\f522"; }
.navbar .dropdown-item[href*="hora"]::before { content: "\f251"; }
.navbar .dropdown-item[href*="panchang"]::before { content: "\f274"; }
.navbar .dropdown-item[href*="muhurat"]::before { content: "\f073"; }
.navbar .dropdown-item[href*="numerology"]::before { content: "\f1ec"; }
.navbar .dropdown-item[href*="baby-name"]::before { content: "\f031"; }
.navbar .dropdown-item[href*="paya"]::before { content: "\f5a2"; }
.navbar .dropdown-item[href*="gemstone"]::before { content: "\f3a5"; }
.navbar .dropdown-item[href*="atmakaraka"]::before { content: "\f2fb"; }
.navbar .dropdown-item[href*="lal-kitab"]::before { content: "\f02d"; }
.navbar .dropdown-item[href*="prashna"]::before { content: "\f059"; }
.navbar .dropdown-item[href*="ashtakavarga"]::before { content: "\f0ce"; }
.navbar .dropdown-item[href*="kp-lagna"]::before { content: "\f3c5"; }
.navbar .dropdown-item[href*="daily-horoscope"]::before { content: "\f185"; }
.navbar .dropdown-item[href*="monthly-horoscope"]::before { content: "\f273"; }
.navbar .dropdown-item[href*="gochar-transit"]::before { content: "\f0ec"; }
.navbar .dropdown-item[href*="kaal-sarp"]::before { content: "\f6d5"; }

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Footer Styling (Global)
========================================= * /
.footer-brand {
    background-color: #f44336; /* Materialize core red * /
    background: linear-gradient(135deg, #e53935, #d32f2f); /* Modern gradient * /
}
.footer-brand .nav-hover {
    transition: color 0.2s ease;
}
.footer-brand .nav-hover:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* EMERGENCY FIX: Footer Background and Text Visibility * /
.footer-brand {
    background-color: #212529 !important; 
    color: #ffffff !important;
    display: block;
    width: 100%;
}

.footer-brand a {
    color: rgba(255, 255, 255, 0.75) !important;
}

.footer-brand a:hover {
    color: #ffffff !important;
}
*/
/* Footer Branding & Background Fix */
.footer-brand {
    background-color: #212529 !important; /* Matches your theme's dark footer background */
    border-top: 5px solid #dc3545; /* Ties into your primary accent color */
}

.footer-brand a.nav-hover:hover {
    color: #ffffff !important;
}
/* */