/* Modern Professional News Website - CNN/BBC Inspired */

/* Base Layout */
html, body {
    height: 100%;
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: #212529;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #212529;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light theme overrides */
[data-bs-theme="light"] html,
[data-bs-theme="light"] body {
    background-color: #ffffff !important;
    color: #333333 !important;
}

/* Prevent overscroll bounce and white space */
body::before {
    content: '';
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background-color: #212529;
    z-index: -1;
    transition: background-color 0.3s ease;
}

[data-bs-theme="light"] body::before {
    background-color: #ffffff !important;
}

/* Prevent flash by ensuring immediate theme application */
html[data-bs-theme="light"] {
    background-color: #ffffff !important;
}

html[data-bs-theme="dark"] {
    background-color: #212529 !important;
}

/* ==================== LOGO ANIMATION EFFECTS ==================== */

/* Keyframe animations */
@keyframes logoGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 0px rgba(0, 123, 255, 0));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 8px rgba(0, 123, 255, 0.4));
        transform: scale(1.02);
    }
}

@keyframes brandPulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: none;
    }
    50% { 
        transform: scale(1.01);
        text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    }
}

@keyframes taglineSlide {
    0% { 
        opacity: 0.7;
        transform: translateY(2px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo hover effects */
.news-logo:hover .news-logo-img {
    transform: scale(1.1) rotate(5deg);
    animation: logoGlow 2s ease-in-out infinite;
}

.news-logo:hover .brand-impax {
    animation: brandPulse 1.5s ease-in-out infinite;
    transform: translateY(-1px);
}

.news-logo:hover .brand-news {
    animation: brandPulse 1.5s ease-in-out infinite 0.3s;
    transform: translateY(-1px);
}

.news-logo:hover .tagline-text {
    animation: taglineSlide 0.8s ease-out;
    color: #495057;
}

/* Theme transition effects */
[data-bs-theme="light"] .news-logo-img {
    filter: brightness(1) saturate(1);
}

[data-bs-theme="dark"] .news-logo-img {
    filter: brightness(1.1) saturate(1.2) drop-shadow(0 0 5px rgba(0, 123, 255, 0.2));
}

/* Brand text special effects during theme change */
[data-bs-theme="dark"] .brand-impax {
    text-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

[data-bs-theme="dark"] .brand-news {
    text-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
}

/* Badge animation on theme change */
[data-bs-theme="dark"] .gpt-badge {
    box-shadow: 0 0 10px rgba(0, 102, 204, 0.4);
    transform: scale(1.02);
}

/* ==================== BBC-STYLE HEADER ==================== */

/* BBC-Style Logo Blocks */
.logo-blocks-container {
    display: flex;
    gap: 2px;
}

.logo-block {
    background-color: #000000;
    color: #ffffff;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    font-family: "Arial", sans-serif;
    border-radius: 0;
}

.bbc-brand-text {
    margin-left: 8px;
}

.bbc-tagline {
    font-size: 12px;
    color: #666666;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
}

[data-bs-theme="light"] .bbc-tagline {
    color: #666666;
}

[data-bs-theme="dark"] .bbc-tagline {
    color: #adb5bd;
}

/* BBC-Style Header Main */
.header-main-bbc {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    min-height: 60px;
}

[data-bs-theme="dark"] .header-main-bbc {
    background-color: #212529;
    border-bottom: 1px solid #495057;
}

/* BBC-Style Navigation */
.bbc-navigation {
    flex: 1;
    margin-left: 40px;
}

.bbc-nav-menu {
    gap: 0;
}

.bbc-nav-item {
    margin: 0;
}

.bbc-nav-link {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    padding: 18px 16px;
    display: block;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.bbc-nav-link:hover {
    color: #000000;
    background-color: #f0f0f0;
    border-bottom-color: #ff661b;
}

.bbc-nav-link.active {
    color: #000000;
    border-bottom-color: #ff661b;
    font-weight: 500;
}

/* Dark theme navigation */
[data-bs-theme="dark"] .bbc-nav-link {
    color: #ffffff;
}

[data-bs-theme="dark"] .bbc-nav-link:hover {
    color: #ffffff;
    background-color: #495057;
}

[data-bs-theme="dark"] .bbc-nav-link.active {
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .bbc-navigation {
        margin-left: 20px;
    }
    
    .bbc-nav-link {
        padding: 18px 12px;
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .bbc-navigation {
        display: none !important;
    }
}

/* ==================== PROFESSIONAL NEWS HEADER ==================== */

/* Header Top Bar */
.header-top-bar {
    background-color: #343a40;
    border-bottom: 1px solid #495057;
    font-size: 0.8rem;
}

/* Theme Toggle Styling */
.theme-toggle .btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle .btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transform: scale(1.05);
}

.theme-toggle .btn i {
    transition: all 0.3s ease;
    font-size: 1rem;
}

.theme-toggle .btn:hover i {
    transform: rotate(20deg);
}

/* Light theme styles */
[data-bs-theme="light"] .header-top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

[data-bs-theme="light"] .theme-toggle .btn {
    color: #6c757d;
}

[data-bs-theme="light"] .theme-toggle .btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #495057;
}

.header-date-time {
    color: #6c757d;
    font-weight: 500;
}

/* Keep header date consistent in both modes */
[data-bs-theme="dark"] .header-date-time {
    color: #6c757d !important;
    font-weight: 500;
}

.header-actions .btn-link {
    color: #6c757d;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

.header-actions .btn-link:hover {
    color: #495057;
}

/* Main Header */
.header-main {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: background-color 0.3s ease;
}

[data-bs-theme="dark"] .header-main {
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Center the entire news brand */
.news-brand {
    width: 100%;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Header logo styling */
.header-logo-img {
    transition: all 0.3s ease;
    filter: brightness(1);
}

.header-logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Footer logo styling */
.footer-logo-img {
    transition: all 0.3s ease;
    filter: brightness(1);
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

/* Compact Header */
.news-header {
    padding: 0.75rem 0 !important;
}

/* Mobile header responsive fixes */
@media (max-width: 767.98px) {
    .news-header {
        padding: 0.5rem 0 !important;
    }
    
    .header-logo-img {
        height: 50px !important;
        max-width: 200px !important;
    }
    
    .category-nav {
        margin-top: 0.5rem;
    }
    
    .categories-scroll {
        gap: 0.5rem !important;
        padding: 0.75rem 0 !important;
    }
    
    .category-btn {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
        white-space: nowrap;
    }
}

/* Text Logo Section */
.text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-centered {
    align-items: center;
    text-align: center;
}

.brand-name {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a1a1a !important;
    font-family: 'Segoe UI', system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 4px;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.brand-name::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #dc3545);
    border-radius: 2px;
}

.tagline {
    font-size: 0.8rem;
    color: #555555 !important;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
    margin-top: 2px;
}

/* Dark theme adjustments */
[data-bs-theme="dark"] .brand-name {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .tagline {
    color: #cccccc !important;
}

/* Hover effects */
.news-brand:hover .brand-name {
    transform: translateY(-1px);
    color: #007bff !important;
}

[data-bs-theme="dark"] .news-brand:hover .brand-name {
    color: #60a5fa !important;
}

/* Force consistent brand-news colors in both modes with maximum specificity */
html[data-bs-theme="light"] .brand-news,
[data-bs-theme="light"] .brand-news,
body[data-bs-theme="light"] .brand-news {
    color: #dc3545 !important;
}

html[data-bs-theme="dark"] .brand-news,
[data-bs-theme="dark"] .brand-news, 
body[data-bs-theme="dark"] .brand-news {
    color: #dc3545 !important;
    font-weight: 800 !important;
}

/* Additional override to ensure color consistency with maximum specificity */
html .brand-impax,
body .brand-impax,
.brand-impax {
    color: #007bff !important;
}

html .brand-news,
body .brand-news,
.brand-news {
    color: #dc3545 !important;
}

/* FINAL ULTIMATE OVERRIDE - Force exact colors with maximum specificity */
html[data-bs-theme] .brand-impax,
html[data-bs-theme="dark"] .brand-impax,
html[data-bs-theme="light"] .brand-impax,
body[data-bs-theme] .brand-impax,
body[data-bs-theme="dark"] .brand-impax,
body[data-bs-theme="light"] .brand-impax,
.brand-impax,
.brand-impax * {
    color: #007bff !important;
    text-shadow: none !important;
}

html[data-bs-theme] .brand-news,
html[data-bs-theme="dark"] .brand-news,
html[data-bs-theme="light"] .brand-news,
body[data-bs-theme] .brand-news,
body[data-bs-theme="dark"] .brand-news,
body[data-bs-theme="light"] .brand-news,
.brand-news,
.brand-news * {
    color: #dc3545 !important;
    text-shadow: none !important;
}

/* Override any theme-based color inheritance */
[data-bs-theme="dark"] * .brand-impax {
    color: #007bff !important;
}

[data-bs-theme="dark"] * .brand-news {
    color: #dc3545 !important;
}

/* Force consistent brand colors in both modes */
[data-bs-theme="light"] .brand-impax {
    color: #007bff !important;
}

[data-bs-theme="dark"] .brand-impax {
    color: #007bff !important;
    font-weight: 800 !important;
}

.news-tagline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1px;
}

.gpt-badge {
    background: linear-gradient(135deg, #0066cc, #004499);
    color: white;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.tagline-text {
    color: #6c757d;
    font-size: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

[data-bs-theme="light"] .tagline-text {
    color: #6c757d !important;
}

/* Desktop Navigation */
.news-navigation {
    position: relative;
    flex: 1;
    max-width: 900px;
}

.nav-menu {
    align-items: center;
    gap: 0;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    flex: 0 0 auto;
}

.nav-link-modern {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    padding: 1rem 0.9rem;
    border-radius: 0;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    display: block;
    text-align: center;
}

.nav-link-modern:hover {
    color: #ff661b;
    background-color: #f8f9fa;
    text-decoration: none;
}

.nav-link-modern.active {
    color: #ff661b;
    background-color: #fff5f5;
}

/* Keep navigation consistent in both modes */
[data-bs-theme="light"] .nav-link-modern {
    color: #007bff !important;
}

[data-bs-theme="light"] .nav-link-modern:hover {
    color: #ff661b !important;
    background-color: #f8f9fa !important;
}

[data-bs-theme="light"] .nav-link-modern.active {
    color: #ff661b !important;
    background-color: #fff5f5 !important;
}

[data-bs-theme="dark"] .nav-link-modern {
    color: #007bff !important;
}

[data-bs-theme="dark"] .nav-link-modern:hover {
    color: #ff661b !important;
    background-color: #f8f9fa !important;
}

[data-bs-theme="dark"] .nav-link-modern.active {
    color: #ff661b !important;
    background-color: #fff5f5 !important;
}

.nav-link-modern.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #ff661b;
}

/* Header Controls */
.header-controls {
    flex: 0 0 auto;
}

/* Search Modal Styles */
.search-modal .modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.search-modal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

.search-input {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: #ff661b;
    box-shadow: 0 0 0 0.2rem rgba(255, 102, 27, 0.25);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

[data-bs-theme="dark"] .search-result-title {
    color: #ffffff !important;
}

.search-result-excerpt {
    color: #666;
    font-size: 0.9rem;
}

[data-bs-theme="dark"] .search-result-excerpt {
    color: #e9ecef !important;
}

/* Mobile Navigation */
.mobile-nav-menu {
    background-color: #f8f9fa;
}

.mobile-nav-item {
    margin: 0;
}

.mobile-nav-link {
    color: #495057;
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: block;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    color: #ff661b;
    background-color: #ffffff;
}

.mobile-nav-link.active {
    color: #ff661b;
    background-color: #ffffff;
    border-left: 3px solid #ff661b;
}

.mobile-nav-divider {
    height: 1px;
    background-color: #dee2e6;
    margin: 0.5rem 0;
}

.mobile-nav-section {
    padding: 0.5rem 1rem 0.25rem;
}

.mobile-nav-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Header Controls */
.header-controls .btn {
    border: 1px solid #dee2e6;
    color: #495057;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.header-controls .btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    font-size: 1.1rem;
    color: #495057;
    transition: color 0.3s ease;
}

/* Keep header controls consistent in both modes */
[data-bs-theme="light"] .header-controls .btn {
    border: 1px solid #dee2e6 !important;
    color: #495057 !important;
}

[data-bs-theme="light"] .header-controls .btn:hover {
    background-color: #f8f9fa !important;
    border-color: #adb5bd !important;
    color: #495057 !important;
}

[data-bs-theme="light"] .navbar-toggler {
    color: #495057 !important;
}

[data-bs-theme="dark"] .header-controls .btn {
    border: 1px solid #dee2e6 !important;
    color: #495057 !important;
}

[data-bs-theme="dark"] .header-controls .btn:hover {
    background-color: #f8f9fa !important;
    border-color: #adb5bd !important;
    color: #495057 !important;
}

[data-bs-theme="dark"] .navbar-toggler {
    color: #495057 !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .news-brand-title {
        font-size: 1.4rem;
    }
    
    .news-logo-img {
        width: 36px;
        height: 36px;
    }
    
    .header-date-time {
        font-size: 0.75rem;
    }
}

/* Logo Circle for Brand */
.logo-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: transform 0.3s ease;
}

.logo-circle:hover {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-weight: 700;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.brand-accent {
    font-weight: 800;
    font-size: 0.9rem;
    color: #ff661b;
    letter-spacing: 0.5px;
    margin-top: -2px;
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 1040;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-bottom: 0;
}

/* Brand Section */
.navbar-brand {
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: #333;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.logo-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.logo-icon:hover {
    transform: scale(1.1);
}

.logo-icon i {
    filter: drop-shadow(0 2px 4px rgba(0,123,255,0.3));
}

.logo-img:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.brand-text {
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

.brand-text-new {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-line-1 {
    display: flex;
    align-items: baseline;
    margin-bottom: 2px;
}

.daily-text {
    font-weight: 400;
    font-size: 1.2rem;
    color: #2563eb;
    margin-right: 0px;
}

.news-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1e40af;
}

.gpt-box {
    background-color: #2563eb;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 3px;
    width: fit-content;
    line-height: 1.2;
}

.logo-icon img {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
}

.logo-icon img:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: scale(1.05);
}

/* Navigation Tabs */
.nav-tabs-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-tab {
    text-decoration: none;
    color: #6c757d;
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
}

.nav-tab:hover {
    color: #ff661b;
    background-color: rgba(255, 102, 27, 0.05);
    transform: translateY(-1px);
}

.nav-tab.active {
    color: #ff661b;
    background-color: rgba(255, 102, 27, 0.1);
    border-bottom-color: #ff661b;
    font-weight: 600;
}

.nav-tab.dropdown-toggle::after {
    border: none;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f107";
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.nav-tab.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    color: #495057;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
}

.dropdown-item:hover {
    background-color: #ff661b;
    color: white;
    transform: translateX(4px);
}

/* Mobile Navigation */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    font-size: 1.2rem;
    color: #495057;
    background: transparent;
    transition: all 0.2s ease;
}

.navbar-toggler:hover {
    color: #ff661b;
    background-color: rgba(255, 102, 27, 0.1);
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile Menu Sections */
.nav-section {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.nav-section:last-child {
    border-bottom: none;
}

.nav-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.nav-section .nav-link {
    padding: 0.75rem 1rem;
    color: #495057;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
}

.nav-section .nav-link:hover {
    background-color: rgba(255, 102, 27, 0.1);
    color: #ff661b;
    transform: translateX(4px);
}

.nav-section .nav-link.active {
    background-color: #ff661b;
    color: white;
}

/* Action Buttons */
.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #ff661b, #e6481a);
    border: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e6481a, #cc3d17);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 27, 0.3);
}

/* Breaking News Bar */
.breaking-news-bar {
    background: linear-gradient(90deg, #ff661b, #e6481a);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 102, 27, 0.3);
    position: relative;
    overflow: hidden;
}

.breaking-label {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 15px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.breaking-text {
    flex: 1;
    font-weight: 500;
    overflow: hidden;
}

/* Mobile Responsive Breaking News */
@media (max-width: 768px) {
    .breaking-news-bar {
        padding: 10px 15px;
        border-radius: 6px;
        margin: 0;
    }
    
    .breaking-label {
        font-size: 0.75rem;
        padding: 3px 8px;
        margin-right: 10px;
    }
    
    .breaking-text {
        font-size: 0.9rem;
    }
}

/* Main Content Spacing */
.container-fluid {
    position: relative;
    z-index: 1;
}

/* Hero Article */
.hero-article {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,0.12);
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.04);
}

.hero-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}

.hero-image-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

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

.hero-article:hover .hero-image {
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
}

.hero-badge {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-content {
    padding: 2.5rem;
    background: white;
}

.hero-category {
    margin-bottom: 1rem;
}

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff661b, #e6481a);
    color: white;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 102, 27, 0.3);
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-bs-theme="dark"] .hero-title {
    color: #ffffff !important;
}

.hero-title:hover {
    color: #ff661b;
}

.hero-summary {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

[data-bs-theme="dark"] .hero-summary {
    color: #e9ecef !important;
}

.hero-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.time-badge, .source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    background: transparent;
    color: #6c757d;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Time stamp styling for article listings */
.time-stamp {
    display: inline-block;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 400;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 3px;
    transition: color 0.3s ease;
}

[data-bs-theme="dark"] .time-stamp {
    color: #adb5bd;
    background: rgba(173, 181, 189, 0.1);
}

.section-article-meta .time-stamp {
    font-size: 0.75rem;
    margin-left: 6px;
}

/* Article content page meta section styling - PROPER ALIGNMENT FIX */
.article-meta-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0;
    padding: 0;
}

.article-meta-section .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(108, 117, 125, 0.08);
    border: 1px solid rgba(108, 117, 125, 0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 36px;
    line-height: 1.2;
    margin-right: 4px;
    flex-shrink: 0;
}

.article-meta-section .meta-item i {
    font-size: 0.8rem;
    opacity: 0.8;
}

.article-meta-section .meta-item:hover {
    background: rgba(108, 117, 125, 0.12);
    transform: translateY(-1px);
    border-color: rgba(108, 117, 125, 0.25);
}

[data-bs-theme="dark"] .article-meta-section .meta-item {
    color: #adb5bd;
    background: rgba(173, 181, 189, 0.1);
    border-color: rgba(173, 181, 189, 0.2);
}

[data-bs-theme="dark"] .article-meta-section .meta-item:hover {
    background: rgba(173, 181, 189, 0.15);
    border-color: rgba(173, 181, 189, 0.3);
}

.meta-divider {
    color: #6c757d;
    margin: 0 8px;
    opacity: 0.6;
}

/* Specific sentiment indicator styling */
.article-meta-section .sentiment-indicator {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.1), rgba(108, 117, 125, 0.05));
    border: 1px solid rgba(108, 117, 125, 0.2);
    margin-right: 8px;
}

.article-meta-section .sentiment-positive {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.2);
}

.article-meta-section .sentiment-negative {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}

.article-meta-section .sentiment-neutral {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.1), rgba(108, 117, 125, 0.05));
    color: #6c757d;
    border-color: rgba(108, 117, 125, 0.2);
}

/* Reading time styling */
.article-meta-section .reading-time {
    background: linear-gradient(135deg, rgba(255, 102, 27, 0.1), rgba(255, 102, 27, 0.05));
    color: #ff661b;
    border-color: rgba(255, 102, 27, 0.2);
    margin-left: 8px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 3px solid #ff661b;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
}

[data-bs-theme="dark"] .section-title {
    color: #ffffff !important;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
    transform: translateY(0) scale(1);
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.04), rgba(102, 126, 234, 0.04));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    z-index: 1;
}

.news-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: rgba(0, 123, 255, 0.25);
}

