/* Updated with modern design tokens and flexible article layouts */
:root {
    --background: #fafaf9;
    --foreground: #1c1917;
    --card: #ffffff;
    --card-foreground: #1c1917;
    --popover: #ffffff;
    --popover-foreground: #1c1917;
    --primary: #1e293b;
    --primary-foreground: #ffffff;
    --secondary: #c2410c;
    --secondary-foreground: #ffffff;
    --muted: #f5f5f4;
    --muted-foreground: #78716c;
    --accent: #dc2626;
    --accent-foreground: #ffffff;
    --destructive: #dc2626;
    --destructive-foreground: #ffffff;
    --border: #e7e5e4;
    --input: #ffffff;
    --ring: #1e293b;
    --chart-1: #dc2626;
    --chart-2: #c2410c;
    --chart-3: #1e293b;
    --chart-4: #78716c;
    --chart-5: #f5f5f4;
    --radius: 0.375rem;
    --sidebar: #ffffff;
    --sidebar-foreground: #1c1917;
    --sidebar-primary: #dc2626;
    --sidebar-primary-foreground: #ffffff;
    --sidebar-accent: #1e293b;
    --sidebar-accent-foreground: #ffffff;
    --sidebar-border: #e7e5e4;
    --sidebar-ring: #dc2626;
}

/* Custom styles for ConcernNepal */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap");

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    font-weight: 400;
}

.hero-section {
    /* Replaced gradient with solid color */
    background: #0f172a;
    color: var(--primary-foreground);
    border-bottom: 3px solid var(--accent);
    position: relative;
}

    .hero-section::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--accent), transparent);
    }

    .hero-section .display-4 {
        font-family: "Playfair Display", serif;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
        border-color: var(--accent);
    }

.header-nav {
    background: #ffffff;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    color: black;
}

/* Added flexible article display layouts */
.article-banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

    .article-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

.article-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: white;
    padding: 3rem 2rem 2rem;
}

    .article-banner-overlay h2 {
        font-family: "Playfair Display", serif;
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
        line-height: 1.2;
    }

.article-video-focused {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

    .article-video-focused .video-content {
        padding: 1.5rem;
    }

.article-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}

    .article-video-container iframe,
    .article-video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

.article-minimal {
    border-left: 4px solid var(--accent);
    padding: 1.5rem 0 1.5rem 2rem;
    background: var(--background);
    margin-bottom: 1.5rem;
}

    .article-minimal h5 {
        font-family: "Playfair Display", serif;
        font-weight: 600;
        font-size: 1.25rem;
        line-height: 1.3;
    }

.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--muted);
}

    .article-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .article-gallery-item:hover img {
        transform: scale(1.05);
    }

.featured-badge {
    background: var(--accent);
    color: var(--accent-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Enhanced typography and spacing */
.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.social-links a {
    transition: color 0.2s ease-in-out;
    color: var(--muted-foreground);
}

    .social-links a:hover {
        color: var(--primary) !important;
    }

.article-content {
    line-height: 1.7;
    font-size: 1.1rem;
    color: var(--foreground);
}

    .article-content p {
        margin-bottom: 1.5rem;
    }

    .article-content h1,
    .article-content h2,
    .article-content h3 {
        font-family: "Playfair Display", serif;
        color: var(--primary);
        margin-top: 2rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .article-content blockquote {
        border-left: 4px solid var(--accent);
        padding-left: 2rem;
        margin: 2rem 0;
        font-style: italic;
        color: var(--muted-foreground);
        background: var(--muted);
        padding: 1.5rem 2rem;
        border-radius: 0 var(--radius) var(--radius) 0;
        font-size: 1.1rem;
    }

.publisher-info {
    font-weight: 500;
    color: var(--primary);
}

.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
    font-weight: 500;
}

    .btn-primary:hover {
        background-color: #0f172a;
        border-color: #0f172a;
    }

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

    .btn-outline-primary:hover {
        background-color: var(--primary);
        border-color: var(--primary);
        color: var(--primary-foreground);
    }

/* Added breaking news sidebar and thumbnail styles */
.breaking-news-main .card {
    margin-bottom: 2rem;
}

.breaking-news-sidebar {
    background: var(--muted);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--destructive);
}

/* Added new banner styles for full-width display and text overlay functionality */
.breaking-news-banner {
    margin-bottom: 3rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    position: relative;
}

.banner-container {
    position: relative;
    background: #000;
}

.banner-image {
    height: 600px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.banner-video-container {
    position: relative;
    width: 100%;
    height: 600px;
    background: #000;
}

    .banner-video-container iframe,
    .banner-video-container video {
        width: 100%;
        height: 100%;
        border: none;
    }

.banner-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 3rem 0;
}

.banner-text-below {
    padding: 2rem 0;
    background: var(--background);
}

.breaking-badge {
    background: var(--accent);
    color: var(--accent-foreground);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.banner-title {
    font-family: "Playfair Display", serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8);
}

.banner-detail {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
    max-width: 800px;
    font-weight: 400;
}

.banner-meta {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Professional section headers with news website styling */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    position: relative;
}

    .section-header::after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 60px;
        height: 2px;
        background: var(--accent);
    }

