/* ============================================================
   BLOG SINGLE POST — blog-single.css
   Scoped under bp-* namespace
   ============================================================ */

/* ===== HERO ===== */
.bp-hero {
    background: linear-gradient(135deg, #f0fdf9 0%, #e6f7f5 50%, #f8fafc 100%);
    padding: 52px 0 64px;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}
.bp-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* Breadcrumb */
.bp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.bp-breadcrumb a { color: #0d9488; text-decoration: none; font-weight: 500; }
.bp-breadcrumb a:hover { color: #0f766e; }
.bp-breadcrumb__current { color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }

/* Category Badge */
.bp-cat-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.25);
    color: #0d9488;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Title */
.bp-hero__title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(1.85rem, 3vw, 2.7rem);
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
}
.bp-title-accent { color: #0d9488; }

/* Description */
.bp-hero__desc {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 24px;
    max-width: 500px;
}

/* Author Row */
.bp-author-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}
.bp-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bp-author__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0d9488;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}
.bp-author__name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.bp-author__role {
    font-size: 12px;
    color: #64748b;
    margin-top: 1px;
}
.bp-meta-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.bp-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
}
.bp-meta-pill svg { color: #0d9488; flex-shrink: 0; }

/* Hero Image */
.bp-hero__image-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15,23,42,0.12);
    border: 1px solid rgba(255,255,255,0.8);
}
.bp-hero__image-wrap img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}
.bp-hero__doodle {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 10px 14px;
    font-family: var(--font-doodle, 'Caveat', cursive);
    font-size: 14px;
    line-height: 1.4;
    color: #0f766e;
    max-width: 160px;
    text-align: center;
    transform: rotate(2deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    animation: floatGentle 4.5s ease-in-out infinite;
}

/* ===== BODY SECTION ===== */
.bp-body-section {
    background: #f8fafc;
    padding: 56px 0 80px;
}
.bp-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 44px;
    align-items: start;
}

/* ===== ARTICLE ===== */
.bp-article { background: #fff; }

/* Pull Quote */
.bp-pull-quote {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #f0fdf9, #e6f7f5);
    border-left: 4px solid #0d9488;
    border-radius: 0 14px 14px 0;
    padding: 20px 24px;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px rgba(13,148,136,0.08);
}
.bp-pull-quote__icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.bp-pull-quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: #134e4a;
    line-height: 1.65;
    margin: 0;
    font-weight: 500;
}

/* Cover Frame */
.bp-cover-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    margin-bottom: 36px;
    background: #f8fafc;
}
.bp-cover-frame img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

