/* Red, Black, and White Color Palette with News Aesthetic (White Default) */
:root {
    --primary-color: #c8102e; /* Vibrant red */
    --primary-hover: #a50d26; /* Darker red for hover */
    --secondary-color: #000000; /* Pure black */
    --accent-color: #ff4040; /* Bright red accent */
    --light-color: #ffffff; /* Pure white */
    --dark-color: #000000; /* Pure black for text */
    --gray-color: #666666; /* Dark gray for contrast */
    --success-color: #10b981; /* Kept original success color */
    --card-bg: rgba(255, 255, 255, 0.98); /* White for cards */
    --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.08); /* Light shadow */
    --card-hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* Light hover shadow */
    --glass-bg: rgba(255, 255, 255, 0.25); /* White-tinted glass */
    --glass-border: rgba(200, 16, 46, 0.18); /* Red-tinted border */
    --text-color: #000000; /* Pure black for strong readability */
    --text-secondary: #333333; /* Very dark gray for secondary text */
    --blue-color: #1e90ff; /* Dodger blue for content */
}

/* Authentic Newspaper Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Merriweather:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@400;700&display=swap');

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

.main-content {
    width: 100%;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #e5e5e5 100%); /* White to light gray gradient */
    animation: fadeIn 0.6s ease-out;
}

body {
    font-family: 'Merriweather', serif; /* Classic body text font */
    line-height: 1.6;
    color: var(--text-color); /* Pure black text */
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 50%, #e0e0e0 100%); /* White to gray gradient */
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    animation: slideUp 0.5s ease-out;
}

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

/* Premium Typography with Newspaper Hierarchy */
h1, h2 {
    font-family: 'Playfair Display', serif; /* Elegant headline font */
    font-weight: 700; /* Bold for newspaper effect */
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text-color); /* Pure black */
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

h1 { font-size: 2.5rem; } /* Main headline size */
h2 { font-size: 2rem; margin-bottom: 1rem; }

h3, h4 {
    font-family: 'Cinzel', serif; /* Decorative font for subheadings */
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: var(--text-color); /* Pure black */
}

h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary); /* Very dark gray */
    line-height: 1.7;
    font-size: 1rem; /* Standard readable size */
}

/* Premium Glassmorphism Buttons with Press Effect */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color)); /* Red to black */
    color: var(--light-color); /* White */
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Cinzel', serif; /* Sophisticated button text */
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-hover), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 16, 46, 0.4);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(200, 16, 46, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
    background-clip: padding-box;
}