.section-title {
    font-family: "Playfair Display", serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .section-title i {
        color: var(--accent);
        font-size: 1.75rem;
    }

/* Enhanced thumbnail grid for breaking news */
.breaking-news-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.breaking-news-thumbnail {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .breaking-news-thumbnail::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--destructive);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .breaking-news-thumbnail:hover::before {
        transform: scaleY(1);
    }

    .breaking-news-thumbnail:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-color: var(--destructive);
    }

.thumbnail-img {
    height: 140px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: calc(var(--radius) - 2px);
    margin-bottom: 1rem;
}

.thumbnail-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .thumbnail-title:hover {
        color: var(--destructive);
    }

.thumbnail-meta {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

/* Enhanced article cards for main content sections */
.article-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

    .article-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
        border-color: var(--accent);
    }

.article-card-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-card-image {
    transform: scale(1.02);
}

.article-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .article-card-title:hover {
        color: var(--accent);
    }

.article-card-excerpt {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.article-card-meta {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

/* Professional button styling */
.btn-view-all {
    background: var(--accent);
    color: var(--accent-foreground);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

    .btn-view-all:hover {
        background: #b91c1c;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
        color: var(--accent-foreground);
    }

/* Professional news grid layout system */
.news-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-grid-main {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.news-grid-featured {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-grid-articles {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Added CNN/FOX-style sidebar and placeholder styles */
.sidebar-articles {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

    .sidebar-articles .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

.sidebar-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-article-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

    .sidebar-article-item:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    .sidebar-article-item:hover {
        transform: translateX(4px);
    }

.sidebar-article-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: var(--radius);
}

.sidebar-article-placeholder {
    background: linear-gradient(135deg, var(--muted) 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    font-size: 1.5rem;
}

.sidebar-article-title {
    font-family: "Playfair Display", serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .sidebar-article-title:hover {
        color: var(--accent);
    }

.sidebar-article-meta {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

/* Added professional placeholder styles for missing images */
.article-card-placeholder {
    background: linear-gradient(135deg, var(--muted) 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    font-size: 2.5rem;
    opacity: 0.6;
}

/* Animation and interaction enhancements */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Enhanced responsive design for mobile-first approach */
@media (max-width: 1200px) {
    .news-grid-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar-articles {
        position: static;
        margin-top: 2rem;
    }

    .sidebar-articles-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .banner-title {
        font-size: 3rem;
    }
}

@media (max-width: 991px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }

    .banner-image {
        height: 400px;
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .banner-detail {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .news-grid-articles {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .top-bar {
        font-size: 0.75rem;
    }

    .top-bar-social {
        gap: 0.5rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .site-tagline {
        font-size: 0.7rem;
    }

    #headerLogo {
        height: 50px;
    }

    #mainHeader.shrink #headerLogo {
        height: 40px;
    }

    .btn-live-updates {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .category-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1020;
    }

        .category-nav.show {
            display: block;
        }

        .category-nav .nav {
            flex-direction: column;
        }

        .category-nav .nav-link {
            border-bottom: 1px solid var(--border);
            border-left: 3px solid transparent;
        }

            .category-nav .nav-link.active {
                border-bottom-color: var(--border);
                border-left-color: var(--accent);
            }
}

@media (max-width: 768px) {
    .banner-image {
        height: 300px;
    }

    .banner-title {
        font-size: 2rem;
    }

    .banner-text-overlay {
        padding: 2rem 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .article-card-image {
        height: 180px;
    }

    .top-bar-date span:not(:first-child) {
        display: none;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .btn-live-updates span {
        display: none;
    }
}

@media (max-width: 576px) {
    .banner-image {
        height: 250px;
    }

    .banner-title {
        font-size: 1.75rem;
    }

    .banner-detail {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .news-grid-articles {
        grid-template-columns: 1fr;
    }

    .subscription-form .form-control,
    .subscription-form .btn {
        min-height: 52px;
        font-size: 0.95rem;
        padding: 0.875rem 1rem;
    }

    .subscription-container {
        padding: 1.5rem 1rem !important;
    }

    .subscription-input-group {
        gap: 0.75rem;
    }
}

/* Toast notification styling */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    min-width: 300px;
}

    .toast-notification.show {
        transform: translateX(0);
    }

    .toast-notification.success {
        border-left: 4px solid #198754;
    }

    .toast-notification.error {
        border-left: 4px solid #dc3545;
    }

    .toast-notification.info {
        border-left: 4px solid #0dcaf0;
    }

/* Added styles for different display types */
.article-display.banner .banner-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.article-display.minimal .minimal-content {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 65ch;
    margin: 0 auto;
}

.article-display.imagegallery .additional-images img {
    transition: transform 0.2s ease;
}

    .article-display.imagegallery .additional-images img:hover {
        transform: scale(1.05);
    }

.featured-indicator {
    animation: pulse 2s infinite;
}

.video-container {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Replaced inline styles with CSS classes */
.article-banner-img {
    height: 400px;
    object-fit: cover;
}

.article-gallery-img {
    max-height: 500px;
    object-fit: contain;
}

.article-additional-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
}

.img-placeholder-height {
    height: 300px;
}

.subscription-section {
    margin-top: 3rem;
    background: #0d6efd;
}

/* Enhanced engagement metrics styling */
.engagement-metrics {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #dee2e6;
}

.stat-item {
    transition: transform 0.2s ease;
}

    .stat-item:hover {
        transform: translateY(-2px);
    }

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.stat-number {
    font-size: 1.1rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.social-share-enhanced .btn-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.share-btn {
    transition: all 0.3s ease;
    border: none;
    padding: 0.5rem 1rem;
}

    .share-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .share-btn:first-child {
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }

    .share-btn:last-child {
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
    }

/* Added modern responsive header styling */
.top-bar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 2px solid var(--accent);
}

.top-bar-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .top-bar-social a {
        color: rgba(255, 255, 255, 0.8);
        transition: all 0.2s ease;
        font-size: 0.9rem;
    }

        .top-bar-social a:hover {
            color: var(--accent);
            transform: translateY(-2px);
        }

.language-switcher {
    position: relative;
    z-index: 1050;
}

    .language-switcher select {
        background: rgba(255, 255, 255, 0.15);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 0.375rem;
        padding: 0.375rem 2rem 0.375rem 0.75rem;
        font-size: 0.875rem;
        cursor: pointer;
        transition: all 0.2s ease;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.5rem center;
        background-size: 12px;
    }

        .language-switcher select:hover {
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.5);
        }

        .language-switcher select:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
        }

        .language-switcher select option {
            background: #1e293b;
            color: white;
            padding: 0.5rem;
        }

#mainHeader {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

    #mainHeader.shrink {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

.header-main {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

#headerLogo {
    height: 60px;
    transition: height 0.3s ease-in-out;
}

#mainHeader.shrink #headerLogo {
    height: 45px;
}

.site-title {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    line-height: 1;
}

.site-tagline {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin: 0;
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-live-updates {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

    .btn-live-updates:hover {
        background: #b91c1c;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
        color: white;
    }

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.category-nav {
    background: #fff;
    padding: 0;
    border-bottom: 1px solid var(--border);
}

    .category-nav .nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .category-nav .nav::-webkit-scrollbar {
            display: none;
        }

    .category-nav .nav-link {
        color: var(--foreground);
        font-weight: 500;
        padding: 1rem 1.25rem;
        white-space: nowrap;
        border-bottom: 3px solid transparent;
        transition: all 0.2s ease;
        font-size: 0.95rem;
    }

        .category-nav .nav-link:hover {
            color: var(--accent);
            background: var(--muted);
        }

        .category-nav .nav-link.active {
            color: var(--accent);
            border-bottom-color: var(--accent);
            font-weight: 600;
        }

.mobile-menu-toggle {
    display: none;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 1.25rem;
}

/** Enhanced main subscription widget responsive styles */
.subscription-main-layout {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.subscription-main-content {
    flex: 1;
    min-width: 0; /* Allow flex shrinking */
}

.subscription-main-form-container {
    flex: 0 0 auto;
    min-width: 320px;
    max-width: 400px;
}

.subscription-main-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.subscription-main-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subscription-main-text {
    flex: 1;
    min-width: 0;
}

.subscription-main-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.subscription-main-desc {
    font-size: 1.1rem;
    margin-bottom: 0;
    opacity: 0.9;
    line-height: 1.4;
}

.subscription-main-features {
    margin-bottom: 0;
}

.subscription-main-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.subscription-main-input-group {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.subscription-main-email-input {
    background: white;
    border: none;
    color: #333;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    min-height: 56px;
    flex: 1;
    min-width: 0; /* Allow flex shrinking */
}

    .subscription-main-email-input:focus {
        background: white;
        border: none;
        box-shadow: none;
        color: #333;
        outline: none;
    }

    .subscription-main-email-input::placeholder {
        color: #6b7280;
    }

.subscription-main-submit-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    color: #1f2937;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    min-height: 56px;
    font-weight: 600;
    flex: 0 0 auto;
    min-width: 140px;
    white-space: nowrap;
}

    .subscription-main-submit-btn:hover {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
    }

.subscription-main-privacy {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.4;
}

/* Footer subscription widget styles - more compact */
.subscription-footer-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.subscription-footer-content {
    flex: 1;
}

.subscription-footer-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.subscription-footer-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subscription-footer-text {
    flex: 1;
    min-width: 0;
}

.subscription-footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.subscription-footer-desc {
    font-size: 0.8rem;
    margin-bottom: 0;
    opacity: 0.9;
    line-height: 1.3;
}

.subscription-footer-features {
    margin-bottom: 0.75rem;
}

.subscription-footer-features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subscription-footer-feature-text {
    font-size: 0.75rem;
    line-height: 1.2;
}

.subscription-footer-form-container {
    width: 100%;
}

.subscription-footer-input-group {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.subscription-footer-email-input {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #333;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    min-height: 44px;
    flex: 1;
    min-width: 0; /* Allow flex shrinking */
}

    .subscription-footer-email-input:focus {
        background: white;
        border: none;
        box-shadow: none;
        color: #333;
        outline: none;
    }

    .subscription-footer-email-input::placeholder {
        color: rgba(107, 114, 128, 0.7);
    }

.subscription-footer-submit-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    color: #1f2937;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    min-height: 44px;
    font-weight: 600;
    flex: 0 0 auto;
    min-width: 100px;
    white-space: nowrap;
}

    .subscription-footer-submit-btn:hover {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        transform: translateY(-1px);
        box-shadow: 0 3px 12px rgba(251, 191, 36, 0.4);
    }

.subscription-footer-privacy {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.3;
}

/* Enhanced responsive breakpoints for better width handling */
@media (max-width: 1200px) {
    .subscription-main-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .subscription-main-form-container {
        min-width: 100%;
        max-width: none;
    }

    .subscription-main-input-group {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 991px) {
    .subscription-main-title {
        font-size: 1.75rem;
    }

    .subscription-main-desc {
        font-size: 1rem;
    }

    .subscription-main-features-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .subscription-main-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .subscription-main-email-input,
    .subscription-main-submit-btn {
        border-radius: 12px !important;
        width: 100%;
        min-width: 100% !important;
        flex: 1 !important;
    }

    /* Footer responsive adjustments */
    .subscription-footer-features-grid {
        flex-direction: column;
        gap: 0.25rem;
    }

    .subscription-footer-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .subscription-footer-email-input,
    .subscription-footer-submit-btn {
        border-radius: 8px !important;
        width: 100%;
        min-width: 100% !important;
        flex: 1 !important;
    }
}

@media (max-width: 768px) {
    .subscription-main-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    .subscription-main-title {
        font-size: 1.5rem;
    }

    .subscription-main-desc {
        font-size: 0.95rem;
    }

    .subscription-main-email-input {
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 52px;
    }

    .subscription-main-submit-btn {
        min-height: 52px;
        font-size: 0.95rem;
    }

    /* Footer mobile adjustments */
    .subscription-footer-layout {
        text-align: center;
    }

    .subscription-footer-header {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .subscription-footer-email-input {
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 42px;
    }

    .subscription-footer-submit-btn {
        min-height: 42px;
    }
}

@media (max-width: 576px) {
    .subscription-main-input-group {
        gap: 0.5rem;
    }

    .subscription-main-email-input,
    .subscription-main-submit-btn {
        min-height: 48px;
        font-size: 0.9rem;
        padding: 0.875rem 1rem;
    }

    /* Footer small screen adjustments */
    .subscription-footer-input-group {
        gap: 0.375rem;
    }

    .subscription-footer-email-input,
    .subscription-footer-submit-btn {
        min-height: 40px;
        font-size: 0.8rem;
        padding: 0.625rem 0.875rem;
    }

    .subscription-footer-privacy {
        font-size: 0.65rem;
    }
}

/* Enhanced Footer Styles - Professional Dark Theme */
.footer-enhanced {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    color: #e5e5e5;
    position: relative;
    overflow: hidden;
}

    .footer-enhanced::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--accent), transparent);
    }

.footer-section {
    height: 100%;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
}

    .footer-brand i {
        color: var(--accent);
        margin-right: 0.5rem;
    }

.footer-description {
    color: #b3b3b3;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s ease;
}

    .stat-item:hover {
        transform: translateY(-2px);
    }

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Added responsive social media icons styling */
.footer-social-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: #b3b3b3;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

    .social-link:hover {
        background: var(--accent);
        color: white;
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
        border-color: var(--accent);
    }

    .social-link i {
        font-size: 0.875rem;
    }

/* Footer bottom section styling */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.footer-copyright {
    color: #999;
    font-size: 0.875rem;
}

.footer-bottom-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.legal-link {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

    .legal-link:hover {
        color: var(--accent);
    }

/* Enhanced responsive design for footer */
@media (max-width: 768px) {
    .footer-stats {
        gap: 1rem;
    }

    .footer-social-links {
        justify-content: center;
        margin-bottom: 1.5rem;
        gap: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

        .social-link i {
            font-size: 1rem;
        }

    .footer-bottom-right {
        align-items: center;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .footer-social-links {
        gap: 0.5rem;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

        .social-link i {
            font-size: 0.8rem;
        }

    .footer-stats {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Utility class for font size */
.fs-7 {
    font-size: 0.875rem !important;
}
