:root {
    --primary-color: #e60023;
    /* News Red */
    --secondary-color: #0d1117;
    /* Dark Background */
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f4f4f4;
    --white: #ffffff;
    --border-color: #ddd;
    --font-family: 'Inter', sans-serif;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Article Page Layout */
.article-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

@media (min-width: 992px) {
    .article-layout-grid {
        grid-template-columns: 3fr 1fr;
        align-items: start;
    }
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: var(--font-family);
}

.top-header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid #f1f1f1;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Left: Weather Widget */
.header-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.weather-widget {
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    /* Slightly larger base size */
    margin-bottom: 4px;
    /* Space before time */
}

.country-name {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #555;
    letter-spacing: 0.5px;
}

.weather-icon i {
    font-size: 1.2rem;
    /* Larger icon */
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.temperature {
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.country-time {
    font-size: 1.6rem;
    /* Large and readable */
    font-weight: 800;
    /* Bold/Modern */
    color: #222;
    line-height: 1.1;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
    /* Monospaced numbers for consistent ticking */
}

/* Center: Logo */
.header-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1;
    text-decoration: none;
}

.logo span {
    color: #D4AF37;
}

.tagline {
    font-family: 'cursive', sans-serif;
    color: #D4AF37;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Right: Socials & Actions */
.header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    /* Slightly increased gap */
}

.socials {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
}

.socials a {
    color: #333;
    font-size: 1rem;
    transition: color 0.2s;
}

.socials a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    /* More breathing room */
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
}

.btn-subscribe-new,
.btn-signin-new {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-subscribe-new:hover,
.btn-signin-new:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-subscribe-new i,
.btn-signin-new i,
.btn-notification i {
    color: #D4AF37;
    /* Consistent gold accent */
}

.divider {
    color: #ddd;
    font-weight: 300;
}

/* Notifications */
.notification-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-notification {
    color: #333;
    font-size: 1.1rem;
    position: relative;
    padding: 5px;
    transition: color 0.2s;
}

.btn-notification:hover {
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    background-color: var(--primary-color);
    /* Red */
    color: white;
    border-radius: 50%;
    border: 2px solid white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Notification Modal */
.notification-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.notification-modal.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.notif-modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-close {
    cursor: pointer;
    font-size: 1.2rem;
    color: #adb5bd;
    transition: color 0.2s;
}

.notif-close:hover {
    color: #495057;
}

.notif-body {
    max-height: 70vh;
    overflow-y: auto;
}

.welcome-msg {
    padding: 25px;
    text-align: center;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-bottom: 1px solid #f1f1f1;
}

.welcome-msg i {
    font-size: 2.5rem;
    color: #D4AF37;
    margin-bottom: 15px;
    display: block;
}

.welcome-msg h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #212529;
}

.welcome-msg p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0;
}

.trending-header {
    padding: 15px 25px 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.trending-list {
    padding-bottom: 10px;
}

.notif-news-item {
    display: flex;
    padding: 15px 25px;
    gap: 15px;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.1s;
    text-decoration: none;
    align-items: center;
}

.notif-news-item:hover {
    background: #f8f9fa;
}

.notif-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notif-content {
    flex: 1;
}

.notif-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin-bottom: 5px;
}

.notif-time {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Blue Nav Bar */
.blue-nav-bar {
    background-color: #0047AB;
    /* Cobalt Blue / Modern Blue */
    color: white;
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    height: 100%;
    align-items: center;
    overflow-x: auto;
    /* Handle many categories */
}

.nav-links li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: capitalize;
    /* Or uppercase */
    white-space: nowrap;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-right {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    display: flex;
    align-items: center;
}

.search-trigger a {
    color: white;
    font-size: 1.1rem;
}


.search-bar input {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
}

/* Hero Section Grid */
.hero {
    margin: 30px 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
}

/* Consolidated with definition below */

/* Sidebar Styling */
.hero-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #edf2f7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.sidebar-item:last-child {
    margin-bottom: 0;
}

.sidebar-item:hover {
    transform: translateX(5px);
}

/* Increased Sidebar Thumb Size */
.sidebar-thumb {
    width: 110px;
    /* Increased from 80px */
    height: 80px;
    /* Increased from 60px */
    border-radius: 6px;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-item:hover .sidebar-thumb img {
    transform: scale(1.1);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: #2d3748;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-meta {
    font-size: 0.75rem;
    margin-top: 5px;
}

/* Modern Running Light Effect */
@keyframes borderRotate {
    100% {
        transform: rotate(1turn);
    }
}

.news-card,
.featured-article {
    position: relative;
    z-index: 0;
    overflow: hidden;
    /* Contain the light */
}

/* The Glowing Line */
.news-card::before,
.featured-article::before {
    content: '';
    position: absolute;
    z-index: -2;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: 50% 50%, 50% 50%;
    background-position: 0 0, 100% 0, 100% 100%, 0 100%;
    /* Gradient Cone for "running" effect */
    background-image: conic-gradient(transparent, transparent, transparent, #0047AB);
    animation: borderRotate 4s linear infinite;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s;
}

/* Show on Hover */
.news-card:hover::before,
.featured-article:hover::before {
    opacity: 1;
}

/* Inner Overlay to hide the center of the gradient (making it a border) */
.news-card::after,
.featured-article::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 2px;
    /* Border Width */
    top: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background: white;
    border-radius: 6px;
    /* Slightly less than parent */
}

/* Article Sidebar Layout */
.article-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

@media (max-width: 900px) {
    .article-layout-grid {
        grid-template-columns: 1fr;
    }
}

.featured-article {
    background: var(--white);
    /* Light Background */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    /* Stacked Layout */
    cursor: pointer;
    transition: transform 0.2s;
    height: 100%;
    min-height: 400px;
}

@media (max-width: 768px) {
    .featured-article {
        flex-direction: column;
    }

    .featured-image {
        height: 250px !important;
        width: 100% !important;
    }
}

.featured-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.featured-image {
    width: 100%;
    height: 350px;
    /* Fixed height for top image */
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.badge {
    /* Keeping badge definition but might be removed in HTML */
    position: absolute;
    top: 15px;
    left: 15px;
    background: #DC2626;
    color: var(--white);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.featured-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-top: 1px solid #f7fafc;
    color: inherit;
}

/* Featured Article Typography - Light Theme */
.featured-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #1a202c;
    /* Dark text */
}

.featured-content .meta {
    color: #718096;
    /* Gray text */
    margin-bottom: 15px;
    /* Tighter spacing */
}

.featured-content .meta i {
    color: #A0AEC0;
}

.featured-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    /* Dark gray text */
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-content .read-more {
    color: #63b3ed;
    /* Light blue link */
    font-weight: 600;
}

.featured-content .read-more:hover {
    color: #90cdf4;
}

.meta {
    font-size: 0.85rem;
    color: #718096;
    /* Gray text */
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta i {
    margin-right: 5px;
    color: #A0AEC0;
}

.card-title {
    font-size: 1.15rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.4;
    color: #1a202c;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-excerpt {
    font-size: 0.95rem;
    color: #4A5568;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4A5568;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    transition: color 0.2s;
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.2s;
}

.read-more:hover i {
    transform: translateX(3px);
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 220px;
    /* Adjusted for 3-col layout */
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .card-image img {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

.card-content {
    padding: 20px;
}

/* Styles moved up */

/* Article Page */
.article-container {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    margin-top: 30px;
    margin-bottom: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.article-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #222;
    max-width: 800px;
    margin: 0 auto;
}

.article-body p {
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #777;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 250px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .search-bar {
        display: none;
        /* Hide search on mobile for simplicity or move it */
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-image {
        height: 300px;
    }
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-grid .ad-banner-full {
    grid-column: 1 / -1;
}

/* Advertisement Styles */
.ad-banner-full {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background-color: #f0f0f0;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 0.8rem;
    border: 1px dashed #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-sidebar {
    width: 100%;
    max-width: 300px;
    height: 250px;
    /* Default to rectangle for safer mobile fit, or 600 for vertical */
    background-color: #f0f0f0;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 0.8rem;
    border: 1px dashed #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 992px) {
    .ad-sidebar {
        height: 600px;
        /* Taller on desktop */
    }
}

/* Search Bar Update */
.search-bar-wrapper {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2px 10px;
    display: flex;
    align-items: center;
}

.search-bar-wrapper input {
    border: none;
    outline: none;
    padding: 6px;
    font-size: 0.9rem;
    background: transparent;
    width: 200px;
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    font-size: 0.9rem;
}

.search-btn:hover {
    color: var(--primary-color);
}

/* Subscribe Modal */
/* Subscribe Modal */
.subscribe-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.subscribe-content {
    background-color: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #cbd5e0;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #4a5568;
}

.subscribe-content h2 {
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #1a202c;
    letter-spacing: -0.5px;
}

.subscribe-content p {
    color: #718096;
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.subscribe-content input[type="email"],
.subscribe-content input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    background-color: #f7fafc;
    transition: all 0.2s;
}

.subscribe-content input:focus {
    outline: none;
    border-color: #4299e1;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

.subscribe-content button {
    width: 100%;
    padding: 16px;
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s, background-color 0.2s;
    margin-top: 5px;
}

.subscribe-content button:hover {
    background-color: #2b6cb0;
    transform: translateY(-1px);
}

.subscribe-content button:active {
    transform: translateY(1px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination-btn:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
    color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn i {
    font-size: 0.9rem;
}

/* =========================================
   Modern Comment Section
   ========================================= */
.comment-interactions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.interaction-group {
    display: flex;
    gap: 20px;
    align-items: center;
    color: #4a5568;
    font-weight: 500;
}

.interaction-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.interaction-item:hover {
    color: #0056b3;
    /* Blue hover */
}

.comment-sort-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1rem;
    color: #2d3748;
}

.sort-label {
    font-weight: 700;
    margin-right: 5px;
}

.sort-dropdown-container {
    position: relative;
    cursor: pointer;
}

.current-sort {
    color: #0056b3;
    /* Blue Text */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sort-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 10;
    width: 140px;
    /* Slightly wider */
    overflow: hidden;
}

.sort-menu.active {
    display: block;
    animation: fadeIn 0.2s;
}

.sort-option {
    padding: 10px 15px;
    display: block;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.1s;
}

.sort-option:hover {
    background: #f7fafc;
    color: #0056b3;
}

.sort-option.active {
    background: #edf2f7;
    font-weight: 600;
    color: #0056b3;
}

/* Post Opinion Area */
.post-opinion-area {
    margin-bottom: 40px;
}

.post-opinion-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 15px;
}

.signin-prompt-box {
    background: transparent;
    /* Cleaner look */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.prompt-text {
    color: #718096;
    font-size: 1rem;
}

.btn-signin-blue {
    background-color: #0047AB;
    /* Match Header Blue */
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-signin-blue:hover {
    background-color: #003380;
}

.user-comment-form textarea {
    width: 100%;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.user-comment-form textarea:focus {
    border-color: #0047AB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

.btn-post-comment {
    background: #2d3748;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}

/* Lightbox (Full Size Image View) */
.lightbox-modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    cursor: zoom-out;
    animation: fadeIn 0.3s;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 95%;
    max-height: 95vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
    cursor: default;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
    line-height: normal;
}

.lightbox-close:hover {
    color: #e60023;
}

/* Make article images clickable */
.article-image {
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.article-image:hover {
    opacity: 0.95;
}