@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
:root {
    --bg: #f8fafc;
    --text: #0f172a;
    --surface: #ffffff;
    --border: #e2e8f0;
    --muted: #64748b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 40px; width: auto; object-fit: contain; border-radius: 6px; }
.logo-text { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.5px; }
nav ul { list-style: none; display: flex; gap: 12px; }
nav a {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text);
}
nav a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 90px 0;
    background: var(--hero-gradient);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 80%);
    pointer-events: none;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.25;
    letter-spacing: -1px;
}
.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
    font-weight: 400;
}
.btn-hero {
    display: inline-block;
    background: #ffffff;
    color: var(--primary);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Content Area */
main { padding: 60px 0; min-height: 60vh; }
.section-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.section-sub { color: var(--muted); margin-bottom: 30px; }
.section-divider { width: 50px; height: 4px; background: var(--primary); border-radius: 2px; margin-bottom: 35px; }

/* Article Card Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 30px; }
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: var(--primary);
}
.card-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; background: #e2e8f0; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.card-title { font-size: 1.15rem; font-weight: 700; line-height: 1.45; margin-bottom: 15px; }
.card-title a:hover { color: var(--primary); }
.card-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.5; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Article Detail */
.article-wrap { background: var(--surface); border-radius: 16px; border: 1px solid var(--border); padding: 40px; max-width: 840px; margin: 0 auto; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01); }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; font-weight: 500; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.article-title { font-size: 2.25rem; font-weight: 800; line-height: 1.3; margin-bottom: 20px; letter-spacing: -1px; }
.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.meta-author-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-light); }
.sapo {
    font-size: 1.125rem;
    font-weight: 500;
    color: #334155;
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 35px;
    line-height: 1.75;
}

/* Table of Contents */
.toc {
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 35px 0;
}
.toc-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 12px; }
.toc ol { padding-left: 20px; }
.toc li { margin: 6px 0; font-size: 0.9rem; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--primary); text-decoration: underline; }

/* Article Content HTML elements */
.article-content h2 { font-size: 1.5rem; font-weight: 800; margin: 45px 0 20px; color: var(--text); padding-bottom: 8px; border-bottom: 2px solid var(--primary-light); }
.article-content h3 { font-size: 1.25rem; font-weight: 700; margin: 30px 0 15px; color: var(--text); }
.article-content p { margin-bottom: 20px; font-size: 1.05rem; line-height: 1.8; color: #334155; }
.article-content ul, .article-content ol { margin: 20px 0 20px 24px; }
.article-content li { margin: 8px 0; font-size: 1.05rem; color: #334155; }
.article-img { width: 100%; height: auto; border-radius: 12px; margin: 30px 0; object-fit: cover; aspect-ratio: 16/9; background: #e2e8f0; }

/* Author Box */
.author-box {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--primary); }
.author-name { font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; }
.author-title { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.author-bio { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* Related Articles */
.related { margin-top: 50px; padding-top: 35px; border-top: 1px solid var(--border); }
.related h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 20px; }
.related ul { list-style: none; }
.related li { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.related li:last-child { border-bottom: none; }
.related li::before { content: '→'; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.related a { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.related a:hover { color: var(--primary); }

/* Legal Layout */
.legal-wrap { background: var(--surface); border-radius: 16px; border: 1px solid var(--border); padding: 45px; max-width: 840px; margin: 0 auto; }
.legal-wrap h1 { font-size: 2.25rem; font-weight: 800; margin-bottom: 25px; padding-bottom: 16px; border-bottom: 3px solid var(--primary); letter-spacing: -1px; }
.legal-wrap h2 { font-size: 1.35rem; font-weight: 700; margin: 35px 0 15px; color: var(--text); }
.legal-wrap p { margin-bottom: 20px; font-size: 1rem; line-height: 1.8; color: #334155; }
.legal-wrap ul { margin: 15px 0 20px 24px; }
.legal-wrap li { margin: 8px 0; font-size: 1rem; color: #334155; }

/* Footer */
footer { background: #0f172a; color: #94a3b8; padding: 60px 0 30px; margin-top: 80px; border-top: 1px solid #1e293b; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; line-height: 1.6; max-width: 320px; }
.footer-logo { height: 36px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-logo-text { font-size: 1.15rem; font-weight: 800; color: #ffffff; letter-spacing: -0.5px; }
.footer-col h4 { color: #ffffff; font-weight: 700; margin-bottom: 18px; font-size: 0.95rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin: 8px 0; }
.footer-col a { color: #94a3b8; font-size: 0.875rem; }
.footer-col a:hover { color: #ffffff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 25px; text-align: center; font-size: 0.8rem; color: #64748b; }

@media(max-width: 768px) {
    .grid { grid-template-columns: 1fr; }
    .article-wrap, .legal-wrap { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero h1 { font-size: 1.75rem; }
    .author-box { flex-direction: column; gap: 16px; }
}
