/* --- BLOG LAYOUT --- */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Content takes 2/3, Sidebar 1/3 */
    gap: 3rem;
}

/* --- BLOG CARD --- */
.blog-card {
    background: white;
    border: var(--border-thick);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.05);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hard);
}

.card-img-top {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #eee;
    border-bottom: var(--border-thick);
}

.card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .card-img-top img { transform: scale(1.05); }

.category-tag {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--brand-cyan);
    color: var(--brand-black);
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    border: 2px solid var(--brand-black);
}

.card-content { padding: 1.5rem 2rem; }

.meta-info {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.card-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-content h2 a {
    text-decoration: none;
    color: var(--brand-black);
    transition: color 0.2s;
}

.card-content h2 a:hover { color: var(--brand-red); }

.excerpt { margin-bottom: 1.5rem; color: #555; }

.read-more {
    color: var(--brand-red);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* --- SIDEBAR --- */
.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    border-bottom: 2px solid var(--brand-black);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Author Widget */
.author-widget { text-align: center; border: var(--border-thick); }

.author-thumb {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit:scale-down;
    border: 2px solid var(--brand-black);
    margin-bottom: 1rem;
}

.author-bio { font-size: 0.9rem; margin-bottom: 1rem; }
.btn-text { color: var(--brand-red); font-weight: 700; text-decoration: none; }

/* Categories */
.cat-list { list-style: none; }
.cat-list li {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}
.cat-list a {
    text-decoration: none;
    color: var(--brand-black);
    display: flex;
    justify-content: space-between;
}
.cat-list a:hover { color: var(--brand-red); }
.cat-list span { color: #888; font-size: 0.8rem; }

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
    background: #f4f4f4;
    padding: 5px 10px;
    font-size: 0.8rem;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.2s;
}
.tag-cloud a:hover { background: var(--brand-black); color: white; }

/* Search Form */
.search-form { display: flex; gap: 5px; }
.search-form input {
    width: 100%; padding: 8px;
    border: 1px solid #ccc; border-radius: 4px;
}
.search-form button {
    background: var(--brand-black); color: white;
    border: none; padding: 0 12px; border-radius: 4px;
    cursor: pointer;
}

/* CTA Widget */
.cta-widget { background: var(--bg-light); border: var(--border-thick); text-align: center; }

/* --- PAGINATION --- */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 3rem; }
.page-link {
    padding: 10px 15px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--brand-black);
    border-radius: 4px;
    font-weight: 600;
}
.page-link.active, .page-link:hover {
    background: var(--brand-black);
    color: white;
    border-color: var(--brand-black);
}

/* --- NEWSLETTER FORM --- */
.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}
.newsletter-form input {
    flex: 1; padding: 1rem;
    border-radius: var(--radius); border: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .blog-layout { grid-template-columns: 1fr; } /* Stack sidebar below content */
    .blog-sidebar { margin-top: 2rem; }
    .sidebar-widget { max-width: 100%; }
}

@media (max-width: 600px) {
    .newsletter-form { flex-direction: column; }
    .card-content h2 { font-size: 1.3rem; }
}