/* Base Styles */
:root {
    --bg-color: #f5f7fb;
    --card-bg: #ffffff;
    --accent: #e63946;
    --accent-dark: #b71c1c;
    --text-color: #1e1e1e;
    --muted-text: #6b7280;
    --border-radius: 16px;
    --transition: all 0.25s ease;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

/* Header */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-logo {
    max-height: 48px;
    width: auto;
}

/* Main Content */
.main-content {
    flex: 1 0 auto;
    padding: 2rem 0 3rem;
}

.news-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.news-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 35px 60px -15px rgba(15, 23, 42, 0.2);
}

.news-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 2;
    position: relative;
    overflow: hidden;
    display: block;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 1.75rem 1.5rem 1.5rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-title {
    font-size: clamp(1.35rem, 1.2vw + 1rem, 1.8rem);
    line-height: 1.3;
    margin: 0;
    font-weight: 700;
}


.news-meta {
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-bottom: 0.75rem;
    display: inline-block;
}


.news-detail {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-detail-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-detail-title {
    margin: 0;
    font-size: clamp(1.4rem, 2vw + 1rem, 2.1rem);
    line-height: 1.3;
}

.news-detail-meta {
    color: var(--muted-text);
    font-size: 0.9rem;
}

.news-detail-figure {
    margin: 0;
}

.news-detail-figure img {
    width: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.news-detail-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #1f2937;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-detail-body img,
.news-detail-body iframe,
.news-detail-body video {
    max-width: 100%;
    border-radius: 12px;
}

.news-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-button--external {
    width: auto;
    height: auto;
    padding: 0.95rem 2rem;
    border-radius: 999px;
}

@media (min-width: 900px) {
    .news-detail {
        padding: 2.5rem 3rem;
    }
}

.news-action {
    width: 100%;
    display: flex;
    align-items: stretch;
    margin-top: 1rem;
}

.news-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 1rem;
    line-height: 1.4;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: var(--transition);
}

.news-button:hover,
.news-button:focus-visible {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

.load-more-wrapper {
    margin-top: 2rem;
    text-align: center;
}

.load-more-button {
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 999px;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-button:hover,
.load-more-button:disabled {
    background-color: var(--accent-dark);
}

.load-more-button:disabled {
    cursor: wait;
    opacity: 0.8;
}

.empty-state {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--muted-text);
}

/* Footer */
.site-footer {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 2rem 0;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-link {
    color: #cbd5f5;
    font-weight: 500;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-copy {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.8);
}

