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

:root {
    --bg-main: #F3F4F6; /* Light gray */
    --bg-card: #FFFFFF; /* White */
    --bg-header: #FFFFFF;
    --accent: #2563EB; /* Trustworthy Blue */
    --accent-hover: #1D4ED8;
    --text-main: #1F2937; /* Dark Slate */
    --text-gray: #4B5563; /* Medium Gray */
    --border-color: #E5E7EB;
    --font-main: 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: var(--font-main); 
    background-color: var(--bg-main); 
    color: var(--text-gray); 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
a:hover { opacity: 0.8; }
h1, h2, h3, h4 { color: var(--text-main); font-weight: 700; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 30px; width: 100%; }

/* --- HEADER --- */
.site-header { background: var(--bg-header); border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100;}
.header-top { display: flex; justify-content: space-between; align-items: center; padding: 25px 30px; max-width: 1400px; margin: 0 auto; }
.header-left { display: flex; align-items: center; gap: 10px; color: var(--text-main); font-weight: 600; cursor: pointer; }
.header-left svg { width: 24px; height: 24px; fill: currentColor; }
.logo { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -1px; text-transform: uppercase; }
.header-right { display: flex; align-items: center; gap: 10px; color: var(--text-main); font-weight: 600; }
.header-right svg { width: 20px; height: 20px; fill: currentColor; }

.header-nav { border-top: 1px solid var(--border-color); background: var(--bg-header); }
.nav-links { display: flex; justify-content: center; gap: 40px; padding: 15px 20px; max-width: 1400px; margin: 0 auto; flex-wrap: wrap; }
.nav-links a { color: var(--text-gray); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent); }

/* --- TAG CLOUD --- */
.tag-cloud-wrapper { margin: 40px auto 20px; max-width: 1400px; padding: 0 30px; }
.tag-cloud-title { color: var(--text-main); margin-bottom: 20px; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.tag-cloud-title::before { content: ''; display: inline-block; width: 4px; height: 20px; background: var(--accent); border-radius: 2px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-item { 
    background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-gray); 
    padding: 8px 18px; border-radius: 30px; font-size: 0.9rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px;
    box-shadow: var(--shadow-sm);
}
.tag-item:hover { background: var(--accent); color: #fff; border-color: var(--accent); opacity: 1; transform: translateY(-2px); }
.tag-count { background: rgba(0,0,0,0.06); padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; color: inherit; }
.tag-item:hover .tag-count { background: rgba(255,255,255,0.2); color: #fff;}

/* --- HERO GRID SECTION --- */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px auto 60px; max-width: 1400px; padding: 0 30px; }
.hero-right { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.post-thumb-card { 
    position: relative; border-radius: 12px; overflow: hidden; 
    display: flex; flex-direction: column; justify-content: flex-end; 
    padding: 25px; transition: all 0.3s ease; box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}
.post-thumb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); opacity: 1; border-color: #cbd5e1; }

.bg-gradient-1 { background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%); }
.bg-gradient-2 { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); }
.bg-gradient-3 { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); }

.hero-left .post-thumb-card { height: 100%; min-height: 450px; }
.hero-right .post-thumb-card { height: 215px; padding: 20px; }

.cat-badge { 
    background: var(--accent); color: #fff; 
    padding: 4px 10px; font-size: 0.7rem; font-weight: 700; 
    text-transform: uppercase; border-radius: 4px; display: inline-block; 
    margin-bottom: 15px; width: fit-content; letter-spacing: 0.5px;
}
.hero-right .cat-badge { margin-bottom: 10px; font-size: 0.65rem; }

.post-thumb-title { color: var(--text-main); font-size: 1.1rem; line-height: 1.4; font-weight: 700; }
.hero-left .post-thumb-title { font-size: 2rem; line-height: 1.3; }

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-left .post-thumb-card { min-height: 350px; }
}
@media (max-width: 600px) {
    .hero-right { grid-template-columns: 1fr; }
}

/* --- BOTTOM POST GRID --- */
.section-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--border-color); padding-bottom: 15px; margin-bottom: 30px; }
.section-header h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-main); display: flex; align-items: center; gap: 10px; }
.section-header h3::before { content: ''; display: inline-block; width: 4px; height: 18px; background: var(--accent); border-radius: 2px; }

.bottom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 60px; }
.bottom-grid .post-thumb-card { height: 250px; }

/* --- POST ARTICLE --- */
.post-container { max-width: 850px; margin: 40px auto 80px; background: var(--bg-card); padding: 50px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
@media(max-width: 768px) { .post-container { padding: 30px 20px; } }
.post-header { margin-bottom: 40px; }
.post-h1 { font-size: 2.5rem; line-height: 1.25; margin-bottom: 25px; color: var(--text-main); }
.post-meta-info { display: flex; align-items: center; gap: 15px; color: var(--text-gray); font-size: 0.95rem; border-top: 1px solid var(--border-color); padding-top: 20px; }
.post-meta-info img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
.post-meta-text strong { color: var(--text-main); display: block; font-size: 1rem; }

/* POST CONTENT */
.post-content { font-size: 1.15rem; line-height: 1.8; color: var(--text-gray); }
.post-content p { margin-bottom: 25px; }
.post-content h2 { font-size: 1.8rem; margin: 50px 0 20px; color: var(--text-main); border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.post-content h3 { font-size: 1.4rem; margin: 30px 0 15px; color: var(--text-main); }
.post-content ul, .post-content ol { margin: 0 0 25px 20px; padding-left: 20px; }
.post-content li { margin-bottom: 10px; }
.post-content blockquote { font-style: italic; font-size: 1.2rem; border-left: 4px solid var(--accent); padding: 20px; margin: 30px 0; background: #eff6ff; color: var(--text-main); border-radius: 0 8px 8px 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 30px 0; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden;}
.post-content th, .post-content td { padding: 15px; border: 1px solid var(--border-color); text-align: left; }
.post-content th { background: #f8fafc; font-weight: 600; color: var(--text-main); }
.post-content a { color: var(--accent); font-weight: 600; text-decoration: none; }
.post-content a:hover { text-decoration: underline; opacity: 1; }

/* FAQ BLOCK */
.faq-block { background: #f8fafc; padding: 30px; margin: 30px 0; border-radius: 12px; border: 1px solid var(--border-color); }
.faq-question { font-weight: 700; font-size: 1.2rem; margin-bottom: 10px; color: var(--text-main); }
.faq-answer { font-size: 1.05rem; color: var(--text-gray); }

/* --- PAGINATION --- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 20px 0 60px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 1rem; color: var(--text-gray); background: var(--bg-card); transition: 0.2s; font-weight: 500;}
.page-link:hover, .page-link.active { background: var(--accent); color: #fff; border-color: var(--accent); opacity: 1; }

/* --- FOOTER --- */
.site-footer { background: var(--bg-card); border-top: 1px solid var(--border-color); padding: 60px 0 20px; margin-top: auto; }
.footer-container { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media(min-width: 768px) { .footer-container { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-logo { font-size: 1.8rem; font-weight: 800; color: var(--accent); margin-bottom: 15px; display: inline-block; }
.footer-text { color: var(--text-gray); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.footer-title { color: var(--text-main); font-size: 1.1rem; margin-bottom: 20px; font-weight: 700; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-gray); transition: color 0.2s; font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent); opacity: 1; }
.contact-info { list-style: none; color: var(--text-gray); font-size: 0.95rem; }
.contact-info li { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
.footer-bottom { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--border-color); font-size: 0.85rem; color: #6b7280; }
