﻿.page-body {
    min-height: 120vh;
}

.page-title {
    margin: 0 0 1.5rem 0;
    font-size: clamp(1.6rem, 3.2vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

.news-header {
    margin-bottom: 2.5rem;
    padding: 2rem;
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.masthead-content {
    flex: 1;
    text-align: center;
}

.site-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
    max-height: 80px;
    background: transparent;
}

.site-title {
    margin: 0 0 0.5rem 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.03em;
}

.site-tagline {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-muted);
    font-weight: 400;
}

.content-wrapper {
    max-width: 100%;
    padding: 0 1rem;
}

.articles-section {
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Load More Trigger for Infinite Scroll */
.load-more-trigger {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.load-more-trigger.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Load More Button (fallback) */
.load-more-btn {
    display: block;
    margin: 2rem auto 0;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Dynamic No Articles State */
#no-articles {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

#no-articles p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-muted);
}