.btn-outline:hover {
    background: rgba(200, 16, 46, 0.1);
    color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Frosted Glass Navigation - Newspaper Header Style */
.navbar {
    background: var(--glass-bg); /* White-tinted glass base */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: none;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    height: 50px;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom: 1px solid rgba(200, 16, 46, 0.1); /* Red-tinted border */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1), 0 4px 16px 0 rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.05), 0 6px 20px 0 rgba(0, 0, 0, 0.03), 0 0 0 1px rgba(255, 255, 255, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    flex-direction: row;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 25px;
    right: 5px;
    z-index: 100;
    width: 15px;
    height: 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    background: rgba(245, 245, 245, 0.7);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.theme-toggle i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.theme-toggle.dark i {
    transform: rotate(180deg);
}

/* Dark Mode Styles (Enhanced Visibility with Blue and Red) */
body.dark-mode {
    background: linear-gradient(135deg, #0a0a0a 0%, #1c2526 100%); /* Deep dark gradient */
    color: var(--blue-color); /* Default blue for content */
}

body.dark-mode .main-content {
    background: #1c2526; /* Solid dark background */
    padding: 1rem;
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4 {
    color: transparent; /* Use gradient for titles */
    background: linear-gradient(135deg, #c8102e 0%, var(--blue-color) 100%); /* Red to blue gradient */
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* Stronger shadow */
}

body.dark-mode .navbar {
    background: rgba(10, 10, 10, 0.9); /* Darker, more opaque glass */
    border-bottom: 1px solid #c8102e;
    box-shadow: 0 2px 10px rgba(200, 16, 46, 0.5); /* Stronger shadow */
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
}

body.dark-mode .navbar.scrolled {
    background: rgba(15, 15, 15, 0.95);
    box-shadow: 0 2px 15px rgba(200, 16, 46, 0.6);
}

body.dark-mode .btn {
    background: linear-gradient(to right, #c8102e, #4a4a4a);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.6); /* Stronger shadow */
}

body.dark-mode .btn:hover {
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.8);
}

body.dark-mode .btn-outline {
    border-color: #ff4040;
    color: #ff4040;
}

body.dark-mode .btn-outline:hover {
    background: rgba(255, 64, 64, 0.3); /* Increased opacity */
    color: #a50d26;
    border-color: #a50d26;
}

body.dark-mode .article-card {
    background: rgba(25, 25, 25, 0.95); /* Slightly lighter dark */
    border: 1px solid rgba(200, 16, 46, 0.2); /* More visible red border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); /* Stronger shadow */
}

body.dark-mode .article-card:hover {
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.8); /* Enhanced hover */
    border-color: rgba(200, 16, 46, 0.3);
}

body.dark-mode .article-image::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent); /* Darker gradient */
}

body.dark-mode .article-image img {
    filter: brightness(0.85); /* Adjusted for visibility */
}

body.dark-mode .article-content h6 {
    color: transparent; /* Use gradient for h6 */
    background: linear-gradient(135deg, #c8102e 0%, var(--blue-color) 100%); /* Red to blue */
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5); /* Shadow for readability */
}

body.dark-mode .article-summary,
body.dark-mode p {
    color: var(--blue-color); /* Blue for content text */
}

body.dark-mode .article-meta {
    color: #87ceeb; /* Light sky blue for meta text */
}

body.dark-mode .article-stat {
    color: #87ceeb; /* Light sky blue */
}

body.dark-mode .article-stat:hover {
    color: #ff4040; /* Red on hover */
}

/* Logo and Navigation */
.logo {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--dark-color);
    text-decoration: none;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    font-family: 'Playfair Display', serif;
    transition: all 0.3s ease;
}

.logo:hover {
    letter-spacing: 0px;
}

#news-logo {
    font-size: 1.1rem;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5); /* Added shadow */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    font-size: 0.95rem;
    font-family: 'Merriweather', serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    animation: underlineGrow 0.3s ease-out;
}

@keyframes underlineGrow {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Premium Article Cards with Newspaper Layout */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.featured-article {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

@media (max-width: 768px) {
    .featured-article {
        grid-template-columns: 1fr;
    }
    .navbar .container {
        flex-direction: column;
    }
}

.article-card {
    background: var(--card-bg);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: cardAppear 0.6s ease-out;
    animation-fill-mode: backwards;
}

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

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(255, 255, 255, 0.8);
}

.article-image {
    height: 150px;
    overflow: hidden;
    position: relative;
}

.article-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(28, 37, 38, 0.5), transparent);
    z-index: 1;
    transition: all 0.5s ease;
}

.article-card:hover .article-image::before {
    height: 60%;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

.article-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    color: var(--gray-color);
    font-family: 'Merriweather', serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content h6 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    flex: 1;
    font-family: 'Playfair Display', serif;
}

.article-summary {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    font-family: 'Merriweather', serif;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 0.7rem;
}

.article-stats {
    display: flex;
    gap: 0.5rem;
}

.article-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-color);
    transition: color 0.3s ease;
}

.article-stat:hover {
    color: var(--primary-color);
}

/* Featured Article with Newspaper Headline Style */
.featured-article .article-image {
    height: 300px;
    border-radius: 0.75rem;
}
/* Theme Toggle Animation */
.theme-toggle .theme-icon {
    transition: transform 0.5s ease; /* Smooth rotation transition */
}

.theme-toggle .theme-icon.rotate {
    transform: rotate(360deg); /* Full rotation for sun effect */
}

body.dark-mode .theme-toggle .theme-icon path {
    fill: #d4a017; /* Darker yellow for dark mode to mimic sunset */
}

