/* style.css - PayraTV Pro-News Theme */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
    --primary-red: #dc2626;
    --dark-navy: #0f172a;
    --body-bg: #f4f6f9;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body.dark-mode {
    --body-bg: #0b0f19;
    --card-bg: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-red);
}

/* Header & Navigation (Pro-News Dark Style) */
.top-date-bar {
    background-color: #090d16;
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.main-header {
    background-color: var(--dark-navy);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.brand-logo {
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-logo .tv-badge {
    background: var(--primary-red);
    color: #fff;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 1.4rem;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: #f8fafc;
    font-weight: 500;
    padding: 20px 14px;
    display: block;
    font-size: 1.02rem;
}

.nav-menu > li > a:hover {
    color: #ff4d4d;
}

/* Dropdown Menu */
.nav-menu li ul.dropdown-sub {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    min-width: 200px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-top: 3px solid var(--primary-red);
    border-radius: 0 0 6px 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 999;
}

.nav-menu li:hover ul.dropdown-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu li ul.dropdown-sub li a {
    padding: 8px 18px;
    display: block;
    color: var(--text-main);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.nav-menu li ul.dropdown-sub li:last-child a {
    border-bottom: none;
}

.header-actions .action-btn {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.header-actions .action-btn:hover {
    background: var(--primary-red);
    color: #fff;
}

/* Breaking News Ticker (সর্বশেষ) */
.ticker-wrapper {
    background: var(--card-bg);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 16px 0;
    border: 1px solid var(--border-color);
}

.ticker-label {
    background: var(--primary-red);
    color: #fff;
    padding: 10px 20px;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-content {
    overflow: hidden;
    white-space: nowrap;
    flex-grow: 1;
    padding: 8px 0;
}

.ticker-track {
    display: inline-block;
    animation: tickerScroll 32s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 35px;
    font-weight: 500;
    font-size: 0.98rem;
}

.ticker-dot {
    width: 18px;
    height: 18px;
    background: var(--primary-red);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-right: 8px;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* News Cards & Grids */
.news-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: auto !important; /* 100% এর বদলে auto করা হলো যাতে নিচের সেকশনে ধাক্কা না দেয় */
    flex-grow: 1; /* পাশাপাশি বক্সগুলোকে সমান উচ্চতায় রাখবে কিন্তু ওভারল্যাপ করবে না */
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.img-zoom-wrap {
    overflow: hidden;
    position: relative;
    border-radius: 6px;
}

.img-zoom-wrap img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .img-zoom-wrap img {
    transform: scale(1.05);
}

.cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-red);
    color: #fff !important;
    padding: 3px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 2;
}

.lead-title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 12px 0 8px;
}

.sub-lead-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-info {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Latest / Popular Sidebar Tabs */
.sidebar-tabs-box {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.sidebar-nav .nav-link {
    width: 50%;
    text-align: center;
    font-weight: 700;
    padding: 12px;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-main);
    background: rgba(0,0,0,0.03);
    border-radius: 0;
}

.sidebar-nav .nav-link.active {
    background: var(--card-bg);
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.tab-news-list {
    max-height: 460px;
    overflow-y: auto;
    padding: 12px;
}

.tab-news-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.tab-news-item:last-child {
    border-bottom: none;
}

.tab-news-num {
    min-width: 28px;
    height: 28px;
    background: #f1f5f9;
    color: var(--primary-red);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    margin-top: 10px;    /* ওপরের বক্স থেকে দূরত্ব বজায় রাখবে */
    margin-bottom: 18px; /* নিচের বক্স থেকে দূরত্ব বজায় রাখবে */
    padding-bottom: 8px;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 90px;
    height: 3px;
    background: var(--primary-red);
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 22px;
    background: var(--primary-red);
    border-radius: 3px;
}

.small-horizontal-item {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.small-horizontal-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.small-horizontal-item img {
    width: 110px;
    height: 72px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

/* Video Section */
.video-section {
    background: #0f172a;
    color: #fff;
    padding: 40px 0;
    margin: 35px 0;
}

.video-section a {
    color: #f8fafc;
}

.video-section a:hover {
    color: #ff4d4d;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

/* Footer */
.main-footer {
    background: #090d16;
    color: #cbd5e1;
    padding: 50px 0 25px;
    border-top: 4px solid var(--primary-red);
}

.main-footer a {
    color: #cbd5e1;
}

.main-footer a:hover {
    color: var(--primary-red);
}

.social-links a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--primary-red);
    color: #fff;
    transform: translateY(-2px);
}