/* Blog-specific styles */
.blog-page-title {
    color: var(--text-primary, #000);
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 72px;
    font-style: normal;
    font-weight: 500;
    line-height: 90px;
    letter-spacing: -1.44px;
}


/* Blog List Container */
.blog-list-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
    width: 100%;
}

/* Blog Card Styles (Desktop) */
.blog-card {
    width: 100%;
    max-width: 672px;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    /* Snippet says 24px gap */
    cursor: pointer;
    text-decoration: none;
    /* No underline by default */
    color: inherit;
    box-sizing: border-box;
}

.blog-card:hover .blog-card-title {
    text-decoration: underline;
}

.blog-card-content {
    flex: 1 1 0;
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
}

.blog-card-title {
    align-self: stretch;
    color: var(--text-primary, black);
    font-size: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    word-wrap: break-word;
    line-height: normal;
    letter-spacing: -0.48px;
}

.blog-card-description {
    align-self: stretch;
    color: var(--text-primary, black);
    font-size: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: -0.4px;
    word-wrap: break-word;

    /* Truncation logic */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card-date {
    align-self: stretch;
    color: var(--text-secondary, rgba(0, 0, 0, 0.50));
    font-size: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    word-wrap: break-word;
    letter-spacing: -0.4px;
}

/* Image Styles */
.blog-card-image {
    flex: 0 0 auto;
    width: 324px;
    height: 216px;
    border-radius: 12px;
    object-fit: cover;
    /* Fallback/Background similar to request */
    background: lightgray 50% / cover no-repeat;
    background-color: #FFF;
}



/* Article Detail Page Styles */
.article-container {
    max-width: 672px;
    /* Matched to Figma 304px padding (1280 - 608) */
    margin: 0 auto;
    padding: 60px 20px;
}


.article-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* ... existing article-date/title ... */

/* ... existing article-body ... */

/* ... existing other-articles-title ... */

/* ... existing other-articles-list ... */

.blog-divider {
    width: 100%;
    max-width: 672px;
    height: 2px;
    background-color: var(--border-secondary, rgba(6, 55, 79, 0.1));
    margin: 32px auto;
    /* Centered with auto margins */
}

.article-date {
    color: var(--text-secondary, rgba(0, 0, 0, 0.5));
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.4px;
    margin-bottom: 0;
}

.article-title {
    color: var(--text-primary, black);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.8px;
    line-height: normal;
}



.article-body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: -0.4px;
    color: var(--text-primary, #000);
}

.other-articles-title {
    color: var(--text-primary, black);
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.8px;
    line-height: normal;

    /* Align with the blog cards */
    max-width: 672px;
    margin-left: auto;
    margin-right: auto;

    margin-bottom: 60px;
    /* Estimated based on layout */
}

#other-articles-list {
    gap: 0;
    /* Remove gap, use divider spacing */
}

.blog-divider {
    width: 100%;
    max-width: 672px;
    height: 2px;
    background-color: var(--border-secondary, rgba(6, 55, 79, 0.1));
    margin: 32px auto;
}

/* Sun Editor specific content styles */
.article-body .se-component {
    margin: 32px 0;
    width: 100%;
}

.article-body .se-image-container {
    display: flex;
    justify-content: center;
}

.article-body .se-image-container.__se__float-none {
    float: none;
}

.article-body figure {
    margin: 0;
    max-width: 100%;
}

.article-body figure img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.sun-editor-editable p {
    display: block;
    margin: 0 0 10px;
}

.article-body span[style*="color: black"] {
    color: #000000 !important;
}

/* Blog Header */
.blog-page-header {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
}


/* Sticky Footer and Layout Fixes */
.desktop.blog-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.desktop.blog-layout .site-footer {
    margin-top: auto;
}

/* Ensure header logo positioning matches index */
@media (max-width: 768px) {
    .blog-card {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 16px;
    }

    .blog-card-image {
        width: 100%;
        height: 216px;
        /* Fixed height per Figma */
    }

    .blog-card-content {
        width: 100%;
        gap: 12px;
    }

    .other-articles-title {
        text-align: left;
        /* Keep left aligned as per latest desktop update, or check if mobile needs change */
        margin-top: 60px;
        margin-bottom: 40px;
    }

    .blog-divider {
        margin: 0 auto;
    }
}

.view-all-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    background-color: var(--accent-secondary-tint, rgba(16, 84, 117, 0.1));
    border-radius: 24px;

    color: var(--colors-blue-600-100, #105475);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.4px;
    text-decoration: none;

    margin-top: 40px;
    /* Space from list */
}

.view-all-btn:hover {
    text-decoration: none;
    opacity: 0.8;
}