/* =========================================
   Founder Story 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, Subtitle & Quote Card
   ========================================= */
.part1 {
    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;
}

/* Quote card — two-column layout with photo */
.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-card-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
}

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

.quote-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #191919;
    border: 1px solid #333333;
}

.quote-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* =========================================
   Part 2: Intro (no section heading)
   ========================================= */
.part2 {
    background-color: transparent;
    border: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.part2-intro {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #DCDCDC;
    line-height: 1.6;
    margin: 0 0 16px 0;
    width: 100%;
}

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

/* =========================================
   Parts 3–6: Named sections
   ========================================= */
.part3, .part4, .part5, .part6 {
    background-color: transparent;
    border: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.section-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;
}

.section-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;
}

/* Bold labels inside section text e.g. "· The Hustle:" */
.label {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 800;
    color: #FFFFFF;
}

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

/* 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;
}

/* =========================================
   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;
}

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

    /* H5 background images */
    body {
        background-image:
            url('../../images/web_bg_shadow_top_h5.png'),
            url('../../images/blog_bottom_bg.jpg');
        background-size: 100% auto, 100% auto;
        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;
    }

    /* Blog parts */
    .blog-detail-container {
        padding: 0 16px;
    }

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

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

    /* Part 1 */
    .part1-title {
        font-size: 30px;
        line-height: 1.25;
        text-align: left;
    }

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

    /* Quote card — visible frame + stacked vertically on mobile */
    .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-card-inner {
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: 16px;
    }

    .quote-avatar {
        order: -1;
        width: 80px;
        height: 80px;
    }

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

    /* Section titles */
    .section-title {
        font-size: 26px;
    }

    /* Body text */
    .section-text {
        font-size: 18px;
        line-height: 1.7;
    }

    /* 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;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}


/* =========================================
   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;
}