/* Rich Text Body */
.bp-rich-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    padding: 36px 40px;
    margin-bottom: 32px;
}
.bp-rich-text p { margin-bottom: 20px; }
.bp-rich-text h2 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    margin: 36px 0 14px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
    counter-increment: section;
}
.bp-rich-text h2::before {
    content: "0" counter(section);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(13,148,136,0.1);
    color: #0d9488;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    font-family: var(--font-heading, 'Outfit', sans-serif);
}
.bp-rich-text {
    counter-reset: section;
}
.bp-rich-text h3 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 28px 0 12px;
}
.bp-rich-text blockquote {
    background: #f0fdf4;
    border-left: 4px solid #0d9488;
    padding: 18px 22px;
    margin: 28px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.08rem;
    color: #134e4a;
    line-height: 1.65;
}
.bp-rich-text ul, .bp-rich-text ol { margin: 0 0 20px 24px; padding: 0; }
.bp-rich-text li { margin-bottom: 8px; }
.bp-rich-text a { color: #0d9488; }
.bp-rich-text strong { color: #0f172a; }
.bp-rich-text figure {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin: 28px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.bp-rich-text figure img { width: 100%; height: auto; display: block; cursor: pointer; }
.bp-rich-text figcaption { font-size: 12.5px; color: #64748b; padding: 8px 14px; background: #f8fafc; border-top: 1px solid #f1f5f9; text-align: center; font-style: italic; }

/* Gallery */
.bp-gallery {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 32px;
}
.bp-gallery__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
}
.bp-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.bp-gallery__item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: transform 0.25s ease;
}
.bp-gallery__item:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(13,148,136,0.15); }
.bp-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.bp-gallery__item:hover img { transform: scale(1.06); }
.bp-gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: flex-end;
    padding: 10px;
}
.bp-gallery__item:hover .bp-gallery__overlay { opacity: 1; }
.bp-gallery__overlay span { color: #fff; font-size: 12px; font-weight: 600; }

/* Share Bar */
.bp-share-bar {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 8px;
}
.bp-share-bar__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
}
.bp-share-buttons { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Share Buttons */
.bp-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}
.bp-share-btn:hover { transform: translateY(-2px); }
.bp-share-wa { background: #25d366; color: #fff; }
.bp-share-wa:hover { background: #1ebc59; box-shadow: 0 6px 16px rgba(37,211,102,0.3); }
.bp-share-x { background: #000; color: #fff; }
.bp-share-x:hover { background: #333; box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
.bp-share-li { background: #0077b5; color: #fff; }
.bp-share-li:hover { background: #005f93; box-shadow: 0 6px 16px rgba(0,119,181,0.3); }
.bp-share-copy { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; padding: 0 14px; width: auto; gap: 7px; font-size: 13px; }
.bp-share-copy:hover { background: #e2e8f0; }

/* ===== SIDEBAR ===== */
.bp-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bp-sidebar-widget {
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    padding: 22px;
}
.bp-sidebar-widget__header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.bp-sidebar-widget__header svg { color: #0d9488; flex-shrink: 0; }
.bp-view-all {
    font-size: 12.5px;
    font-weight: 700;
    color: #0d9488;
    text-decoration: none;
    margin-left: auto;
}
.bp-view-all:hover { color: #0f766e; }

/* Sidebar Share */
.bp-sidebar-share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Related Posts */
.bp-related-list { display: flex; flex-direction: column; gap: 16px; }
.bp-related-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}
.bp-related-item:hover { transform: translateX(3px); }
.bp-related-thumb {
    width: 72px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}
.bp-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bp-related-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bp-related-cat { font-size: 11px; font-weight: 700; color: #0d9488; text-transform: uppercase; letter-spacing: 0.04em; }
.bp-related-title { font-size: 13px; font-weight: 600; color: #0f172a; line-height: 1.35; transition: color 0.2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-related-item:hover .bp-related-title { color: #0d9488; }
.bp-related-date { font-size: 11px; color: #94a3b8; display: flex; align-items: center; gap: 4px; margin-top: 2px; }

/* Topics Cloud */
.bp-topics-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-topic-tag {
    padding: 6px 13px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}
.bp-topic-tag:hover { background: #f0fdfa; border-color: #99f6e4; color: #0d9488; }

/* Study Guide Widget */
.bp-study-guide {
    background: linear-gradient(135deg, #f0fdf9, #f0fdfa);
    border-color: #99f6e4;
    position: relative;
    overflow: hidden;
}
.bp-study-guide__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0d9488;
    margin-bottom: 8px;
}
.bp-study-guide__title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.3;
}
.bp-study-guide__desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 18px;
}
.bp-study-guide__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 36px;
    opacity: 0.2;
    animation: floatGentleSubtle 4s ease-in-out infinite;
}
.bp-study-guide__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: #0d9488;
    color: #fff;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    width: 100%;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(13,148,136,0.22);
}
.bp-study-guide__btn:hover { background: #0f766e; transform: translateY(-1px); }

/* ===== LIGHTBOX ===== */
.bp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}
.bp-lightbox.active { display: flex; }
.bp-lightbox__wrap { max-width: 90vw; max-height: 80vh; }
.bp-lightbox__wrap img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.8); }
.bp-lightbox__caption { color: #fff; font-size: 14px; margin-top: 14px; text-align: center; }
.bp-lightbox__close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: #fff; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; line-height: 1; transition: background 0.2s; }
.bp-lightbox__close:hover { background: rgba(239,68,68,0.8); }
.bp-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: #fff; border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 24px; line-height: 1; transition: background 0.2s; }
.bp-lightbox__nav:hover { background: #0d9488; }
.bp-lightbox__prev { left: 20px; }
.bp-lightbox__next { right: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .bp-body-grid { grid-template-columns: 1fr 280px; }
}
@media (max-width: 900px) {
    .bp-hero__inner { grid-template-columns: 1fr; gap: 36px; }
    .bp-hero__image-wrap { order: -1; }
    .bp-hero__image-wrap img { height: 260px; }
    .bp-body-grid { grid-template-columns: 1fr; }
    .bp-sidebar { position: static; }
    .bp-rich-text { padding: 24px 20px; }
}
@media (max-width: 600px) {
    .bp-hero { padding: 36px 0 48px; }
    .bp-hero__title { font-size: 1.65rem; }
    .bp-author-row { flex-direction: column; gap: 12px; }
}
