/*
Theme Name: Nirnay TV Theme
Theme URI: https://update.nirnaytv.com
Author: Antigravity
Description: Premium modern news portal theme for Nirnay TV.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: nirnaytv
*/

/* --- CSS Reset & Base Variables --- */
:root {
    /* Light Theme (default) */
    --bg-primary: #F8F9FA;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --border-color: #EEEEEE;
    --text-color-primary: #111111;
    --text-color-secondary: #444444;
    --text-color-muted: #666666;
    --hover-glow: rgba(213, 0, 0, 0.1);
    --category-hero-bg: #FFEAEA;
    --mark-bg: #FFE082;
    --mark-text: #000000;
    --card-bg: var(--bg-card);

    /* Base theme mappings */
    --primary: #D50000;
    --dark: #111111;
    --light: #FFFFFF;
    --gray-bg: var(--bg-primary);
    --gray-border: var(--border-color);
    --text-primary: var(--text-color-primary);
    --text-muted: var(--text-color-muted);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1340px;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-primary: #0B0F19;
    --bg-secondary: #121826;
    --bg-card: #1A2233;
    --border-color: #2A3446;
    --text-color-primary: #FFFFFF;
    --text-color-secondary: #B8C0D4;
    --text-color-muted: #8A94A8;
    --hover-glow: rgba(213, 0, 0, 0.25);
    --category-hero-bg: #1F151B;
    --mark-bg: #FFD54F;
    --mark-text: #000000;
    --card-bg: var(--bg-card);

    --gray-bg: var(--bg-primary);
    --gray-border: var(--border-color);
    --text-primary: var(--text-color-primary);
    --text-muted: var(--text-color-muted);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    background-color: var(--gray-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

li {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
}

/* --- Utility Classes --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col {
    flex: 1;
}

.text-center { text-align: center; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* Ad Zone Styling */
.ad-zone {
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-muted);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 15px auto;
    text-align: center;
}

.ad-header-banner {
    width: 728px;
    height: 90px;
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-header-banner a {
    display: block;
    width: 100%;
    height: 100%;
}

.ad-header-banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ad-sidebar-top, .ad-sidebar-middle, .ad-sidebar-bottom {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

.ad-in-article-banner {
    width: 100%;
    height: 90px;
    max-height: 90px;
}

/* --- Header Section --- */
.top-bar {
    background-color: var(--dark);
    color: var(--light);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #222;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.live-tv-btn {
    background-color: var(--primary);
    color: var(--light);
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.live-tv-btn::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--light);
    border-radius: 50%;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links {
    display: flex;
    gap: 12px;
    font-size: 14px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    opacity: 1;
    transform: scale(1.15);
}

.social-links svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Main Header */
.main-header {
    background-color: var(--bg-secondary);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.logo-main span {
    color: var(--text-color-primary);
}

.logo-main .tv-box {
    background-color: var(--primary);
    color: var(--light);
    padding: 0 8px;
    margin-left: 4px;
    border-radius: 3px;
}

.logo-sub {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: bold;
    margin-top: 3px;
    letter-spacing: 0.5px;
}

/* Navigation bar */
.nav-bar {
    background-color: var(--primary);
    color: var(--light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-bar-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Staging Category Scroll Menu Styles */
.nav-menu-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
    margin: 0 15px;
    height: 48px; /* Consistent height for the nav bar elements */
}

.nav-menu-scroll-inner {
    overflow-x: auto;
    scroll-behavior: smooth;
    display: flex;
    align-items: center;
    flex-grow: 1;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    width: 100%;
}

.nav-menu-scroll-inner::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.nav-menu-toggle {
    background: none;
    border: none;
    color: var(--light);
    font-size: 20px;
    cursor: pointer;
    padding: 12px;
    display: none;
    flex-shrink: 0;
}

.nav-menu-list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* STRICTLY ONE LINE */
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-list li {
    flex-shrink: 0; /* Prevent list items from shrinking */
    white-space: nowrap; /* Prevent category names from wrapping */
}

.nav-menu-list li a {
    display: block;
    padding: 14px 16px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--light);
    letter-spacing: 0.2px;
    transition: background-color 0.2s ease;
}

.nav-menu-list li a:hover, .nav-menu-list li.current-menu-item a {
    background-color: rgba(0, 0, 0, 0.15);
}

.nav-scroll-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45px;
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, color 0.2s ease;
}

.nav-scroll-btn.left-btn {
    left: 0;
    background: linear-gradient(to right, #D50000 65%, rgba(213, 0, 0, 0));
}

.nav-scroll-btn.right-btn {
    right: 0;
    background: linear-gradient(to left, #D50000 65%, rgba(213, 0, 0, 0));
}

.nav-scroll-btn.visible {
    opacity: 1;
    visibility: visible;
}

.nav-scroll-btn:hover {
    color: #ffd700;
}

.scroll-arrow-icon {
    display: block;
    pointer-events: none;
}

.nav-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle, .dark-mode-toggle {
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.search-toggle:hover, .dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.search-toggle svg,
.dark-mode-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
    transition: transform 0.2s ease;
}

/* Tablet Sizing (Max-width 1024px) */
@media (max-width: 1024px) {
    .search-toggle svg,
    .dark-mode-toggle svg {
        width: 18px;
        height: 18px;
    }
}

/* Mobile Sizing (Max-width 768px) */
@media (max-width: 768px) {
    .search-toggle, .dark-mode-toggle {
        padding: 12px;
    }
    .search-toggle svg,
    .dark-mode-toggle svg {
        width: 22px;
        height: 22px;
    }
}

/* Breaking News Ticker */
.breaking-bar {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: stretch;
    height: 44px;
}

.breaking-title {
    background-color: var(--primary);
    color: var(--light);
    font-weight: 900;
    font-size: 13px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.breaking-ticker {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.ticker-wrap {
    display: flex;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
}

.ticker-wrap:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.ticker-item::after {
    content: "•";
    color: var(--primary);
    margin-left: 40px;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* --- Hero Grid Section --- */
.hero-section {
    padding: 25px 0;
    background-color: var(--bg-secondary);
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 480px;
}

.hero-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--dark);
}

.hero-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-item:hover img {
    transform: scale(1.05);
}

.hero-item::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    color: var(--light);
}

.category-tag {
    background-color: var(--primary);
    color: var(--light);
    font-size: 11px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.hero-item.large {
    grid-row: span 2;
}

.hero-item.large .hero-title {
    font-size: 24px;
    font-weight: 900;
}

.post-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    display: flex;
    gap: 12px;
    align-items: center;
}

/* --- Main Content Layout --- */
.main-layout {
    padding: 30px 0;
}

.main-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Category Blocks */
.category-block {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--gray-border);
    margin-bottom: 20px;
    padding-bottom: 8px;
}

.block-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-color-primary);
    text-transform: uppercase;
    position: relative;
}

.block-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary);
}

.block-viewmore {
    font-size: 12px;
    font-weight: bold;
    color: var(--primary);
}

/* Two Column Categories Grid */
.categories-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.category-items-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Horizontal News Card */
.news-card-horizontal {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.news-card-horizontal .thumb {
    width: 110px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    background-color: var(--border-color);
}

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

.news-card-horizontal .details {
    flex-grow: 1;
}

.news-card-horizontal .title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.news-card-horizontal .meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 16px;
    font-weight: 900;
    border-bottom: 2px solid var(--gray-border);
    padding-bottom: 8px;
    margin-bottom: 15px;
    text-transform: uppercase;
    position: relative;
}

.widget-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

/* Trending Now List */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.trending-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--light);
    font-weight: 900;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trending-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

/* --- Video Section --- */
.video-section {
    background-color: var(--dark);
    color: var(--light);
    padding: 40px 0;
    margin-top: 30px;
}

.video-section .block-title {
    color: var(--light);
}

.video-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.video-featured {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    background-color: #000;
    aspect-ratio: 16/9;
}

.video-featured iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    max-height: 450px;
    padding-right: 5px;
}

