/* Blog Styles */

.blog-hero {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}
.blog-hero-content { text-align: center; }
.blog-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; color: #fff !important; }
.blog-hero p { font-size: 1.1rem; opacity: 0.9; margin: 0; color: #fff !important; }

.blog-section { padding-bottom: 4rem; }

.blog-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
}
.blog-category-header h2 { font-size: 1.5rem; font-weight: 600; margin: 0; color: #111827; }

.blog-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}
.blog-empty i { font-size: 4rem; color: #6B7280; margin-bottom: 1rem; display: block; }
.blog-empty h3 { font-size: 1.25rem; color: #111827; margin-bottom: 0.5rem; }
.blog-empty p { color: #4B5563; margin: 0; }

.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-card:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }
.blog-card.featured { grid-column: span 2; }
.blog-card.featured .blog-card-image { height: 300px; }

.blog-card-image { display: block; position: relative; height: 180px; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-card-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex; align-items: center; justify-content: center;
}
.blog-card-placeholder i { font-size: 3rem; color: #6B7280; }

.blog-card-category {
    position: absolute; top: 12px; left: 12px;
    background: #047857; color: white;
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 500;
}

.blog-card-content { padding: 1.25rem; }
.blog-card-meta { display: flex; gap: 1rem; margin-bottom: 0.75rem; font-size: 0.8rem; color: #6B7280; }
.blog-card-meta i { margin-right: 4px; }

.blog-card-title { font-size: 1.1rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.5rem; }
.blog-card-title a { color: #111827; text-decoration: none; }
.blog-card-title a:hover { color: #047857; }

.blog-card-excerpt { font-size: 0.9rem; color: #4B5563; line-height: 1.6; margin-bottom: 1rem; }

.blog-card-link { display: inline-flex; align-items: center; gap: 6px; color: #047857; font-weight: 500; font-size: 0.9rem; text-decoration: none; }
.blog-card-link:hover { color: #065f46; }
.blog-card-link i { transition: transform 0.2s ease; }
.blog-card-link:hover i { transform: translateX(4px); }

.blog-card.small .blog-card-image { height: 140px; }
.blog-card.small .blog-card-content { padding: 1rem; }
.blog-card.small .blog-card-title { font-size: 0.95rem; margin-bottom: 0.25rem; }
.blog-card.small .blog-card-date { font-size: 0.8rem; color: #6B7280; }

.blog-pagination { margin-top: 2rem; }
.blog-pagination .pagination { gap: 0.5rem; }
.blog-pagination .page-link { border-radius: 8px; border: 1px solid #E5E7EB; color: #111827; padding: 0.5rem 1rem; }
.blog-pagination .page-item.active .page-link { background: #047857; border-color: #047857; color: white; }
.blog-pagination .page-link:hover { background: #F3F4F6; border-color: #D1D5DB; }

.blog-sidebar { position: sticky; top: 100px; }
.sidebar-widget { background: white; border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; border: 1px solid #E5E7EB; }
.widget-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid #047857; color: #111827; }

.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li { margin-bottom: 0.5rem; }
.category-list li:last-child { margin-bottom: 0; }
.category-list a { display: flex; align-items: center; padding: 0.75rem; border-radius: 8px; color: #111827; text-decoration: none; transition: background 0.2s ease; }
.category-list a:hover, .category-list li.active a { background: #d1fae5; color: #047857; }
.category-list a i { margin-right: 8px; color: #6B7280; }
.category-list li.active a i, .category-list a:hover i { color: #047857; }
.category-list .count { margin-left: auto; background: #F3F4F6; padding: 2px 8px; border-radius: 12px; font-size: 0.8rem; color: #6B7280; }

.popular-posts { list-style: none; padding: 0; margin: 0; }
.popular-posts li { margin-bottom: 1rem; }
.popular-posts li:last-child { margin-bottom: 0; }
.popular-posts li.current a { opacity: 0.6; pointer-events: none; }
.popular-posts a { display: flex; gap: 12px; text-decoration: none; }
.popular-posts img, .popular-post-placeholder { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.popular-post-placeholder { background: #F3F4F6; display: flex; align-items: center; justify-content: center; }
.popular-post-placeholder i { font-size: 1.25rem; color: #6B7280; }
.popular-post-content { flex: 1; min-width: 0; }
.popular-post-content h5 { font-size: 0.9rem; font-weight: 500; color: #111827; margin: 0 0 4px 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.popular-posts a:hover h5 { color: #047857; }
.popular-post-meta { font-size: 0.75rem; color: #6B7280; }
.popular-post-meta i { margin-right: 4px; }

.sidebar-cta { background: linear-gradient(135deg, #047857 0%, #065f46 100%); color: white; text-align: center; }
.sidebar-cta i { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.9; }
.sidebar-cta h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: #fff !important; }
.sidebar-cta p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 1rem; color: #fff !important; }
.sidebar-cta .btn { background: white; color: #047857; border: none; width: 100%; }
.sidebar-cta .btn:hover { background: #F3F4F6; }

.blog-breadcrumb { background: #F3F4F6; padding: 1rem 0; }
.blog-breadcrumb .breadcrumb { margin: 0; background: none; padding: 0; }
.blog-breadcrumb .breadcrumb-item a { color: #4B5563; text-decoration: none; }
.blog-breadcrumb .breadcrumb-item a:hover { color: #047857; }
.blog-breadcrumb .breadcrumb-item.active { color: #6B7280; }

.blog-detail-section { padding: 2rem 0 4rem; }
.blog-article { background: white; border-radius: 12px; border: 1px solid #E5E7EB; overflow: hidden; margin-bottom: 2rem; }
.article-header { padding: 2rem 2rem 1.5rem; }
.article-category { display: inline-block; background: #d1fae5; color: #047857; padding: 4px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; text-decoration: none; margin-bottom: 1rem; }
.article-category:hover { background: #047857; color: white; }
.article-title { font-size: 2rem; font-weight: 700; line-height: 1.3; color: #111827; margin-bottom: 1rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; color: #6B7280; font-size: 0.9rem; }
.article-meta .meta-item { display: flex; align-items: center; gap: 6px; }
.article-featured-image { margin: 0; }
.article-featured-image img { width: 100%; max-height: 500px; object-fit: cover; }

.article-content { padding: 2rem; font-size: 1.05rem; line-height: 1.8; color: #111827; }
.article-content h2 { font-size: 1.5rem; font-weight: 600; margin: 2rem 0 1rem; color: #111827; }
.article-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 1rem; color: #111827; }
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content blockquote { border-left: 4px solid #047857; padding: 1rem 1.5rem; margin: 1.5rem 0; background: #F3F4F6; border-radius: 0 8px 8px 0; font-style: italic; color: #4B5563; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.article-content a { color: #047857; }
.article-content a:hover { text-decoration: underline; }

.article-tags { padding: 0 2rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.tags-label { color: #6B7280; font-size: 0.9rem; }
.article-tags .tag { background: #F3F4F6; color: #4B5563; padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; text-decoration: none; transition: background 0.2s ease; }
.article-tags .tag:hover { background: #d1fae5; color: #047857; }

.article-share { padding: 1.5rem 2rem; border-top: 1px solid #E5E7EB; display: flex; align-items: center; gap: 1rem; }
.share-label { font-weight: 500; color: #111827; }
.share-buttons { display: flex; gap: 0.5rem; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: transform 0.2s ease; }
.share-btn:hover { transform: scale(1.1); color: white; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.linkedin { background: #0A66C2; }

.author-box { display: flex; gap: 1rem; padding: 2rem; background: #F3F4F6; }
.author-avatar i { font-size: 4rem; color: #6B7280; }
.author-info h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: #111827; }
.author-info p { margin: 0; font-size: 0.9rem; color: #4B5563; line-height: 1.6; }

.related-posts { margin-bottom: 2rem; }
.related-posts .section-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; color: #111827; }

@media (max-width: 991px) {
    .blog-sidebar { position: static; margin-top: 2rem; }
}

@media (max-width: 768px) {
    .blog-hero { padding: 1.5rem 0; }
    .blog-hero h1 { font-size: 1.4rem; color: #fff !important; }
    .blog-hero p { font-size: 0.95rem; color: #fff !important; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-card.featured { grid-column: span 1; }
    .blog-card.featured .blog-card-image { height: 200px; }
    .blog-card-image { height: 200px; }
    .blog-card-content { padding: 1rem; }
    .blog-card-title { font-size: 1rem; }
    .blog-card-excerpt { font-size: 0.85rem; margin-bottom: 0.75rem; }
    .blog-breadcrumb { padding: 0.75rem 0; font-size: 0.85rem; }
    .blog-breadcrumb .breadcrumb { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
    .article-header { padding: 1.25rem; }
    .article-title { font-size: 1.35rem; line-height: 1.3; }
    .article-meta { gap: 0.75rem; font-size: 0.8rem; flex-wrap: wrap; }
    .article-featured-image img { max-height: 250px; }
    .article-content { padding: 1.25rem; font-size: 0.95rem; line-height: 1.7; }
    .article-content h2 { font-size: 1.25rem; }
    .article-content h3 { font-size: 1.1rem; }
    .article-tags { padding: 0 1.25rem 1.25rem; }
    .article-share { padding: 1.25rem; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .author-box { padding: 1.25rem; flex-direction: column; text-align: center; }
    .author-avatar i { font-size: 3rem; }
    .related-posts .section-title { font-size: 1.1rem; }
    .related-posts .col-md-4 { margin-bottom: 1rem; }
    .blog-category-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
    .blog-category-header h2 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .blog-hero h1 { font-size: 1.25rem; color: #fff !important; }
    .article-title { font-size: 1.2rem; }
    .article-meta .meta-item { font-size: 0.75rem; }
    .blog-card-meta { font-size: 0.75rem; gap: 0.5rem; }
}