body:not(.dark-mode) .theme-toggle .theme-icon path {
    fill: #ffd700; /* Bright yellow for light mode like a sun */
}
.featured-article .article-image::before {
    height: 100%;
    width: 100%;
    background: linear-gradient(to right, rgba(28, 37, 38, 0.3), transparent); /* Black with opacity */
}

.featured-article .article-content {
    padding: 1rem 0.5rem;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.featured-article h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--light-color); /* White */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.featured-article .article-summary {
    color: rgba(255, 255, 255, 0.9); /* White with opacity */
    font-size: 1rem;
    margin-bottom: 2rem;
    -webkit-line-clamp: 5;
}

.featured-article .article-meta {
    color: rgba(255, 255, 255, 0.8); /* White with opacity */
}

/* Sleek Modern Modals with Newspaper Detail */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.4s ease-out;
}

.modal-content {
    background: var(--card-bg); /* White with opacity */
    margin: 3rem auto;
    padding: 2.5rem;
    border-radius: 1.25rem;
    width: 90%;
    max-width: 650px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Source Serif Pro', serif;
}

.modal-content.large {
    max-width: 850px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Additional News-Specific Enhancements */
.breaking-news-ticker {
    background: linear-gradient(to right, #c8102e, #1c2526); /* Red to black */
    color: #ffffff; /* White text */
    padding: 0.5rem 0;
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    position: relative;
}

.breaking-news-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.date-line {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.8rem;
    color: var(--gray-color); /* #b0b0b0 */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(200, 16, 46, 0.3); /* Red-tinted border */
    padding-bottom: 0.5rem;
}

.byline {
    font-style: italic;
    font-family: 'Source Serif Pro', serif;
    color: var(--secondary-color); /* #1c2526 */
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }
    
    .featured-article h3 {
        font-size: 1.8rem;
    }
    
    .article-image {
        height: 180px;
    }
    
    .featured-article .article-image {
        height: 300px;
    }
}

/* Loading animation for news cards */
@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.loading-card {
    animation: pulse 1.5s ease-in-out infinite;
    background: linear-gradient(90deg, #f5f5f5 25%, #e0e0e0 50%, #f5f5f5 75%); /* Gray to light gray */
    background-size: 200% 100%;
}

/* Newspaper column effect for article content */
.article-body {
    column-count: 2;
    column-gap: 2rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .article-body {
        column-count: 1;
    }
}

/* Dashboard layout */
.dashboard-content {
    grid-template-columns: 1fr 1fr; /* Desktop: 2 columns */
}

/* Existing tablet/mobile code */
@media (max-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 4.75rem;
    cursor: pointer;
    color: var(--gray-color); /* #b0b0b0 */
    transition: all 0.3s;
    background: none;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--dark-color); /* #1a1a1a */
    background: rgba(0, 0, 0, 0.05);
}

/* Elegant Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--dark-color); /* #1a1a1a */
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0; /* Light gray border */
    border-radius: 0.75rem;
    font-family: inherit;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.8); /* White background */
    font-size: 0.9375rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color); /* #c8102e */
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.15); /* Red-tinted shadow */
    background-color: #ffffff; /* White */
}

.form-group textarea {
    min-height: 6rem;
    resize: vertical;
    line-height: 1.6;
}

/* Premium Dashboard Layout */
.reporter-dashboard {
    background: var(--card-bg); /* rgba(255, 255, 255, 0.98) */
    border-radius: 1.25rem;
    box-shadow: var(--card-shadow);
    margin-top: 3rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Auth buttons and user menu */
.auth-buttons, .user-menu {
    display: flex;
    gap: 0.5rem;
}

/* Existing mobile overrides */
@media (max-width: 768px) {
    .auth-buttons .btn {
        padding: 0.5rem 1rem;
    }
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.create-article, .my-articles {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7); /* White background */
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.5); /* Light gray border */
    backdrop-filter: blur(5px);
}

/* Refined Comments Section */
.comments-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.5); /* Light gray border */
}

.comments-list {
    margin-bottom: 2rem;
}

.comment {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7); /* White background */
    border-radius: 0.875rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.5); /* Light gray border */
    transition: all 0.3s;
}

.comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comment-content {
    margin-bottom: 0.75rem;
    color: #1a1a1a; /* Dark color for readability */
    line-height: 1.7;
}

