/* --- Blog & Article Styles --- */

/* Article Layout */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Typography Overrides for Articles */
.article-content h2 {
    margin-top: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.article-content h3 {
    margin-top: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.article-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #4a5568;
}

/* Component: Key Takeaways */
.key-takeaways,
.checklist-box {
    background: #f0f9ff;
    padding: 2rem;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--primary-color);
    margin: 2rem 0;
}

.key-takeaways h3,
.checklist-box h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Component: Case Study Box */
.case-study-box {
    background: #fdf2f8;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid #fbcfe8;
    margin: 2rem 0;
}

.case-study-box h3 {
    margin-top: 0;
    color: #db2777;
    /* Pink-600 */
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Component: Author Bio */
.author-bio {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    align-items: start;
}

.author-bio img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #f8fafc;
    padding: 5px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
}

/* Helper: Navbar Offset (replaces inline padding-top) */
body>.container {
    padding-top: 120px;
}

@media (max-width: 768px) {
    body>.container {
        padding-top: 90px;
    }
}
/* --- Round 2 Enhanced Styling --- */

/* Enhanced Key Takeaways */
.key-takeaways {
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.05) 0%, rgba(26, 86, 219, 0.02) 100%);
    border: 1px solid rgba(26, 86, 219, 0.15);
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.08);
}

.key-takeaways h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.key-takeaways h3 i {
    color: var(--secondary-color);
}

/* Enhanced Checklist Box */
.checklist-box {
    position: relative;
    overflow: hidden;
}

.checklist-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 3px 0 0 3px;
}

/* Enhanced Case Study Box */
.case-study-box {
    position: relative;
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.08);
}

.case-study-box h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Article CTA Section */
.article-cta {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e7ff 100%);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 3rem 0;
    border: 1px solid rgba(26, 86, 219, 0.1);
    box-shadow: 0 8px 24px rgba(26, 86, 219, 0.1);
}

.article-cta h3 {
    margin-top: 0;
    color: var(--text-dark);
}

.article-cta p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* List Item Styling (replaces inline styles) */
.key-takeaways li,
.checklist-box li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.key-takeaways li:last-child,
.checklist-box li:last-child {
    margin-bottom: 0;
}

/* Breadcrumb Component */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-dark);
}


/* --- Blog Hero Images --- */
.article-hero {
    margin: 0 -1rem 2rem -1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-hero-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .article-hero {
        margin: 0 0 2.5rem 0;
    }
    
    .blog-hero-image {
        max-height: 450px;
    }
}

/* Blog Index Card Images */
.blog-card-image {
    margin: 1rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

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