/* ===================================
   BLOG DETAIL — LAYOUT
=================================== */
.blog-detail-outer {
    width: 100%;
    max-width: 1280px;
    margin: 80px auto 0;
    padding: 32px 20px 20px;
    font-family: "Poppins", sans-serif;
}

.blog-detail-back-wrapper {
    margin-bottom: 24px;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 12px;
}

/* ===================================
   MAIN ARTICLE
=================================== */
.blog-detail-main {
    min-width: 0;
    padding: 24px 24px 14px;
    background: #ffffff;
    border: 1px solid #e8e8f0;
    border-radius: 22px;
}

.blog-detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.blog-detail-category {
    padding: 8px 16px;
    background: #ece9fb;
    color: #4d3fa8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 999px;
}

.blog-detail-readtime,
.blog-detail-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
}

.blog-detail-title {
    margin: 0 0 14px;
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #16152b;
}

.blog-detail-author-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.blog-detail-author-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #ece9fb;
    color: #4d3fa8;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50%;
}

.blog-detail-author-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1e1b3a;
}

.blog-detail-author-role {
    font-size: 0.88rem;
    color: #6b7280;
}

.blog-detail-divider {
    height: 1px;
    margin-bottom: 14px;
    background: #edeef5;
}

.blog-detail-cover {
    overflow: hidden;
    width: 100%;
    margin-bottom: 32px;
    border-radius: 18px;
}

.blog-detail-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   BLOG BODY
=================================== */
.blog-detail-body {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #33344a;
}

.blog-detail-body h2,
.blog-detail-body h3,
.blog-detail-body h4 {
    margin: 16px 0;
    font-weight: 800;
    color: #16152b;
}

.blog-detail-body p {
    margin: 0 0 16px;
    letter-spacing: 0.06em;
}

.blog-detail-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.blog-detail-body blockquote {
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 4px solid #0d6efd;
    color: #6c757d;
}

/* Tables */
.blog-detail-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;
    overflow-x: auto;
    border-collapse: collapse;
    table-layout: fixed;
    -webkit-overflow-scrolling: touch;
}

.blog-detail-body th,
.blog-detail-body td {
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
    border: 1px solid #e2e2e2;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

.blog-detail-body th {
    font-weight: 700;
}

/* Unordered list */
.blog-detail-body ul {
    margin: 1.25rem 0;
    padding: 0;
    list-style: none;
}

.blog-detail-body ul li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.35rem;
    line-height: 1.65;
}

.blog-detail-body ul li::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 0.7em;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

/* Ordered list */
.blog-detail-body ol {
    margin: 1.25rem 0;
    padding: 0;
    list-style: none;
    counter-reset: item;
}

.blog-detail-body ol li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.35rem;
    line-height: 1.65;
    counter-increment: item;
}

.blog-detail-body ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: currentColor;
}

/* ===================================
   SIDEBAR (sticky)
=================================== */
.blog-detail-sidebar {
    min-width: 0;
}

.sidebar-sticky-inner {
    position: sticky;
    top: 112px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.other-blogs-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e8e8f0;
    border-radius: 20px;
}

.other-blogs-heading {
    margin: 0 0 18px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #16152b;
}

.other-blog-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f7;
}

.other-blog-item:first-of-type {
    padding-top: 0;
}

.other-blog-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.other-blog-thumb {
    overflow: hidden;
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    border-radius: 12px;
}

.other-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.other-blog-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.other-blog-category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #4d3fa8;
}

.other-blog-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1e1b3a;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.other-blog-readtime {
    font-size: 0.82rem;
    color: #9299b0;
}

/* CTA card */
.sidebar-cta-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    background: linear-gradient(150deg, #4c3fd9 0%, #2e2770 100%);
    color: #ffffff;
    border-radius: 20px;
}

.sidebar-cta-eyebrow {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffb655;
}

.sidebar-cta-title {
    margin: 0 0 12px;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
}

.sidebar-cta-text {
    margin: 0 0 22px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-cta-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    background: #f5a623;
    color: #3a2f00;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.sidebar-cta-btn:hover {
    background: #e59a1f;
    transform: translateY(-1px);
}

/* ===================================
   TAGS + SHARE
=================================== */
.blog-tags-section {
    margin-bottom: 14px;
}

.blog-tags-label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8b90a7;
}

.blog-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.blog-tag-pill {
    padding: 10px 22px;
    background: #ece9fb;
    color: #4d3fa8;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 999px;
}

.blog-share-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.blog-share-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.blog-share-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8b90a7;
}

.blog-share-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #33344a;
    text-decoration: none;
    border: 1px solid #e5e7f0;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.share-icon-btn:hover {
    background: #f6f5ff;
    color: #4c3fd9;
    border-color: #4c3fd9;
}

.share-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #ffffff;
    color: #16152b;
    font-family: "Poppins", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    border: 1px solid #e5e7f0;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-copy-btn:hover {
    color: #4c3fd9;
    border-color: #4c3fd9;
}

.blog-share-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.blog-stat-views {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6b7280;
}

.blog-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    color: #16152b;
    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid #e5e7f0;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-like-btn svg {
    color: #e0455a;
}

.blog-like-btn:hover {
    background: #fff5f6;
    border-color: #e0455a;
}

.blog-like-btn.liked svg {
    fill: #e0455a;
}

/* ===================================
   RESPONSIVE — single breakpoint
=================================== */
@media (max-width: 768px) {
    .blog-detail-outer {
        margin-top: 72px;
        padding: 20px 14px 14px;
    }

    .blog-detail-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .blog-detail-main {
        order: 1;
        padding: 22px 18px;
        border-radius: 18px;
    }

    .blog-detail-sidebar {
        order: 2;
    }

    .sidebar-sticky-inner {
        position: static;
    }

    .blog-detail-title {
        font-size: 1.6rem;
    }

    /* Tables: size to content and scroll instead of cramming/hyphenating */
    .blog-detail-body table {
        table-layout: auto;
    }

    .blog-detail-body th,
    .blog-detail-body td {
        min-width: 12rem;
    }

    .other-blog-thumb {
        width: 68px;
        height: 68px;
    }

    .sidebar-cta-card {
        padding: 22px;
    }

    .blog-share-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-share-right {
        width: 100%;
        justify-content: space-between;
    }

    .blog-tag-pill {
        padding: 9px 18px;
        font-size: 0.88rem;
    }
}