.video-card-side {
    display: flex;
    gap: 12px;
    cursor: pointer;
}

.video-card-side .thumb {
    width: 120px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    background-color: #222;
}

.video-card-side .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-side .thumb::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-color: rgba(213,0,0,0.9);
    border-radius: 50%;
    z-index: 1;
}

.video-card-side .thumb::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-30%, -50%);
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 7px solid var(--light);
    z-index: 2;
}

.video-card-side .title {
    font-size: 13px;
    font-weight: bold;
    line-height: 1.3;
}

/* --- Footer Section --- */
.main-footer {
    background-color: var(--dark);
    color: #CCCCCC;
    padding: 60px 0 20px 0;
    border-top: 4px solid var(--primary);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--light);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a:hover {
    color: var(--light);
    padding-left: 5px;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-social-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    transition: var(--transition);
}

.footer-social-icons a svg {
    width: 16px;
    height: 16px;
    display: block;
}

.footer-social-icons a:hover {
    background-color: var(--primary);
}

.copyright-bar {
    border-top: 1px solid #222;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #888888;
}

/* --- Mobile Bottom Navigation --- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--dark);
    border-top: 2px solid var(--primary);
    height: 56px;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.mobile-bottom-menu {
    display: flex;
    height: 100%;
    align-items: center;
}

.mobile-bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 10px;
    font-weight: bold;
    gap: 4px;
}

.mobile-bottom-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.mobile-bottom-item.active {
    color: var(--primary);
}

.mobile-live-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -18px;
    box-shadow: 0 4px 10px rgba(213,0,0,0.4);
    border: 3px solid var(--dark);
}

.mobile-live-btn svg {
    width: 20px;
    height: 20px;
}

/* --- Responsive Media Queries --- */

/* Desktop Resolutions (1920px, 1440px, 1366px) */
@media (min-width: 1200px) {
    .container {
        max-width: var(--max-width);
    }
}

/* Desktop Medium / Laptop (1024px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    .hero-grid {
        height: 400px;
    }
    .main-header .container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .ad-header-banner {
        display: flex;
        width: 100%;
        max-width: 728px;
        height: auto;
        aspect-ratio: 728/90;
        margin: 10px auto 0 auto;
    }
}

/* Tablet Resolutions (768px to 1023px) */
@media (max-width: 1023px) {
    .container {
        max-width: 720px;
    }
    .nav-bar .container {
        padding: 0;
    }
    .nav-menu-toggle {
        display: block;
    }
    .nav-menu-scroll-container {
        display: none !important; /* Hide scroll container on mobile */
    }
    .nav-menu-list {
        display: none; /* Use mobile drawer list instead */
    }
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    .hero-item.large {
        grid-column: span 2;
        aspect-ratio: 16/9;
    }
    .hero-item {
        aspect-ratio: 4/3;
    }
    .main-layout-grid {
        grid-template-columns: 1fr;
    }
    .categories-two-col {
        grid-template-columns: 1fr;
    }
    .video-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Mobile Devices (max-width: 767px) - covers 430px, 390px, 375px, 360px */
@media (max-width: 767px) {
    body {
        padding-bottom: 56px; /* Space for fixed bottom navigation bar */
    }
    .container {
        padding: 0 15px;
    }
    .top-bar {
        display: none; /* Hide top bar on mobile */
    }
    .main-header {
        padding: 10px 0;
    }
    .main-header .container {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .logo-main {
        font-size: 24px;
    }
    .logo-sub {
        display: none; /* Hide tagline under logo on mobile */
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .hero-item.large {
        grid-column: span 1;
    }
    .hero-item {
        aspect-ratio: 16/10;
    }
    .hero-item:not(.large) {
        display: none; /* Hide secondary hero items on mobile, making it a single hero slider */
    }
    .hero-slider-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 10px;
    }
    .hero-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #CCC;
    }
    .hero-dot.active {
        background-color: var(--primary);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .mobile-bottom-nav {
        display: block;
    }
}

/* Phase 5 - Category Page Layout Responsiveness */
@media (max-width: 1023px) {
    .cat-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .top-stories-layout-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .more-stories-layout-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .featured-story-block {
        grid-template-columns: 1fr !important;
    }
    .featured-img-box {
        min-height: 200px !important;
    }
    .top-stories-layout-grid {
        grid-template-columns: 1fr !important;
    }
    .more-stories-layout-grid {
        grid-template-columns: 1fr !important;
    }
    .feed-item-card {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .feed-item-card div:first-child {
        width: 100% !important;
        height: 150px !important;
    }
}

/* --- Live Search Overlay --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95); /* Dark slate transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000; /* Must be on top of everything */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 20px 40px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Close Button */
.search-overlay-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
}

.search-overlay-close:hover {
    background-color: var(--primary); /* Nirnay red */
    transform: rotate(90deg);
}

.search-overlay-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Search Box Container */
.search-box-container {
    width: 100%;
    max-width: 800px;
    margin-bottom: 40px;
    transform: translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active .search-box-container {
    transform: translateY(0);
}

/* Search Input Wrapper */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0 25px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(177, 2, 2, 0.25);
    background: rgba(255, 255, 255, 0.1);
}

/* Inner Search Icon */
.search-input-wrapper .search-icon {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 15px;
    flex-shrink: 0;
}

/* Input Field */
.search-overlay-input {
    width: 100%;
    height: 60px;
    background: none;
    border: none;
    color: var(--light);
    font-size: 20px;
    font-weight: 500;
    outline: none;
}

.search-overlay-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Search Results Area */
.search-results-wrapper {
    width: 100%;
    max-width: 800px;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s 0.1s, transform 0.3s 0.1s;
}

.search-overlay.active .search-results-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar styling */
.search-results-wrapper::-webkit-scrollbar {
    width: 6px;
}
.search-results-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
.search-results-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
.search-results-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Results grid / list */
.search-results-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Suggestions & Info */
.search-meta-info {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Category Suggestions List */
.search-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.search-category-pill {
    background: rgba(255, 255, 255, 0.07);
    color: var(--light);
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s, color 0.2s, transform 0.1s;
}

.search-category-pill:hover,
.search-category-pill:focus {
    background: var(--primary);
    color: var(--light);
    transform: scale(1.05);
    outline: none;
}

/* Result Card */
.search-result-card {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    text-decoration: none;
    color: var(--light);
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.search-result-card:hover,
.search-result-card:focus,
.search-result-card.selected {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    outline: none;
}

/* Thumbnail */
.search-result-thumb-wrapper {
    position: relative;
    width: 140px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: #1e293b;
    flex-shrink: 0;
}

.search-result-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Category Badge on Thumbnail */
.search-result-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: var(--light);
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 3px 6px;
    border-radius: 3px;
    pointer-events: none;
}

/* Content Details */
.search-result-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.search-result-title {
    font-size: 17px;
    font-weight: bold;
    margin: 0 0 6px 0;
    line-height: 1.35;
    color: var(--light);
    transition: color 0.2s;
}

.search-result-card:hover .search-result-title,
.search-result-card:focus .search-result-title {
    color: #FFEB3B; /* Yellow highlight on hover */
}

.search-result-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-result-excerpt {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.45;
    margin: 0;
}

/* Loading & No Results */
.search-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--light);
    font-weight: bold;
    gap: 10px;
}

.search-loader-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: search-spin 0.8s linear infinite;
}

@keyframes search-spin {
    to { transform: rotate(360deg); }
}

.search-no-results {
    padding: 60px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

/* Mobile Responsiveness for Search Overlay */
@media (max-width: 768px) {
    .search-overlay {
        padding: 60px 15px 20px 15px;
    }
    .search-overlay-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }
    .search-overlay-input {
        font-size: 16px;
        height: 50px;
    }
    .search-input-wrapper {
        padding: 0 15px;
    }
    .search-result-card {
        flex-direction: column;
        gap: 12px;
    }
    .search-result-thumb-wrapper {
        width: 100%;
        height: 160px;
    }
}