.comment-meta {
    font-size: 0.8125rem;
    color: var(--gray-color); /* #b0b0b0 */
    display: flex;
    justify-content: space-between;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0; /* Light gray border */
    border-radius: 0.75rem;
    min-height: 120px;
    margin-bottom: 1.25rem;
    resize: vertical;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8); /* White background */
    transition: all 0.3s;
}

.comment-form textarea:focus {
    background: #ffffff; /* White */
    border-color: var(--primary-color); /* #c8102e */
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.15); /* Red-tinted shadow */
}

/* Sophisticated Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive Design Enhancements */
@media (max-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .featured-article .article-image {
        height: 300px;
        order: -1;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 1.25rem;
        align-items: flex-start;
    }
    
    .auth-buttons, .user-menu {
        width: auto;
        justify-content: flex-end;
        margin-left: auto;
        gap: 0.5rem;
        transform: translateY(-10%);
    }
}

/* Modified button styles with red interior */
.auth-buttons .btn, .user-menu .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    background: linear-gradient(to right, #c8102e, #ff4040); /* Red gradient */
    color: #ffffff; /* White text for visibility */
    border: none; /* Removes default border if any */
    box-shadow: 0 2px 10px rgba(200, 16, 46, 0.3); /* Red shadow */
}

/* Hover state */
.auth-buttons .btn:hover, .user-menu .btn:hover {
    background: linear-gradient(to right, #a50d26, #c8102e); /* Darker red gradient */
    transform: translateY(-2px) scale(1.02);
}

/* Active state */
.auth-buttons .btn:active, .user-menu .btn:active {
    transform: translateY(1px) scale(0.98);
}

/* Special styling for outline buttons if they exist */
.auth-buttons .btn-outline, .user-menu .btn-outline {
    background: transparent;
    border: 2px solid #c8102e; /* Red border */
    color: #c8102e; /* Red text */
}

.auth-buttons .btn-outline:hover, .user-menu .btn-outline:hover {
    background: rgba(200, 16, 46, 0.1); /* Red-tinted background */
}

/* Modal content */
.modal-content {
    margin: 1.5rem auto;
    padding: 2rem;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.875rem; }
    
    .article-card {
        border-radius: 0.875rem;
    }
    
    .article-content {
        padding: 1.25rem;
    }
    
    .modal-content {
        padding: 1.75rem;
    }
}

/* ===== ADDITIVE ENHANCEMENTS ONLY ===== */
/* (All your original CSS remains untouched) */

/* 1. Scroll Behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* 2. Navbar Scroll Effect */
.navbar {
    transition: all 0.4s ease;
}
.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.98); /* White background */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* 3. Button Micro-Interactions */
.btn {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5); /* White ripple */
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}
.btn:hover::after {
    animation: ripple 1s ease-out;
}
@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* 4. Card Hover Enhancements */
.article-card {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.article-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Reporter dashboard width */
.reporter-dashboard {
    width: 80%; /* Desktop width */
    max-width: 1000px; /* Prevent over-stretching */
}

/* Existing mobile code */
@media (max-width: 768px) {
    .reporter-dashboard {
        width: 90%;
    }
}

/* Clean Zoom-In Animation */
.article-card {
    opacity: 0;
    transform: scale(0.95);
    animation: zoomInFade 0.5s ease-out forwards;
    animation-delay: calc(var(--index) * 0.06s);
}

@keyframes zoomInFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 2;
        transform: scale(1);
    }
}

/* Optional: Subtle hover effect */
.article-card:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) rotateY(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateY(0);
    }
}

/* 6. Input Focus Effects */
.form-group input:focus,
.form-group textarea:focus {
    animation: inputFocus 0.8s infinite alternate;
}
@keyframes inputFocus {
    from {
        box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.3); /* Red shadow */
    }
    to {
        box-shadow: 0 0 0 6px rgba(200, 16, 46, 0.1); /* Lighter red shadow */
    }
}