.news-item:hover::before {
    opacity: 1;
}

.news-item:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

.news-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.news-item:hover .news-image {
    transform: scale(1.08);
}

.news-content {
    padding: 1.25rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.news-item:hover .news-content {
    transform: translateY(-3px);
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.news-item:hover .news-title {
    color: #ff661b;
}

.news-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
}

/* Sentiment Analysis Indicator Styles */
.sentiment-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    transition: all 0.3s ease;
}

/* SIDEBAR SENTIMENT INDICATORS - MAKE THEM VISIBLE! */
.section-article-meta .sentiment-indicator,
.ht-featured-meta .sentiment-indicator,
.ht-card-meta .sentiment-indicator {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    transition: all 0.3s ease;
    min-width: 20px;
    height: 18px;
}

.section-article-meta .sentiment-positive,
.ht-featured-meta .sentiment-positive,
.ht-card-meta .sentiment-positive {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(40, 167, 69, 0.1));
    color: #28a745 !important;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.section-article-meta .sentiment-negative,
.ht-featured-meta .sentiment-negative,
.ht-card-meta .sentiment-negative {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(220, 53, 69, 0.1));
    color: #dc3545 !important;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.section-article-meta .sentiment-neutral,
.ht-featured-meta .sentiment-neutral,
.ht-card-meta .sentiment-neutral {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.15), rgba(108, 117, 125, 0.1));
    color: #6c757d !important;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.section-article-meta .sentiment-icon {
    font-size: 0.65rem;
    opacity: 0.9;
}

