/*
Theme Name: SIKUAT Blog
Theme URI: https://blog.sikuat.id
Author: SIKUAT
Description: Custom theme for SIKUAT blog
Version: 1.0
Text Domain: sikuat-blog
*/

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
 --blue: #2563eb;
 --blue-dark: #1e40af;
 --blue-light: #dbeafe;
 --gold: #eab308;
 --dark: #0f172a;
 --gray: #64748b;
 --light: #f8fafc;
 --white: #fff;
 --green: #16a34a;
 --radius: 10px;
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; color: var(--dark); line-height: 1.7; background: var(--light); }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; }

/* HEADER */
.site-header { background: var(--white); border-bottom: 1px solid #e2e8f0; padding: 16px 0; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; text-decoration: none; }
.site-logo .logo-icon { width: 36px; height: 36px; background: var(--blue-dark); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.site-logo .logo-text { font-size: 20px; font-weight: 700; letter-spacing: 0.5px; }

/* NAV */
.main-nav ul { list-style: none; display: flex; gap: 24px; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--gray); text-decoration: none; }
.main-nav a:hover, .main-nav .current-cat a { color: var(--blue); }

/* CONTAINER */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.content-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 40px 0; }

/* POSTS */
.post-card { background: var(--white); border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 28px; margin-bottom: 20px; transition: border-color 0.2s; }
.post-card:hover { border-color: var(--blue); }
.post-card .cat-badge { display: inline-block; background: var(--blue-light); color: var(--blue); padding: 3px 12px; border-radius: 99px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 10px; }
.post-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.post-card h2 a { color: var(--dark); text-decoration: none; }
.post-card h2 a:hover { color: var(--blue); }
.post-card .excerpt { font-size: 14px; color: var(--gray); margin-bottom: 12px; }
.post-card .meta { font-size: 12px; color: var(--gray); display: flex; gap: 16px; }
.read-more { display: inline-block; font-size: 13px; font-weight: 600; color: var(--blue); margin-top: 8px; }

/* SINGLE POST */
.single-post-header { padding: 48px 0 24px; }
.single-post-header h1 { font-size: 32px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.single-post-header .meta { font-size: 13px; color: var(--gray); }
.post-content { background: var(--white); border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 36px; margin-bottom: 32px; }
.post-content p { margin-bottom: 16px; font-size: 15px; }
.post-content h2 { font-size: 22px; font-weight: 700; margin: 28px 0 12px; color: var(--dark); }
.post-content h3 { font-size: 18px; font-weight: 600; margin: 24px 0 10px; }
.post-content ul, .post-content ol { margin: 12px 0 16px 24px; font-size: 15px; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote { border-left: 3px solid var(--blue); padding: 12px 20px; margin: 16px 0; background: var(--blue-light); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.post-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.post-content th, .post-content td { padding: 10px 12px; border: 1px solid #e2e8f0; font-size: 14px; }
.post-content th { background: var(--light); font-weight: 600; }

/* SIDEBAR */
.sidebar .widget { background: var(--white); border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.sidebar .widget h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--dark); text-transform: uppercase; letter-spacing: 0.3px; }
.sidebar .widget ul { list-style: none; }
.sidebar .widget li { padding: 6px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget a { color: var(--gray); }
.sidebar .widget a:hover { color: var(--blue); }

/* CTA BOX */
.cta-box { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: white; border-radius: var(--radius); padding: 24px; text-align: center; }
.cta-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: white; }
.cta-box p { font-size: 13px; opacity: 0.85; margin-bottom: 16px; }
.cta-box .btn { display: inline-block; background: white; color: var(--blue); padding: 10px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 600; text-decoration: none; }
.cta-box .btn:hover { background: #f0f0f0; }

/* FOOTER */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 40px 0; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.footer-links h4 { color: white; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.footer-links a { display: block; padding: 3px 0; color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-copy { text-align: center; padding-top: 24px; margin-top: 24px; border-top: 1px solid #1e293b; }

/* PAGINATION */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 20px 0; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.pagination .current { background: var(--blue); color: white; }
.pagination a { background: var(--white); border: 1px solid #e2e8f0; color: var(--gray); text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 768px) {
 .content-wrap { grid-template-columns: 1fr; }
 .main-nav ul { display: none; }
 .footer-grid { grid-template-columns: 1fr; }
}

/* FRONT PAGE HERO */
.hero-blog { background: linear-gradient(135deg, #1e3a8a, #2563eb); color: white; padding: 60px 0; text-align: center; }
.hero-blog h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; color: white; }
.hero-blog p { font-size: 16px; opacity: 0.85; max-width: 500px; margin: 0 auto; }

/* CATEGORY SECTIONS */
.cat-sections { padding: 40px 0 60px; }
.cat-section { margin-bottom: 40px; }
.cat-section-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #e2e8f0; padding-bottom: 12px; margin-bottom: 20px; }
.cat-section-header h2 { font-size: 20px; font-weight: 700; color: var(--dark); }
.see-all { font-size: 13px; font-weight: 600; color: var(--blue); }
.cat-posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.coming-soon { font-size: 14px; color: var(--gray); font-style: italic; }

@media (max-width: 768px) {
 .cat-posts-grid { grid-template-columns: 1fr; }
 .hero-blog h1 { font-size: 28px; }
}
/* Category Cards */
.cat-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem;padding:3rem 0 4rem}
.cat-card{display:flex;flex-direction:column;align-items:center;text-align:center;padding:2rem 1.5rem;border-radius:12px;border:1px solid #e5e7eb;text-decoration:none;color:inherit;transition:box-shadow .2s,transform .2s}
.cat-card:hover{box-shadow:0 8px 24px rgba(37,99,235,.12);transform:translateY(-2px)}
.cat-card-icon{font-size:2.5rem;margin-bottom:.75rem}
.cat-card h2{font-size:1.15rem;font-weight:700;color:var(--blue-dark);margin:0 0 .5rem}
.cat-card p{font-size:.9rem;color:#6b7280;margin:0 0 .75rem;line-height:1.5}
.cat-card-count{font-size:.8rem;color:var(--blue);font-weight:600}
@media(max-width:600px){.cat-cards{grid-template-columns:1fr}}
/* Post thumbnails */
.post-thumb{display:block;margin-bottom:1rem;border-radius:8px;overflow:hidden}
.post-thumb img{width:100%;height:200px;object-fit:cover;display:block}
.single-thumb{margin-bottom:1.5rem;border-radius:10px;overflow:hidden}
.single-thumb img{width:100%;max-height:400px;object-fit:cover;display:block}