/* Never Alone — Blog layout
   Loads after legal-base.css (shared header / footer / WhatsApp chrome). */

/* ---------- Floating WhatsApp (safe duplicate of the shared rule) ---------- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}
.floating-whatsapp:hover { transform: scale(1.1); }
@media (max-width: 768px) {
    .floating-whatsapp { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 26px; }
}

/* ---------- Tokens ---------- */
:root {
    --blog-max: 820px;
    --blog-wide: 1100px;
    --sage-soft: rgba(135, 169, 107, 0.10);
    --sage-line: rgba(135, 169, 107, 0.28);
    --coral-soft: rgba(232, 180, 160, 0.22);
    --teal-deep: #2F4F4F;
    --border: #E6E9EC;
}

/* ---------- Article hero ---------- */
.blog-hero {
    padding: 140px 0 28px;
    background: linear-gradient(180deg, #F3F6F1 0%, var(--cream-white) 100%);
}

.blog-hero .container { max-width: var(--blog-max); }

.blog-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.blog-breadcrumb a { color: var(--text-light); text-decoration: none; }
.blog-breadcrumb a:hover { color: var(--primary-sage); }
.blog-breadcrumb i { font-size: 0.7rem; opacity: 0.7; }

.blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sage-soft);
    color: #5F7D45;
    border: 1px solid var(--sage-line);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.blog-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.7rem;
    font-weight: 600;
    line-height: 1.18;
    color: var(--text-dark);
    margin-bottom: 22px;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    color: var(--text-light);
    font-size: 0.92rem;
}
.blog-meta span { display: inline-flex; align-items: center; gap: 8px; }
.blog-meta i { color: var(--primary-sage); }
.blog-meta .blog-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 500;
}
.blog-meta .blog-author img {
    width: 30px; height: 30px; border-radius: 8px; object-fit: cover;
}

/* ---------- Hero image ---------- */
.blog-hero-figure {
    max-width: var(--blog-max);
    margin: 30px auto 0;
    padding: 0 20px;
}
.blog-hero-figure img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    box-shadow: 0 18px 40px rgba(44, 62, 80, 0.12);
}

/* ---------- Body ---------- */
.blog-body {
    max-width: var(--blog-max);
    margin: 0 auto;
    padding: 44px 20px 70px;
}

.blog-body > p:first-of-type {
    font-size: 1.18rem;
    color: var(--text-dark);
    line-height: 1.75;
}

.blog-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    margin: 52px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--sage-line);
    scroll-margin-top: 110px;
}

.blog-body h3 {
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 32px 0 10px;
    line-height: 1.4;
}

.blog-body h4 {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 22px 0 8px;
}

.blog-body p,
.blog-body li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

.blog-body p { margin-bottom: 18px; }
.blog-body strong { color: var(--text-dark); font-weight: 600; }
.blog-body a { color: #5F7D45; font-weight: 500; text-decoration: underline; text-decoration-color: var(--sage-line); text-underline-offset: 3px; }
.blog-body a:hover { color: var(--primary-sage); text-decoration-color: var(--primary-sage); }

.blog-body ul,
.blog-body ol {
    margin: 0 0 22px 24px;
}
.blog-body li { margin-bottom: 10px; padding-left: 4px; }
.blog-body li::marker { color: var(--primary-sage); font-weight: 600; }

/* Titled list items (H3 inside a bullet in the source) */
.blog-body .titled-list { list-style: none; margin-left: 0; }
.blog-body .titled-list li {
    position: relative;
    padding: 16px 18px 16px 22px;
    margin-bottom: 12px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary-sage);
    border-radius: 0 12px 12px 0;
}
.blog-body .titled-list li h3 { margin: 0 0 6px; font-size: 1.05rem; }
.blog-body .titled-list li p { margin: 0; }

/* Numbered step blocks */
.blog-body .steps { counter-reset: step; list-style: none; margin-left: 0; }
.blog-body .steps li {
    counter-increment: step;
    position: relative;
    padding-left: 58px;
    margin-bottom: 20px;
}
.blog-body .steps li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: 2px;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--primary-sage);
    color: #fff;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.blog-body .steps li h3 { margin: 6px 0 6px; }
.blog-body .steps li p { margin-bottom: 0; }

/* Table of contents */
.blog-toc {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 26px;
    margin: 0 0 36px;
}
.blog-toc h2 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    border: none;
    margin: 0 0 12px;
    padding: 0;
}
.blog-toc ol { margin: 0 0 0 20px; columns: 2; column-gap: 32px; }
.blog-toc li { margin-bottom: 6px; font-size: 0.95rem; break-inside: avoid; }
.blog-toc a { text-decoration: none; color: var(--text-dark); font-weight: 500; }
.blog-toc a:hover { color: var(--primary-sage); }