.sentiment-positive {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sentiment-negative {
    background: linear-gradient(135deg, #f8d7da, #f1b0b7);
    color: #721c24;
    border: 1px solid #f1b0b7;
}

.sentiment-neutral {
    background: linear-gradient(135deg, #e2e3e5, #d1d3d4);
    color: #383d41;
    border: 1px solid #d1d3d4;
}

[data-bs-theme="dark"] .sentiment-positive {
    background: rgba(40, 167, 69, 0.2);
    color: #75b798;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

[data-bs-theme="dark"] .sentiment-negative {
    background: rgba(220, 53, 69, 0.2);
    color: #f1959b;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

[data-bs-theme="dark"] .sentiment-neutral {
    background: rgba(108, 117, 125, 0.2);
    color: #adb5bd;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.sentiment-icon {
    font-size: 0.8rem;
}

.sentiment-confidence {
    display: inline-block;
    font-size: 0.65rem;
    opacity: 0.8;
    margin-left: 2px;
}

/* Sentiment bar for detailed view */
.sentiment-breakdown {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    font-size: 0.75rem;
}

.sentiment-bar {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: #e9ecef;
    min-width: 60px;
    flex: 1;
}

.sentiment-bar-positive {
    background: #28a745;
}

.sentiment-bar-negative {
    background: #dc3545;
}

.sentiment-bar-neutral {
    background: #6c757d;
}

[data-bs-theme="dark"] .sentiment-bar {
    background: #495057;
}

.sentiment-percentage {
    font-size: 0.7rem;
    color: #6c757d;
    min-width: 25px;
    text-align: center;
}

[data-bs-theme="dark"] .sentiment-percentage {
    color: #adb5bd;
}

/* Reading Time Indicator Styles */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #ff661b;
    font-weight: 600;
    padding: 2px 6px;
    background: rgba(255, 102, 27, 0.1);
    border-radius: 8px;
    margin-left: 8px;
    border: 1px solid rgba(255, 102, 27, 0.2);
    transition: all 0.3s ease;
}

.reading-time:hover {
    background: rgba(255, 102, 27, 0.15);
    border-color: rgba(255, 102, 27, 0.3);
}

[data-bs-theme="dark"] .reading-time {
    color: #4dabf7;
    background: rgba(77, 171, 247, 0.15);
    border: 1px solid rgba(77, 171, 247, 0.25);
}

[data-bs-theme="dark"] .reading-time:hover {
    background: rgba(77, 171, 247, 0.2);
    border-color: rgba(77, 171, 247, 0.35);
}

.reading-time-icon {
    font-size: 0.7rem;
    opacity: 0.8;
}


/* Long read indicator for longer articles */
.reading-time.long-read {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
}

.reading-time.long-read:hover {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.3);
}

[data-bs-theme="dark"] .reading-time.long-read {
    color: #ffd43b;
    background: rgba(255, 212, 59, 0.15);
    border-color: rgba(255, 212, 59, 0.25);
}

.news-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.news-sources {
    font-weight: 500;
    color: #ff661b;
    font-size: 0.85rem;
}

.news-actions .btn-link {
    color: #6c757d;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.news-actions .btn-link:hover {
    color: #ff661b;
    transform: scale(1.1);
}


/* Sidebar */
.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-section {
    background: white;
    border-radius: 6px;
    padding: 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 1rem;
}

.sidebar-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid #ff661b;
}

/* Trending Topics */
.trending-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-tag {
    background: linear-gradient(135deg, #ff661b, #e6481a);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.topic-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 27, 0.3);
}

/* Weather Card */
.weather-card {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(116, 185, 255, 0.3);
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.weather-icon {
    font-size: 1.5rem;
    opacity: 0.9;
}

.weather-temp {
    font-size: 1.2rem;
    font-weight: 700;
}

.weather-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

.weather-location {
    font-size: 0.8rem;
    opacity: 0.8;
}

.weather-forecast {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.forecast-day {
    text-align: center;
    flex: 1;
}

.forecast-day .day {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.forecast-day .temp {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Market Summary */
.market-summary {
    space-y: 1rem;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid #f1f3f4;
}

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

.market-name {
    font-weight: 600;
    color: #333;
    font-size: 0.75rem;
}

.market-value {
    text-align: right;
}

/* Hero content without image styling */
.hero-content-no-image {
    background: linear-gradient(135deg, var(--bs-dark) 0%, var(--bs-secondary) 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content-no-image .hero-badge {
    background: var(--bs-danger);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.market-value .value {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
}

.market-value .change {
    font-size: 0.8rem;
    font-weight: 500;
}

.market-value.positive .change {
    color: #28a745;
}

.market-value.negative .change {
    color: #dc3545;
}

/* Newsletter Card */
.newsletter-card {
    background: linear-gradient(135deg, #ff661b, #ff8c42);
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
}

.newsletter-text {
    margin-bottom: 1rem;
    opacity: 0.95;
}

.newsletter-form .form-control {
    border: none;
    border-radius: 8px;
    padding: 12px;
}

.newsletter-form .btn {
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
}

.newsletter-form .btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

/* Article Modal */
.modal-xl {
    max-width: 900px;
}

.full-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.article-headline {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
}

.article-paragraph {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: left;
}

.article-sharing .btn {
    border-radius: 20px;
    font-weight: 500;
}

/* Load More Section */
.load-more-section {
    padding: 3rem 0;
}

.load-more-section .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.load-more-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
}

/* Loading State */
.loading-state {
    padding: 5rem 0;
}

.loading-state h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Ad Spaces */
.ad-banner, .sidebar-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.ad-banner:hover, .sidebar-ad:hover {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.ad-banner {
    height: 60px;
    margin-bottom: 0.75rem;
}

.sidebar-ad {
    height: 200px;
    margin-bottom: 0.75rem;
}


.ad-banner::before {
    content: "Advertisement - 728x90 Leaderboard";
}

.sidebar-ad::before {
    content: "Advertisement - 300x250 Rectangle";
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-summary {
        font-size: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .breaking-news-bar {
        padding: 8px 0;
    }
    
    .breaking-label {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    .sidebar-section {
        margin-bottom: 1.5rem;
    }
    
    .weather-card, .newsletter-card {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .news-title {
        font-size: 1rem;
    }
    
    .weather-main {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Hero Link Styles */
.hero-link {
    text-decoration: none !important;
    color: inherit;
    transition: color 0.3s ease;
}

.hero-link:hover {
    color: #007bff;
}

/* News Link Styles */
.news-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

/* Article Page Styles */
.article-content {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.article-breadcrumb .breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.article-meta-top {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.article-category {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-headline {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a1a;
    margin: 1.5rem 0;
    font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
}

.article-sharing {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.sharing-label {
    font-weight: 600;
    color: #333;
}

.article-hero-figure {
    position: relative;
    margin: 2rem 0;
}

.article-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.article-caption {
    font-style: italic;
    padding: 0.5rem 1rem;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-paragraph {
    margin-bottom: 1.8rem;
    text-align: left;
    font-weight: 400;
    line-height: 1.7;
}

.article-paragraph:first-letter {
    font-size: 1.4em;
    font-weight: 600;
    color: #007bff;
}

.in-article-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    margin: 2rem auto;
}

.in-article-ad:hover {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.in-article-ad::before {
    content: "Advertisement - Article Integration";
}

.article-footer {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
}

.article-tags {
    margin-bottom: 2rem;
}

.tags-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.tag-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.original-source {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    margin-bottom: 2rem;
}

.source-card {
    text-align: center;
}

.source-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.source-text {
    color: #666;
    margin-bottom: 1.5rem;
}

.article-share-bottom {
    text-align: center;
}

.share-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-facebook {
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

.btn-twitter {
    background: #1da1f2;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-twitter:hover {
    background: #1991db;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

/* Related Articles */
.related-articles {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.related-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #ff661b;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
    cursor: pointer;
    transform: translateY(0) scale(1);
}

.related-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(102, 126, 234, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    z-index: 1;
}

.related-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: rgba(255, 102, 27, 0.2);
}

.related-item:hover::before {
    opacity: 1;
}

.related-item:active {
    transform: translateY(-2px) scale(0.98);
    transition: all 0.1s ease;
}

.related-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.related-item:hover .related-img {
    transform: scale(1.08);
}

.related-content {
    padding: 1rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.related-item:hover .related-content {
    transform: translateY(-2px);
}

.related-headline {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.related-item:hover .related-headline {
    color: #ff661b;
}

/* Sidebar Ad Styles for Article Page */
.article-left-ads, .article-right-ads {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.sticky-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.sticky-ad:hover {
    border-color: #ff661b;
    background: linear-gradient(135deg, #fff3e0, #ffcc80);
}

.sticky-ad::before {
    content: "Advertisement - Side Banner";
}

.article-newsletter {
    margin-top: 2rem;
}

.newsletter-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.newsletter-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.newsletter-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 10px 12px;
}

.newsletter-form .btn {
    border-radius: 8px;
    font-weight: 600;
}

/* Mobile Responsive for Article */
@media (max-width: 1200px) {
    .article-left-ads, .article-right-ads {
        display: none !important;
    }
    
    .article-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .article-headline {
        font-size: 2.2rem;
    }
    
    .article-content {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .article-sharing {
        padding: 0.75rem;
    }
    
    .share-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .share-buttons .btn {
        width: 100%;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .related-articles {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .article-headline {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-hero-img {
        height: 250px;
    }
    
    .article-sharing {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-sharing .btn {
        width: 100%;
        margin-bottom: 0.25rem;
    }
}

/* Button Styles */
.btn-primary {
    background-color: #ff661b;
    border-color: #ff661b;
    border-radius: 8px;
    font-weight: 500;
}

.btn-outline-primary {
    border-color: #ff661b;
    color: #ff661b;
    border-radius: 8px;
    font-weight: 500;
}

.badge {
    font-weight: 500;
    border-radius: 6px;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-body img {
    border-radius: 12px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

[data-bs-theme="dark"] .article-content {
    color: #ffffff !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-tabs-container {
        gap: 1rem;
    }
    
    .nav-tab {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .sidebar-content {
        margin-top: 2rem;
    }
    
    .featured-article .col-md-7,
    .featured-article .col-md-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .featured-img {
        height: 250px;
    }
    
    /* Hide desktop navigation tabs on tablets */
    .nav-tabs-container {
        display: none !important;
    }
    
    /* Adjust brand text for tablets */
    .brand-name {
        font-size: 1.3rem;
    }
    
    .brand-accent {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* Header adjustments for mobile */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .brand-accent {
        font-size: 0.95rem;
    }
    
    .logo-img {
        width: 28px;
        height: 28px;
    }
    
    /* Content adjustments */
    .featured-title {
        font-size: 1.5rem;
    }
    
    .featured-img {
        height: 200px;
    }
    
    .news-img {
        height: 140px;
    }
    
    /* Mobile menu improvements */
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid #e9ecef;
        padding-top: 1rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Compact header for small screens */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        margin-right: 1rem;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .brand-accent {
        font-size: 0.9rem;
    }
    
    .logo-img {
        width: 24px;
        height: 24px;
    }
    
    /* Content adjustments */
    .featured-content {
        padding: 1.5rem !important;
    }
    
    .featured-title {
        font-size: 1.25rem;
    }
    
    .featured-img {
        height: 180px;
    }
    
    .news-img {
        height: 120px;
    }
    
    /* Mobile menu full width */
    .nav-section .nav-link {
        margin: 0.25rem 0;
        border-radius: 6px;
    }
}

/* Utility Classes */
.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Focus States */
.news-card:focus-visible {
    outline: 2px solid #ff661b;
    outline-offset: 2px;
    border-radius: 12px;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-card {
    animation: fadeIn 0.3s ease-out;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: #f8f9fa !important;
    border-top: 1px solid #e9ecef;
}

/* ===== ABSOLUTE FINAL BRAND COLOR OVERRIDE - MUST BE LAST ===== */
.brand-daily {
    color: #007bff !important;
}

.brand-news {
    color: #dc3545 !important;  
}

[data-bs-theme="dark"] .brand-impax {
    color: #007bff !important;
}

[data-bs-theme="dark"] .brand-news {
    color: #dc3545 !important;
}

html[data-bs-theme="dark"] .brand-impax {
    color: #007bff !important;
}

html[data-bs-theme="dark"] .brand-news {
    color: #dc3545 !important;
}

body[data-bs-theme="dark"] .brand-impax {
    color: #007bff !important;
}

body[data-bs-theme="dark"] .brand-news {
    color: #dc3545 !important;
}

/* ===== MODERN NEWS HEADER STYLES ===== */
.news-header {
    border-bottom: 2px solid #e2e8f0;
    background: #ffffff;
}

.news-brand:hover {
    transform: none;
    text-decoration: none;
}

.brand-icon {
    transition: transform 0.2s ease;
}

.news-brand:hover .brand-icon {
    transform: scale(1.1);
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Theme Toggle Button */
.theme-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Category Navigation */
.category-nav {
    border-bottom: 1px solid #e2e8f0;
}

.category-btn {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.category-btn.active {
    background: #ff661b;
    border-color: #ff661b;
    color: white;
}

.category-btn.active:hover {
    background: #e6481a;
    border-color: #e6481a;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scroll-btn:hover {
    background: #f8fafc;
    color: #334155;
}

/* Dark Theme Styles */
[data-bs-theme="dark"] .news-header {
    background: #1e293b;
    border-bottom-color: #334155;
}

[data-bs-theme="dark"] .category-nav {
    background: #1e293b !important;
    border-bottom-color: #334155;
}

[data-bs-theme="dark"] .category-btn {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .category-btn:hover {
    background: #475569;
    color: #f1f5f9;
}

[data-bs-theme="dark"] .category-btn.active {
    background: #ff661b;
    border-color: #ff661b;
}

[data-bs-theme="dark"] .theme-toggle,
[data-bs-theme="dark"] .scroll-btn {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .theme-toggle:hover,
[data-bs-theme="dark"] .scroll-btn:hover {
    background: #475569;
}

/* Smaller trending bar for homepage feed */
.trending-bar-small {
    width: 35px;
    height: 3px;
    background: #e3e6f0;
    border-radius: 2px;
    overflow: hidden;
}

/* Improve reactions section alignment */
.reactions-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Removed duplicate trending-meter definition - using the enhanced one below */

/* FIXED TRENDING CONTAINER - TESTED ALIGNMENT */
.trending-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f9f9f9;
    gap: 20px;
    margin: 30px 0;
}

/* MOBILE RESPONSIVE DESIGN */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .ht-navbar {
        padding: 10px 15px;
        position: relative;
    }
    
    .ht-navbar-brand {
        font-size: 1.5rem;
    }
    
    /* Mobile Hamburger Menu */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #ffffff;
        padding: 5px;
        margin-left: auto;
    }
    
    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 123, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 0 0 15px 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        animation: slideDown 0.3s ease;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .mobile-menu a {
        display: block;
        padding: 15px 20px;
        color: white;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: background 0.3s ease;
    }
    
    .mobile-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu a:last-child {
        border-bottom: none;
        border-radius: 0 0 15px 15px;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Hide desktop navigation */
    .ht-navbar-nav {
        display: none;
    }
    
    /* Mobile Layout Adjustments */
    .ht-layout-container {
        padding: 0 10px;
    }
    
    .ht-layout-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    /* Mobile Section Ordering: Featured → Polls → Trending Analysis → Rest */
    .ht-main-content {
        order: 1;
    }
    
    /* Mobile-specific section ordering in sidebars */
    .ht-right-sidebar {
        order: 2;
        display: flex;
        flex-direction: column;
    }
    
    .ht-left-sidebar {
        order: 4;
        display: flex;
        flex-direction: column;
    }
    
    /* Polls section gets special mobile priority */
    #ai-polls-section {
        order: 1 !important;
    }
    
    /* Trending analysis gets mobile priority after polls */
    #sentiment-analysis-section {
        order: 2 !important;
    }
    
    /* All other sidebar sections get lower priority */
    .ht-premium-section:not(#ai-polls-section):not(#sentiment-analysis-section) {
        order: 3 !important;
    }
    
    /* Mobile Article Cards */
    .ht-featured-card {
        margin-bottom: 20px;
        padding: 15px;
        border-radius: 12px;
    }
    
    .ht-featured-card h2 {
        font-size: 1.3rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .ht-featured-card .ht-card-summary {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Mobile Meta Section */
    .article-meta-section {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .article-meta-section .meta-item {
        font-size: 0.75rem;
        padding: 4px 8px;
        min-height: 28px;
    }
    
    /* Mobile Social Section */
    .ht-social-section {
        flex-direction: column;
        gap: 15px;
        padding: 12px;
        align-items: stretch;
    }
    
    .ht-emoji-reactions {
        justify-content: center;
    }
    
    .ht-engagement-section {
        justify-content: center;
    }
    
    .ht-trending-meter {
        min-width: auto;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Mobile Article Detail */
    .article-main-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .article-main-image {
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    .article-paragraph {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    /* Mobile Sidebar Adjustments */
    .ht-premium-section {
        margin-bottom: 20px;
        padding: 15px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    
    .ht-premium-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        text-align: center;
        padding-bottom: 8px;
        border-bottom: 2px solid #ff661b;
    }
    
    .section-article-title {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .section-article-meta {
        margin-top: 8px;
    }
    
    /* Mobile Priority Sections Styling */
    .mobile-polls-section {
        background: linear-gradient(135deg, #fff3cd 0%, #fff 100%) !important;
        border-left: 4px solid #ffc107;
        order: 1 !important;
    }
    
    .mobile-sentiment-section {
        background: linear-gradient(135deg, #d1ecf1 0%, #fff 100%) !important;
        border-left: 4px solid #17a2b8;
        order: 2 !important;
    }
    
    /* Enhanced mobile visibility for polls and sentiment */
    .mobile-polls-section .ht-premium-title,
    .mobile-sentiment-section .ht-premium-title {
        font-size: 1.2rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Mobile Category Badges */
    .category-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    /* Mobile Touch Improvements */
    .combined-emoji-btn {
        min-height: 44px;
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .ht-card-link {
        padding: 12px;
        border-radius: 10px;
    }
    
    /* Mobile Typography */
    .ht-featured-card .ht-card-meta {
        font-size: 0.8rem;
    }
    
    .time-stamp {
        font-size: 0.75rem;
    }
    
    /* Mobile Weather Widget */
    .weather-widget {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .weather-location {
        font-size: 0.9rem;
    }
    
    .weather-temp {
        font-size: 1.4rem;
    }
    
    /* Mobile Scrollbar */
    .mobile-scroll {
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: #007bff transparent;
    }
    
    .mobile-scroll::-webkit-scrollbar {
        height: 4px;
    }
    
    .mobile-scroll::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .mobile-scroll::-webkit-scrollbar-thumb {
        background: #ff661b;
        border-radius: 2px;
    }
}


[data-bs-theme="dark"] .trending-container {
    background: rgba(33, 37, 41, 0.8);
}

/* Reactions block */
.reactions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reactions span {
    font-size: 20px; /* emoji size */
    line-height: 1;
}

.reactions .count {
    font-weight: 600;
    color: #ff6a00;
}

[data-bs-theme="dark"] .reactions .count {
    color: #ff8a50;
}

/* Trending block */
.trending-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.trending-bar .label {
    font-weight: bold;
    color: #ff6a00;
    display: flex;
    align-items: center;
    gap: 4px;
}

[data-bs-theme="dark"] .trending-bar .label {
    color: #ff8a50;
}

.trending-bar progress {
    flex: 1;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    accent-color: #ff6a00;
    border: none;
    background: rgba(255, 106, 0, 0.2);
}

[data-bs-theme="dark"] .trending-bar progress {
    background: rgba(255, 138, 80, 0.2);
    accent-color: #ff8a50;
}

.trending-bar .percent {
    font-weight: bold;
    color: #ff6a00;
    white-space: nowrap;
}

[data-bs-theme="dark"] .trending-bar .percent {
    color: #ff8a50;
}

/* Removed duplicate responsive adjustments - using enhanced mobile styles above */

