/* =========================================
   why-you-cant-fall-asleep Blog Styles
   Follows Raizz blog design system
   ========================================= */

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

/* --- Content container --- */
.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: transparent;
    border: none;
    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 + TL;DR + Quote Card
   ========================================= */
.part1 {
    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 */
.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: 0;
    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: 0;
}

/* Hero image */
.part1-img {
    width: 100%;
    border-radius: 20px;
    margin-top: 24px;
    display: block;
    object-fit: cover;
}

/* =========================================
   Part 2: Blue CTA Card
   ========================================= */
.part2 {
    height: 190px;
    background-color: #1e5ac8;
    border-radius: 30px;
    border: none;
    position: relative;
    display: block;
    box-sizing: border-box;
}

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

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

.part2-btn {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #FFFFFF;
    color: #000000;
    border-radius: 40px;
    padding: 16px 30px;
    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: translateY(-50%) scale(1.05);
    opacity: 0.9;
}

/* =========================================
   Answer Capsule (shared across all parts)
   ========================================= */
.answer-capsule {
    width: 100%;
    box-sizing: border-box;
    background-color: rgba(106, 172, 255, 0.08);
    border-left: 3px solid #6AACFF;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.capsule-text {
    font-family: 'Avenir', -apple-system, sans-serif;
    font-weight: 400;
    font-size: 17px;
    color: #DADADA;
    line-height: 1.65;
    margin: 0;
}

/* =========================================
   Parts 3-8: Content sections
   ========================================= */
.part3,
.part4,
.part5,
.part6,
.part7,
.part8 {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Section titles (H2) */
.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;
}

/* Inline links */
.part3-link {
    color: #6AACFF;
    text-decoration: underline;
}

.part3-link:hover {
    opacity: 0.8;
}

/* =========================================
   Part 9: FAQ Section
   ========================================= */
.part9-faq {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 40px;
}

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

/* =========================================
   Part 10: More Blogs
   ========================================= */
.part10 {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

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

.part10-cards {
    display: flex;
    gap: 20px;
    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: 160px;
    object-fit: cover;
}

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

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

/* =========================================
   Spacing utilities
   ========================================= */
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }

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

/* =========================================
   Hamburger + Mobile nav drawer
   ========================================= */
.nav-hamburger {
    display: none;
}

.nav-drawer {
    display: none;
}

.mobile-bottom-card {
    display: none;
}

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

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

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

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

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

    .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-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: 28px;
        line-height: 1.25;
        text-align: left;
    }

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

    .part1-quote-card {
        padding: 20px;
    }

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

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

    /* Part 2: Blue CTA — stack vertically on mobile */
    .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: 20px;
        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: 17px;
    }

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

    /* Answer capsule */
    .answer-capsule {
        padding: 16px 18px;
        margin-bottom: 16px;
    }

    .capsule-text {
        font-size: 15px;
    }

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

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

    /* FAQ */
    .part9-faq {
        padding-top: 24px;
    }

    .faq-main-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    /* More blogs */
    .part10-title {
        font-size: 24px;
    }

    .part10-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: 15px;
        line-height: 1.3;
    }

    .topic-card::after {
        content: '\203A';
        font-size: 24px;
        color: #888888;
        padding-right: 12px;
        flex-shrink: 0;
    }

    /* Blog bottom */
    .blog-bottom {
        display: flex;
        margin-top: 80px;
        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 */
    .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;
    }
}
