
/* Premium Bangla Newspaper Styles */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #8B0000; /* Deep Maroon */
    --primary-dark: #660000;
    --secondary-color: #1a1a1a;
    --accent-color: #f8f9fa;
    --border-color: #e5e7eb;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --news-font: 'Noto Sans Bengali', 'Siyam Rupali', 'Hind Siliguri', sans-serif;
    --ui-font: 'Inter', 'Siyam Rupali', sans-serif;
}

/* Base Styles */
body {
    font-family: var(--news-font) !important;
    color: var(--text-main);
    background-color: #fff;
    line-height: 1.6;
}

/* Top Utility Bar */
.top-utility-bar {
    background-color: var(--accent-color);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    z-index: 200001;
    display: block !important;
}

.date-info {
    font-weight: 500;
    white-space: nowrap;
}

.newspaper-accent {
    color: var(--primary-color) !important;
    font-weight: 600;
}

#Clock-main, #Clock {
    font-family: var(--ui-font);
    font-weight: 600;
    color: var(--primary-color);
}

.utility-links a {
    margin-left: 20px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.utility-links a:hover {
    color: var(--primary-color);
}

/* Header */
header.non-sticky {
    z-index: 200000;
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.logo img {
    max-height: 80px;
}

/* Navigation Menu */
#top-nav {
    background-color: #fff;
    border-top: 2px solid var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav ul li a:hover {
    color: var(--primary-color);
    background-color: var(--accent-color);
    border-bottom-color: var(--primary-color);
}

/* Breaking News Ticker */
.breaking-news-ticker {
    background-color: var(--primary-color);
    color: white;
    padding: 0;
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--primary-dark);
    margin-bottom: 20px;
}

.ticker-wrapper {
    display: flex;
    width: 100%;
    align-items: center;
}

.ticker-label {
    background-color: var(--primary-dark);
    color: white;
    padding: 0 20px;
    font-weight: 700;
    height: 40px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 10px solid var(--primary-dark);
}

.ticker-content {
    flex: 1;
    overflow: hidden;
}

.ticker-content marquee {
    padding-top: 4px;
}

.ticker-content a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    margin: 0 15px;
}

/* Editorial Sections */
.premium-news-section {
    padding: 20px 0;
}

.common-border-box {
    background-color: #fff;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.common-border-box:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Section Titles */
.common-border-box .title, 
#video-gallery .title,
.premium-news-section h3,
.premium-news-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    font-family: var(--news-font);
}

.common-border-box .title::before,
#video-gallery .title::before,
.premium-news-section h3::before,
.premium-news-section h2::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Lead News Style */
.lead-news .title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 15px;
    color: var(--text-main);
}

.lead-news .summery {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.6;
}

/* News Cards */
.news-content-box .title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    margin: 10px 0;
}

.imgWrep {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

.imgWrep img {
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
    display: block;
}

.common-card-content:hover img, 
.flex-content:hover img {
    transform: scale(1.05);
}

/* Sidebar Styling */
.tab_bar_block_stories {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.tab_bar_block_stories li {
    flex: 1;
    text-align: center;
}

.tab_bar_block_stories li.active a {
    border-bottom: 3px solid var(--primary-color);
    color: var(--primary-color) !important;
}

.tab_bar_block_stories li a {
    display: block;
    padding: 10px;
    font-weight: 700;
    color: var(--text-muted) !important;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 4rem 0;
    margin-top: 40px;
}

footer h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .lead-news .title {
        font-size: 1.6rem;
    }
    
    .ticker-label {
        padding: 0 10px;
        font-size: 0.9rem;
    }
    
    .top-utility-bar {
        padding: 8px 0;
    }

    .top-utility-bar .top-utility-inner {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    
    .top-utility-bar .date-info {
        text-align: center !important;
        width: 100% !important;
        font-size: 0.85rem !important;
        white-space: normal !important;
        word-break: break-word !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .top-utility-bar #full-date-display {
        font-size: 13px !important;
        line-height: 1.4 !important;
        display: inline !important;
        margin-bottom: 0 !important;
        text-align: center;
    }

    .top-utility-bar .utility-links {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        padding: 4px 2px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .top-utility-bar .utility-links::-webkit-scrollbar {
        display: none;
    }

    .top-utility-bar .utility-links a {
        margin-left: 0 !important;
        margin-right: 8px !important;
        white-space: nowrap !important;
        font-size: 12px !important;
        padding: 4px 10px !important;
        background: #ffffff !important;
        border: 1px solid #dcdcdc !important;
        border-radius: 20px !important;
        color: #333 !important;
        display: inline-flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    }

    .top-utility-bar .utility-links a:hover {
        background: var(--primary-color) !important;
        color: #ffffff !important;
        border-color: var(--primary-color) !important;
    }

    .top-utility-bar .utility-links .dropdown {
        margin-left: 0 !important;
        flex-shrink: 0 !important;
    }

    .top-utility-bar .utility-links .dropdown #langDropdown {
        border-radius: 20px !important;
        padding: 4px 10px !important;
        font-size: 12px !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    }
    
    nav ul {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 5px;
    }
    
    nav ul li a {
        padding: 10px 15px;
        font-size: 1rem;
        white-space: nowrap;
    }
}