/* Video Play Overlay Button */
.search-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: rgba(213, 0, 0, 0.9);
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
    pointer-events: none;
    z-index: 2;
}

.search-result-card:hover .search-video-play-btn,
.search-result-card:focus .search-video-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background: #ff0000;
}

.search-video-play-btn svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
    margin-left: 2px;
}

/* --- Global Theme & Dark Mode Enhancements --- */

/* 1. Redesigned Toggle Button */
.dark-mode-toggle, .search-toggle {
    min-width: 40px;
    min-height: 40px;
    padding: 10px;
    position: relative;
    outline: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-mode-toggle:hover, .search-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.dark-mode-toggle:hover svg {
    transform: scale(1.15) rotate(20deg);
    color: #FFEB3B !important;
}

/* Active State indicator for Dark Mode Toggle */
[data-theme="dark"] .dark-mode-toggle svg {
    color: #FFEB3B !important;
}

/* Touch targets on mobile / tablet */
@media (max-width: 1023px) {
    .dark-mode-toggle, .search-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 11px;
    }
}

/* 2. Premium Card Elevations and Red Border Glows */
.news-card-horizontal, .video-card-side, .top-story-card, .more-story-card, .search-result-card, .sidebar-widget, .category-block, .single-post-card, .comment-body {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-card-horizontal:hover, .video-card-side:hover, .top-story-card:hover, .more-story-card:hover, .search-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 12px var(--hover-glow);
    border-color: rgba(213, 0, 0, 0.4) !important;
}

/* 3. Mobile Navigation Drawer Overrides */
.mobile-drawer-content {
    background-color: var(--bg-secondary) !important;
    color: var(--text-color-primary) !important;
}

.mobile-drawer-header {
    border-bottom: 1px solid var(--border-color) !important;
}

.close-drawer {
    color: var(--text-color-primary) !important;
}

.drawer-menu-list li {
    border-bottom: 1px solid var(--border-color) !important;
}

.drawer-menu-list li a {
    color: var(--text-color-primary) !important;
    transition: color 0.2s ease;
}

.drawer-menu-list li a:hover {
    color: var(--primary) !important;
}

/* 4. Single Post Typography & Comfortable Reading Layout */
.single-post-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.single-post-title {
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-color-primary);
    margin-bottom: 15px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-color-muted);
}

.single-post-author {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-color-muted);
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.single-post-featured-image {
    margin-bottom: 30px;
    border-radius: 6px;
    overflow: hidden;
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Optimizing Reading Layout inside article content */
.single-post-content {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color-secondary);
    max-width: 800px; /* Optimized reading width */
    margin: 0 auto;
}

.single-post-content p {
    margin-bottom: 24px;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    font-family: 'Manrope', sans-serif;
    color: var(--text-color-primary);
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 800;
}

.single-post-content h2 { font-size: 24px; }
.single-post-content h3 { font-size: 20px; }
.single-post-content h4 { font-size: 18px; }

/* Quote block styling */
.single-post-content blockquote {
    border-left: 4px solid var(--primary);
    background-color: var(--bg-primary);
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    font-size: 18px;
    color: var(--text-color-primary);
    border-radius: 0 8px 8px 0;
}

/* Lists styling */
.single-post-content ul,
.single-post-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.single-post-content li {
    list-style: initial;
    margin-bottom: 8px;
}

.single-post-content ol li {
    list-style: decimal;
}

/* Tables styling */
.single-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 15px;
}

.single-post-content th,
.single-post-content td {
    padding: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
    color: var(--text-color-secondary);
}

.single-post-content th {
    background-color: var(--bg-primary);
    font-weight: bold;
    color: var(--text-color-primary);
}

.single-post-content tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Post Navigation styling */
.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 40px 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.post-navigation a {
    color: var(--primary);
}

.post-navigation a:hover {
    color: var(--text-color-primary);
}

/* 5. Comments Area Styling */
.comments-area {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
    margin-top: 35px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.comments-title {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-color-primary);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.comment-list {
    margin-bottom: 30px;
    padding: 0;
}

.comment-body {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-primary);
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'Inter', sans-serif;
}

.comment-meta {
    font-size: 12px;
    color: var(--text-color-muted);
}

.comment-author cite {
    font-style: normal;
    font-weight: bold;
    color: var(--text-color-primary);
}

.comment-content {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-color-secondary);
}

.comment-reply-title {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-color-primary);
    margin-top: 30px;
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color-secondary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-primary);
    color: var(--text-color-primary);
    outline: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    border-color: var(--primary);
}

.comment-form textarea {
    resize: vertical;
}

.comment-form .submit-btn {
    align-self: flex-start;
    background-color: var(--primary);
    color: #FFFFFF;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.comment-form .submit-btn:hover {
    background-color: #b30000;
}

/* 6. Search Query Match Highlight style */
mark.search-highlight {
    background-color: var(--mark-bg);
    color: var(--mark-text);
    padding: 0 2px;
    border-radius: 2px;
    font-weight: bold;
}

/* ==========================================================================
   Phase 14: Premium Single Article Redesign (Argus-Inspired)
   ========================================================================== */

/* Theme mode variable fallbacks just in case */
:root {
    --primary: #D50000;
    --primary-hover: #b30000;
}

