/* ═══════════════════════════════════════════════════════
   BLOG SINGLE POST  —  blog-single.css
   ═══════════════════════════════════════════════════════ */

:root {
    --bs-g:    #014629;
    --bs-g2:   #025e36;
    --bs-g3:   #0d9448;
    --bs-y:    #f0f812;
    --bs-dark: #071a0e;
    --bs-bg:   #f6f9f7;
    --bs-t:    .26s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════════
   PAGE WRAPPER
   ══════════════════════════════════════════ */
.bsp-wrap {
    background: var(--bs-bg);
    min-height: 60vh;
}

/* ══════════════════════════════════════════
   HERO — featured image full-bleed
   ══════════════════════════════════════════ */
.bsp-hero {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: var(--bs-dark);
}

.bsp-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .88;
}

/* Dark gradient overlay */
.bsp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7,26,14,.25)  0%,
        rgba(7,26,14,.55)  60%,
        rgba(7,26,14,.85) 100%
    );
}

/* No image fallback */
.bsp-hero-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #012b1a 0%, #014629 55%, #01562f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.bsp-hero-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 32px 32px;
}
.bsp-hero-fallback svg {
    opacity: .12;
    z-index: 1;
}

/* Title block over the image */
.bsp-hero-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 0 0 52px;
    z-index: 3;
}

.bsp-hero-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Back button — top left */
.bsp-back-top {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 860px;
    padding: 0 24px;
    z-index: 10;
    pointer-events: none;
}
.bsp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
    padding: 9px 20px 9px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--bs-t);
    pointer-events: auto;
    letter-spacing: .1px;
}
.bsp-back-btn:hover {
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.4);
    color: #fff;
    gap: 12px;
}
.bsp-back-btn svg { flex-shrink: 0; transition: transform var(--bs-t); }
.bsp-back-btn:hover svg { transform: translateX(-3px); }

/* Category chip */
.bsp-cat {
    display: inline-flex;
    align-items: center;
    background: var(--bs-y);
    color: var(--bs-dark);
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 6px 16px;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 18px;
    transition: opacity var(--bs-t);
}
.bsp-cat:hover { opacity: .85; color: var(--bs-dark); }

/* Title */
.bsp-title {
    font-size: 46px;
    font-weight: 900;
    color: #fff;
    line-height: 1.18;
    margin: 0;
    letter-spacing: -.5px;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

/* ══════════════════════════════════════════
   CONTENT CARD
   ══════════════════════════════════════════ */
.bsp-article {
    max-width: 860px;
    margin: -40px auto 0;
    padding: 0 24px 80px;
    position: relative;
    z-index: 5;
}

.bsp-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(1,70,41,.1), 0 2px 12px rgba(0,0,0,.06);
    overflow: hidden;
}

/* Meta bar at top of card */
.bsp-meta-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 40px;
    border-bottom: 1px solid #edf3ef;
    flex-wrap: wrap;
}
.bsp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #7a9283;
    font-weight: 500;
}
.bsp-meta-item svg { opacity: .65; flex-shrink: 0; }

/* Divider dot between meta items */
.bsp-meta-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c8dace;
    flex-shrink: 0;
}

/* Post content area */
.bsp-content {
    padding: 44px 40px 48px;
    font-size: 17px;
    line-height: 1.85;
    color: #2d3f35;
}

/* Typography for post content */
.bsp-content p {
    margin: 0 0 1.5em;
}
.bsp-content p:last-child { margin-bottom: 0; }

.bsp-content h1,
.bsp-content h2,
.bsp-content h3,
.bsp-content h4,
.bsp-content h5,
.bsp-content h6 {
    color: var(--bs-dark);
    font-weight: 800;
    line-height: 1.3;
    margin: 1.8em 0 .7em;
}
.bsp-content h2 { font-size: 26px; }
.bsp-content h3 { font-size: 22px; }
.bsp-content h4 { font-size: 19px; }

.bsp-content a {
    color: var(--bs-g2);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--bs-t);
}
.bsp-content a:hover { color: var(--bs-g3); }