/* 7. Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.8) 0%, /* White */
        rgba(245, 245, 245, 0.8) 50%, /* Light gray */
        rgba(230, 230, 230, 0.8) 100%); /* Slightly darker gray */
    z-index: -1;
    animation: gradientShift 15s ease infinite;
    background-size: 300% 300%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 8. Logo Animation */
.logo {
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.logo:hover {
    transform: scale(1.05) rotate(-5deg);
}

/* 9. Modal Entrance Effect */
.modal-content {
    animation: modalEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalEntrance {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 10. Scroll-Triggered Animations */
[data-animate] {
    opacity: 0;
    transition: all 0.6s ease-out;
}

[data-animate="fadeUp"] {
    transform: translateY(30px);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* 11. Responsive Animation Adjustments */
@media (max-width: 768px) {
    .article-card {
        animation: fadeIn 0.6s ease-out forwards !important;
    }
    .navbar.scrolled {
        padding: 0.6rem 0;
    }
}

/* 12. Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.reporter-dashboard {
    background: var(--card-bg); /* rgba(255, 255, 255, 0.98) */
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--card-shadow); /* 0 4px 30px rgba(0, 0, 0, 0.08) */
    transition: all 0.3s ease-in-out;
    max-width: 800px;
    margin: 20px auto;
    display: block;
    text-align: center;
}

.reporter-dashboard h2 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color); /* #1a1a1a */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.reporter-dashboard h2 i {
    color: var(--primary-color); /* #c8102e */
    font-size: 28px;
}

.reporter-dashboard:hover {
    box-shadow: var(--card-hover-shadow); /* 0 15px 30px rgba(0, 0, 0, 0.15) */
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .reporter-dashboard {
        width: 90%;
        padding: 15px;
    }

    .reporter-dashboard h2 {
        font-size: 20px;
    }
}

.loading-state, .empty-state, .error-state {
    text-align: center;
    padding: 2rem;
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.like-btn:hover {
    cursor: pointer;
}

.like-btn.liked {
    color: var(--primary-color); /* #c8102e */
}

/* Username styling */
#logged-in-username {
    font-size: 12px;
    color: var(--primary-color); /* #c8102e */
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* ID styling */
#logged-in-id {
    font-size: 5px;
    color: var(--gray-color); /* #b0b0b0 */
    font-family: monospace;
}

/* Profile dropdown container */
#user-profile {
    background: var(--light-color); /* #ffffff */
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: absolute;
    right: 20px;
    top: 50px;
    z-index: 100;
}

/* Share Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Black with opacity */
}

.modal-content {
    background: var(--light-color); /* #ffffff */
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
}

.share-url {
    display: flex;
    margin: 15px 0;
}

#share-link {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--gray-color); /* #b0b0b0 */
    border-radius: 4px 0 0 4px;
}

#copy-link-btn {
    padding: 8px 12px;
    background: var(--primary-color); /* #c8102e */
    color: var(--light-color); /* #ffffff */
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.social-share {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-btn {
    padding: 8px 12px;
    border-radius: 4px;
    color: var(--light-color); /* #ffffff */
}

.social-btn.facebook { background: #3b5998; } /* Kept as is for brand recognition */
.social-btn.twitter { background: #1da1f2; } /* Kept as is for brand recognition */
.social-btn.linkedin { background: #0077b5; } /* Kept as is for brand recognition */

/* Share Button Styles */
.share-btn {
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-color); /* #b0b0b0 */
}

.share-btn:hover {
    color: var(--primary-color); /* #c8102e */
}

.share-btn.copied {
    color: var(--accent-color); /* #ff4040 */
    animation: pulse 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.comment {
    border-bottom: 1px solid #e5e5e5; /* Light gray */
    padding: 1rem;
    position: relative;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.delete-comment {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--primary-color); /* #c8102e */
    cursor: pointer;
}

.article-comments-preview {
    margin-top: 15px;
    padding: 10px;
    background: var(--light-color); /* #ffffff */
    border-radius: 8px;
    max-height: 150px;
    overflow: hidden;
}

.article-comments-preview h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--text-secondary); /* #4a4a4a */
}

.article-comments-preview p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-color); /* #b0b0b0 */
    white-space: pre-wrap;
}

