/* ===== BLOG STYLES ===== */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    color: var(--text-white);
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-title {
    color: var(--text-white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.blog-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* Blog Content */
.blog-content {
    padding: 4rem 0;
    background: var(--bg-light);
    min-height: 60vh;
}

/* Search Bar */
.blog-search {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 4rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.loading-small {
    text-align: center;
    padding: 1rem;
    color: var(--text-medium);
    font-size: 0.9rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    background: #fef2f2;
    border-radius: 1rem;
    color: #991b1b;
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.error-message a {
    color: var(--primary);
    text-decoration: underline;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-white);
    border-radius: 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: block;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-image i {
    font-size: 3rem;
    color: var(--text-light);
}

.article-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-medium);
}

.article-card-meta i {
    margin-right: 0.25rem;
}

.article-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card-title a:hover {
    color: var(--primary);
}

.article-card-excerpt {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.article-card-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 3rem;
}

/* Blog CTA */
.blog-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.blog-cta-content h3 {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.blog-cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===== ARTICLE PAGE ===== */

.article-section {
    padding: 6rem 0 4rem;
    background: var(--bg-light);
    min-height: 80vh;
}

.article-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 0.75rem;
}

/* Article Main */
.article-main {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.article-header {
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--text-medium);
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: var(--primary);
}

/* Featured Image */
.featured-image {
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Body */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-body h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-body h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-medium);
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
}

.article-body a:hover {
    color: var(--primary-dark);
}

/* Article Taxonomy */
.article-taxonomy {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.taxonomy-group {
    margin-bottom: 1rem;
}

.taxonomy-group strong {
    color: var(--text-dark);
    margin-right: 0.5rem;
}

.taxonomy-list {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.taxonomy-tag {
    font-size: 0.875rem;
    padding: 0.4rem 1rem;
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.taxonomy-tag:hover {
    background: var(--primary);
    color: var(--text-white);
}

/* Share Buttons */
.article-share {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
}

.article-share h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.linkedin {
    background: #0A66C2;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Article Navigation */
.article-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--bg-white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.categories-list,
.recent-posts,
.all-posts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-item,
.post-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.category-item:hover,
.post-link:hover {
    background: rgba(30, 64, 175, 0.05);
    color: var(--primary);
}

.category-name,
.post-title-small {
    flex: 1;
    font-size: 0.9rem;
}

.category-count {
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.post-date-small {
    font-size: 0.75rem;
    color: var(--text-medium);
    margin-top: 0.25rem;
}

.sidebar-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: var(--text-white);
}

.sidebar-cta h3 {
    color: var(--text-white);
}

.sidebar-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 6rem 0 3rem;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-main {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-meta {
        gap: 1rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .article-navigation {
        flex-direction: column;
    }
    
    .article-navigation .btn {
        width: 100%;
        justify-content: center;
    }
    
    .article-sidebar {
        grid-template-columns: 1fr;
    }
}