.bsp-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 1.8em auto;
}

.bsp-content ul,
.bsp-content ol {
    padding-left: 1.6em;
    margin: 0 0 1.5em;
}
.bsp-content li { margin-bottom: .5em; }

.bsp-content blockquote {
    margin: 2em 0;
    padding: 20px 28px;
    border-left: 4px solid var(--bs-g3);
    background: rgba(1,70,41,.04);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #4a6354;
}
.bsp-content blockquote p { margin: 0; }

.bsp-content pre,
.bsp-content code {
    font-family: 'Courier New', monospace;
    background: #f0f5f1;
    border-radius: 6px;
}
.bsp-content pre {
    padding: 18px 22px;
    overflow-x: auto;
    font-size: 14px;
    margin: 0 0 1.5em;
}
.bsp-content code {
    padding: 2px 7px;
    font-size: .9em;
}

.bsp-content hr {
    border: none;
    border-top: 2px solid #edf3ef;
    margin: 2.5em 0;
}

/* ══════════════════════════════════════════
   BOTTOM BACK BUTTON
   ══════════════════════════════════════════ */
.bsp-footer-nav {
    padding: 32px 40px 44px;
    border-top: 1px solid #edf3ef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bsp-back-bottom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bs-g);
    color: var(--bs-y);
    padding: 13px 28px 13px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--bs-t);
    box-shadow: 0 4px 18px rgba(1,70,41,.3);
    letter-spacing: .1px;
}
.bsp-back-bottom:hover {
    background: var(--bs-g2);
    color: var(--bs-y);
    transform: translateX(-4px);
    box-shadow: 0 8px 24px rgba(1,70,41,.4);
}
.bsp-back-bottom svg { flex-shrink: 0; transition: transform var(--bs-t); }
.bsp-back-bottom:hover svg { transform: translateX(-3px); }

/* Reading progress label */
.bsp-read-done {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bs-g3);
}
.bsp-read-done svg { flex-shrink: 0; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

/* Tablet */
@media only screen and (max-width: 900px) {
    .bsp-hero { height: 420px; }
    .bsp-title { font-size: 36px; }
    .bsp-article { margin-top: -28px; }
    .bsp-content { padding: 32px 30px 36px; font-size: 16px; }
    .bsp-meta-bar { padding: 18px 30px; gap: 14px; }
    .bsp-footer-nav { padding: 24px 30px 32px; }
}

/* Mobile */
@media only screen and (max-width: 767px) {
    .bsp-hero { height: 320px; }
    .bsp-hero-content { padding-bottom: 36px; }
    .bsp-title { font-size: 26px; letter-spacing: -.2px; }
    .bsp-cat { font-size: 9.5px; padding: 5px 12px; margin-bottom: 12px; }

    .bsp-back-btn { font-size: 12px; padding: 8px 16px 8px 12px; }

    .bsp-article {
        padding: 0 12px 60px;
        margin-top: -20px;
    }
    .bsp-card { border-radius: 16px; }

    .bsp-meta-bar {
        padding: 14px 20px;
        gap: 10px;
    }
    .bsp-meta-item { font-size: 12px; }
    .bsp-meta-sep { display: none; }

    .bsp-content {
        padding: 24px 20px 28px;
        font-size: 15.5px;
        line-height: 1.8;
    }
    .bsp-content h2 { font-size: 22px; }
    .bsp-content h3 { font-size: 19px; }
    .bsp-content blockquote { padding: 14px 18px; }

    .bsp-footer-nav {
        padding: 20px 20px 28px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .bsp-back-bottom { font-size: 13px; padding: 12px 22px 12px 18px; }
}

/* Small mobile */
@media only screen and (max-width: 480px) {
    .bsp-hero { height: 260px; }
    .bsp-title { font-size: 22px; }
    .bsp-back-top { padding: 0 14px; }
    .bsp-hero-inner { padding: 0 16px; }
    .bsp-article { padding: 0 10px 52px; }
}
