/* =========================================
   Why Tracking Blog Detail Styles
   ========================================= */

body {
    background-color: black;
    color: #FFFFFF;
    margin: 0;

    background-image:
        url("../../images/web_bg_shadow_top.png"),
        url("../../images/blog_bottom_bg.jpg");
    background-position:
        center 0px,
        bottom center;
    background-repeat:
        no-repeat,
        no-repeat;
    background-size:
        100% auto,
        100% auto;
}

.blog-detail-page {
    padding-top: 120px;
    padding-bottom: 0px;
    min-height: 100vh;
}

/* --- Raizz Logo --- */
.raizz-logo {
    height: 22px;
    width: auto;
    object-fit: contain;
}

.blog-detail-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background-color: transparent;
}

/* --- Breadcrumb --- */
.breadcrumb {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-size: 14px;
    margin-bottom: 40px;
}

.breadcrumb a {
    color: #DADADA;
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #888888;
    margin: 0 8px;
}

.breadcrumb .current {
    color: #888888;
}

/* =========================================
   Blog Parts — shared
   ========================================= */
.blog-part {
    width: 800px;
    margin-left: 200px;
    margin-bottom: 50px;

    background-color: black;
    border: 1px dashed rgba(255, 255, 255, 0.2);

    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Avenir', -apple-system, sans-serif;
    color: #888;
}

.blog-part:last-child {
    margin-bottom: 0;
}

/* =========================================
   Part 1: Title & Quote Card
   ========================================= */
