/* ==========================================================================
   Blog Page Custom Stylesheet
   Path: assets/css/blog-page.css
   ========================================================================== */

.blog-page-wrapper {
    background-color: #FFFFFF;
    color: var(--wm-body, #60403E);
}

.blog-page-wrapper h1,
.blog-page-wrapper h2,
.blog-page-wrapper h3,
.blog-page-wrapper h4 {
    font-family: var(--font-heading, 'Domine', serif);
    color: var(--wm-heading, #2E3030);
    font-weight: 700;
}

/* Tagline utility styles for Blog */
.blog-page-wrapper .tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-page-wrapper .tagline .wm-tagline-line {
    width: 30px;
    height: 1px;
    background-color: var(--wm-heading, #2E3030);
    display: inline-block;
    margin-right: 10px;
}

.blog-page-wrapper .tagline .wm-tagline-text {
    letter-spacing: 2px;
    color: var(--wm-subheading, #4C4C4C);
    font-size: 0.85rem;
    font-family: var(--font-body, sans-serif);
    font-weight: 700;
}

/* ==========================================================================
   1. Hero Section
   ========================================================================== */
body .blog-hero-section {
    background: var(--hero-background-color) !important;
    /* Matches premium cream backdrop */
    position: relative;
    padding-top: 50px !important;
    padding-bottom: 120px !important;
}

.blog-hero-section .tagline-dot {
    background: #ffffff !important;
}

.blog-hero-section .tagline-text {
    color: #ffffff !important;
}

.blog-hero-section .btn-wm-primary {
    background: white !important;
    color: #347d75 !important;
    border: 1px solid transparent !important
}

.blog-hero-section .btn-wm-primary:hover {
    background-color: transparent !important;
    color: white !important;
    border: 1px solid white !important
}

.blog-hero-section .btn-wm-outline {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

body h1.blog-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    color: #ffffff !important;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #ffffff !important;
    max-width: 620px;
}

/* Hero Image & Layout */
.hero-image-container {
    position: relative;
    padding: 0px;
    z-index: 1;
}

.hero-image-frame {
    position: relative;
    width: 100%;
    /* max-width: 420px; */
    height: 750px;
    border-radius: 210px 210px 0 0;
    overflow: hidden;
    /* box-shadow: 0 15px 45px rgba(96, 64, 62, 0.08); */
    background-color: transparent;
    z-index: 2;
    margin: 0 0 0 auto;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-border {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border-radius: 210px 210px 0 0;
    border: 2px solid var(--wm-primary, #6DA8A3);
    z-index: 1;
}

/* Floating Topic Pills Overlay */
.hero-topic-pills-stack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.hero-topic-pills-stack .blog-topic-pill {
    position: absolute;
    pointer-events: auto;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(96, 64, 62, 0.06);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    text-decoration: none !important;
    left: auto !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-topic-pills-stack .blog-topic-pill:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(96, 64, 62, 0.12);
}

.blog-pill-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
}

.blog-pill-name {
    font-size: 0.88rem;
    letter-spacing: 0.5px;
}

/* Individual Pill Position Coordinates */
.hero-topic-pills-stack .blog-topic-pill:nth-child(1) {
    top: 10%;
    right: -35px;
}

.hero-topic-pills-stack .blog-topic-pill:nth-child(2) {
    top: 32%;
    right: -55px;
}

.hero-topic-pills-stack .blog-topic-pill:nth-child(3) {
    top: 54%;
    right: -45px;
}

.hero-topic-pills-stack .blog-topic-pill:nth-child(4) {
    top: 76%;
    right: -25px;
}


/* ==========================================================================
   2. Recent Articles Section
   ========================================================================== */
.blog-articles-section {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

.blog-articles-title {
    font-size: 2.8rem;
    color: var(--wm-heading, #2E3030);
}

.blog-articles-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-body, sans-serif);
    line-height: 1.6;
}

/* Premium Card Layout */
.blog-article-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(96, 64, 62, 0.02);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    height: 100%;
}

.blog-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(96, 64, 62, 0.08);
}

/* Card image on left */
.card-image-wrapper {
    width: 240px;
    padding: 14px;
}

.card-image-arched {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); */
}

.card-image-arched img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); */
}

