/* Blog Page Styles */
.blog-main {
    padding-top: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.blog-hero {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}

.blog-hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Blog Container Layout */
.blog-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    padding: 0 1rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid #e1e4e8;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.blog-card .post-image {
    height: 200px;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.post-content h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.3rem;
}

.post-content p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.date {
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.9rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Sidebar */
.blog-sidebar {
    padding: 2rem 0;
}

.sidebar-widget {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.sidebar-widget h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    margin-bottom: 1rem;
}

.sidebar-widget ul li:last-child {
    margin-bottom: 0;
}

.sidebar-widget a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
}

.sidebar-widget a:hover {
    color: var(--primary-color);
}

.popular-posts li {
    display: flex;
    flex-direction: column;
}

.popular-posts .date {
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 2fr 1fr;
    }
}

@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}
