/* Blog Detail Page Styles - Updated */

/* Breadcrumb Section */
.breadcrumb-section {
    padding: 30px 5% 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #64748b;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #1f3a8a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a:hover {
    color: #133C72;
}

.breadcrumb i.fa-chevron-right {
    font-size: 10px;
    color: #cbd5e1;
}

.breadcrumb span {
    color: #475569;
    font-weight: 600;
}

/* Featured Image Section */
.featured-image-section {
    padding: 30px 5% 60px;
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
}

.featured-image-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
}

.featured-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.image-category-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    background: linear-gradient(135deg, #1f3a8a, #133C72);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(31, 58, 138, 0.3);
    backdrop-filter: blur(10px);
}

/* Article Content Section */
.article-content-section {
    padding: 0 5% 60px;
    background: #ffffff;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Article Header */
.article-header {
    margin-bottom: 40px;
}

.article-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 25px;
}

.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 2px solid #f1f5f9;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.author-meta-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.author-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.post-meta-details {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
}

.post-meta-details i {
    font-size: 12px;
    margin-right: 4px;
}

.separator {
    color: #cbd5e1;
}

.article-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 42px;
    height: 42px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    background: white;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.action-btn:hover {
    background: #1f3a8a;
    color: white;
    border-color: #1f3a8a;
    transform: translateY(-2px);
}

.article-excerpt-header {
    font-size: 20px;
    line-height: 1.7;
    color: #475569;
    font-weight: 400;
    margin: 0;
}

/* Article Body */
.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: #334155;
}

.article-body h2 {
    font-size: 32px;
    color: #0f172a;
    margin: 50px 0 25px;
    font-weight: 700;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 26px;
    color: #0f172a;
    margin: 40px 0 20px;
    font-weight: 600;
}

.article-body h4 {
    font-size: 22px;
    color: #0f172a;
    margin: 30px 0 15px;
    font-weight: 600;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 25px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.article-body a {
    color: #1f3a8a;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.article-body a:hover {
    color: #133C72;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

.article-body blockquote {
    border-left: 4px solid #1f3a8a;
    padding: 20px 30px;
    margin: 30px 0;
    background: #f8faff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}

.article-body code {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #e11d48;
}

.article-body pre {
    background: #1e293b;
    padding: 25px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 30px 0;
}

.article-body pre code {
    background: transparent;
    padding: 0;
    color: #e2e8f0;
    font-size: 15px;
}

/* Article Footer Section */
.article-footer-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f1f5f9;
}

.share-section {
    margin-bottom: 40px;
}

.share-section h4 {
    font-size: 20px;
    color: #0f172a;
    margin-bottom: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-description {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.facebook {
    background: #4267B2;
    color: white;
}

.share-btn.copy-link {
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.share-btn.copy-link:hover {
    background: #1f3a8a;
    color: white;
    border-color: #1f3a8a;
}

/* Article Navigation */
.article-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: #f8faff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: white;
    border-color: #1f3a8a;
    transform: translateX(5px);
}

.prev-btn:hover {
    transform: translateX(-5px);
}

.nav-btn i {
    color: #1f3a8a;
    font-size: 20px;
}

.nav-content {
    flex: 1;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.nav-title {
    display: block;
    font-size: 15px;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.4;
}

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.widget-title {
    font-size: 18px;
    color: #0f172a;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: #1f3a8a;
}

/* Newsletter Widget */
.newsletter-widget {
    text-align: center;
    background: linear-gradient(135deg, #1f3a8a, #133C72);
    color: white;
    border: none;
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.newsletter-widget h3 {
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
    font-weight: 700;
}

.newsletter-widget p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
}

.subscribe-btn {
    background: white;
    color: #1f3a8a;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.subscribe-btn:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
}

.privacy-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
}

/* Tags Widget */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
        overflow: auto;
    height: 350px;
}

.tag {
    background: #f0f4ff;
    color: #1f3a8a;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #1f3a8a;
    color: white;
    transform: translateY(-2px);
}

/* Popular Posts Widget */
.popular-posts-widget .popular-article {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: all 0.3s ease;
}

.popular-posts-widget .popular-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-posts-widget .popular-article:hover {
    transform: translateX(5px);
}

.popular-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1f3a8a, #133C72);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.popular-content {
    flex: 1;
}

.popular-content h4 {
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 6px;
    font-weight: 600;
    line-height: 1.4;
}

.popular-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}

.popular-meta i {
    font-size: 11px;
}

/* Related Articles Widget */
.related-articles-widget .related-article {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-articles-widget .related-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-articles-widget .related-article:hover {
    transform: translateX(5px);
}

.related-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-articles-widget .related-article:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    flex: 1;
}

.related-content h4 {
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 6px;
    font-weight: 600;
    line-height: 1.4;
}

.related-meta {
    display: flex;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}

/* Continue Reading Section */
.continue-reading {
    padding: 80px 5%;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    text-align: center;
}

.continue-reading-content {
    max-width: 800px;
    margin: 0 auto;
}

.continue-reading h2 {
    font-size: 38px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.continue-reading p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.7;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

/* More Articles Section */
.more-articles-section {
    padding: 80px 5%;
    background: #f8f9ff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: #0f172a;
    margin-bottom: 15px;
    font-weight: 800;
}

.section-subtitle {
    font-size: 17px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.more-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.article-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.article-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-image-modern {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.article-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card-modern:hover .article-image-modern img {
    transform: scale(1.05);
}

.article-category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #1f3a8a, #133C72);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content-modern {
    padding: 25px;
}

.article-content-modern h3 {
    font-size: 19px;
    color: #0f172a;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.article-content-modern p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-footer-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.read-time-modern {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-more-modern {
    color: #1f3a8a;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.article-card-modern:hover .read-more-modern {
    gap: 12px;
}

/* View All Button */
.view-all-container {
    text-align: center;
}

.view-all-btn-b-d {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #1f3a8a;
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.view-all-btn-b-d:hover {
    background: #1f3a8a;
    color: white;
    border-color: #1f3a8a;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(31, 58, 138, 0.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .more-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .breadcrumb-section {
        padding: 10px 5% 15px;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .article-title {
        font-size: 32px;
    }
    
    .article-meta-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-body {
        font-size: 17px;
    }
    
    .article-sidebar {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .more-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .continue-reading h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 28px;
    }
    
    .featured-image {
        height: 250px;
    }
    
    .article-excerpt-header {
        font-size: 18px;
    }
    
    .article-body {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
}