/* The News Express Style CSS */
:root {
    --primary-red: #d32f2f;
    --menu-orange: #ff4d00;
    --menu-blue: #094b98;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --text-dark: #333;
    --text-light: #fff;
}

body {
    background-color: var(--light-bg);
    font-family: 'Noto Serif Bengali', serif;
    color: var(--text-dark);
}

/* Header */
.navbar-brand {
    font-weight: 800;
    color: var(--primary-red) !important;
    font-size: 1.5rem;
}

.top-nav {
    background-color: #000;
    color: #fff;
    padding: 8px 0;
    font-size: 0.8rem;
    border-bottom: 2px solid var(--primary-red);
}

.top-nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .top-nav {
        padding: 5px 0;
        font-size: 0.75rem;
    }
    .top-nav a {
        margin-left: 8px;
        margin-right: 8px;
    }
}

.main-nav {
    background-color: var(--menu-orange);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 !important;
    min-height: 48px;
}

.home-btn {
    background-color: var(--menu-blue);
    color: #fff !important;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    text-decoration: none;
}

.search-container {
    background-color: var(--menu-blue);
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 100%;
}

.search-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.9rem;
    width: 0;
    transition: all 0.3s ease;
    opacity: 0;
}

.search-container:hover .search-input,
.search-input:focus {
    width: 150px;
    opacity: 1;
    margin-right: 10px;
    outline: none;
    background: rgba(255,255,255,0.2);
}

.search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-box-btn {
    background: transparent;
    color: #fff;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0;
}

.nav-link {
    color: #fff !important;
    font-weight: 600;
    text-transform: none;
    padding: 12px 10px !important;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255,255,255,0.1);
}

/* Hero Slider */
.hero-slider-container {
    background: #000;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide img {
    transition: transform 10s linear;
}

.hero-slide.active img {
    transform: scale(1.1);
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* News Cards */
.news-card {
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-card img {
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.news-card .card-body {
    padding: 15px;
}

.news-card .category-badge {
    background-color: var(--primary-red);
    color: #fff;
    padding: 3px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    position: absolute;
    top: 0;
    left: 0;
}

.news-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* Breaking News Ticker */
.breaking-news-container {
    background: #1a1a1a;
    display: flex;
    align-items: stretch;
    height: 45px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.breaking-news-label {
    background: var(--primary-red);
    color: #fff;
    font-weight: 800;
    padding: 0 25px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0.7; }
}

.ticker-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding-left: 20px;
    overflow: hidden;
    position: relative;
}

.ticker-label {
    color: var(--primary-red);
    font-weight: 700;
    margin-right: 15px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    background-color: #1a1a1a;
}

.marquee-container {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 100s linear infinite;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-block;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

@media (max-width: 768px) {
    .breaking-news-label {
        padding: 0 15px;
        font-size: 0.8rem;
    }
    .ticker-label {
        font-size: 0.8rem;
        margin-right: 10px;
    }
    .marquee-content {
        font-size: 0.85rem;
    }
}
/* Mobile Responsive Navigation */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #222 !important;
        padding: 1rem;
        margin-top: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .navbar-nav {
        text-align: left;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin: 0;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        padding: 12px 15px !important;
        font-size: 1.1rem !important;
        color: #fff !important;
        font-weight: 500;
        display: block;
    }
    
    .nav-link:hover {
        color: var(--menu-orange) !important;
        background: rgba(255,255,255,0.05) !important;
    }
    
    .close-mobile-menu {
        display: none !important;
    }
}

.close-mobile-menu {
    display: none;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 50px 0 20px;
    margin-top: 50px;
}

footer h5 {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 20px;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-red);
}
/* Notification Toast */
#news-notify-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: none;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.new-item-glow {
    animation: highlightFade 3s ease;
}

@keyframes highlightFade {
    0% { background-color: rgba(211, 47, 47, 0.2); }
    100% { background-color: transparent; }
}

/* Recent News Vertical Slider */
.recent-news-outer {
    height: 400px; /* Adjust height as needed */
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
}

.sliding-list {
    transition: transform 0.5s ease-in-out;
}

.list-group-item {
    transition: opacity 0.3s ease;
}

/* Pause on hover is handled via JS mouseenter/mouseleave */

