/* CSS Variables & Design System */
:root {
    --primary-color: #0F172A;
    /* Deep Navy - Trustworthy, News-like */
    --accent-color: #DC2626;
    /* News Red - Action, Breaking */
    --secondary-color: #475569;
    /* Slate - Text/Subtitles */
    --background-color: #F8FAFC;
    /* Light Blue/Grey - Easy on eyes */
    --card-bg: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1280px;
    --header-height: 80px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

/* Layout Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    /* Ensure generous padding on all screen sizes */
}

/* Header */
header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    /* position: sticky; Removed as per user request */
    /* top: 0; Removed as per user request */
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding-top: 1rem;
}

.header-top {
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    align-items: center;
    /* Center horizontally */
    padding-bottom: 1rem;
    gap: 1.5rem;
}

.logo-section {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.logo-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.logo-section img {
    height: 80px;
    /* Slightly larger logo */
    object-fit: contain;
}

.header-ad-space {
    width: 100%;
    max-width: 728px;
    /* Standard leaderboard */
    background: #f1f5f9;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-color);
}

.nav-bar {
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    /* Center menu items */
    gap: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    align-items: center;
}

.nav-social-icon {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-left: 0.5rem;
}

.nav-social-icon:hover {
    color: var(--accent-color);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

/* Main Layout Grid */
.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* 2/3 Content, 1/3 Sidebar */
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Feed Section */
.feed-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 0.5rem;
    /* Removed border-bottom */
}

.feed-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Post Card */
.post-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-content p {
    margin-bottom: 0;
    padding-bottom: 25px;
}

.post-content h2,
.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-meta .date,
.post-meta .author {
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-title a:hover {
    color: var(--accent-color);
}

.post-excerpt {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}

/* In-Feed Ad */
.feed-ad-block {
    background: #f8fafc;
    border: 1px dashed var(--border-color);
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.post-actions {
    display: flex;
    gap: 1rem;
}

.btn-share {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    font-size: 1.1rem;
}

.btn-share:hover {
    color: var(--primary-color);
}

.read-comments {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.widget {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: 0.75rem;
}

.widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Most Read List */
.most-read-list {
    counter-reset: most-read-counter;
}

.most-read-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.most-read-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.most-read-number {
    counter-increment: most-read-counter;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #e2e8f0;
    line-height: 1;
}

.most-read-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.most-read-info h4 a:hover {
    color: var(--accent-color);
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--accent-color);
}

/* Newsletter Widget */
.newsletter-desc {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.btn-primary:hover {
    background: #b91c1c;
}

/* Reporter Banner */
.reporter-banner {
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.65)), url('../images/antique_typewriter_bg.png');
    background-size: cover;
    background-position: center;
    padding: 2rem;
    border-radius: var(--radius-md);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reporter-banner h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.reporter-banner p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.reporter-banner::after {
    content: '\f130';
    /* FontAwesome Microphone */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.05);
    transform: rotate(-15deg);
}



/* Contact Page Form */
.contact-page-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.form-input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

textarea.form-input {
    resize: vertical;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}

/* Footer style optional, but good for completeness */
footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-wrap: wrap;
        /* allow wrapping on small screens */
        gap: 1.5rem;
    }

    .header-ad-space {
        max-width: 100%;
    }
}