.view-comments-btn {
    background: none;
    border: none;
    color: var(--primary-color); /* #c8102e */
    font-size: 12px;
    cursor: pointer;
    padding: 5px 0;
    margin-top: 5px;
}

.share-modal {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: min(50%, 200px);
    background: var(--light-color); /* #ffffff */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 12px;
    z-index: 1000;
    animation: modalFadeIn 0.2s ease-out;
    border: none;
    max-height: 180px;
    overflow-y: auto;
    animation: fadeOut 3s ease-in-out forwards;
}

.share-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}

.share-modal-close {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--light-color); /* #ffffff */
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-color); /* #b0b0b0 */
}

.share-modal-close:hover {
    background: #f5f5f5; /* Light gray */
    color: var(--dark-color); /* #1a1a1a */
}

/* Animation to fade out modal */
@keyframes fadeOut {
    0% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.share-title {
    font-weight: 400;
    font-size: 8px;
    color: var(--primary-color); /* #c8102e */
}

.share-input-group {
    position: relative;
    margin: 5px 0;
}

.share-url {
    width: 80%;
    padding: 10px 75px 10px 12px;
    border: 1px solid var(--gray-color); /* #b0b0b0 */
    border-radius: 8px;
    font-size: 13px;
    background: var(--light-color); /* #ffffff */
    box-sizing: border-box;
}

.copy-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 8px;
    background: var(--primary-color); /* #c8102e */
    color: var(--light-color); /* #ffffff */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    height: 24px;
    display: flex;
    align-items: center;
}

/* Adjust input field to prevent text overlap */
.share-url {
    padding-right: 60px;
}

/* Copy button */
.copy-btn:hover {
    background: var(--primary-hover); /* #a50d26 */
    transform: translateY(-1px);
}

/* Social share buttons */
.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color); /* #ffffff */
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.social-btn:hover {
    transform: scale(1.12);
}

.close-share-modal {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-color); /* #b0b0b0 */
    padding: 2px;
    transition: color 0.2s;
}

.close-share-modal:hover {
    color: var(--dark-color); /* #1a1a1a */
}

/* Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.social-share-buttons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.social-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color); /* #ffffff */
    text-decoration: none;
}

