
/* --- Global Blog Styles --- */
:root {
    --primary: #4F46E5;
    --dark: #111827;
    --gray: #6B7280;
    --light: #F3F4F6;
    --white: #ffffff;
}

body {
    background-color: #f9f9f9;
    font-family: 'Roboto', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; display: block; }

/* --- Header --- */
.blog-header {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex { display: flex; justify-content: space-between; align-items: center; }

.blog-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
}
.blog-logo span { color: var(--primary); }

.blog-nav a {
    margin-left: 20px;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

.btn-tools {
    background: var(--primary);
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
}

.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; }

/* --- Layout Grid --- */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 parts content, 1 part sidebar */
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

/* --- Ads --- */
.ad-section { margin-top: 20px; text-align: center; }
.responsive-ad {
    background: #e5e5e5;
    padding: 20px;
    text-align: center;
    color: #777;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    min-height: 90px;
    display: flex; align-items: center; justify-content: center;
}
.in-feed { margin: 30px 0; }

/* --- Post Cards --- */
.post-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    position: relative;
    transition: transform 0.2s;
}
.post-card:hover { transform: translateY(-5px); }

.post-img { position: relative; height: 220px; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; }

.cat-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}
.green { background: #10B981; }
.orange { background: #F59E0B; }

.post-content { padding: 20px; }
.post-content h2, .post-content h3 { margin: 0 0 10px 0; line-height: 1.3; }
.post-content h2 a:hover { color: var(--primary); }

.post-meta { font-size: 0.8rem; color: var(--gray); margin-bottom: 10px; }
.divider { margin: 0 5px; color: #ddd; }

/* Featured Post Specifics */
.featured .post-img { height: 350px; }
.featured h2 { font-size: 1.8rem; }

/* Grid of smaller posts */
.posts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* --- Sidebar Widgets --- */
.widget {
    background: var(--white);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.widget-title {
    font-family: 'Oswald', sans-serif;
    margin-top: 0;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    text-transform: uppercase;
}

/* Social Widget */
.social-widget { display: flex; gap: 10px; }
.social-widget a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: white; border-radius: 4px;
}
.fb { background: #3b5998; }
.tw { background: #1da1f2; }
.yt { background: #ff0000; }
.in { background: #c13584; }

/* Categories */
.cat-list { list-style: none; padding: 0; }
.cat-list li {
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 0;
    display: flex; justify-content: space-between;
}
.cat-list li span { color: var(--gray); font-size: 0.85rem; }

/* Sidebar Ad */
.sidebar-ad-box {
    background: #f0f0f0; height: 250px;
    display: flex; align-items: center; justify-content: center; color: #888;
}

/* Tags */
.tag-cloud a {
    display: inline-block;
    background: #f1f1f1;
    padding: 5px 10px;
    font-size: 0.8rem;
    margin: 3px;
    border-radius: 3px;
    color: #555;
}

/* --- Video Widget (Autoplay) --- */
.video-widget {
    background: #000;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}
.video-header {
    padding: 10px 15px;
    background: linear-gradient(to right, #cc2b5e, #753a88);
    color: white;
}
.video-caption { padding: 10px; color: #ddd; font-size: 0.9rem; }

/* --- Single Article Styles --- */
.breadcrumbs { font-size: 0.85rem; color: var(--gray); margin-bottom: 15px; }
.article-title { font-size: 2.2rem; margin-bottom: 15px; }
.post-meta-bar { margin-bottom: 20px; font-size: 0.9rem; color: var(--gray); display: flex; gap: 20px; }
.featured-image img { width: 100%; border-radius: 8px; margin-bottom: 30px; }
.article-content { line-height: 1.8; font-size: 1.05rem; }
.article-content h3 { font-size: 1.5rem; margin-top: 30px; }
.lead { font-size: 1.2rem; font-weight: 300; color: #444; }
blockquote { border-left: 4px solid var(--primary); margin: 30px 0; padding-left: 20px; font-style: italic; color: #555; }
.tool-cta {
    background: #EEF2FF; border: 1px solid #C7D2FE;
    padding: 30px; text-align: center; border-radius: 10px; margin-top: 40px;
}

/* --- Footer --- */
.blog-footer {
    background: var(--dark);
    color: #aaa;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}
.blog-footer a { color: white; }

/* Responsive */
@media (max-width: 768px) {
    .main-grid { grid-template-columns: 1fr; }
    .posts-row { grid-template-columns: 1fr; }
    .blog-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: white; flex-direction: column; padding: 20px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
    .blog-nav.active { display: flex; }
    .blog-nav a { margin: 10px 0; }
    .mobile-menu-btn { display: block; }
}
