/* =========================================================
   Blog Hero Section
   ========================================================= */

.blog-hero {
    padding-top: 140px;
    padding-bottom: 60px;
    background:
        linear-gradient(
            to right,
            #f0f5fa 0%,
            #e6eef8 55%,
            #cfd9ea 100%
        ),
        url("../images/blog-hero.jpg");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}



/* Meta (category, date, read time) */
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    letter-spacing: 0.3px;
    color: #7b8ab8;
}

.blog-category {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--bs-info);
    color: white;
    border-radius: 50rem;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date,
.blog-read-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Title */
.blog-title {
    font-size: 3rem;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #3a466a;
}

/* Excerpt */
.blog-excerpt {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #7b8ab8;
    max-width: 70ch;
    margin-bottom: 0;
}

/* =========================================================
   Featured Image
   ========================================================= */

.blog-featured-image {
    padding-bottom: 40px;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* =========================================================
   Blog Content
   ========================================================= */

.blog-content {
    padding-top: 60px;
}

.content-section {
    margin-bottom: 48px;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: #485785;
}

.content-section h3 {
    font-size: 1.5rem;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #485785;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #7b8ab8;
}

.content-section .lead {
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.7;
    color: #485785;
}

.content-section ul,
.content-section ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.content-section li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 12px;
    color: #7b8ab8;
}

/* =========================================================
   Blockquote
   ========================================================= */

.blog-blockquote {
    position: relative;
    margin: 48px 0;
    padding: 32px 40px;
    background-color: #f0f5fa;
    border-left: 4px solid var(--bs-info);
    border-radius: 8px;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.7;
    color: #485785;
}

.blog-blockquote cite {
    display: block;
    margin-top: 16px;
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    color: var(--bs-info);
}

/* =========================================================
   Blog CTA
   ========================================================= */

.blog-cta {
    margin: 60px 0;
}

.blog-cta > div {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.blog-cta h3,
.blog-cta p {
    color: white;
}

.blog-cta .btn {
    background-color: white;
    color: #5b62f4;
    font-weight: 600;
}

.blog-cta .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #5b62f4;
}

/* =========================================================
   Author Bio
   ========================================================= */

.author-bio {
    margin: 60px 0;
    padding: 32px;
    background-color: #f0f5fa;
    border-radius: 12px;
}

.author-bio-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: var(--bs-info);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.author-info h4 {
    color: #485785;
}

.author-info p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================================
   Related Articles
   ========================================================= */

.related-articles {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid #d9e3f1;
}

.related-articles h3 {
    color: #485785;
}

.related-card {
    background-color: #f0f5fa;
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-card .blog-category {
    display: inline-block;
}

.related-card h5 {
    color: #485785;
}

.related-card a {
    text-decoration: none;
    font-weight: 600;
}

.related-card a:hover {
    gap: 8px;
}

/* =========================================================
   Responsive Adjustments
   ========================================================= */

/* Tablets */
@media (max-width: 991px) {
    .blog-title {
        font-size: 2.5rem;
    }

    .blog-excerpt {
        font-size: 1.15rem;
    }

    .content-section h2 {
        font-size: 1.75rem;
    }

    .content-section h3 {
        font-size: 1.35rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .blog-hero {
        padding-top: 160px;
    }

    .blog-meta {
        font-size: 12px;
        gap: 12px;
    }

    .blog-title {
        font-size: 2.1rem;
        line-height: 1.3;
    }

    .blog-excerpt {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section h3 {
        font-size: 1.25rem;
    }

    .content-section p,
    .content-section li {
        font-size: 1rem;
    }

    .blog-blockquote {
        padding: 24px 20px;
        font-size: 1.1rem;
    }

    .author-bio-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-avatar {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
}

/* Small phones */
@media (max-width: 576px) {
    .blog-title {
        font-size: 1.75rem;
    }

    .blog-excerpt {
        font-size: 1rem;
    }

    .blog-cta h3 {
        font-size: 1.5rem;
    }
}
