/* Bato Blog – Shared Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color: #e11d48;
    --secondary-color: #be123c;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

a { text-decoration: none; color: var(--primary-color); transition: color 0.3s ease; }
a:hover { color: var(--secondary-color); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

/* Header */
.header { background: var(--bg-white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; padding: 1rem 0; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.5rem; font-weight: 700; color: var(--primary-color); }
.logo img { width: 40px; height: 40px; border-radius: 8px; }
.logo-text { color: var(--text-dark); }
.nav-list { display: flex; list-style: none; gap: 1.5rem; align-items: center; }
.nav-list li a { color: var(--text-dark); font-weight: 500; }
.nav-list li a:hover { color: var(--primary-color); text-decoration: none; }

/* Breadcrumb */
.breadcrumb { background: var(--bg-light); padding: 1rem 0; font-size: 0.9rem; color: var(--text-light); }
.breadcrumb a { color: var(--primary-color); }
.breadcrumb span { margin: 0 0.5rem; color: var(--text-light); }

/* Article */
.article { padding: 3rem 0; }
.article-header { margin-bottom: 2.5rem; }
.article-tag { display: inline-block; background: var(--primary-color); color: white; padding: 0.25rem 0.85rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1rem; }
.article h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1rem; color: var(--text-dark); font-weight: 800; }
.article-meta { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1.5rem; }
.article-meta span { margin-right: 1rem; }
.article-cover { margin-bottom: 2rem; }
.article-cover img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; box-shadow: var(--shadow-md); }
.article-content h2 { font-size: 1.8rem; margin: 2.5rem 0 1rem; color: var(--text-dark); font-weight: 700; }
.article-content h3 { font-size: 1.35rem; margin: 2rem 0 0.75rem; color: var(--text-dark); font-weight: 600; }
.article-content p { font-size: 1.1rem; margin-bottom: 1.25rem; color: #374151; }
.article-content ul, .article-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-content li { font-size: 1.1rem; margin-bottom: 0.5rem; color: #374151; }
.article-content blockquote { border-left: 4px solid var(--primary-color); background: var(--bg-light); padding: 1rem 1.5rem; margin: 1.5rem 0; font-style: italic; color: var(--text-dark); border-radius: 4px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; box-shadow: var(--shadow-sm); }
.article-content th, .article-content td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.article-content th { background: var(--bg-light); font-weight: 600; color: var(--text-dark); }
.article-content code { background: var(--bg-light); padding: 0.15rem 0.4rem; border-radius: 4px; font-family: monospace; font-size: 0.95em; }

/* CTA */
.cta-box { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; padding: 2rem; border-radius: 12px; margin: 2.5rem 0; text-align: center; }
.cta-box h3 { color: white; font-size: 1.5rem; margin-bottom: 0.75rem; }
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 1.25rem; }
.cta-btn { display: inline-block; background: white; color: var(--primary-color); padding: 0.75rem 1.75rem; border-radius: 8px; font-weight: 600; }
.cta-btn:hover { background: var(--bg-light); text-decoration: none; }

/* FAQ in article */
.faq-block { margin: 2.5rem 0; }
.faq-item { background: var(--bg-light); border-left: 4px solid var(--primary-color); padding: 1.25rem 1.5rem; border-radius: 6px; margin-bottom: 1rem; }
.faq-item h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--text-dark); }
.faq-item p { font-size: 1rem; margin-bottom: 0; color: #374151; }

/* Related */
.related-posts { background: var(--bg-light); padding: 3rem 0; }
.related-posts h2 { text-align: center; font-size: 2rem; margin-bottom: 2rem; color: var(--text-dark); }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.post-card { background: white; border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow-sm); transition: all 0.3s ease; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post-card .post-tag { display: inline-block; background: var(--primary-color); color: white; padding: 0.2rem 0.7rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.75rem; }
.post-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.post-card h3 a { color: var(--text-dark); }
.post-card h3 a:hover { color: var(--primary-color); text-decoration: none; }
.post-card p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 0.75rem; }

/* Footer */
.footer { background: var(--text-dark); color: white; padding: 2.5rem 0 1.5rem; margin-top: 3rem; text-align: center; }
.footer p { color: rgba(255,255,255,0.7); margin: 0.5rem 0; font-size: 0.95rem; }
.footer a { color: rgba(255,255,255,0.85); }

/* Responsive */
@media (max-width: 768px) {
    .article h1 { font-size: 1.85rem; }
    .article-content h2 { font-size: 1.4rem; }
    .nav-list { gap: 1rem; }
    .nav-list li a { font-size: 0.9rem; }
}

html { scroll-behavior: smooth; }