/* Callouts */
.blog-callout {
    border-left: 4px solid var(--primary-sage);
    background: var(--sage-soft);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 28px 0;
}
.blog-callout p:last-child, .blog-callout ul:last-child { margin-bottom: 0; }
.blog-callout.urgent { border-left-color: #C0552F; background: var(--coral-soft); }
.blog-callout.info { border-left-color: var(--muted-teal); background: rgba(107, 154, 138, 0.10); }
.blog-callout h3, .blog-callout h4 { margin-top: 0; }
.blog-callout ul { list-style: none; margin-left: 0; }
.blog-callout ul li { margin-bottom: 10px; }

/* Key-number list (helplines to save) */
.blog-savelist { list-style: none; margin: 0; }
.blog-savelist li {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed var(--sage-line);
}
.blog-savelist li:last-child { border-bottom: none; }
.blog-savelist .ico { font-size: 1.3rem; line-height: 1.4; flex: 0 0 auto; }

/* Feature cards */
.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 26px 0 30px;
}
.blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 6px 18px rgba(44, 62, 80, 0.05);
}
.blog-card .ico { font-size: 1.8rem; line-height: 1; margin-bottom: 12px; }
.blog-card h4 { margin: 0 0 8px; font-size: 1.05rem; }
.blog-card p { font-size: 0.97rem; margin-bottom: 10px; }
.blog-card .tags {
    font-size: 0.82rem;
    color: #5F7D45;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0;
}

.blog-card ul { margin: 0 0 0 18px; }
.blog-card li { font-size: 0.95rem; margin-bottom: 6px; line-height: 1.6; }

