/* News Site — Auto-generated by Engine Berita */
:root {
    --bg: hsl(210, 15%, 96%);
    --bg-card: #ffffff;
    --text: hsl(210, 30%, 12%);
    --text-2: hsl(210, 15%, 35%);
    --text-muted: hsl(210, 10%, 58%);
    --accent: hsl(48, 56%, 48%);
    --accent-dark: hsl(48, 56%, 38%);
    --accent-light-tint: hsl(48, 56%, 68%);
    --secondary: hsl(228, 50%, 44%);
    --border: hsl(210, 12%, 89%);
    --shadow: 3px 3px 0px rgba(0,0,0,0.8);
    --radius: 0px;
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1000px;
    --article-container-width: 680px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: hsl(48, 15%, 8%);
        --bg-card: hsl(48, 12%, 13%);
        --text: hsl(48, 10%, 88%);
        --text-2: hsl(48, 8%, 70%);
        --text-muted: hsl(48, 6%, 50%);
        --accent: hsl(48, 70%, 60%);
        --accent-dark: hsl(48, 70%, 50%);
        --border: hsl(48, 12%, 20%);
        --shadow: 3px 3px 0px rgba(255,255,255,0.8);
    }
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body); background: var(--bg); color: var(--text);
    line-height: 1.75; min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .logo { font-family: var(--font-heading); font-weight: 700; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 16px; padding-bottom: 16px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.25rem; }
.logo-icon { font-size: 1.4rem; }
.logo-text {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text-2); font-size: 0.92rem; font-weight: 600; text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }

/* Hero */
.hero {
    text-align: center; padding: 64px 0 40px;
    animation: fadeIn 0.6s ease-out;
}
.hero h1 {
    font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 1.1rem; color: var(--text-2); max-width: 650px; margin: 0 auto; }

/* Card layout core rules */
.article-card {
    background: var(--bg-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    animation: fadeIn 0.5s ease-out;
}

.article-card h2 { font-size: 1.3rem; margin-bottom: 10px; line-height: 1.4; }
.article-card h2 a { color: var(--text); transition: color 0.2s; }
.article-card h2 a:hover { color: var(--accent); text-decoration: none; }
.article-card .meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.article-card .excerpt { color: var(--text-2); font-size: 0.95rem; line-height: 1.6; }
.read-more {
    display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.9rem;
    color: var(--accent);
}
.read-more:hover { text-decoration: underline; }

.article-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    overflow: hidden;
}
.article-card .card-image {
    width: 280px;
    height: 100%;
    flex-shrink: 0;
}
.article-card .card-content {
    padding: 24px;
    flex: 1;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
@media (max-width: 768px) {
    .article-card {
        flex-direction: column;
    }
    .article-card .card-image {
        width: 100%;
        height: 200px;
    }
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding-bottom: 64px;
}
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.article-card:hover .card-image img {
    transform: scale(1.04);
}

/* Article Page */
.article-container {
    max-width: var(--article-container-width); margin: 0 auto; background: var(--bg-card);
    padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 40px;
}
.article-header { margin-bottom: 28px; }
.article-header h1 { font-size: 2.2rem; line-height: 1.25; margin-bottom: 12px; color: var(--text); }
.article-meta { color: var(--text-muted); font-size: 0.88rem; }
.article-content { font-size: 1.05rem; line-height: 1.85; color: var(--text-2); }
.article-content h2 { margin-top: 36px; margin-bottom: 16px; color: var(--text); font-size: 1.6rem; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.article-content h3 { margin-top: 28px; margin-bottom: 12px; color: var(--text); font-size: 1.3rem; }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin-bottom: 20px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--text); }
.article-content a { color: var(--accent); text-decoration: underline; }
.article-content a:hover { color: var(--accent-dark); }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; color: var(--accent); transition: transform 0.2s; }
.back-link:hover { transform: translateX(-4px); }

/* Premium Author Box */
.author-box {
    margin: 48px 0 20px;
    padding: 28px 24px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-card) 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow);
}
.author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.author-badge {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    font-weight: 700;
}
.author-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 6px 14px;
    background: var(--border);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.author-link:hover {
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
}

/* Footer */
.site-footer {
    text-align: center; padding: 32px 20px; border-top: 1px solid var(--border); margin-top: 48px;
    background: var(--bg-card);
}
.site-footer p { font-size: 0.85rem; color: var(--text-muted); }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* Ad container */
.ad-slot { max-width: var(--container-width); margin: 24px auto; padding: 0 24px; text-align: center; overflow: hidden; }

@keyframes fadeIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@media (max-width: 640px) {
    .hero { padding: 48px 0 24px; }
    .hero h1 { font-size: 1.8rem; }
    .article-container { padding: 24px 16px; border-radius: 0; border-left: none; border-right: none; }
    .article-content { font-size: 1rem; }
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .article-container { padding: 20px 12px; }
    .article-content { font-size: 0.98rem; }
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 0.8rem; }
}
