/* ==========================================
   GLOBAL & RESET STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-red: #CC0000;
    --brand-darkred: #990000;
    --brand-dark: #111827;
    --bg-gray: #f9fafb;
    --border-gray: #e5e7eb;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
}

body {
    font-family: 'Noto Sans Bengali', sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Common Card & Grid Styles */
.card {
    background-color: #ffffff;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--brand-red);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.section-title h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .dot {
    width: 12px;
    height: 12px;
    background-color: var(--brand-red);
    border-radius: 50%;
    display: inline-block;
}

.section-title a {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
}

.section-title a:hover {
    color: var(--brand-red);
}

/* ==========================================
   1. TOP HEADER SECTION
   ========================================== */
.top-header {
    background-color: #111827;
    color: #d1d5db;
    font-size: 0.85rem;
    border-bottom: 1px solid #1f2937;
}

.top-header-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    gap: 8px;
}

@media (min-width: 768px) {
    .top-header-content {
        flex-direction: row;
    }
}

.top-header .date-time {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-header .icon-red {
    color: var(--brand-red);
    margin-right: 4px;
}

.top-header .divider {
    color: #4b5563;
}

.top-header .right-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-header .social-links {
    display: flex;
    gap: 12px;
}

.top-header .social-links a {
    transition: color 0.2s;
}

.top-header .social-links a:hover {
    color: var(--brand-red);
}

.btn-epaper {
    background-color: var(--brand-red);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-epaper:hover {
    background-color: var(--brand-darkred);
}

/* ==========================================
   LOGO & BANNER AREA
   ========================================== */
.logo-banner-area {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-gray);
    padding: 16px 0;
}

.logo-banner-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

@media (min-width: 768px) {
    .logo-banner-container {
        flex-direction: row;
    }
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .brand-logo {
        align-items: flex-start;
    }
}

.brand-logo img {
    height: 60px;
    margin-bottom: 4px;
}

.brand-logo p {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.ad-banner-top {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background-color: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ==========================================
   2. MAIN NAVBAR
   ========================================== */
.main-nav {
    background-color: var(--brand-red);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    padding: 12px 0;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-toggle {
        display: none;
    }
}

.nav-links {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    font-weight: 600;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    padding: 12px 16px;
    transition: background-color 0.2s;
}

.nav-links a:hover {
    background-color: var(--brand-darkred);
}

.nav-links a.active {
    background-color: var(--brand-darkred);
    border-bottom: 2px solid #ffffff;
}

.search-box {
    position: relative;
    padding: 8px 0;
}

.search-inner {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 4px 12px;
    transition: all 0.2s;
}

.search-inner:focus-within {
    background-color: #ffffff;
    color: var(--text-dark);
}

.search-inner input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    width: 120px;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .search-inner input {
        width: 160px;
    }
}

.search-inner:focus-within input {
    color: var(--text-dark);
}

.search-inner input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-inner:focus-within input::placeholder {
    color: #9ca3af;
}

.mobile-menu {
    display: none;
    background-color: var(--brand-darkred);
    border-top: 1px solid #b91c1c;
    padding: 12px 16px;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 6px 0;
    color: white;
}

/* ==========================================
   3. BREAKING NEWS TICKER
   ========================================== */
.ticker-section {
    background-color: #f3f4f6;
    border-bottom: 1px solid var(--border-gray);
    padding: 8px 0;
}

.ticker-container {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-badge {
    background-color: var(--brand-red);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ticker-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-left: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

@keyframes ticker {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    margin-right: 32px;
}

.ticker-item i {
    font-size: 8px;
    color: var(--brand-red);
    margin-right: 8px;
}

/* ==========================================
   MAIN CONTENT LAYOUT
   ========================================== */
main.main-content {
    padding-top: 24px;
    padding-bottom: 24px;
}

.space-y-main > * + * {
    margin-top: 40px;
}

/* ==========================================
   4. HERO SECTION / LEAD NEWS
   ========================================== */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: repeat(12, 1fr);
    }
    .hero-left {
        grid-column: span 7;
    }
    .hero-right {
        grid-column: span 5;
    }
}

/* Lead News Left Card */
.lead-news-card {
    position: relative;
}

.lead-img-wrapper {
    position: relative;
    overflow: hidden;
}

.lead-img-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (min-width: 640px) { .lead-img-wrapper img { height: 320px; } }
@media (min-width: 768px) { .lead-img-wrapper img { height: 384px; } }

.lead-news-card:hover .lead-img-wrapper img {
    transform: scale(1.05);
}

.lead-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--brand-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
}

.lead-content {
    padding: 20px;
}

.lead-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 12px;
    display: block;
    transition: color 0.2s;
}