/* Tables */
.blog-table-wrap {
    overflow-x: auto;
    margin: 22px 0 30px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-white);
    -webkit-overflow-scrolling: touch;
}
.blog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 640px;
}
.blog-table th,
.blog-table td {
    text-align: left;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    color: var(--text-light);
    line-height: 1.55;
}
.blog-table thead th {
    background: var(--teal-deep);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.blog-table tbody tr:nth-child(even) td { background: #F7F9F5; }
.blog-table tbody tr:last-child td { border-bottom: none; }
.blog-table td:first-child,
.blog-table tbody th { color: var(--text-dark); font-weight: 600; }
.blog-table tbody th { background: #F7F9F5; text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.blog-table .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.blog-table .highlight td { background: var(--sage-soft) !important; }
.blog-table .yes { color: #4F7A2E; font-weight: 600; }
.blog-table .no { color: #B0523C; font-weight: 600; }
.blog-table-note { font-size: 0.88rem; color: var(--text-light); margin: -18px 0 26px; }

/* Worries / quote blocks */
.blog-quote {
    margin: 0 0 22px;
    padding: 18px 22px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.blog-quote .q {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.12rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.blog-quote p:last-child { margin-bottom: 0; }

/* Timeline (90-day plan, history) */
.blog-timeline { list-style: none; margin: 0 0 26px; padding-left: 0; }
.blog-timeline li {
    position: relative;
    padding: 0 0 22px 30px;
    border-left: 2px solid var(--sage-line);
    margin: 0;
}
.blog-timeline li::before {
    content: '';
    position: absolute;
    left: -7px; top: 6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--primary-sage);
    box-shadow: 0 0 0 4px var(--cream-white);
}
.blog-timeline li:last-child { padding-bottom: 0; }
.blog-timeline h3 { margin: 0 0 6px; }
.blog-timeline p:last-child { margin-bottom: 0; }

/* FAQ */
.blog-faq { margin: 20px 0 10px; }
.blog-faq details {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}
.blog-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 48px 16px 20px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.02rem;
    position: relative;
    line-height: 1.5;
}
.blog-faq summary::-webkit-details-marker { display: none; }
.blog-faq summary::after {
    content: '+';
    position: absolute;
    right: 18px; top: 50%;
    transform: translateY(-50%);
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--sage-soft);
    color: #5F7D45;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s ease;
}
.blog-faq details[open] summary::after { content: '–'; }
.blog-faq details > div { padding: 0 20px 18px; }
.blog-faq details > div p:last-child { margin-bottom: 0; }

/* CTA block */
.blog-cta {
    margin: 48px 0 0;
    background: linear-gradient(135deg, var(--teal-deep) 0%, #3E6B5E 100%);
    color: #fff;
    border-radius: 18px;
    padding: 36px 34px;
    box-shadow: 0 18px 40px rgba(47, 79, 79, 0.22);
}
.blog-cta h2 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    border: none;
    margin: 0 0 12px;
    padding: 0;
    font-size: 1.7rem;
}
.blog-cta p { color: rgba(255,255,255,0.88); margin-bottom: 14px; }
.blog-cta p:last-of-type { margin-bottom: 22px; }
.blog-cta a:not(.btn) { color: #fff; text-decoration-color: rgba(255,255,255,0.5); }
.blog-cta .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none !important;
    font-size: 0.98rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-whatsapp { background: #25D366; color: #fff !important; }
.btn-whatsapp:hover { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35); }
.btn-light { background: rgba(255,255,255,0.14); color: #fff !important; border: 1px solid rgba(255,255,255,0.35); }
.btn-light:hover { background: rgba(255,255,255,0.22); }
.btn-sage { background: var(--primary-sage); color: #fff !important; }

/* Share / footer of article */
.blog-endnote {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-size: 0.92rem;
    color: var(--text-light);
}
.blog-endnote a { color: var(--text-dark); text-decoration: none; font-weight: 500; }
.blog-endnote a:hover { color: var(--primary-sage); }

/* Related posts */
.blog-related { background: #F3F6F1; padding: 60px 0 70px; }
.blog-related .container { max-width: var(--blog-wide); }
.blog-related h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.blog-related .sub { color: var(--text-light); margin-bottom: 30px; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
}
.post-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 18px rgba(44, 62, 80, 0.05);
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(44, 62, 80, 0.12); }
.post-card .thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary-sage), var(--muted-teal));
    overflow: hidden;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .cat {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5F7D45;
    margin-bottom: 8px;
}
.post-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 10px;
}
.post-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.post-card .foot {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; color: var(--text-light);
}
.post-card .foot .read { display: inline-flex; gap: 6px; align-items: center; }
.post-card .foot .more { color: var(--primary-sage); font-weight: 600; }

/* ---------- Blog index ---------- */
.blog-index-hero {
    padding: 150px 0 60px;
    background: linear-gradient(135deg, var(--primary-sage) 0%, var(--muted-teal) 100%);
    color: #fff;
    text-align: center;
}
.blog-index-hero .eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 12px;
}
.blog-index-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.9rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.blog-index-hero p { max-width: 620px; margin: 0 auto; font-size: 1.08rem; opacity: 0.95; }

.blog-index { padding: 60px 0 80px; }
.blog-index .container { max-width: var(--blog-wide); }

.post-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 36px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-featured:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(44, 62, 80, 0.12); }
.post-featured .thumb { min-height: 320px; background: var(--muted-teal); }
.post-featured .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-featured .body { padding: 38px 40px; display: flex; flex-direction: column; justify-content: center; }
.post-featured .cat { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #5F7D45; margin-bottom: 12px; }
.post-featured h2 { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 600; color: var(--text-dark); line-height: 1.25; margin-bottom: 14px; }
.post-featured p { color: var(--text-light); font-size: 1.02rem; line-height: 1.7; margin-bottom: 18px; }
.post-featured .foot { font-size: 0.9rem; color: var(--text-light); display: flex; gap: 20px; }
.post-featured .foot .more { color: var(--primary-sage); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .post-featured { grid-template-columns: 1fr; }
    .post-featured .thumb { min-height: 220px; aspect-ratio: 16 / 9; }
    .post-featured .body { padding: 26px 24px; }
}

@media (max-width: 768px) {
    .blog-hero { padding: 120px 0 20px; }
    .blog-hero h1 { font-size: 2rem; }
    .blog-hero-figure { padding: 0 15px; margin-top: 22px; }
    .blog-hero-figure img { border-radius: 14px; max-height: 360px; }
    .blog-body { padding: 32px 15px 56px; }
    .blog-body > p:first-of-type { font-size: 1.08rem; }
    .blog-body h2 { font-size: 1.45rem; margin-top: 40px; }
    .blog-body h3 { font-size: 1.08rem; }
    .blog-body p, .blog-body li { font-size: 1rem; }
    .blog-toc ol { columns: 1; }
    .blog-cta { padding: 28px 22px; }
    .blog-cta h2 { font-size: 1.4rem; }
    .blog-index-hero { padding: 120px 0 44px; }
    .blog-index-hero h1 { font-size: 2.1rem; }
    .blog-related { padding: 44px 0 56px; }
    .blog-body .steps li { padding-left: 50px; }
    .blog-body .steps li::before { width: 34px; height: 34px; border-radius: 10px; font-size: 0.9rem; }
}
