/* ========== Blog Hero ========== */
.blog-hero {
    background: linear-gradient(135deg, #1F334E 0%, #2a4a6d 100%);
    padding: 140px 20px 60px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}

.blog-hero p {
    font-size: 18px;
    color: #94a3b8;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    margin-bottom: 30px;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #94a3b8;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    color: #64748b;
}

.breadcrumb a {
    color: #F2B100;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #ffffff;
}

/* ========== Blog Filters ========== */
.blog-filters {
    background: #ffffff;
    padding: 30px 20px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 80px;
    z-index: 50;
}

.blog-filters .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.categories-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-tab {
    background: #f1f5f9;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Zain', sans-serif;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.category-tab:hover {
    background: #e2e8f0;
    color: #1F334E;
}

.category-tab.active {
    background: #1F334E;
    color: #ffffff;
}

.search-box {
    position: relative;
    width: 300px;
    max-width: 100%;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Zain', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: #F2B100;
}

.search-box svg {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* ========== Blog Posts Grid ========== */
.blog-posts {
    padding: 60px 20px;
    background: #f8fafc;
    min-height: 60vh;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.post-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 25px;
}

.post-card-category {
    display: inline-block;
    background: #e0e7ff;
    color: #4338ca;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.post-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F334E;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-excerpt {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #94a3b8;
}

.post-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========== Loading & Empty States ========== */
.posts-loading,
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.posts-loading .spinner,
.content-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #F2B100;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-posts h3 {
    font-size: 20px;
    color: #1F334E;
    margin: 20px 0 10px;
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination button {
    width: 45px;
    height: 45px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Zain', sans-serif;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination button:hover {
    border-color: #F2B100;
    color: #F2B100;
}

.pagination button.active {
    background: #1F334E;
    border-color: #1F334E;
    color: #ffffff;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Newsletter ========== */
.newsletter {
    background: linear-gradient(135deg, #F2B100 0%, #f59e0b 100%);
    padding: 80px 20px;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1F334E;
    margin-bottom: 15px;
}

.newsletter p {
    font-size: 18px;
    color: #1F334E;
    opacity: 0.8;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Zain', sans-serif;
    outline: none;
}

.newsletter-form button {
    background: #1F334E;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Zain', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: #162436;
}

/* ========== Article Page ========== */
.blog-article {
    padding-top: 120px;
    padding-bottom: 60px;
}

.blog-article .container {
    max-width: 900px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-category {
    display: inline-block;
    background: #e0e7ff;
    color: #4338ca;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.article-title {
    font-size: 40px;
    font-weight: 800;
    color: #1F334E;
    line-height: 1.3;
    margin-bottom: 25px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #64748b;
}

.meta-item svg {
    color: #94a3b8;
}

/* Featured Image */
.article-featured-image {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.article-content {
    font-size: 18px;
    line-height: 1.9;
    color: #374151;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1F334E;
    margin: 40px 0 20px;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1F334E;
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-right: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

.article-content blockquote {
    background: #f8fafc;
    border-right: 4px solid #F2B100;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #64748b;
}

.article-content code {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 15px;
}

.article-content pre {
    background: #1F334E;
    color: #e2e8f0;
    padding: 25px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 30px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article-content a {
    color: #F2B100;
    text-decoration: underline;
}

.article-content a:hover {
    color: #1F334E;
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 30px 0;
    margin: 40px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.article-share span {
    font-size: 16px;
    font-weight: 600;
    color: #1F334E;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s, opacity 0.2s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.share-btn.twitter {
    background: #000000;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.copy {
    background: #64748b;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    background: #f8fafc;
    padding: 30px;
    border-radius: 16px;
    margin: 40px 0;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1F334E;
    margin-bottom: 10px;
}

.author-info p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1F334E;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.related-card {
    display: flex;
    gap: 15px;
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: transform 0.2s;
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-card img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.related-card-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1F334E;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-content span {
    font-size: 13px;
    color: #94a3b8;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 20px 50px;
    }
    
    .blog-hero h1 {
        font-size: 32px;
    }
    
    .blog-filters .container {
        flex-direction: column;
    }
    
    .categories-tabs {
        justify-content: center;
    }
    
    .search-box {
        width: 100%;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}