/* Blog Styles */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    margin-bottom: 40px;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.blog-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 30px;
}

.blog-meta {
    font-size: 0.9rem;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-title a:hover {
    color: #667eea !important;
}

.blog-card-excerpt {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Post Page */
.post-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #2c3e50;
}

.post-meta {
    color: #6c757d;
    font-size: 0.95rem;
}

.post-featured-image {
    border-radius: 16px;
    overflow: hidden;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
}

.post-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #6c757d;
}

.post-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content pre {
    background: #2c3e50;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
}

/* Sidebar */
.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid #f0f0f0;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list li a {
    color: #2c3e50;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.category-list li a:hover {
    color: #667eea;
    padding-left: 10px;
}

.popular-posts-list {
    list-style: none;
    padding: 0;
}

.popular-posts-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.popular-posts-list li:last-child {
    border-bottom: none;
}

.popular-posts-list a {
    text-decoration: none;
    color: #2c3e50;
}

.popular-post-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.popular-post-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.popular-posts-list a:hover .popular-post-title {
    color: #667eea;
}

/* Comments */
.comments-section {
    margin-top: 50px;
}

.comment-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.comment-avatar {
    flex-shrink: 0;
}

/* Related Posts */
.related-posts-list {
    list-style: none;
    padding: 0;
}

.related-posts-list li {
    margin-bottom: 20px;
}

.related-posts-list a {
    text-decoration: none;
    color: #2c3e50;
    display: block;
}

.related-post-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.related-post-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.related-posts-list a:hover .related-post-title {
    color: #667eea;
}

/* AdSense Containers */
.adsense-container {
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .post-title {
        font-size: 1.8rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .blog-card-img {
        height: 200px;
    }

    .blog-card-body {
        padding: 20px;
    }
}