/*
Theme Name: Bangla News
Theme URI: https://www.facebook.com/N.A.Lebu
Author: Nur Amin Lebu
Author URI: https://www.linkedin.com/in/nuraminlebu
Description: A news portal theme built with Tailwind CSS. Made by Nur Amin Lebu.
Version: 1.5
Text Domain: bangla-news-lebu
*/





body {
    font-family: 'Hind Siliguri', sans-serif !important;
}

/* Force headings and paragraphs to use the font */
h1, h2, h3, h4, h5, h6, p, a, span, div, li {
    font-family: 'Hind Siliguri', sans-serif !important;
}

/* Specific overrides for Article Content */
.article-content, .article-content p, .article-content h1, .article-content h2, .article-content h3 {
    font-family: 'Hind Siliguri', sans-serif !important;
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* --- DROPDOWN MENU STYLES --- */

/* Common Sub-menu styles */
.sub-menu {
    background-color: #fff;
    min-width: 220px;
    z-index: 999; /* High z-index to stay on top */
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- DESKTOP VIEW (min-width: 768px) --- */
@media (min-width: 768px) {
    .menu-item-has-children {
        position: relative;
    }

    .menu-item-has-children > .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        visibility: hidden; /* Use visibility/opacity for transition */
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.2s ease-in-out;
        
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        border: 1px solid #e5e7eb;
        border-top: 3px solid #dc2626; /* Prothom Alo Red Border */
        padding: 0.5rem 0;
    }

    /* Invisible bridge to prevent mouse slipping */
    .menu-item-has-children > .sub-menu::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 10px;
        background: transparent;
    }

    /* Show on Hover/Focus */
    .menu-item-has-children:hover > .sub-menu,
    .menu-item-has-children:focus-within > .sub-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    /* Links styling */
    .sub-menu li a {
        display: block;
        padding: 0.75rem 1.25rem;
        border-bottom: 1px solid #f3f4f6;
        font-size: 0.95rem;
        color: #374151;
        font-weight: 500;
        white-space: nowrap;
    }
    .sub-menu li:last-child a { border-bottom: none; }
    
    .sub-menu li a:hover {
        background-color: #f9fafb;
        color: #dc2626;
        padding-left: 1.5rem; /* Slide effect */
        transition: padding 0.2s ease;
    }
}

/* --- MOBILE VIEW (max-width: 767px) --- */
@media (max-width: 767px) {
    .sub-menu {
        display: none; /* Hidden by default */
        position: static;
        box-shadow: none;
        border-left: 2px solid #e5e7eb;
        margin-left: 1rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        padding-left: 0.5rem;
    }

    /* Only show when JS adds 'open' class */
    .menu-item-has-children.open > .sub-menu {
        display: block;
        animation: slideDown 0.2s ease-out;
    }
    
    /* Rotate Arrow */
    .menu-item-has-children.open > a .dropdown-toggle i {
        transform: rotate(180deg);
        transition: transform 0.2s;
    }
    
    .sub-menu li a {
        padding: 0.5rem 0;
        font-size: 0.9rem;
        color: #4b5563;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}