.blog-article-card:hover .card-image-arched img {
    /* transform: scale(1.08); */
}

/* Card details on right */
.card-content-wrapper {
    padding: 20px !important;
}

.card-post-title {
    font-family: var(--font-heading, 'Domine', serif);
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 700;
}

.card-post-title a {
    color: var(--wm-heading, #2E3030);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-post-title a:hover {
    color: var(--wm-primary, #6DA8A3);
}

.card-post-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--wm-body, #60403E);
    opacity: 0.85;
}

.card-read-more {
    font-size: 0.8rem;
    color: var(--wm-primary, #6DA8A3);
    text-decoration: none !important;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.card-read-more:hover {
    color: var(--wm-secondary, #99B8DD);
}

.card-read-more svg {
    transition: transform 0.3s ease;
}

.card-read-more:hover svg {
    transform: translateX(4px);
}


/* ==========================================================================
   3. Support Section
   ========================================================================= */
.blog-support-section {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
    background-color: #FAF8F5;
}

/* Tagline Process Badge */
.process-tag-badge-wrap {
    display: block;
}

.process-tag-badge {
    background-color: #F6DFDB;
    color: #A3645E;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
    font-family: var(--font-body, sans-serif);
}

.support-title {
    font-size: 2.8rem;
    color: var(--wm-heading, #2E3030);
    line-height: 1.25;
}

/* Thin horizontal separator line */
.support-accent-line {
    width: 60px;
    height: 1px;
    background-color: #D6CDCB;
}

.support-desc p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--wm-body, #60403E);
    opacity: 0.9;
}

.support-desc p:last-child {
    margin-bottom: 0;
}

/* Highlighted Quote Box with Botanical Illustration */
.support-quote-box {
    border-radius: 16px;
    border: none;
    margin-top: 35px;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-quote-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(96, 64, 62, 0.05) !important;
}

.quote-botanical-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60403E;
}

.quote-botanical-icon {
    display: block;
}

/* Floating White Steps Checklist (Right Side) */
.support-steps-list {
    position: relative;
    z-index: 2;
    margin-left: auto;
    max-width: 550px;
}

.support-step-card {
    background-color: #FFFFFF;
    border-radius: 16px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    box-shadow: 0 4px 20px rgba(96, 64, 62, 0.02) !important;
}

.support-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(96, 64, 62, 0.08) !important;
}

.step-icon-badge-wrap {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.step-card-title {
    color: var(--wm-heading, #2E3030);
    font-weight: 700;
    font-size: 1.12rem;
    line-height: 1.4;
}

.step-card-desc {
    color: var(--wm-body, #60403E);
    opacity: 0.8;
    font-size: 0.92rem;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .blog-support-section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .support-title {
        font-size: 35px !important;
    }

    .support-quote-box {
        margin-top: 25px;
    }

    .support-step-card {
        padding: 16px !important;
    }

    .step-icon-badge-wrap {
        width: 50px !important;
        height: 50px !important;
        margin-right: 16px !important;
    }

    .step-icon-badge-wrap svg {
        width: 20px;
        height: 20px;
    }

    .step-card-title {
        font-size: 1.05rem;
    }

    .step-card-desc {
        font-size: 0.88rem;
    }
}

/* Button Custom Styles */
.btn-wm-primary,
.btn-wm-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-wm-primary {
    background-color: var(--wm-primary, #6DA8A3) !important;
    color: #FFFFFF !important;
    border: 1px solid transparent !important;
    box-shadow: 0 4px 15px rgba(109, 168, 163, 0.15);
}

.btn-wm-primary:hover {
    background-color: var(--wm-heading, #2E3030) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 48, 48, 0.2);
}

.btn-wm-outline {
    background-color: transparent !important;
    color: var(--wm-heading, #2E3030) !important;
    border: 1px solid var(--wm-heading, #2E3030) !important;
}

.btn-wm-outline:hover {
    background-color: var(--wm-heading, #2E3030) !important;
    color: #FFFFFF !important;
    border-color: var(--wm-heading, #2E3030) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 48, 48, 0.15);
}

.btn-wm-primary svg,
.btn-wm-outline svg {
    transition: transform 0.3s ease;
}

.btn-wm-primary:hover svg,
.btn-wm-outline:hover svg {
    transform: translateX(4px);
}


/* ==========================================================================
   4. Crisis Support Section
   ========================================================================= */
/* ==========================================================================
   4. Crisis Support Section
   ========================================================================= */
.blog-crisis-section {
    padding-top: 130px !important;
    padding-bottom: 110px !important;
    background-color: #FAF8F5;
}

.crisis-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-family: var(--font-heading, 'Domine', serif);
    color: var(--wm-heading, #2E3030);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 25px;
}

.crisis-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--wm-body, #60403E);
    opacity: 0.9;
    margin-bottom: 40px;
}

/* Arched Image Frame with Overlapping Blobs */
.crisis-image-container {
    position: relative;
    padding: 30px;
    display: inline-block;
    z-index: 1;
}

.crisis-image-frame {
    position: relative;
    width: 650px;
    height: 700px;
    /* border-radius: 190px 190px 0 0; */
    overflow: hidden;
    /* box-shadow: 0 15px 45px rgba(96, 64, 62, 0.08); */
    background-color: transparent;
    z-index: 2;
    margin: 0 auto;
}

.crisis-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.crisis-image-container:hover .crisis-image-frame img {
    /* transform: scale(1.04); */
}

/* Background decorative blobs */
.crisis-blob-pink {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background-color: #FCEAE8;
    top: 10px;
    left: -15px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
}

.crisis-blob-teal {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background-color: #E3F2F0;
    bottom: -15px;
    right: -25px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.9;
}

/* Postpartum Psychosis Warning Alert Banner */
.crisis-alert-banner {
    border-radius: 16px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.crisis-alert-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(96, 64, 62, 0.05) !important;
}

.alert-botanical-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60403E;
}

.alert-botanical-icon {
    display: block;
}

.alert-paragraph {
    color: #2E3030;
    line-height: 1.65;
    font-size: 0.96rem;
}

/* Responsive Overrides */
@media (max-width: 767px) {
    .blog-crisis-section {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }

    .crisis-title {
        font-size: 35px !important;
        margin-bottom: 20px;
    }

    .crisis-desc {
        font-size: 0.96rem;
        line-height: 1.65;
        margin-bottom: 30px;
    }

    .crisis-image-container {
        padding: 20px;
        margin-top: 40px;
    }

    .crisis-image-frame {
        width: 280px;
        height: 350px;
        border-radius: 140px 140px 0 0;
    }

    .crisis-blob-pink {
        width: 170px;
        height: 170px;
        top: 10px;
        left: -10px;
    }

    .crisis-blob-teal {
        width: 210px;
        height: 210px;
        bottom: -10px;
        right: -15px;
    }
}

/* ==========================================================================
   5. Single Blog Post Details Section
   ========================================================================== */
.single-post-wrapper {
    background-color: #FAF8F5;
    padding-top: 80px !important;
    padding-bottom: 120px !important;
}

.single-post-category {
    color: var(--wm-primary, #3C867C);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.single-post-meta-divider {
    color: rgba(96, 64, 62, 0.25);
    margin: 0 10px;
}

.single-post-date {
    color: var(--wm-subheading, #4C4C4C);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.single-post-title {
    font-family: var(--font-heading, 'Domine', serif);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
    color: var(--wm-heading, #2E3030);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
}

.single-post-author-bar {
    margin-top: 24px;
}

.single-post-author-bar .author-avatar {
    width: 48px;
    height: 48px;
    background-color: #EAF4F2;
    color: var(--wm-primary, #3C867C);
    border-radius: 50%;
    font-size: 1.3rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
}

.single-post-author-bar .author-name {
    color: var(--wm-heading, #2E3030);
    font-weight: 700;
    font-size: 0.95rem;
}

.single-post-author-bar .post-read-time {
    color: var(--wm-muted, #949599);
    font-size: 0.82rem;
}

/* Arched Premium Featured Image */
.single-post-image-wrapper {
    max-width: 800px;
    width: 100%;
}

.single-post-image-frame {
    width: 100%;
    height: 480px;
    border-radius: 240px 240px 0 0;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(96, 64, 62, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.single-post-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Post content formatting */
.single-post-content {
    font-family: var(--font-body, sans-serif);
    font-size: 1.12rem;
    line-height: 1.85;
    color: var(--wm-body, #60403E);
}

.single-post-content p {
    margin-bottom: 28px;
    color: var(--wm-body, #60403E);
}

.single-post-content h2 {
    font-family: var(--font-heading, 'Domine', serif);
    color: var(--wm-heading, #2E3030);
    font-size: 1.85rem;
    margin-top: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.single-post-content h3 {
    font-family: var(--font-heading, 'Domine', serif);
    color: var(--wm-heading, #2E3030);
    font-size: 1.45rem;
    margin-top: 36px;
    margin-bottom: 16px;
    font-weight: 700;
}

.single-post-content blockquote {
    background-color: #FDF7F5;
    border-left: 4px solid var(--wm-primary, #6DA8A3);
    padding: 30px 35px;
    margin: 40px 0;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 4px 15px rgba(96, 64, 62, 0.02);
}

.single-post-content blockquote p {
    font-family: var(--font-heading, 'Domine', serif);
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--wm-heading, #2E3030);
    font-style: italic;
    margin-bottom: 0;
}

.single-post-content ul, 
.single-post-content ol {
    margin-bottom: 30px;
    padding-left: 24px;
}

.single-post-content li {
    margin-bottom: 12px;
    padding-left: 4px;
    color: var(--wm-body, #60403E);
}

.single-post-content a {
    color: var(--wm-primary, #6DA8A3);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.single-post-content a:hover {
    color: var(--wm-secondary, #99B8DD);
}

/* Post navigation styles */
.single-post-navigation {
    margin-top: 30px;
}

.post-nav-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 24px 28px;
    border: 1px solid rgba(60, 134, 124, 0.08);
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(96, 64, 62, 0.02);
    min-height: 100px;
    justify-content: center;
}

.post-nav-card:hover {
    background-color: #FDF9F7;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(96, 64, 62, 0.06);
    border-color: var(--wm-primary, #3C867C);
}

.post-nav-card:hover .nav-post-title {
    color: var(--wm-primary, #3C867C);
}

.nav-direction-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--wm-primary, #3C867C);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
}

.nav-direction-label i {
    transition: transform 0.3s ease;
    display: inline-block;
}

.prev-card:hover .nav-direction-label i {
    transform: translateX(-4px);
}

.next-card:hover .nav-direction-label i {
    transform: translateX(4px);
}

.nav-post-title {
    font-family: var(--font-heading, 'Domine', serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--wm-heading, #2E3030);
    line-height: 1.35;
    transition: color 0.3s ease;
}

/* Responsive overrides for post details */
@media (max-width: 767px) {
    .single-post-wrapper {
        padding-top: 50px !important;
        padding-bottom: 80px !important;
    }
    
    .single-post-title {
        font-size: 2rem !important;
    }
    
    .single-post-image-frame {
        height: 300px;
        border-radius: 150px 150px 0 0;
    }
    
    .single-post-content {
        font-size: 1.05rem;
    }
    
    .single-post-content h2 {
        font-size: 1.55rem;
        margin-top: 36px;
    }
    
    .single-post-content h3 {
        font-size: 1.3rem;
        margin-top: 28px;
    }
    
    .single-post-content blockquote {
        padding: 20px 24px;
    }
    
    .single-post-content blockquote p {
        font-size: 1.12rem;
    }
    
    .single-post-navigation {
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    .post-nav-card {
        padding: 20px 24px;
        text-align: left !important;
        align-items: flex-start !important;
    }
    
    .post-nav-card.next-card .nav-direction-label {
        flex-direction: row-reverse;
    }
}