.part1 {
    height: 454px;
    background-color: transparent;
    border: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.part1-title {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 800;
    font-size: 40px;
    color: #FFFFFF;
    line-height: 1.3;
    margin: 0 0 16px 0;
    text-align: center;
    width: 100%;
}

.part1-subtitle {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #888888;
    margin: 0 0 32px 0;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.clock-icon {
    width: 18px;
    height: 18px;
}

.part1-subtitle .divider {
    margin: 0 12px;
    color: #555555;
}

.part1-quote-card {
    background-color: rgba(245, 245, 245, 0.10);
    border: none;
    border-radius: 30px;
    width: 100%;
    box-sizing: border-box;
    padding: 30px 40px;
    margin-top: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.quote-icon-img {
    width: 32px;
    height: auto;
    display: block;
    margin-bottom: 16px;
}

.quote-text {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 350;
    font-size: 18px;
    color: #DADADA;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.quote-text:last-child {
    margin-bottom: 0;
    margin: 0;
}

/* =========================================
   Part 2: Blue CTA Card
   ========================================= */
.part2 {
    background-color: #1e5ac8;
    border-radius: 30px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 42px 50px;
    gap: 30px;
    box-sizing: border-box;
}

.part2-text-wrap {
    flex: 1;
    min-width: 0;
}

.part2-title {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
}

.part2-desc {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #FFFFFF;
    margin: 20px 0 0 0;
    padding: 0;
    line-height: 24px;
}

.part2-btn {
    position: static;
    flex-shrink: 0;
    padding: 16px 30px;
    background-color: #FFFFFF;
    color: #000000;
    border-radius: 40px;
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.part2-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* =========================================
   Shared section styles (Parts 3–8)
   ========================================= */
.part3,
.part4,
.part5,
.part6,
.part7,
.part8 {
    background-color: transparent;
    border: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Section headings */
.part3-title,
.part4-title,
.part5-title,
.part6-title,
.part7-title,
.part8-title {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 500;
    font-size: 32px;
    color: #FFFFFF;
    margin: 0 0 16px 0;
    line-height: 1.3;
    width: 100%;
    text-align: left;
}

/* Body text */
.part3-text,
.part4-text,
.part5-text,
.part6-text,
.part7-text,
.part8-text {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #DCDCDC;
    line-height: 1.6;
    margin: 0;
    width: 100%;
    text-align: left;
}

/* Flow diagram image in section 1 */
.part3-img {
    width: 800px;
    height: auto;
    object-fit: contain;
    display: block;
    margin-top: 16px;
}

/* =========================================
   Spacing helpers
   ========================================= */
.mb-12 {
    margin-bottom: 12px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-24 {
    margin-bottom: 24px;
}

/* Hamburger — hidden on desktop */
.nav-hamburger {
    display: none;
}

/* Mobile nav drawer — hidden by default */
.nav-drawer {
    display: none;
}

/* Mobile bottom CTA card — hidden on desktop */
.mobile-bottom-card {
    display: none;
}

/* =========================================
   Part 9: More Blogs You Might Like
   ========================================= */
.part9 {
    background-color: transparent;
    border: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.part9-title {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 500;
    font-size: 32px;
    color: #FFFFFF;
    margin: 0 0 28px 0;
    line-height: 1.3;
    width: 100%;
    text-align: left;
}

.part9-cards {
    display: flex;
    gap: 32px;
    width: 100%;
}

.topic-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #191919;
    border-radius: 30px;
    border: 1px solid #ffffff29;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.topic-card:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.topic-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    cursor: pointer;
}

.topic-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.topic-card-title {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.3;
}

/* =========================================
   Blog Bottom CTA
   ========================================= */
.blog-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 100px;
    margin-bottom: 120px;
    background-color: transparent;
}

.bottom-title {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 500;
    font-size: 60px;
    color: #FFFFFF;
    margin: 0;
    text-align: center;
}

.bottom-subtitle {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 400;
    font-size: 24px;
    color: #DADADA;
    margin: 24px 0 0 0;
    text-align: center;
}

.access_button-wrapper {
    margin-top: 50px;
}

.access_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #FFFFFF;
    color: #000000;
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 800;
    font-size: 18px;
    padding: 16px 36px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.access_button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.access_button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.bottom-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin-top: 100px;
}

.bottom-copyright {
    margin-top: 100px;
    margin-bottom: 0;
    padding-bottom: 0;
    line-height: 1;
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #888888;
    text-align: center;
    background-color: #000000;
}

/* =========================================
   Part 1 (new): Title only — no quote card
   ========================================= */
.part1 {
    height: auto;
    min-height: unset;
    padding-bottom: 0;
}

/* =========================================
   Metrics Reference Table
   ========================================= */
.part-metrics-table {
    background-color: transparent;
    border: none;
    display: block;
    padding: 0;
    margin-bottom: 50px;
}

.metrics-table {
    display: flex;
    gap: 2px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.metrics-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.metrics-col-label {
    flex: 1;
}

.metrics-header {
    background-color: #1e3a5f;
    color: #ffffff;
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    padding: 12px 8px;
    line-height: normal;
}

.metrics-col-label .metrics-header {
    border-radius: 4px 0 0 0;
}

.metrics-col-range .metrics-header {
    border-radius: 0 4px 0 0;
}

.metrics-row {
    background-color: rgba(255, 255, 255, 0.12);
    color: #DCDCDC;
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 400;
    font-size: 18px;
    text-align: center;
    padding: 12px 8px;
    line-height: 1.5;
    min-height: 44px;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.metrics-col-label .metrics-row {
    color: #c8c5b2;
    font-weight: 500;
}

.metrics-row-link {
    text-decoration: none;
    cursor: pointer;
    display: block;
}

.metrics-row-link:hover {
    text-decoration: underline;
    color: #c8c5b2;
}

.metrics-row-tall {
    min-height: 76px;
    padding: 12px 20px;
    line-height: 1.5;
    font-size: 16px;
}

/* =========================================
   Article Sections (Q&A format)
   ========================================= */
.part-section {
    background-color: transparent;
    border: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    scroll-margin-top: 72px;
}

.section-title {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 500;
    font-size: 32px;
    color: #FFFFFF;
    margin: 0 0 24px 0;
    line-height: 1.3;
    width: 100%;
    text-align: left;
}

.qa-block {
    margin-bottom: 28px;
    width: 100%;
}

.qa-block:last-child {
    margin-bottom: 0;
}

.qa-question {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 500;
    font-size: 22px;
    color: #FFFFFF;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.qa-label {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #DCDCDC;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.section-text {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #DCDCDC;
    line-height: 1.7;
    margin: 0;
    width: 100%;
    text-align: left;
}

.section-bullet {
    padding-left: 4px;
}

.section-note strong {
    font-weight: 700;
    color: #FFFFFF;
}

.mt-12 {
    margin-top: 12px;
}

.mt-16 {
    margin-top: 16px;
}

/* =========================================
   Mobile / H5 Responsive (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {

    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }

    body {
        background-image:
            url('../../images/web_bg_shadow_top_h5.png'),
            url('../../images/blog_bottom_bg.jpg');
        background-size: 100% auto, 100% auto;
        background-repeat: no-repeat, no-repeat;
        background-position:
            center 0px,
            center bottom 100px;
    }

    .blog-detail-page {
        padding-top: 60px;
        padding-bottom: 0;
        min-height: unset;
    }

    /* --- Navbar --- */
    .nav-content {
        padding: 0 16px;
    }

    .nav-left {
        flex: 1;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        background-color: transparent;
        color: #FFFFFF;
        border: 1px solid rgba(255, 255, 255, 0.6);
        font-size: 14px;
        font-weight: 500;
        padding: 8px 12px;
        border-radius: 20px;
        height: auto;
        white-space: nowrap;
    }

    .nav-hamburger {
        display: block;
        background: none;
        border: none;
        color: #FFFFFF;
        font-size: 22px;
        cursor: pointer;
        padding: 0 0 0 12px;
        line-height: 1;
        width: 34px;
        text-align: center;
    }

    /* Mobile nav drawer — full height overlay */
    .nav-drawer {
        display: flex;
        flex-direction: column;
        background-color: rgba(5, 10, 20, 1);
        background-image: url('../../images/web-dropdown-shadow-h5.png');
        background-size: 100% auto;
        background-position: center top;
        background-repeat: no-repeat;
        background-blend-mode: screen;
        position: fixed;
        top: 54px;
        left: 0;
        right: 0;
        height: calc(100vh - 54px);
        overflow-y: auto;
        z-index: 999;
        transform: translateY(-110%);
        transition: transform 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-drawer.open {
        transform: translateY(0);
    }

    .nav-drawer .nav-link-btn {
        width: 100%;
        text-align: center;
        padding: 14px 16px;
        font-size: 18px;
        font-family: 'Avenir', -apple-system, sans-serif;
        font-weight: 400;
        color: #FFFFFF;
        background: none;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        cursor: pointer;
        letter-spacing: -0.3px;
    }

    /* CTA button inside drawer */
    .nav-drawer-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background-color: #FFFFFF;
        color: #000000;
        font-family: 'Avenir', -apple-system, sans-serif;
        font-weight: 700;
        font-size: 18px;
        padding: 18px 32px;
        border-radius: 999px;
        text-decoration: none;
        margin: 32px 20px;
    }

    /* --- Container & breadcrumb --- */
    .blog-detail-container {
        padding: 0 16px;
    }

    .breadcrumb {
        font-size: 13px;
        margin-bottom: 24px;
    }

    /* --- Blog parts --- */
    .blog-part {
        width: 100%;
        margin-left: 0;
        margin-bottom: 24px;
    }

    /* --- Part 1: Title & Quote --- */
    .part1 {
        height: auto;
    }

    .part1-title {
        font-size: 30px;
        line-height: 1.25;
    }

    .part1-subtitle {
        font-size: 15px;
        text-align: center;
    }

    .part1-quote-card {
        background-color: rgba(245, 245, 245, 0.10);
        background-image: none;
        border: none;
        border-radius: 30px;
        padding: 20px;
        margin-top: 12px;
    }

    .quote-icon-img {
        width: 24px;
        margin-bottom: 12px;
    }

    .quote-text {
        font-size: 16px;
        line-height: 1.7;
    }

    /* --- Part 2: Blue CTA card --- */
    .part2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: auto;
        padding: 24px 16px;
        border-radius: 24px;
        text-align: center;
        gap: 20px;
    }

    .part2-text-wrap {
        width: 100%;
    }

    .part2-title {
        font-size: 22px;
        padding: 0;
        text-align: center;
    }

    .part2-desc {
        font-size: 16px;
        padding: 0;
        margin-top: 12px;
        text-align: center;
    }

    .part2-btn {
        position: static;
        transform: none;
        width: auto;
        padding: 14px 32px;
        height: auto;
        font-size: 18px;
    }

    .part2-btn:hover {
        transform: scale(1.05);
    }

    /* --- Section headings --- */
    .part3-title,
    .part4-title,
    .part5-title,
    .part6-title,
    .part7-title,
    .part8-title {
        font-size: 26px;
    }

    /* --- Body text --- */
    .part3-text,
    .part4-text,
    .part5-text,
    .part6-text,
    .part7-text,
    .part8-text {
        font-size: 16px;
        line-height: 1.7;
    }

    /* --- Flow diagram image --- */
    .part3-img {
        width: 100%;
    }

    /* --- Part 1 title adjustment --- */
    .part1-title {
        font-size: 28px;
        line-height: 1.25;
    }

    .part1-subtitle {
        font-size: 15px;
    }

    /* --- Metrics table --- */
    .part-metrics-table {
        overflow-x: auto;
    }

    .metrics-table {
        min-width: 320px;
    }

    .metrics-col-label {
        flex: 1;
    }

    .metrics-header,
    .metrics-row {
        font-size: 14px;
        padding: 10px 6px;
    }

    .metrics-row-tall {
        font-size: 13px;
        padding: 10px 8px;
    }

    /* --- Q&A sections --- */
    .section-title {
        font-size: 24px;
    }

    .qa-question {
        font-size: 18px;
    }

    .qa-label,
    .section-text {
        font-size: 16px;
    }

    /* --- Part 9: More Blogs --- */
    .part9-title {
        font-size: 26px;
    }

    .part9-cards {
        flex-direction: column;
        gap: 12px;
    }

    .topic-card {
        flex-direction: row;
        border-radius: 20px;
        align-items: center;
    }

    .topic-card-img {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        border-radius: 16px 0 0 16px;
        object-fit: cover;
    }

    .topic-card-body {
        padding: 12px;
        flex: 1;
        gap: 6px;
    }

    .topic-card-title {
        font-size: 16px;
        line-height: 1.3;
    }

    /* Arrow indicator */
    .topic-card::after {
        content: '›';
        font-size: 24px;
        color: #888888;
        padding-right: 12px;
        flex-shrink: 0;
    }

    /* --- Blog bottom: show only divider + copyright on mobile --- */
    .blog-bottom {
        display: flex;
        margin-top: 100px;
        margin-bottom: 200px;
    }

    .bottom-title,
    .bottom-subtitle,
    .access_button-wrapper {
        display: none;
    }

    .bottom-divider {
        margin-top: 0;
    }

    .bottom-copyright {
        margin-top: 24px;
        margin-bottom: 20px;
    }

    /* --- Mobile bottom CTA card — fixed at bottom of screen --- */
    .mobile-bottom-card {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0 16px 20px;
        z-index: 100;
    }

    .mobile-bottom-card-inner {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
        background-color: #191919;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .mobile-bottom-card-text {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .mobile-bottom-card-title {
        font-family: 'Avenir', -apple-system, sans-serif;
        font-weight: 500;
        font-size: 16px;
        color: #FFFFFF;
        margin: 0;
    }

    .mobile-bottom-card-desc {
        font-family: 'Avenir', -apple-system, sans-serif;
        font-weight: 400;
        font-size: 14px;
        color: #DCDCDC;
        margin: 0;
    }

    .mobile-bottom-card-btn {
        flex-shrink: 0;
        background-color: #0a6cff;
        color: #FFFFFF;
        font-family: 'Avenir', -apple-system, sans-serif;
        font-weight: 400;
        font-size: 16px;
        padding: 10px 16px;
        border-radius: 24px;
        text-decoration: none;
        white-space: nowrap;
    }
}


/* =========================================
   H5 Image Lightbox
   ========================================= */
.img-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.img-lightbox.active {
    display: flex;
}

.img-lightbox img {
    max-width: 95%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}