/* Hero Section */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.main-news {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 500px;
}

.tabs-container {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    height: 500px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .main-news {
        height: 350px;
    }
    .tabs-container {
        height: auto;
        max-height: 500px;
    }
}

@media (max-width: 576px) {
    .main-news {
        height: 280px;
    }
    .news-overlay h2 {
        font-size: 20px;
    }
    .news-overlay p {
        display: none;
    }
}

.main-news img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 30px;
    color: var(--white);
}

.news-overlay h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

/* News Ticker */
.ticker-wrapper {
    background: #fff;
    border-bottom: 1px solid #eee;
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 30px;
    margin-top: 15px;
}

.ticker-title {
    background: var(--primary);
    color: #fff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    z-index: 2;
}

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

.ticker-content marquee {
    padding-top: 8px;
    font-size: 18px;
    font-weight: 600;
}

.ticker-content a {
    margin-right: 50px;
}

/* Sidebar Tabs */
.tabs-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 450px;
}

.tab-buttons {
    display: flex;
    background: #f1f1f1;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-family: var(--font-bn);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
}

.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* Custom Scrollbar */
.tab-content::-webkit-scrollbar {
    width: 6px;
}
.tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.tab-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.tab-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Section Header Premium */
/* Section Header Premium - Ultra High End */




.cat-title-badge::before, .section-title-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}



.more-link, .section-more-link {
    padding: 0 15px;
    height: 100%;
    font-size: 13px;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-left: 1px solid #eee;
}

.more-link i, .section-more-link i {
    font-size: 10px;
    margin-left: 8px;
    color: var(--primary);
}

.more-link:hover, .section-more-link:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.more-link:hover i, .section-more-link:hover i {
    transform: translateX(3px);
}

@media (max-width: 576px) {
    
}

/* News Layouts */
.featured-news-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.featured-news-main img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: 0.5s;
}

.featured-news-main:hover img {
    transform: none;
}

.featured-news-main h2 {
    font-size: 24px;
    margin-top: 15px;
    line-height: 1.4;
    color: #222;
    font-weight: 800;
}

@media (max-width: 768px) {
    .featured-news-main img {
        height: 250px;
    }
    .featured-news-main h2 {
        font-size: 20px;
    }
}

.news-list-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-list-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item img {
    width: 100px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
}

.news-list-item h4 {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    color: #333;
}

/* Map Sidebar Dropdowns */
.map-search-filters {
    background: #f8fafc;
    padding: 15px;
    border-radius: 0 0 10px 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border: 1px solid #e2e8f0;
    border-top: none;
}

.map-search-filters select {
    width: 100%;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-bn);
}

.btn-map-search {
    grid-column: span 1;
    background: #bd0202;
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.news-grid-medium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.news-card-medium img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

.news-card-medium h3 {
    font-size: 18px;
    margin-top: 12px;
    font-weight: 700;
}

.side-list {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.side-list h3 {
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    margin-bottom: 20px;
}

.side-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    position: relative;
}

.side-item:last-child { border: none; }

.side-item img {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.side-number {
    background: var(--primary);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: -5px;
    left: -5px;
    border: 2px solid #fff;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.side-item h4 {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #222;
}

.side-item h4:hover {
    color: var(--primary);
}

.side-item > div:last-child {
    flex: 1;
}

img {
    max-width: 100% !important;
    height: auto;
}

@media (max-width: 576px) {
    .news-list-item img {
        width: 100px;
        height: 70px;
    }
    .news-list-item h4 {
        font-size: 15px;
    }
}

/* Category Blocks */
.cat-block, .layout-triple-row, .sports-section, .layout-politics {
    margin-bottom: 60px !important;
    margin-top: 20px;
}

.cat-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.cat-title h2 {
    color: var(--primary);
    position: relative;
}

.cat-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary);
}

/* Category Page Hero Section */
.category-hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
    height: 460px; /* Slightly increased to fit content */
    min-height: 460px;
    max-height: 460px;
    overflow: hidden;
}

.cat-hero-main {
    height: 100%;
}

.cat-hero-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.news-card.big-hero, .news-card.side-hero {
    position: relative;
    height: 100%;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 10px;
}

.news-card.big-hero a, .news-card.side-hero a {
    display: block;
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden; /* Contain everything */
}

.news-card.big-hero img, .news-card.side-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    z-index: 1; /* Below overlay */
    transition: transform 0.5s;
}

.news-card:hover img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.95) 100%) !important;
    padding: 25px !important;
    color: #fff !important;
    z-index: 5 !important; /* Above image */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    min-height: 150px;
}

.side-hero .hero-overlay {
    padding: 15px !important;
}

.hero-overlay h3 {
    font-size: 24px !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0,0,0,1) !important;
    display: block !important;
    visibility: visible !important;
}

.side-hero .hero-overlay h3 {
    font-size: 18px !important;
}

.hero-overlay p {
    font-size: 14px !important;
    opacity: 1 !important;
    margin-bottom: 12px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    visibility: visible !important;
}

.cat-badge {
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    margin-bottom: 8px;
    display: inline-block;
}

.hero-overlay .meta {
    font-size: 12px;
    opacity: 0.8;
}

/* 4 Column News Grid */
.news-grid-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 40px !important; /* Large gap for clear separation */
    margin-bottom: 60px;
}

.news-grid-4 .news-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0; /* Subtle border for definition */
}

.news-grid-4 .news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.news-grid-4 .img-container {
    display: block;
    height: 110px !important; /* Tiny image height */
    overflow: hidden;
}

.news-grid-4 img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.news-grid-4 .news-card-content {
    padding: 10px !important; /* Minimal padding */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-grid-4 h3 {
    font-size: 14px !important; /* Smallest headline */
    line-height: 1.4;
    margin-bottom: 5px;
    font-weight: 600;
    flex: 1;
}

.cat-label {
    color: var(--primary);
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.card-meta {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

@media (max-width: 1200px) {
    .news-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .category-hero-section {
        grid-template-columns: 1fr;
        height: auto;
    }
    .cat-hero-main {
        height: 400px;
    }
    .cat-hero-side {
        height: auto;
        flex-direction: row;
    }
    .side-hero {
        height: 250px !important;
        flex: 1;
    }
    .news-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cat-hero-side {
        flex-direction: column;
    }
    .news-grid-4 {
        grid-template-columns: 1fr;
    }
    .hero-overlay h3 {
        font-size: 22px;
    }
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card-content {
    padding: 15px;
}

.news-card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Reporter Info */
.reporter-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--light-text);
}

.reporter-photo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
}

.news-single-title {
    font-size: 38px;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 800;
    color: #222;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-breadcrumb {
    margin-bottom: 15px;
    color: var(--light-text);
    font-size: 14px;
    margin-top: 50px;
    border-top: 5px solid #eee;
    padding-top: 30px;
}

.news-main-media {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
}

.article-meta {
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
}

.article-content {
    font-size: 19px;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: normal;
}

.article-content img {
    max-width: 100% !important;
    height: auto !important;
}