.lead-news-card:hover .lead-title {
    color: var(--brand-red);
}

.lead-excerpt {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.lead-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
}

.lead-meta i {
    color: var(--brand-red);
    margin-right: 4px;
}

/* Sub-lead Right Items */
.sub-lead-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) and (max-width: 1023px) {
    .sub-lead-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sub-lead-card {
    background-color: white;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border-gray);
    display: flex;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: border-color 0.2s;
}

.sub-lead-card:hover {
    border-color: var(--brand-red);
}

.sub-lead-card img {
    width: 112px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.sub-lead-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sub-lead-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sub-lead-card:hover .sub-lead-title {
    color: var(--brand-red);
}

.sub-lead-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ==========================================
   5. CATEGORY & SIDEBAR SECTION
   ========================================== */
.category-sidebar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 1024px) {
    .category-sidebar-grid {
        grid-template-columns: repeat(12, 1fr);
    }
    .cat-main-area {
        grid-column: span 8;
    }
    .sidebar-area {
        grid-column: span 4;
    }
}

.space-y-category > * + * {
    margin-top: 40px;
}

/* National Category Grid */
.cat-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .cat-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cat-card-lg img {
    width: 100%;
    height: 176px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cat-card-lg:hover img {
    transform: scale(1.05);
}

.cat-card-lg .card-body {
    padding: 16px;
}

.cat-card-lg .card-title {
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    display: block;
    transition: color 0.2s;
}

.cat-card-lg:hover .card-title {
    color: var(--brand-red);
}

.cat-card-lg p {
    font-size: 0.75rem;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-card-lg .card-time {
    font-size: 0.6875rem;
    color: #9ca3af;
    display: block;
    margin-top: 12px;
}

/* Sports Category Grid */
.cat-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .cat-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cat-card-sm img {
    width: 100%;
    height: 144px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cat-card-sm:hover img {
    transform: scale(1.05);
}

.cat-card-sm .card-body {
    padding: 12px;
}

.cat-card-sm .card-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.cat-card-sm:hover .card-title {
    color: var(--brand-red);
}

.cat-card-sm .card-time {
    font-size: 0.6875rem;
    color: #9ca3af;
    display: block;
    margin-top: 8px;
}

/* SIDEBAR WIDGETS */
.space-y-sidebar > * + * {
    margin-top: 24px;
}

.tab-widget {
    background-color: white;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--border-gray);
    margin-bottom: 16px;
}

.tab-btn {
    width: 50%;
    padding-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
}

.tab-btn.active {
    color: var(--brand-red);
    border-bottom: 2px solid var(--brand-red);
}

.tab-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tab-content.hidden {
    display: none;
}

.tab-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 8px;
}

.tab-item:last-child {
    border-bottom: none;
}

.tab-item .num {
    font-size: 1.25rem;
    font-weight: 700;
    color: #d1d5db;
    transition: color 0.2s;
}

.tab-item:hover .num {
    color: var(--brand-red);
}

.tab-item.popular .num {
    color: var(--brand-red);
}

.tab-item a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    transition: color 0.2s;
}

.tab-item:hover a {
    color: var(--brand-red);
}

.ad-banner-sidebar {
    width: 100%;
    height: 240px;
    background-color: #e5e7eb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    padding: 16px;
}

.ad-banner-sidebar i {
    font-size: 1.875rem;
    margin-bottom: 8px;
}

/* ==========================================
   6. VIDEO / GALLERY SECTION (DARK)
   ========================================== */
.video-section {
    background-color: #111827;
    color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.video-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-header a {
    font-size: 0.75rem;
    color: #9ca3af;
    transition: color 0.2s;
}

.video-header a:hover {
    color: white;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.video-card {
    cursor: pointer;
}

.video-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
}

.video-thumb img {
    width: 100%;
    height: 192px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.video-card:hover .video-overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

.play-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(204, 0, 0, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: transform 0.2s;
}

.video-card:hover .play-icon {
    transform: scale(1.1);
}

.video-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.video-card:hover h3 {
    color: var(--brand-red);
}

/* ==========================================
   7. FOOTER SECTION
   ========================================== */
.footer-section {
    background-color: #030712;
    color: #9ca3af;
    margin-top: 48px;
    border-top: 1px solid #1f2937;
    padding-top: 48px;
    padding-bottom: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #1f2937;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.footer-socials a:hover {
    background-color: var(--brand-red);
}

.footer-col h3 {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 8px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.75rem;
}

.footer-links a {
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-links i {
    color: var(--brand-red);
    margin-right: 4px;
}

.footer-info {
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-info i {
    color: var(--brand-red);
    margin-right: 8px;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 24px;
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
}