/* ===================================
   Blog Post Page Styles
   Individual article styling
   =================================== */

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Back to Blog
   =================================== */

.back-to-blog {
    padding: 30px 0 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--primary-red);
    gap: 12px;
}

.back-link i {
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-3px);
}

/* ===================================
   Post Header
   =================================== */

.post-header {
    margin-bottom: 40px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 14px;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dark-gray);
}

.post-meta i {
    color: var(--primary-red);
}

.post-category {
    background-color: #F3F4F6;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.3;
    margin-bottom: 30px;
}

.post-featured-image {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

/* ===================================
   Post Content
   =================================== */

.post-content {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}

.lead-paragraph {
    font-size: 20px;
    line-height: 1.7;
    color: #1F2937;
    font-weight: 500;
    margin-bottom: 35px;
    padding-left: 20px;
    border-left: 4px solid var(--primary-red);
}

.post-content h2 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: 45px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.post-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    border-radius: 3px;
}

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

.post-content ul {
    margin: 25px 0;
    padding-left: 0;
    list-style: none;
}

.post-content ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.post-content ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-size: 18px;
}

.post-content strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ===================================
   Post Images
   =================================== */

.post-image {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

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

.image-caption {
    padding: 15px 20px;
    background-color: #F9FAFB;
    font-size: 14px;
    color: var(--dark-gray);
    text-align: center;
    font-style: italic;
    margin: 0;
}

/* ===================================
   Post Highlight Box
   =================================== */

.post-highlight {
    background: linear-gradient(135deg, #003366 0%, #6B46C1 50%, #E31E24 100%);
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
    color: var(--white);
}

.post-highlight h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.post-highlight h3::before {
    display: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.stats-grid .stat-item {
    text-align: center;
}

.stats-grid .stat-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.stats-grid .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ===================================
   Post CTA Box
   =================================== */

.post-cta-box {
    background-color: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 40px;
    margin: 50px 0;
    text-align: center;
}

.post-cta-box h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.post-cta-box p {
    font-size: 16px;
    color: var(--dark-gray);
    margin-bottom: 25px;
}

.post-cta-box .cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.post-cta-box .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    color: var(--white);
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.post-cta-box .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.3);
}

.post-cta-box .btn-outline {
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 14px 30px;
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.post-cta-box .btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===================================
   Post Footer
   =================================== */

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #E5E7EB;
    flex-wrap: wrap;
    gap: 25px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
}

.author-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-blue);
    margin-bottom: 3px;
}

.author-role {
    font-size: 14px;
    color: var(--dark-gray);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-label {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 14px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    color: var(--white);
    transform: translateY(-3px);
}

/* ===================================
   Related Posts
   =================================== */

.related-posts {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 2px solid #E5E7EB;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 40px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.related-post-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

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

.related-post-image {
    height: 180px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.related-post-card h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    padding: 20px 20px 10px;
    margin: 0;
}

.related-post-card p {
    font-size: 14px;
    color: var(--dark-gray);
    padding: 0 20px 20px;
    margin: 0;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 992px) {
    .post-title {
        font-size: 36px;
    }
    
    .lead-paragraph {
        font-size: 18px;
    }
    
    .post-content h2 {
        font-size: 26px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 32px;
    }
    
    .lead-paragraph {
        font-size: 17px;
        padding-left: 15px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .post-content h2 {
        font-size: 24px;
        padding-left: 15px;
        margin-top: 35px;
    }
    
    .post-content h2::before {
        width: 4px;
        height: 30px;
    }
    
    .post-content ul li {
        padding-left: 30px;
    }
    
    .post-highlight {
        padding: 30px 25px;
    }
    
    .post-highlight h3 {
        font-size: 20px;
    }
    
    .stats-grid .stat-number {
        font-size: 30px;
    }
    
    .post-cta-box {
        padding: 30px 25px;
    }
    
    .post-cta-box h3 {
        font-size: 22px;
    }
    
    .post-cta-box .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .post-cta-box .btn-primary,
    .post-cta-box .btn-outline {
        width: 100%;
        justify-content: center;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container-narrow {
        padding: 0 15px;
    }
    
    .post-title {
        font-size: 26px;
    }
    
    .post-meta {
        gap: 12px;
        font-size: 13px;
    }
    
    .lead-paragraph {
        font-size: 16px;
    }
    
    .post-content h2 {
        font-size: 22px;
        margin-top: 30px;
    }
    
    .post-highlight {
        padding: 25px 20px;
    }
    
    .stats-grid {
        gap: 15px;
    }
    
    .stats-grid .stat-number {
        font-size: 26px;
    }
    
    .stats-grid .stat-label {
        font-size: 13px;
    }
    
    .post-cta-box {
        padding: 25px 20px;
    }
}