/* 1. Layout & Widths */
.single-article-wrapper {
    background-color: var(--body-bg, #f7fafc);
    color: var(--text-color, #2d3748);
    padding: 40px 0 60px 0;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.breadcrumb-nav {
    font-size: 13px;
    color: var(--text-muted, #718096);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--text-muted, #718096);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

.breadcrumb-nav .sep {
    color: var(--border-color, #e2e8f0);
    margin: 0 8px;
}

.breadcrumb-nav .current-item {
    color: var(--text-color, #2d3748);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.main-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
}

@media (min-width: 1024px) {
    .main-layout-grid {
        flex-direction: row;
        align-items: flex-start;
    }
    .main-content-area {
        width: 70%;
        min-width: 0;
        position: relative;
    }
    .sidebar-area {
        width: 30%;
        position: sticky;
        top: 100px;
        align-self: start;
    }
}

/* 2. Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--primary);
    width: 0%;
    z-index: 99999;
    transition: width 0.1s ease-out;
}

/* 3. Headline & Category Badge */
.article-category-badge {
    margin-bottom: 16px;
}

.category-badge-pill {
    display: inline-block;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.category-badge-pill:hover {
    background-color: var(--primary-hover);
}

.article-headline {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-color, #1a202c);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    font-size: 30px; /* Mobile first */
}

@media (min-width: 768px) {
    .article-headline {
        font-size: 48px;
    }
}

/* 4. Meta Row */
.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted, #718096);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    margin-bottom: 20px;
}

.article-meta-row a {
    color: var(--text-color, #2d3748);
    font-weight: 600;
    text-decoration: none;
}

.article-meta-row a:hover {
    color: var(--primary);
}

.meta-dates, .meta-reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 5. Sharing Row & Floating Bar */
.article-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.share-btn, .floating-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color, #e2e8f0);
    background-color: var(--card-bg, #ffffff);
    color: var(--text-muted, #718096);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.share-btn:hover, .floating-share-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.share-btn.facebook:hover, .floating-share-btn.facebook:hover { background-color: #1877F2; border-color: #1877F2; }
.share-btn.twitter-x:hover, .floating-share-btn.twitter-x:hover { background-color: #000000; border-color: #000000; }
.share-btn.whatsapp:hover, .floating-share-btn.whatsapp:hover { background-color: #25D366; border-color: #25D366; }
.share-btn.telegram:hover, .floating-share-btn.telegram:hover { background-color: #0088cc; border-color: #0088cc; }
.share-btn.linkedin:hover, .floating-share-btn.linkedin:hover { background-color: #0A66C2; border-color: #0A66C2; }
.share-btn.copy-link:hover, .floating-share-btn.copy-link:hover { background-color: var(--primary); border-color: var(--primary); }

.floating-share-bar {
    display: none; /* Hidden on mobile */
}

@media (min-width: 1280px) {
    .main-content-area {
        position: relative;
    }
    .floating-share-bar {
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: absolute;
        top: 250px;
        left: -65px;
        z-index: 100;
    }
}

/* Toast Notification for Clipboard Copy */
#copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #1a202c;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

#copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 6. Featured Image */
.single-post-featured-image {
    width: 100%;
    margin-bottom: 28px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.featured-img-native {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 7. Table of Contents (TOC) */
.article-toc {
    background-color: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.toc-title {
    font-weight: 700;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    color: var(--text-color, #1a202c);
}

.toc-toggle {
    background: none;
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #718096);
    cursor: pointer;
    transition: all 0.2s ease;
}

.toc-toggle:hover {
    background-color: var(--gray-bg, #f7fafc);
    color: var(--text-color, #1a202c);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.article-toc.collapsed .toc-list {
    display: none;
}

.toc-item {
    margin-bottom: 8px;
    line-height: 1.4;
}

.toc-item a {
    color: var(--text-color-secondary, #4a5568);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease;
}

.toc-item a:hover {
    color: var(--primary);
}

.toc-level-3 {
    padding-left: 20px;
}

/* 8. Article Content Body */
.single-post-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color, #2d3748);
    margin-bottom: 40px;
}

.single-post-content p {
    margin-bottom: 24px;
}

.single-post-content h2, .single-post-content h3 {
    font-family: 'Manrope', sans-serif;
    color: var(--text-color, #1a202c);
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.single-post-content h2 { font-size: 26px; }
.single-post-content h3 { font-size: 20px; }

/* Related Topics */
.related-topics {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.topics-title, .related-title, .continue-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-color, #1a202c);
    margin-bottom: 16px;
}

.topics-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-pill {
    font-size: 13px;
    background-color: var(--gray-bg, #f7fafc);
    color: var(--text-color-secondary, #4a5568);
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--border-color, #e2e8f0);
    transition: all 0.2s ease;
}

.topic-pill:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* 9. Author Profile Card */
.author-profile-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    background-color: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    margin-top: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.01);
}

@media (min-width: 640px) {
    .author-profile-card {
        flex-direction: row;
        align-items: center;
    }
}

.author-card-avatar {
    border-radius: 50%;
    border: 3px solid var(--border-color, #e2e8f0);
    object-fit: cover;
}

.author-card-info {
    flex: 1;
}

.author-card-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.author-card-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    font-family: 'Manrope', sans-serif;
}

.author-card-name a {
    color: var(--text-color, #1a202c);
    text-decoration: none;
}

.author-card-name a:hover {
    color: var(--primary);
}

.author-card-bio {
    font-size: 14px;
    color: var(--text-muted, #718096);
    margin: 0;
    line-height: 1.5;
}

/* 10. Continue Reading Strip */
.continue-reading-strip {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.continue-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .continue-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .continue-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.continue-card {
    background-color: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.continue-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

.continue-card-thumb {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--gray-bg, #f7fafc);
}

.continue-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.continue-card-badge {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.continue-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color, #1a202c);
    margin: 0 0 12px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.continue-card-date {
    font-size: 11px;
    color: var(--text-muted, #718096);
}

/* 11. Related Articles */
.related-articles-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-card {
    background-color: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.06);
}

.related-card-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: var(--gray-bg, #f7fafc);
}

.related-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.related-card-content {
    padding: 20px;
}

.related-card-badge {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.5px;
}

.related-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-title a {
    color: var(--text-color, #1a202c);
    text-decoration: none;
}

.related-card-title a:hover {
    color: var(--primary);
}

.related-card-date {
    font-size: 12px;
    color: var(--text-muted, #718096);
}

/* 12. Previous/Next Navigation Cards */
.post-navigation-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
    margin-bottom: 40px;
}

@media (min-width: 640px) {
    .post-navigation-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nav-card {
    display: flex;
    align-items: center;
    background-color: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
    transition: all 0.2s ease;
}

.nav-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.nav-card-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background-color: var(--gray-bg, #f7fafc);
}

.nav-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-card-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-card-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.nav-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color, #2d3748);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.nav-card.nav-empty {
    border: none;
    background: transparent;
    box-shadow: none;
}

/* 13. Image Lightbox */
.image-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 1000000;
    user-select: none;
}

.lightbox-close:hover {
    color: var(--primary);
}

.lightbox-content-wrapper {
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.25s ease-out;
    cursor: zoom-in;
    user-select: none;
}

.lightbox-image.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.lightbox-caption {
    margin-top: 16px;
    color: #cccccc;
    font-size: 14px;
    text-align: center;
    max-width: 600px;
    line-height: 1.5;
}

/* 14. Sidebar Redesign (Modernized Widgets) */
.sidebar-widgets-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sidebar-widget {
    background-color: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(213, 0, 0, 0.15);
}

.sidebar-widget .widget-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--text-color-primary, #111111);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color, #e2e8f0);
    position: relative;
    text-transform: none;
}

.sidebar-widget .widget-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary, #D50000);
}

/* Search widget special styling — Premium Red & White Theme */
.sidebar-widget.widget-search {
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color, #e2e8f0);
    border-top: 3px solid var(--primary, #D50000);
}

.sidebar-widget.widget-search .widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary, #D50000);
    border-bottom: none;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.sidebar-widget.widget-search .widget-title::after {
    display: none;
}

.search-widget-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary, #f8f9fa) 0%, var(--bg-card, #ffffff) 100%);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 54px;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-widget.widget-search:hover .search-widget-input-wrapper {
    border-color: var(--primary, #D50000);
    box-shadow: 0 4px 16px rgba(213, 0, 0, 0.12), 0 0 0 4px rgba(213, 0, 0, 0.06);
    transform: scale(1.01);
}

.sidebar-widget.widget-search:focus-visible .search-widget-input-wrapper {
    border-color: var(--primary, #D50000);
    box-shadow: 0 4px 16px rgba(213, 0, 0, 0.15), 0 0 0 4px rgba(213, 0, 0, 0.1);
}

.search-widget-icon-inside {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    background-color: var(--primary, #D50000);
    color: #ffffff;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(213, 0, 0, 0.25);
}

.sidebar-widget.widget-search:hover .search-widget-icon-inside {
    background-color: #b71c1c;
    box-shadow: 0 4px 12px rgba(213, 0, 0, 0.4);
    transform: scale(1.05);
}

.search-widget-input {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    font-size: 14px !important;
    color: var(--text-color-muted, #718096) !important;
    cursor: pointer !important;
    font-family: 'Inter', sans-serif !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 500 !important;
    letter-spacing: 0.2px !important;
}

.search-widget-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-color-muted, #a0aec0);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.search-widget-hint kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    background: var(--bg-primary, #f1f5f9);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 4px;
    font-size: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-color-muted, #94a3b8);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Trending widget special styling */
.trending-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    line-height: 1.4;
    align-items: flex-start;
}

.trending-item:last-child {
    margin-bottom: 0;
}

.trending-num {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--border-color, #cbd5e0);
    line-height: 1;
    width: 28px;
    text-align: center;
    transition: color 0.2s ease;
}

.trending-item:hover .trending-num {
    color: var(--primary);
}

.trending-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color-primary, #111111);
    text-decoration: none;
    transition: color 0.15s ease;
    padding-top: 2px;
}

.trending-text:hover {
    color: var(--primary);
}

/* Latest Stories widget special styling */
.latest-stories-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.latest-story-card {
    display: flex;
    gap: 16px;
    align-items: center;
    transition: transform 0.25s ease;
    text-decoration: none;
}

.latest-story-card:hover {
    transform: translateX(4px);
}

.latest-story-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--bg-primary, #f7fafc);
}

.latest-story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.latest-story-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-primary), var(--border-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-muted, #718096);
}

.latest-story-content {
    flex: 1;
}

.latest-story-title {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-story-title a {
    color: var(--text-color-primary, #111111);
    text-decoration: none;
    transition: color 0.15s ease;
}

.latest-story-title a:hover {
    color: var(--primary, #D50000);
}

.latest-story-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-color-muted, #718096);
}

/* Mobile Sidebar Specific Layout Ordering */
@media (max-width: 768px) {
    .sidebar-widgets-wrapper {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    .sidebar-widget.widget-search {
        order: 1;
    }
    
    .sidebar-widget.widget-trending {
        order: 2;
    }
    
    .sidebar-widget.widget-latest-stories {
        order: 3;
    }
    
    .sidebar-ad-wrapper.ad-top {
        order: 4;
    }
    
    .sidebar-ad-wrapper.ad-middle {
        order: 5;
    }
    
    .sidebar-widget {
        width: 100% !important;
        box-sizing: border-box;
        border-radius: 12px;
        padding: 20px;
    }
}

/* 15. Dark Mode Compatibility */
[data-theme="dark"] .single-article-wrapper {
    background-color: var(--body-bg, #0b0f19);
    color: var(--text-color, #e2e8f0);
}

[data-theme="dark"] .breadcrumb-nav {
    color: var(--text-muted, #a0aec0);
}

[data-theme="dark"] .breadcrumb-nav a {
    color: var(--text-muted, #a0aec0);
}

[data-theme="dark"] .breadcrumb-nav .current-item {
    color: var(--text-color, #f7fafc);
}

[data-theme="dark"] .article-headline {
    color: var(--text-color, #f7fafc);
}

[data-theme="dark"] .article-meta-row {
    border-color: var(--border-color, #1e293b);
    color: var(--text-muted, #a0aec0);
}

[data-theme="dark"] .article-meta-row a {
    color: var(--text-color, #f7fafc);
}

[data-theme="dark"] .share-btn, [data-theme="dark"] .floating-share-btn {
    border-color: var(--border-color, #1e293b);
    background-color: var(--card-bg, #111827);
    color: var(--text-muted, #a0aec0);
}

[data-theme="dark"] .article-toc {
    background-color: var(--card-bg, #111827);
    border-color: var(--border-color, #1e293b);
}

[data-theme="dark"] .toc-header {
    border-color: var(--border-color, #1e293b);
}

[data-theme="dark"] .toc-title {
    color: var(--text-color, #f7fafc);
}

[data-theme="dark"] .toc-toggle {
    border-color: var(--border-color, #1e293b);
    color: var(--text-muted, #a0aec0);
}

[data-theme="dark"] .toc-toggle:hover {
    background-color: var(--gray-bg, #1f2937);
    color: var(--text-color, #f7fafc);
}

[data-theme="dark"] .toc-item a {
    color: var(--text-color-secondary, #cbd5e0);
}

[data-theme="dark"] .single-post-content {
    color: var(--text-color, #cbd5e0);
}

[data-theme="dark"] .single-post-content h2, [data-theme="dark"] .single-post-content h3 {
    color: var(--text-color, #f7fafc);
}

[data-theme="dark"] .related-topics {
    border-color: var(--border-color, #1e293b);
}

[data-theme="dark"] .topics-title, [data-theme="dark"] .related-title, [data-theme="dark"] .continue-title {
    color: var(--text-color, #f7fafc);
}

[data-theme="dark"] .topic-pill {
    background-color: var(--gray-bg, #1e293b);
    color: var(--text-color-secondary, #cbd5e0);
    border-color: var(--border-color, #1e293b);
}

[data-theme="dark"] .author-profile-card {
    background-color: var(--card-bg, #111827);
    border-color: var(--border-color, #1e293b);
}

[data-theme="dark"] .author-card-avatar {
    border-color: var(--border-color, #1e293b);
}

[data-theme="dark"] .author-card-name a {
    color: var(--text-color, #f7fafc);
}

[data-theme="dark"] .author-card-bio {
    color: var(--text-muted, #a0aec0);
}

[data-theme="dark"] .continue-reading-strip, [data-theme="dark"] .related-articles-section {
    border-color: var(--border-color, #1e293b);
}

[data-theme="dark"] .continue-card, [data-theme="dark"] .related-card, [data-theme="dark"] .nav-card {
    background-color: var(--card-bg, #111827);
    border-color: var(--border-color, #1e293b);
}


[data-theme="dark"] .continue-card-title, [data-theme="dark"] .related-card-title a, [data-theme="dark"] .nav-card-title {
    color: var(--text-color, #f7fafc);
}

[data-theme="dark"] .continue-card-date, [data-theme="dark"] .related-card-date, [data-theme="dark"] .nav-card-label {
    color: var(--text-muted, #a0aec0);
}

/* Dark Mode: Search Widget */
[data-theme="dark"] .sidebar-widget.widget-search {
    border-color: var(--border-color, #2A3446);
    border-top-color: var(--primary, #D50000);
}

[data-theme="dark"] .search-widget-input-wrapper {
    background: linear-gradient(135deg, var(--bg-secondary, #121826) 0%, var(--bg-card, #1A2233) 100%);
    border-color: var(--border-color, #2A3446);
}

[data-theme="dark"] .sidebar-widget.widget-search:hover .search-widget-input-wrapper {
    border-color: var(--primary, #D50000);
    box-shadow: 0 4px 16px rgba(213, 0, 0, 0.2), 0 0 0 4px rgba(213, 0, 0, 0.08);
}

[data-theme="dark"] .search-widget-hint kbd {
    background: var(--bg-secondary, #1e293b);
    border-color: var(--border-color, #334155);
    color: var(--text-color-muted, #64748b);
}

/* =========================================================================
   PHASE 7: HOMEPAGE PROGRESSIVE CONTENT & BOTTOM ZONE STYLING
   ========================================================================= */

/* Shimmer Animation */
@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Category Sections */
.hp-category-section-wrapper {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-card, #ffffff);
    border-radius: 8px;
    border-top: 4px solid var(--primary, #D50000);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in {
    animation: hpFadeIn 0.5s ease-out forwards;
}

@keyframes hpFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Large Featured Grid */
.hp-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.hp-card-large {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hp-card-large a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.hp-card-large .hp-card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: var(--border-color, #e2e8f0);
}

.hp-card-large .hp-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.hp-card-large:hover .hp-card-img-wrapper img {
    transform: scale(1.03);
}

.hp-card-large .category-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--primary, #D50000);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    z-index: 2;
}

.hp-card-large .hp-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 12px 0 6px 0;
    color: var(--text-color-primary, #1a202c);
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-card-large a:hover .hp-card-title {
    color: var(--primary, #D50000);
}

.hp-card-large .hp-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-color-secondary, #4a5568);
    margin: 6px 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-card-meta {
    font-size: 12px;
    color: var(--text-color-muted, #718096);
    display: flex;
    gap: 12px;
}

/* Compact Grid */
.hp-compact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color, #e2e8f0);
    padding-top: 20px;
}

.hp-card-compact {
    display: flex;
    padding: 12px;
    border-radius: 6px;
    background: var(--bg-body, #f7fafc);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hp-card-compact:hover {
    background: var(--bg-secondary, #edf2f7);
    transform: translateX(3px);
}

.hp-card-compact a {
    display: flex;
    gap: 12px;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.hp-card-compact .hp-card-img-wrapper {
    flex-shrink: 0;
    width: 90px;
    height: 65px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--border-color, #e2e8f0);
}

.hp-card-compact .hp-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hp-card-compact .hp-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hp-card-compact .hp-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-color-primary, #1a202c);
    margin: 0 0 6px 0;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-card-compact a:hover .hp-card-title {
    color: var(--primary, #D50000);
}

/* Video Section Layout */
.hp-video-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.hp-video-featured {
    display: flex;
    flex-direction: column;
}

.hp-video-featured .video-title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 12px;
    color: var(--text-color-primary, #1a202c);
}

.hp-video-featured .video-title a {
    color: inherit;
    text-decoration: none;
}

.hp-video-featured .video-title a:hover {
    color: var(--primary, #D50000);
}

.hp-video-featured .video-meta {
    font-size: 12px;
    color: var(--text-color-muted, #718096);
    margin-top: 4px;
}

.hp-video-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.hp-video-card-secondary {
    display: flex;
    flex-direction: column;
}

.hp-video-card-secondary .video-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 8px;
    color: var(--text-color-primary, #1a202c);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-video-card-secondary .video-title a {
    color: inherit;
    text-decoration: none;
}

.hp-video-card-secondary .video-title a:hover {
    color: var(--primary, #D50000);
}

.hp-video-card-secondary .video-meta {
    font-size: 11px;
    color: var(--text-color-muted, #718096);
    margin-top: 3px;
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.video-thumbnail-trigger {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s ease;
}

.video-thumbnail-trigger:hover {
    filter: brightness(0.95);
}

.video-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(213, 0, 0, 0.95);
    box-shadow: 0 4px 16px rgba(213, 0, 0, 0.4);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease;
}

.video-play-btn.sm {
    width: 38px;
    height: 38px;
}

.video-play-btn svg {
    fill: #ffffff;
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
}

.video-play-btn.sm svg {
    width: 20px;
    height: 20px;
}

.video-thumbnail-trigger:hover .video-play-btn {
    transform: scale(1.08);
    background-color: var(--primary, #D50000);
}

.hp-video-action {
    text-align: center;
    margin-top: 24px;
}

.btn-view-all-videos {
    display: inline-block;
    background: var(--primary, #D50000);
    color: #ffffff !important;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-view-all-videos:hover {
    background: #B20000;
    box-shadow: 0 4px 15px rgba(213, 0, 0, 0.35);
}

/* Skeleton Loading Shimmering Classes */
.hp-skeleton-active .skeleton-image,
.hp-skeleton-active .skeleton-line,
.hp-skeleton-active .skeleton-thumb {
    background: var(--bg-skeleton, #e2e8f0) !important;
    position: relative;
    overflow: hidden;
}

.hp-skeleton-active .skeleton-image::after,
.hp-skeleton-active .skeleton-line::after,
.hp-skeleton-active .skeleton-thumb::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s infinite;
}

/* Reached the end banner */
.hp-reached-end-message {
    text-align: center;
    padding: 30px 20px;
    margin: 20px 0 32px 0;
    border-top: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-color-muted, #718096);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Bottom Zone Components styling */
.hp-bottom-zone-wrapper {
    margin-top: 10px;
}

.hp-bottom-section {
    background: var(--bg-card, #ffffff);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
    border-top: 4px solid var(--primary, #D50000);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.hp-latest-news-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hp-strip-item {
    display: flex;
    background: var(--bg-body, #f7fafc);
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hp-strip-item:hover {
    background: var(--bg-secondary, #edf2f7);
    transform: translateY(-2px);
}

.hp-strip-item a {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.hp-strip-img {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--border-color, #e2e8f0);
}

.hp-strip-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hp-strip-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hp-strip-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 4px 0;
    color: var(--text-color-primary, #1a202c);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-strip-item a:hover .hp-strip-title {
    color: var(--primary, #D50000);
}

.hp-strip-meta {
    font-size: 11px;
    color: var(--text-color-muted, #718096);
}

.hp-bottom-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.hp-bottom-grid .hp-most-read-wrapper,
.hp-bottom-grid .hp-photo-gallery-wrapper {
    margin-bottom: 0;
}

.hp-most-read-wrapper {
    flex: 1.4;
}

.hp-photo-gallery-wrapper {
    flex: 1;
}

.hp-most-read-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hp-most-read-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.hp-most-read-number {
    font-size: 38px;
    font-weight: 900;
    color: var(--primary, #D50000);
    opacity: 0.85;
    line-height: 1;
    width: 32px;
    flex-shrink: 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.hp-most-read-body {
    display: flex;
    flex-direction: column;
}

.hp-most-read-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 4px 0;
}

.hp-most-read-title a {
    color: var(--text-color-primary, #1a202c);
    text-decoration: none;
    transition: color 0.15s ease;
}

.hp-most-read-title a:hover {
    color: var(--primary, #D50000);
}

.hp-most-read-meta {
    font-size: 11px;
    color: var(--text-color-muted, #718096);
}

/* Photo Gallery Grid */
.hp-photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hp-gallery-item {
    display: flex;
    flex-direction: column;
}

.hp-gallery-item a {
    text-decoration: none;
    color: inherit;
}

.hp-gallery-img-container {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1.45;
    background: var(--border-color, #e2e8f0);
}

.hp-gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
    display: block;
}

.hp-gallery-item:hover .hp-gallery-img-container img {
    transform: scale(1.04);
}

.hp-gallery-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hp-gallery-icon svg {
    fill: #ffffff;
}

.hp-gallery-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    margin: 6px 0 0 0;
    color: var(--text-color-primary, #1a202c);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-gallery-item a:hover .hp-gallery-title {
    color: var(--primary, #D50000);
}

/* Editor's Picks */
.hp-editors-picks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hp-editors-pick-item {
    display: flex;
    flex-direction: column;
}

.hp-editors-pick-item a {
    text-decoration: none;
    color: inherit;
}

.hp-editors-pick-img {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1.6;
    margin-bottom: 8px;
    background: var(--border-color, #e2e8f0);
}

.hp-editors-pick-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
    display: block;
}

.hp-editors-pick-item:hover .hp-editors-pick-img img {
    transform: scale(1.03);
}

.hp-editors-pick-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px 0;
    color: var(--text-color-primary, #1a202c);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-editors-pick-item a:hover .hp-editors-pick-title {
    color: var(--primary, #D50000);
}

.hp-editors-pick-meta {
    font-size: 11px;
    color: var(--text-color-muted, #718096);
}

/* =========================================================================
   DARK MODE OVERRIDES [data-theme="dark"]
   ========================================================================= */
[data-theme="dark"] {
    --bg-skeleton: #1e293b; /* slate-800 */
    --bg-skeleton-card: #0f172a; /* slate-900 */
}

[data-theme="dark"] .hp-category-section-wrapper,
[data-theme="dark"] .hp-bottom-section,
[data-theme="dark"] .hp-most-read-wrapper,
[data-theme="dark"] .hp-photo-gallery-wrapper {
    background: var(--bg-card, #1e293b);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .hp-card-compact,
[data-theme="dark"] .hp-strip-item {
    background: var(--bg-body, #0f172a);
}

[data-theme="dark"] .hp-card-compact:hover,
[data-theme="dark"] .hp-strip-item:hover {
    background: var(--bg-secondary, #1e293b);
}

[data-theme="dark"] .hp-reached-end-message {
    border-top-color: var(--border-color, #2d3748);
}

[data-theme="dark"] .hp-skeleton-active .skeleton-image::after,
[data-theme="dark"] .hp-skeleton-active .skeleton-line::after,
[data-theme="dark"] .hp-skeleton-active .skeleton-thumb::after {
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.04) 20%,
        rgba(255, 255, 255, 0.08) 60%,
        rgba(255, 255, 255, 0) 100%
    );
}

/* =========================================================================
   RESPONSIVE LAYOUTS & MOBILE OPTIMIZATIONS
   ========================================================================= */
@media (max-width: 1024px) {
    .hp-bottom-grid {
        flex-direction: column;
        gap: 24px;
    }
    
    .hp-most-read-wrapper,
    .hp-photo-gallery-wrapper {
        flex: none;
        width: 100%;
    }

    .hp-latest-news-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-editors-picks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hp-category-section-wrapper,
    .hp-bottom-section {
        padding: 16px;
    }

    .hp-featured-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hp-compact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 16px;
        padding-top: 16px;
    }

    .hp-card-compact {
        padding: 14px; /* Slightly larger padding for better touch target */
    }

    .hp-video-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hp-video-secondary-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hp-latest-news-strip {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hp-editors-picks-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hp-photo-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hp-photo-gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Category Archive Grid & Layout Redesign */
.category-page-wrapper .container {
    max-width: 1600px !important;
    width: 95% !important;
}

.cat-layout-grid {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 30px !important;
    width: 100% !important;
    margin-top: 10px;
}

.cat-main-content {
    flex: 0 0 75% !important;
    max-width: 75% !important;
    min-width: 0 !important;
}

.cat-layout-grid .sidebar-area {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    min-width: 340px !important; /* Fixed width range 320-360px */
    width: 340px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 1023px) {
    .cat-layout-grid {
        flex-direction: column !important;
        gap: 24px !important;
    }
    .cat-main-content {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    .cat-layout-grid .sidebar-area {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* --- Redesigned Category Page Layout (Argus Style) --- */
.cat-new-layout-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
    margin-top: 10px;
}

/* Left Sidebar Column - Trending Widget */
.cat-trending-col {
    flex: 0 0 28%;
    max-width: 28%;
    min-width: 320px;
    box-sizing: border-box;
}

.trending-header {
    background: #D50000;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trending-dot {
    width: 8px;
    height: 8px;
    background-color: #FFEB3B; /* Yellow dot */
    border-radius: 50%;
    display: inline-block;
    animation: blinker-glow 1.5s linear infinite;
}

@keyframes blinker-glow {
    50% { opacity: 0.3; }
}

.trending-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.trending-card {
    display: flex;
    flex-direction: row;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.trending-card:last-child {
    border-bottom: none;
}

.trending-card:hover {
    background-color: rgba(213, 0, 0, 0.02);
}

.trending-rank-badge {
    flex: 0 0 32px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 800;
    border-radius: 4px;
    margin-right: 12px;
}

.trending-rank-badge.rank-top {
    background: #D50000;
    color: #ffffff;
}

.trending-rank-badge.rank-other {
    background: var(--gray-bg);
    color: var(--text-color-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .trending-rank-badge.rank-other {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color-muted);
}

.trending-thumb {
    flex: 0 0 75px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 12px;
    background-color: var(--border-color);
}

.trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-details {
    flex-grow: 1;
    min-width: 0;
}

.trending-cat {
    display: block;
    color: #D50000;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.trending-title {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 4px 0;
    color: var(--text-color-primary);
}

.trending-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.trending-title a:hover {
    color: #D50000;
}

.trending-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    color: var(--text-color-muted);
}

.trending-bullet {
    color: var(--text-color-muted);
}

/* Right Main Column */
.cat-main-col {
    flex-grow: 1;
    min-width: 0;
}

/* Large Featured Card */
.cat-featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cat-featured-card:hover {
    border-color: #D50000;
    box-shadow: 0 8px 25px rgba(213, 0, 0, 0.08);
}

.featured-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--border-color);
}

.featured-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-content {
    padding: 24px;
}

.featured-title {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: var(--text-color-primary);
}

.featured-title a {
    text-decoration: none;
    color: inherit;
}

.title-cat-prefix {
    color: #D50000;
    font-weight: 800;
}

.featured-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--text-color-secondary);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.featured-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--text-color-muted);
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-author {
    font-weight: 600;
    color: var(--text-color-secondary);
}

.meta-bullet {
    color: var(--text-color-muted);
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    margin-right: 4px;
}

.share-icon-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-secondary);
    background: var(--gray-bg);
    transition: all 0.2s ease;
    text-decoration: none;
}

[data-theme="dark"] .share-icon-btn {
    background: rgba(255, 255, 255, 0.05);
}

.share-icon-btn:hover {
    color: #ffffff;
}

.share-icon-btn.x-icon:hover {
    background: #000000;
}

.share-icon-btn.yt-icon:hover {
    background: #FF0000;
}

.share-icon-btn.insta-icon:hover {
    background: #E1306C;
}

.share-svg {
    fill: currentColor;
}

/* Horizontal Top Stories List */
.cat-horizontal-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cat-horizontal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    padding: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cat-horizontal-card:hover {
    border-color: #D50000;
    box-shadow: 0 4px 15px rgba(213, 0, 0, 0.05);
}

.horizontal-thumb {
    flex: 0 0 140px;
    aspect-ratio: 16 / 10;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
    background-color: var(--border-color);
}

.horizontal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.horizontal-content {
    flex-grow: 1;
    min-width: 0;
    margin-right: 15px;
}

.horizontal-title {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: var(--text-color-primary);
}

.horizontal-title a {
    text-decoration: none;
    color: inherit;
}

.horizontal-title a:hover {
    color: #D50000;
}

.horizontal-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: var(--text-color-muted);
}

.horizontal-share {
    flex: 0 0 30px;
    display: flex;
    justify-content: flex-end;
}

.share-trigger-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-trigger-btn:hover {
    background: #D50000;
    color: #ffffff;
    border-color: #D50000;
}

/* More Articles Grid Section */
.cat-more-articles-section {
    margin-top: 50px;
}

.more-articles-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 25px;
    position: relative;
}

.more-articles-header h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #D50000;
    margin: 0 0 5px 0;
    text-transform: uppercase;
}

.more-articles-header p {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-color-muted);
    margin: 0;
}

.more-articles-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 120px;
    height: 2px;
    background-color: #D50000;
}

.more-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.more-article-grid-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.more-article-grid-card:hover {
    border-color: #D50000;
    box-shadow: 0 4px 15px rgba(213, 0, 0, 0.06);
}

.grid-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: var(--border-color);
    overflow: hidden;
}

.grid-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.more-article-grid-card:hover .grid-card-image img {
    transform: scale(1.03);
}

.grid-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.grid-card-title {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: var(--text-color-primary);
}

.grid-card-title a {
    text-decoration: none;
    color: inherit;
}

.grid-card-title a:hover {
    color: #D50000;
}

.grid-card-meta-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    color: var(--text-color-muted);
}

/* Tablet & Mobile Responsiveness overrides for new layout */
@media (max-width: 1199px) {
    .cat-trending-col {
        flex: 0 0 32%;
        max-width: 32%;
        min-width: 300px;
    }
}

@media (max-width: 1023px) {
    .cat-new-layout-row {
        flex-direction: column;
        gap: 30px;
    }
    .cat-trending-col {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
        min-width: 0;
        order: 2;
    }
    .cat-main-col {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
        order: 1;
    }
    .more-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .featured-title {
        font-size: 17px;
    }
    .featured-content {
        padding: 15px;
    }
    .featured-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .meta-right {
        width: 100%;
        justify-content: flex-start;
        border-top: 1px dashed var(--border-color);
        padding-top: 10px;
    }
    .cat-horizontal-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .horizontal-thumb {
        flex: 0 0 auto;
        width: 100%;
        aspect-ratio: 16 / 9;
        margin-right: 0;
        margin-bottom: 12px;
    }
    .horizontal-content {
        margin-right: 0;
        margin-bottom: 8px;
    }
    .horizontal-share {
        width: 100%;
        justify-content: flex-start;
    }
    .more-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Odisha, National, International, Politics & Business Category Hero Banners Custom Backgrounds */
.category-hero-banner.cat-banner-odisha {
    background-image: url('odisha-category-banner.webp');
}
.category-hero-banner.cat-banner-national {
    background-image: url('national-category-banner.webp');
}
.category-hero-banner.cat-banner-international {
    background-image: url('international-category-banner.webp');
}
.category-hero-banner.cat-banner-politics {
    background-image: url('politics-category-banner.webp');
}
.category-hero-banner.cat-banner-business {
    background-image: url('business-category-banner.webp');
}

/* Shared Hero Banner Styles */
.category-hero-banner.cat-banner-odisha,
.category-hero-banner.cat-banner-national,
.category-hero-banner.cat-banner-international,
.category-hero-banner.cat-banner-politics,
.category-hero-banner.cat-banner-business {
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Safe area linear-gradient overlay for readability in light mode */
.category-hero-banner.cat-banner-odisha::before,
.category-hero-banner.cat-banner-national::before,
.category-hero-banner.cat-banner-international::before,
.category-hero-banner.cat-banner-politics::before,
.category-hero-banner.cat-banner-business::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.75) 40%,
        rgba(255, 255, 255, 0.15) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Dark mode adjustment for safe area overlay */
[data-theme="dark"] .category-hero-banner.cat-banner-odisha::before,
[data-theme="dark"] .category-hero-banner.cat-banner-national::before,
[data-theme="dark"] .category-hero-banner.cat-banner-international::before,
[data-theme="dark"] .category-hero-banner.cat-banner-politics::before,
[data-theme="dark"] .category-hero-banner.cat-banner-business::before {
    background: linear-gradient(
        90deg,
        rgba(31, 21, 27, 0.92) 0%,
        rgba(31, 21, 27, 0.75) 40%,
        rgba(31, 21, 27, 0.15) 100%
    );
}

/* Make sure text elements are above the pseudo-element overlay */
.category-hero-banner.cat-banner-odisha h1,
.category-hero-banner.cat-banner-odisha p,
.category-hero-banner.cat-banner-national h1,
.category-hero-banner.cat-banner-national p,
.category-hero-banner.cat-banner-international h1,
.category-hero-banner.cat-banner-international p,
.category-hero-banner.cat-banner-politics h1,
.category-hero-banner.cat-banner-politics p,
.category-hero-banner.cat-banner-business h1,
.category-hero-banner.cat-banner-business p {
    position: relative;
    z-index: 2;
}

/* Tablet Responsive Rules */
@media (max-width: 1023px) {
    .category-hero-banner.cat-banner-odisha,
    .category-hero-banner.cat-banner-national,
    .category-hero-banner.cat-banner-international,
    .category-hero-banner.cat-banner-politics,
    .category-hero-banner.cat-banner-business {
        min-height: 150px;
        background-position: right center;
    }
}

/* Mobile Responsive Rules */
@media (max-width: 767px) {
    .category-hero-banner.cat-banner-odisha,
    .category-hero-banner.cat-banner-national,
    .category-hero-banner.cat-banner-international,
    .category-hero-banner.cat-banner-politics,
    .category-hero-banner.cat-banner-business {
        min-height: 160px;
        background-position: 78% center;
    }
    
    /* Slightly higher opacity on mobile overlay since screen is narrower and text might wrap more */
    .category-hero-banner.cat-banner-odisha::before,
    .category-hero-banner.cat-banner-national::before,
    .category-hero-banner.cat-banner-international::before,
    .category-hero-banner.cat-banner-politics::before,
    .category-hero-banner.cat-banner-business::before {
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.88) 60%,
            rgba(255, 255, 255, 0.3) 100%
        );
    }
    [data-theme="dark"] .category-hero-banner.cat-banner-odisha::before,
    [data-theme="dark"] .category-hero-banner.cat-banner-national::before,
    [data-theme="dark"] .category-hero-banner.cat-banner-international::before,
    [data-theme="dark"] .category-hero-banner.cat-banner-politics::before,
    [data-theme="dark"] .category-hero-banner.cat-banner-business::before {
        background: linear-gradient(
            90deg,
            rgba(31, 21, 27, 0.95) 0%,
            rgba(31, 21, 27, 0.88) 60%,
            rgba(31, 21, 27, 0.3) 100%
        );
    }
}

/* Homepage Side-by-Side Category Row Layout (Argus Style) */
.hp-category-layout-row {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.hp-category-left-col {
    display: flex;
    flex-direction: column;
}

.hp-category-right-col {
    display: flex;
    flex-direction: column;
}

/* Featured grid in left column */
.hp-category-left-col .hp-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 0; /* Align perfectly with right column */
    height: auto;
}

/* Compact list in right column */
.hp-compact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    justify-content: space-between; /* Stretch cards to fill height evenly */
}

/* Adjust card compact heights and margins to fit nicely */
.hp-compact-list .hp-card-compact {
    display: flex;
    padding: 10px 12px;
    border-radius: 6px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    align-items: center;
    flex: 1; /* Make all compact cards equal height and fill the column */
}

.hp-compact-list .hp-card-compact:hover {
    background: var(--hover-glow, rgba(213, 0, 0, 0.03));
    transform: translateX(3px);
}

.hp-compact-list .hp-card-compact a {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.hp-compact-list .hp-card-compact .hp-card-img-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.hp-compact-list .hp-card-compact .hp-card-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-color-primary, #111111);
    transition: color 0.2s ease;
}

.hp-compact-list .hp-card-compact a:hover .hp-card-title {
    color: var(--primary, #D50000);
}

.hp-compact-list .hp-card-compact .hp-card-meta {
    font-size: 11px;
    color: var(--text-color-muted, #666666);
    display: flex;
    gap: 8px;
}

/* Tablet / Mobile responsive design */
@media (max-width: 1023px) {
    .hp-category-layout-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hp-compact-list {
        gap: 12px;
    }
    .hp-compact-list .hp-card-compact {
        flex: none;
    }
}

@media (max-width: 639px) {
    .hp-category-left-col .hp-featured-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* --- Home Page Full-Width Override (Argus Style) --- */
.home .main-content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}

.home .sidebar-area {
    display: none !important;
}

.home .hp-category-layout-row {
    grid-template-columns: 1.25fr 1fr; /* Make compact grid side-by-side with featured cards */
    gap: 30px;
}

.home .hp-compact-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for 8 compact cards */
    gap: 12px;
}

/* Ensure compact cards fill columns correctly */
.home .hp-compact-list .hp-card-compact {
    flex: 0 0 auto;
    width: 100%;
}

@media (max-width: 1023px) {
    .home .hp-category-layout-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 639px) {
    .home .hp-compact-list {
        grid-template-columns: 1fr; /* Stack to 1 column on mobile */
    }
}

/* --- Argus-style Category Layout Content Density Overrides --- */

/* Align compact card items to start instead of center */
.home .hp-compact-list .hp-card-compact {
    align-items: flex-start !important;
    padding: 12px 14px;
}

/* Make image wrapper larger for compact cards */
.home .hp-compact-list .hp-card-compact .hp-card-img-wrapper {
    width: 100px !important;
    height: 75px !important;
}

/* Style the new compact card excerpt */
.hp-card-excerpt-compact {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--text-color-secondary, #4a5568);
    margin: 4px 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Metadata formatting for compact cards */
.hp-card-compact .hp-card-meta {
    font-size: 11px;
    color: var(--text-color-muted, #718096);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.hp-category-prefix {
    color: var(--primary, #D50000);
    font-weight: 700;
}

/* --- Extra Horizontal Card Below Two Featured Cards --- */
.hp-card-extra-horizontal {
    margin-top: 15px;
    background: var(--card-bg, #ffffff);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color, #e2e8f0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-grow: 1; /* Stretch card to fill remaining container height */
    display: flex;
}

.hp-card-extra-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hp-card-extra-horizontal a {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.hp-card-extra-horizontal .hp-card-img-wrapper {
    flex: 0 0 260px;
    width: 260px;
    height: auto; /* Stretch height automatically to match stretched card container */
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.hp-card-extra-horizontal .hp-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hp-card-extra-horizontal:hover .hp-card-img-wrapper img {
    transform: scale(1.05);
}

.hp-card-extra-horizontal .hp-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
}

.hp-card-extra-horizontal .hp-card-title {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: var(--text-color, #1a202c);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-card-excerpt-extra {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-color-secondary, #4a5568);
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-card-extra-horizontal .hp-card-meta {
    font-size: 11px;
    color: var(--text-color-muted, #718096);
    margin-top: auto;
    display: flex;
    gap: 12px;
}

@media (max-width: 639px) {
    .hp-card-extra-horizontal a {
        flex-direction: column;
    }
    .hp-card-extra-horizontal .hp-card-img-wrapper {
        flex: 0 0 auto;
        width: 100%;
        height: 180px;
    }
}