.twitter { background: #1DA1F2; } /* Kept for brand recognition */
.facebook { background: #4267B2; } /* Kept for brand recognition */
.linkedin { background: #0077B5; } /* Kept for brand recognition */

.close-share-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray-color); /* #b0b0b0 */
}

.close-share-modal:hover {
    color: var(--dark-color); /* #1a1a1a */
}

/* Share popover */
.share-popover {
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    animation: fadeIn 0.2s ease-out;
}

.share-popover-content {
    position: relative;
    background: var(--light-color); /* #ffffff */
    border-radius: 8px;
    padding: 8px 0;
}

.share-options {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.share-option {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: none;
    border: none;
    text-align: left;
    color: var(--dark-color); /* #1a1a1a */
    cursor: pointer;
    text-decoration: none;
}

.share-option:hover {
    background: #f5f5f5; /* Light gray */
}

.share-option i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.twitter { color: #1DA1F2 !important; } /* Kept for brand recognition */
.facebook { color: #4267B2 !important; } /* Kept for brand recognition */

.share-popover-arrow {
    position: absolute;
    top: -6px;
    left: 15px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--light-color); /* #ffffff */
    filter: drop-shadow(0 -2px 1px rgba(0, 0, 0, 0.1));
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading state */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.fa-spinner {
    font-size: 2.5rem;
    animation: 
        fa-spin 1.5s infinite linear,
        color-wave 3s infinite ease-in-out;
}

.loading-state p {
    font-size: 1.1rem;
    font-weight: 500;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-hover)); /* #c8102e, #ff4040, #a50d26 */
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    width: max-content;
    margin: 0 auto;
}

.loading-state p::after {
    content: "";
    position: absolute;
    right: -5px;
    width: 2px;
    height: 1.2rem;
    background: var(--primary-color); /* #c8102e */
    animation: blink 0.8s infinite step-end;
}

@keyframes color-wave {
    0% { color: var(--primary-color); } /* #c8102e */
    33% { color: var(--accent-color); } /* #ff4040 */
    66% { color: var(--primary-hover); } /* #a50d26 */
    100% { color: var(--primary-color); } /* #c8102e */
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Reporter text */
.reporter-text {
    font-size: 0.8em;
    vertical-align: middle;
}

/* Modern Ticker */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&display=swap');

.modern-ticker {
    --accent-color: var(--primary-color); /* #c8102e */
    --bg-color: var(--dark-color); /* #1a1a1a */
    --text-color: var(--light-color); /* #ffffff */
    
    height: 30px;
    background: var(--bg-color);
    display: grid;
    grid-template-columns: auto 1fr;
    font-family: 'Space Grotesk', sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.ticker-left {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.live-badge {
    background: var(--accent-color); /* #c8102e */
    color: var(--light-color); /* #ffffff */
    font-size: 0.6rem;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 12px;
    text-transform: uppercase;
}

.current-date {
    font-size: 0.8rem;
    color: var(--text-color); /* #ffffff */
    opacity: 0.9;
}

.weather-display {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
}

.weather-icon {
    font-size: 1rem;
}

.ticker-content {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.breaking-flash {
    color: var(--accent-color); /* #c8102e */
    margin: 0 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    animation: flash 2s infinite;
}

.ticker-items {
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    font-size: 0.85rem;
    color: var(--text-color); /* #ffffff */
    padding-left: 20%;
    margin-left: 20px;
    display: inline-block;
    will-change: transform;
    margin-left: 40px;
    transform: translateX(calc(-100% - 40px));
}

@keyframes scroll {
    0% { 
        transform: translateX(0);
    }
    100% { 
        transform: translateX(calc(-100% - 20px));
    }
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ticker-items {
        animation-duration: 12s;
    }
}

/* Modern Footer Styles */
.newsbliz-footer {
    background: linear-gradient(135deg, var(--dark-color), var(--secondary-color)); /* #1a1a1a to #1c2526 */
    color: var(--light-color); /* #ffffff */
    padding: 1.5rem 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-info {
    flex: 1;
    min-width: 200px;
}

.footer-info p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-info a {
    color: var(--primary-color); /* #c8102e */
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-info a:hover {
    opacity: 0.8;
}

.brand-ads {
    text-align: center;
}

.brand-ads p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.brand-logos {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.brand-logos a {
    display: inline-block;
    transition: transform 0.3s;
    filter: grayscale(30%) brightness(1.2);
    opacity: 0.8;
}

.brand-logos a:hover {
    transform: translateY(-3px);
    filter: grayscale(0%) brightness(1.5);
    opacity: 1;
}

.brand-logos img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        text-align: center;
    }
    
    .brand-logos {
        margin-top: 1rem;
        flex-wrap: wrap;
    }
    
    .brand-logos img {
        height: 20px;
    }
}

@media (max-width: 480px) {
    .newsbliz-footer {
        padding: 1rem;
    }
    
    .brand-logos {
        gap: 0.5rem;
    }
    
    .brand-logos img {
        height: 18px;
    }
}
/* Badge styling for LIVE */
.badge {
  position: relative;
  display: inline-block;
  background-color: #ff0000; /* Red background for visibility */
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.75em;
  margin-left: 5px;
  vertical-align: middle;
}

/* Enhance the bounce animation for Comments icon */
.fa-bounce {
  animation: fa-bounce 1.5s ease infinite;
}

/* Optional: Customize the bounce animation for a 'wow' effect */
@keyframes fa-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px) scale(1.2); /* Adds a slight scale for emphasis */
  }
}

/* Ensure icons and text align nicely */
a {
  display: flex;
  align-items: center;
  gap: 8px; /* Space between icon and text */
  text-decoration: none;
  color: inherit;
}

a.active {
  font-weight: bold;
}
  /* Footer Styles */
  .ad-footer {
    position: fixed;
    bottom: -60px;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #f0f4f8, #e0e7f0);
    padding: 6px 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-family: 'Poppins', Arial, sans-serif;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: slideIn 0.6s ease-out forwards;
  }

  .ad-footer.active {
    bottom: 0;
  }

  .ad-carousel {
    display: flex;
    justify-content: space-between;
    height: 55px;
    touch-action: pan-y;
  }

  .carousel-inner {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease-in-out;
  }

  .carousel-slide {
    display: flex;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-out;
  }

  .carousel-slide.active {
    opacity: 1;
    transform: translateY(0);
    animation: bounceIn 0.4s ease-out;
  }

  .carousel-item {
    display: flex;
    align-items: center;
    width: 48%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
  }

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

  .carousel-item img {
    width: 55px;
    height: 45px;
    object-fit: cover;
    margin-right: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }

  .carousel-item img:hover {
    transform: scale(1.1);
  }

  .ad-text {
    font-size: 13px;
    color: #1a2e44;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    border-right: 1px solid #1a2e44;
    animation: typing 2.5s steps(20, end), blink-caret 0.7s step-end infinite;
    padding-right: 2px;
  }

  /* Animations */
  @keyframes slideIn {
    0% { bottom: -60px; }
    70% { bottom: 5px; }
    100% { bottom: 0; }
  }

  @keyframes bounceIn {
    0% { transform: translateY(10px); opacity: 0; }
    50% { transform: translateY(-5px); opacity: 0.8; }
    70% { transform: translateY(3px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
  }

  @keyframes typing {
    from { width: 0; }
    to { width: 100%; }
  }

  @keyframes blink-caret {
    50% { border-color: transparent; }
  }

  /* Responsive Adjustments */
  @media (max-width: 600px) {
    .ad-footer {
      padding: 4px 10px;
    }
    .ad-carousel {
      height: 45px;
    }
    .carousel-item img {
      width: 40px;
      height: 30px;
    }
    .ad-text {
      font-size: 11px;
    }
  }
/* Like Button Animations */
.like-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.like-btn:hover {
    opacity: 0.8;
}

.like-btn:active {
    transform: scale(0.95);
}

.like-btn i {
    transition: all 0.3s ease;
}

.like-btn .like-count {
    transition: all 0.3s ease;
}

/* Heart beat animation */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1.3);
    }
    75% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Pulse animation for the button */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* When liked */
.like-btn.liked i {
    color: #FF0050 !important;
    animation: heartBeat 0.4s ease-in-out;
}

.like-btn.liked .like-count {
    color: #FF0050;
    font-weight: bold;
}

.like-btn.liked {
    animation: pulse 0.3s ease-in-out;
}

/* Bounce animation alternative */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: scale(1);
    }
    40%, 43% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1.1);
    }
    90% {
        transform: scale(1.2);
    }
}

