@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@700;900&display=swap');

:root {
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --accent: #2b6cb0;
    --accent-hover: #1a365d;
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.03);
    --transition: all 0.3s ease;
}

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

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

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-primary); 
    background: var(--bg-primary); 
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo { 
    font-family: 'Playfair Display', serif; 
    color: var(--text-primary);
}

a { 
    text-decoration: none; 
    color: var(--text-primary); 
    transition: var(--transition);
}

.container { 
    width: 100%;
    max-width: none; 
    margin: 0 auto; 
    padding: 0 clamp(1.5rem, 4vw, 4rem); 
    min-height: 120vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
header { 
    padding: 5rem 0 3rem; 
    text-align: center; 
    margin-bottom: 4rem; 
}

.logo { 
    font-size: 4rem; 
    font-weight: 900; 
    letter-spacing: -1px; 
    margin-bottom: 1.5rem; 
    color: var(--text-primary);
}

nav { 
    border-top: 1px solid var(--border); 
    border-bottom: 1px solid var(--border); 
    padding: 1rem 0; 
    background: var(--bg-primary);
}

nav ul { 
    list-style: none; 
    display: flex; 
    justify-content: center; 
    gap: 4rem; 
}

nav a { 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 1px;
    color: var(--text-secondary);
}

nav a:hover { 
    color: var(--accent); 
}

/* Layout - Front Page */
.news-layout { 
    display: grid; 
    grid-template-columns: 3fr 1fr; 
    gap: 3rem; 
    margin-bottom: 5rem; 
}

.news-main {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.news-main h1 { 
    font-size: 3.5rem; 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
}

.news-main p { 
    font-size: 1.15rem; 
    color: var(--text-secondary);
    margin-bottom: 2rem; 
}

.news-main img { 
    width: 100%; 
    height: clamp(280px, 38vw, 400px) !important;
    max-height: none !important;
    aspect-ratio: 2 / 1;
    object-fit: cover; 
    border-radius: var(--radius); 
    margin-bottom: 1.5rem; 
    box-shadow: var(--shadow-sm);
}

.news-main a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
}

.news-main a:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Sidebar */
.news-side { 
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.news-side h2 { 
    font-size: 1.5rem; 
    margin-bottom: 1.5rem; 
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
}

.side-item { 
    padding-bottom: 1rem; 
    margin-bottom: 1rem; 
    border-bottom: 1px solid var(--border);
}

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

.side-item a h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    transition: var(--transition);
}

.side-item a:hover h3 {
    color: var(--accent);
}

/* Grid Section */
.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem; 
    margin-bottom: 5rem;
}

.grid-item {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.grid-item img { 
    width: 100%; 
    height: 220px !important; 
    aspect-ratio: 4 / 3;
    object-fit: cover; 
    border-bottom: 1px solid var(--border);
}

.grid-item h3 { 
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem; 
    font-weight: 600;
    padding: 1.5rem; 
    line-height: 1.4;
}

.grid-item a:hover h3 {
    color: var(--accent);
}

/* Article & Core Pages */
.article-page { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 4rem; 
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 5rem; 
}

.article-page section {
    margin-bottom: 2.5rem;
}

.article-page h1 { 
    font-size: 3.5rem; 
    line-height: 1.2; 
    margin-bottom: 1.5rem; 
}

.article-page h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-hover);
}

.article-page img { 
    width: 100%; 
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: var(--radius); 
    margin: 2rem 0; 
    box-shadow: var(--shadow-md);
}

/* Keep article lead images aligned even when older pages contain inline sizing. */
.container > img {
    width: 100%;
    height: clamp(280px, 42vw, 500px) !important;
    max-height: none !important;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 0 auto 2rem;
}

.article-page p, .article-page li { 
    font-size: 1.15rem; 
    line-height: 1.8; 
    margin-bottom: 1.5rem; 
    color: var(--text-secondary);
}

.article-page ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

/* Footer */
footer { 
    margin-top: auto;
    border-top: 1px solid var(--border); 
    padding: 4rem 0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

footer ul { 
    list-style: none; 
    display: flex; 
    gap: 2rem; 
}

footer a {
    color: var(--text-secondary);
    font-weight: 500;
}

footer a:hover {
    color: var(--accent);
}

/* Responsive Design */
@media (max-width: 992px) {
    .news-layout { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .logo { font-size: 3rem; }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    nav ul { flex-direction: column; gap: 1rem; text-align: center; }
    .article-page { padding: 2rem; }
    .grid-item img { height: 200px !important; }
    .article-page h1, .news-main h1 { font-size: 2.5rem; }
    footer { flex-direction: column; gap: 1.5rem; text-align: center; }
}
