/* ==========================================================================
   Blog listing + blog detail
   Career-aligned fonts/colors; scoped so other pages stay unchanged
   ========================================================================== */

:root {
    --blog-purple: #6222cc;
    --blog-text: #111827;
    --blog-body: #4a4f54;
    --blog-muted: #64748b;
}

/* ----- Shared glow (listing + detail) ----- */
main.blog-page,
main.blog-detail-page {
    background: #fff;
    overflow-x: hidden;
    color: var(--blog-text);
}

main.blog-page > .blog-glow,
main.blog-detail-page > .blog-glow {
    position: relative;
    background-color: #fff;
    background-image: url("/images/career/hero-bg.webp");
    background-repeat: no-repeat;
    background-size: 100% auto;
    overflow: visible;
}

main.blog-page > .blog-glow > .blog-hero,
main.blog-page > .blog-glow > .blog-grid-section,
main.blog-detail-page > .blog-glow > .blog-detail-hero,
main.blog-detail-page > .blog-glow > .blog-content-section {
    background: transparent;
    background-color: transparent;
}

main.blog-detail-page > .blog-glow > .blog-detail-hero {
    overflow: visible;
}

main.blog-detail-page > .blog-glow > .blog-detail-hero::before,
main.blog-detail-page > .blog-glow > .blog-detail-hero::after {
    content: none;
    display: none;
}

/* ----- Detail hero typography ----- */
main.blog-detail-page .blog-detail-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: var(--blog-text);
}

main.blog-detail-page .blog-detail-meta,
main.blog-detail-page .blog-detail-date,
main.blog-detail-page .blog-detail-author {
    font-family: "Inter", sans-serif;
    color: var(--blog-body);
}

/* ----- Content area ----- */
main.blog-detail-page .blog-content-section {
    padding-top: 4rem;
    padding-bottom: 7.5rem;
    margin-bottom: 0;
}

main.blog-detail-page .blog-content-container {
    max-width: var(--site-content-max);
    margin: 0 auto;
    padding: 0;
}

main.blog-detail-page .blog-content {
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
    margin: 0 auto;
    overflow-wrap: break-word;
    word-break: break-word;
}

main.blog-detail-page .blog-intro {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: var(--blog-body);
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

main.blog-detail-page .blog-section-block {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

main.blog-detail-page .content-heading {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 1.875rem;
    line-height: 55px;
    color: var(--blog-text);
    margin: 0;
}

main.blog-detail-page .content-paragraph {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 28px;
    color: var(--blog-body);
    margin: 0;
}

/* ----- Icon checklist (same 15px gap as careers) ----- */
main.blog-detail-page .content-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
}

main.blog-detail-page .content-list-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 15px;
    margin: 0;
    width: 100%;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--blog-body);
}

/* Override global `.content-list-item span { flex: 1 }` which blew the icon gap open */
main.blog-detail-page .content-list-item > .blog-check-icon,
main.blog-detail-page .content-list-item > span.blog-check-icon {
    flex: 0 0 18px;
    flex-grow: 0;
    flex-shrink: 0;
    width: 18px;
    max-width: 18px;
    height: 18px;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

main.blog-detail-page .blog-check-icon img,
main.blog-detail-page .blog-check-icon svg,
main.blog-detail-page .blog-check-icon .point-custom-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    flex: none;
}

main.blog-detail-page .content-list-item > .point-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

main.blog-detail-page .point-text strong {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: var(--blog-text);
}
main.blog-detail-page .section-footer {
    margin-top: 20px;
}
main.blog-detail-page .point-text span {
    flex: none;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: var(--blog-body);
    font-size: 1.125rem;
    line-height: 28px;
}

/* ----- Numbered points ----- */
main.blog-detail-page .content-sections {
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
    margin: 0;
}

main.blog-detail-page .content-section-item {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

main.blog-detail-page .section-item-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 100%;
    color: var(--blog-text);
    margin: 0;
}

main.blog-detail-page .section-item-description {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 24px;
    color: var(--blog-body);
    margin: 0;
}

/* ----- Conclusion ----- */
main.blog-detail-page .blog-conclusion {
    background: #2563EB1A;
    border-left: 3px solid #2563EB;
    border-radius: 0;
    padding: 20px 40px;
    margin: 0;
}

main.blog-detail-page .conclusion-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 28px;
    color: #000;
    margin: 0 0 0.625rem;
}

main.blog-detail-page .conclusion-text {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 26px;
    color: var(--blog-body);
    margin: 0;
}

/* ----- Legacy HTML fallback ----- */
main.blog-detail-page .blog-content.legacy-html {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--blog-body);
}

main.blog-detail-page .blog-content.legacy-html h1,
main.blog-detail-page .blog-content.legacy-html h2,
main.blog-detail-page .blog-content.legacy-html h3,
main.blog-detail-page .blog-content.legacy-html h4 {
    font-family: "Poppins", sans-serif;
    color: var(--blog-text);
}
@media (max-width: 1024px) {
    .load-more-container {
        margin-top: 50px !important;
        margin-bottom: 50px !important;
    }
}
@media (max-width: 48rem) {

    main.blog-detail-page .blog-content-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    main.blog-detail-page .content-heading {
        font-size: 1.25rem;
    }

    main.blog-detail-page .section-item-title {
        font-size: 1rem;
    }

    main.blog-detail-page .conclusion-title {
        font-size: 1.125rem;
    }

    main.blog-detail-page .content-list-item {
        gap: 15px;
    }
    main.blog-page > .blog-glow,
    main.blog-detail-page > .blog-glow {
        background-image: url("/images/career/hero-mobile.webp");
    }
    main.blog-detail-page .blog-content-section {
        padding-bottom: 50px;
    }
}

@media (max-width: 30rem) {
    main.blog-detail-page .blog-content .content-heading {
        font-family: "Poppins", sans-serif;
        font-weight: 600;
        font-size: 1.5rem;
        line-height: 1.5;
        color: #111827;
    }
}

/* Load More Button Styles */
.load-more-container {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 100px;
    grid-column: 1 / -1;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #111827;
    padding: 15px 24px;
    border-radius: 8px;
    gap: 10px;
    color: #111827;
    background: transparent;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: #f5f5f5;
}