.like-btn.bounce i {
    animation: bounce 0.6s ease;
}

/* Sparkle effect */
@keyframes sparkle {
    0% {
        text-shadow: 0 0 0px rgba(255, 0, 80, 0);
    }
    50% {
        text-shadow: 0 0 8px rgba(255, 0, 80, 0.8);
    }
    100% {
        text-shadow: 0 0 0px rgba(255, 0, 80, 0);
    }
}

.like-btn.sparkle i {
    animation: sparkle 0.5s ease-in-out;
}
.auth-buttons {
    /* No inline styles on the div, but keeping it for potential future use */
}

#auth-buttons {
    /* Container for buttons - add display/flex if needed */
    display: flex;
    gap: 8px; /* Optional: adds space between buttons */
    align-items: center;
}

#login-btn {
    padding: 3px 6px;
    font-size: 0.5rem;
    height: 22px;
    min-width: 50px;
}

#signup-btn {
    padding: 3px 6px;
    font-size: 0.5rem;
    height: 22px;
    width: 22px;
}

/* Optional: Ensure buttons inherit or override Bootstrap classes properly */
.btn {
    /* Base button styles - only if not already defined by Bootstrap */
}

.btn-outline {
    /* Outline button variant - only if not using Bootstrap */
}

/* Icon and text alignment inside login button */
#login-btn i,
#login-btn span {
    vertical-align: middle;
}

#login-btn span {
    font-size: 0.6em;
}

/* Optional: Hover effects */
#login-btn:hover,
#signup-btn:hover {
    opacity: 0.8;
}