/* ============================================
   BLOG DETAILS PAGE STYLES
   ============================================ */

/* ----- CONTAINER & LAYOUT ----- */
.blog-details-container {
    background: linear-gradient(180deg, #c8e8fb 0%, #dff2fb 20%, #eaf6ff 50%, #f4faff 80%, #ffffff 100%); 
    padding: 44px 32px 80px;
}

.blog-details-layout {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

/* ----- MAIN CONTENT AREA ----- */
.main-content {
    min-width: 0;
}

/* ----- ARTICLE CARD ----- */
.article-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(30, 100, 200, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(180, 220, 255, 0.5);
}

.article-cover {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.article-body {
    padding: 48px;
}

/* ----- ARTICLE META ----- */
.article-meta {
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.post-date,
.post-category {
    font-size: 14px;
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-date i,
.post-category i {
    color: #000;
}

/* ----- ARTICLE CONTENT TYPOGRAPHY ----- */
.article-content {
    width: 100%;
}

.article-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0d3a70;
    margin: 40px 0 20px;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 26px;
    font-weight: 700;
    color: #0d3a70;
    margin: 32px 0 16px;
    line-height: 1.35;
}

.article-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: #0d3a70;
    margin: 24px 0 12px;
}

.article-content p {
    font-size: 18px;
    color: #3a5270;
    line-height: 1.8;
    margin-bottom: 24px;
}

.article-content ul,
.article-content ol {
    padding-left: 32px;
    margin-bottom: 24px;
}

.article-content li {
    font-size: 18px;
    color: #3a5270;
    line-height: 1.8;
    margin-bottom: 10px;
}

.article-content strong {
    color: #0d3a70;
    font-weight: 700;
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 32px 0;
}

.article-content blockquote {
    background: linear-gradient(135deg, #e3f4ff, #fff9e6);
    border-left: 5px solid #1a6fc4;
    border-radius: 0 20px 20px 0;
    padding: 28px 32px;
    margin: 32px 0;
    font-size: 20px;
    font-style: italic;
    color: #0d3a70;
    font-weight: 600;
    line-height: 1.6;
    width: 100%;
}

/* ----- RELATED ARTICLES SECTION ----- */
.related-section {
    margin-top: 48px;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(180, 220, 255, 0.5);
    box-shadow: 0 4px 20px rgba(30, 100, 200, 0.08);
    width: 100%;
}

.section-heading {
    font-size: 24px;
    font-weight: 800;
    color: #0d3a70;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e0eefc;
}

.section-heading i {
    color: #ff6b00;
    font-size: 24px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.related-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    text-decoration: none;
    padding: 20px;
    background: #f9fbfd;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.related-item:hover {
    background: #fff;
    border-color: #b8d9f7;
    transform: translateX(12px);
    box-shadow: 0 8px 20px rgba(30, 100, 200, 0.12);
}

.related-item-thumb {
    flex-shrink: 0;
    width: 140px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #74b9ff, #ffeaa7);
}

.related-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-item:hover .related-item-thumb img {
    transform: scale(1.1);
}

.related-item-content {
    flex: 1;
}

.related-item-badge {
    font-size: 12px;
    font-weight: 700;
    color: #ff6b00;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 4px;
}

.related-item-title {
    font-size: 18px;
    font-weight: 700;
    color: #0d3a70;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.related-item:hover .related-item-title {
    color: #ff6b00;
}

.related-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-item-meta span {
    font-size: 13px;
    color: #8aabca;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ----- SIDEBAR STYLES ----- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(180, 220, 255, 0.5);
}

.sidebar-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a2b4c;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #1e88e5;
    display: inline-block;
}

/* ----- POPULAR CARDS (matching blog listing style) ----- */
.popular-card {
    background: #f9fbfd;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    margin-bottom: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px;
    gap: 14px;
}

.popular-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.popular-img {
    width: 80px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.popular-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popular-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a2b4c;
    line-height: 1.4;
    margin: 0 0 6px 0;
}

.popular-title a:hover {
    color: #ff6b00;
}

.popular-meta {
    font-size: 11px;
    color: #8aabca;
    display: flex;
    align-items: center;
    gap: 6px;
}

.popular-meta i {
    font-size: 10px;
}

/* ----- CTA CARD ----- */
.cta-card {
    background:linear-gradient(135deg, rgb(22, 53, 99), rgb(31, 122, 255)) !important;;
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(255, 107, 0, 0.25);
    transition: transform 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-4px);
}

.cta-card i {
    font-size: 36px;
    color: #fff;
    display: block;
    margin-bottom: 16px;
}

.cta-card h4 {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin: 12px 0 8px;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cta-card a {
    display: inline-block;
    background: #fff;
    color: #000;
    font-weight: 800;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

.cta-card a:hover {
    background: #fff9f0;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .blog-details-layout {
        max-width: 1200px;
        gap: 32px;
    }
}

@media (max-width: 992px) {
    .blog-details-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 32px 24px 60px;
    }

    .sidebar {
        position: static;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .blog-details-container {
        padding: 24px 16px 48px;
    }

    .article-body {
        padding: 24px;
    }

    .article-cover {
        height: 250px;
    }

    .article-content p,
    .article-content li {
        font-size: 16px;
    }

    .article-content h2 {
        font-size: 24px;
    }

    .article-content h3 {
        font-size: 20px;
    }

    .related-section {
        padding: 24px;
    }

    .section-heading {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .related-item {
        padding: 16px;
        gap: 16px;
    }

    .related-item-thumb {
        width: 100px;
        height: 70px;
    }

    .related-item-title {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .blog-details-layout {
        padding: 24px 16px 48px;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .related-item {
        flex-direction: column;
    }

    .related-item-thumb {
        width: 100%;
        height: 160px;
    }

    .cta-card {
        padding: 20px 16px;
    }

    .related-section {
        padding: 16px;
    }

    .popular-card {
        padding: 8px;
    }

    .popular-img {
        width: 65px;
        height: 60px;
    }

    .popular-title {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .tags {
        width: 100%;
    }
}