/* =============================================================================
   marketing-blog-post.css — KineSuite Blog Article Detail Page
   ============================================================================= */

/* ── Post Header ──────────────────────────────────────────────────────────── */
.post-header-section {
    padding: calc(var(--landing-nav-height, 68px) + 2.25rem) 0 3rem;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.post-header-inner {
    max-width: 860px;
    margin: 0 auto;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.post-back-link {
    display: inline-flex;
    align-items: center;
    color: #059669;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.post-back-link:hover {
    color: #047857;
    text-decoration: underline;
}

.post-breadcrumb-sep {
    color: #cbd5e1;
}

.post-badge {
    background: #ecfdf5;
    color: #059669;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid #a7f3d0;
}

.post-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

.post-excerpt {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: #475569;
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.post-author-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.post-author-info {
    display: flex;
    flex-direction: column;
}

.post-author-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}

.post-author-title {
    color: #64748b;
    font-size: 0.8rem;
}

.post-meta-details {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.post-meta-item i {
    color: #10b981;
}

/* ── Featured Image ───────────────────────────────────────────────────────── */
.post-featured-image-wrapper {
    background: #ffffff;
    padding-bottom: 2rem;
}

.post-featured-image-container {
    max-width: 960px;
    margin: 0 auto;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.post-featured-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* ── Content Layout & Sidebar ─────────────────────────────────────────────── */
.post-content-section {
    padding: 3rem 0 5rem;
    background: #ffffff;
}

.post-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 3.5rem;
    align-items: start;
}

/* ── Prose / Article Typography ───────────────────────────────────────────── */
.prose {
    color: #1e293b;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 100%;
}

.prose h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.prose h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.prose strong {
    font-weight: 700;
    color: #0f172a;
}

.prose a {
    color: #059669;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.15s;
}

.prose a:hover {
    color: #047857;
}

.prose ul, .prose ol {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.prose blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.75rem;
    border-left: 4px solid #10b981;
    background: #f8fafc;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #334155;
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

.prose table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2.5rem 0;
    font-size: 0.95rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    display: table;
}

.prose th {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.025em;
    text-align: center;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid #059669;
}

.prose th:first-child {
    text-align: left;
}

.prose td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    text-align: center;
    vertical-align: middle;
}

.prose td:first-child {
    text-align: left;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

.prose tr:last-child td {
    border-bottom: none;
}

.prose tr:hover td {
    background-color: #f0fdf4;
}

.prose tr:hover td:first-child {
    background-color: #ecfdf5;
}

@media (max-width: 768px) {
    .prose table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

.prose hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 3rem 0;
}

/* ── Sidebar Sticky Card ─────────────────────────────────────────────────── */
.post-sidebar {
    position: relative;
}

.post-sidebar-sticky {
    position: sticky;
    top: 6rem;
}

.sidebar-cta-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 1px solid #bbf7d0;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.05);
}

.sidebar-cta-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.sidebar-cta-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #064e3b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.sidebar-cta-card p {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.sidebar-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.sidebar-feature-list li {
    font-size: 0.85rem;
    color: #0f172a;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-feature-list i {
    color: #10b981;
}

.sidebar-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: #10b981;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 0.6rem;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.15s;
}

.sidebar-cta-btn:hover {
    background: #059669;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ── Bottom CTA Banner ───────────────────────────────────────────────────── */
.post-bottom-cta {
    padding: 3.5rem 0 5.5rem;
    background: #ffffff;
}

.bottom-cta-banner {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 45%, #0f172a 100%);
    border-radius: 1.5rem;
    padding: 3.5rem 3rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    box-shadow: 0 20px 35px -10px rgba(6, 78, 59, 0.35);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.bottom-cta-text {
    max-width: 620px;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7 !important;
    border: 1px solid rgba(52, 211, 153, 0.4);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.bottom-cta-text h2 {
    color: #ffffff !important;
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.bottom-cta-text p {
    color: #f1f5f9 !important;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.bottom-cta-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: #10b981;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 0.75rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-cta-primary:hover {
    background: #059669;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: background-color 0.2s, transform 0.15s;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ── Related Posts Section ────────────────────────────────────────────────── */
.post-related-section {
    padding: 4rem 0 6rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.related-header {
    margin-bottom: 2rem;
}

.related-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

@media (max-width: 1024px) {
    .post-content-layout {
        grid-template-columns: 1fr;
    }
    .post-sidebar-sticky {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .post-header-section {
        padding: 5.5rem 0 2rem;
    }
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .bottom-cta-banner {
        padding: 2.5rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .bottom-cta-actions {
        width: 100%;
        flex-direction: column;
    }
    .btn-cta-primary, .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}
