/* ================================================================
   GNIT — Blog Post Detail Styles
   Path: /gnit-assets/css/blog-post.css
================================================================ */

:root {
    --blog-container-width: 820px;
    --blog-sidebar-width: 340px;
}

/* Breadcrumb */
.blog-post-breadcrumb {
    background: #f8fafc;
    padding: 15px 0;
    border-bottom: 1px solid #edf2f7;
}
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    gap: 8px;
    color: var(--gnit-gray);
    align-items: center;
}
.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.breadcrumb-list li a {
    color: var(--gnit-blue);
    text-decoration: none;
}
.breadcrumb-list li:not(:last-child)::after {
    content: '\f105';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 11px;
    color: #cbd5e1;
}

/* Post Hero */
.blog-post-hero {
    padding: 60px 0 40px;
    text-align: center;
    background: #fff;
}
.blog-post-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}
.blog-post-cat-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.blog-post-cat-badge {
    display: inline-block;
    background: rgba(14,165,233,0.1);
    color: var(--gnit-blue);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
}
.blog-post-cat-badge:hover {
    background: var(--gnit-blue);
    color: #fff;
}
.blog-post-title {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--gnit-navy);
    line-height: 1.2;
    margin-bottom: 24px;
}
.blog-post-lead {
    font-size: 18px;
    color: var(--gnit-gray);
    line-height: 1.6;
    margin-bottom: 30px;
}
.blog-post-meta-row {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 14px;
    color: var(--gnit-gray);
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.blog-post-meta-row .bpm-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.blog-post-meta-row i {
    color: var(--gnit-gold);
}

/* Featured Image */
.blog-post-featured-img {
    margin-bottom: 40px;
}
.blog-post-featured-img img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Layout */
.blog-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--blog-sidebar-width);
    gap: 50px;
    align-items: start;
}

/* Content */
.blog-post-content {
    font-size: 17px;
    line-height: 1.7;
    color: #334155;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.blog-post-content h2 {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    color: var(--gnit-navy);
    margin: 30px 0 15px;
}
.blog-post-content h3 {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--gnit-navy);
    margin: 25px 0 12px;
}
.blog-post-content p {
    margin-bottom: 18px;
}
.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 18px;
    padding-left: 20px;
}
.blog-post-content li {
    margin-bottom: 8px;
}
.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 15px 0;
}
.blog-post-content hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 30px 0;
}

/* Table Wrapper */
.blog-table-wrap {
    overflow-x: auto;
    margin: 30px 0;
}
.blog-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e2e8f0;
}
.blog-table-wrap th, .blog-table-wrap td {
    padding: 15px;
    border: 1px solid #e2e8f0;
    text-align: left;
}
.blog-table-wrap th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--gnit-navy);
}

/* Sidebar */
.blog-post-sidebar {
    position: sticky;
    top: 100px;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-post-layout {
        grid-template-columns: 1fr;
    }
    .blog-post-sidebar {
        margin-top: 50px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .blog-post-hero {
        padding: 30px 0 20px;
    }
    .blog-post-title {
        font-size: 1.6rem;
    }
    .blog-post-meta-row {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .breadcrumb-list {
        font-size: 11px;
        gap: 5px;
    }
    .breadcrumb-list li:not(:first-child):not(:last-child):not(:nth-child(2)) {
        display: none;
    }
    .breadcrumb-list li:nth-child(2)::after {
        content: '...';
        font-family: var(--font-body);
        margin: 0 4px;
        color: #cbd5e1;
    }
    /* Hide potential duplicate images at start of content on mobile */
    .blog-post-content img:first-of-type {
        display: none;
    }
}
