/* ==========================================================================
   Blog Post Article Editorial Layout
   ========================================================================== */
.post-header-section {
    padding: 9.5rem 2rem 3rem;
    background: #ffffff;
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--color-primary, #0d9488);
}

.post-category-tag {
    display: inline-block;
    background: rgba(13, 148, 136, 0.1);
    color: var(--color-primary, #0d9488);
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.post-header-inner h1 {
    font-size: clamp(2.4rem, 4.2vw, 3.25rem);
    color: #0f172a;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.post-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.author-bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.author-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.author-info span {
    font-size: 0.85rem;
    color: #64748b;
}

/* Feature Image */
.post-feature-image-wrap {
    max-width: 1040px;
    margin: 2.5rem auto 4rem;
    padding: 0 2rem;
}

.post-feature-image {
    width: 100%;
    height: 480px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.post-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.85rem;
    font-style: italic;
}

/* Article Body - Standard max-width: 768px */
.post-body-container {
    max-width: 768px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}

/* Drop-Caps for first letter of article */
.post-body-container > p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-heading, 'Valley Sans', serif);
    font-size: 4.5rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 12px;
    padding-bottom: 4px;
    color: var(--color-primary, #0d9488);
    font-weight: 700;
}

.post-body-container p {
    font-size: 1.125rem;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

.post-body-container h2 {
    font-size: 1.85rem;
    color: #0f172a;
    font-weight: 500;
    margin: 3rem 0 1.25rem;
    line-height: 1.3;
}

.post-body-container h3 {
    font-size: 1.4rem;
    color: #0f172a;
    font-weight: 500;
    margin: 2.25rem 0 1rem;
}

/* Styled Editorial Blockquotes */
.post-blockquote {
    position: relative;
    margin: 3rem 0;
    padding: 2.25rem 2.5rem 2.25rem 3.5rem;
    background: #f8fafc;
    border-left: 4px solid var(--color-primary, #0d9488);
    border-radius: 0 1rem 1rem 0;
}

.post-blockquote::before {
    content: "“";
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 4rem;
    line-height: 1;
    color: rgba(13, 148, 136, 0.3);
    font-family: serif;
}

.post-blockquote p {
    font-size: 1.25rem !important;
    font-weight: 500;
    color: #0f172a !important;
    line-height: 1.6 !important;
    margin: 0 0 1rem !important;
    font-style: italic;
}

.post-blockquote cite {
    display: block;
    font-size: 0.875rem;
    font-style: normal;
    color: #64748b;
    font-weight: 600;
}

/* Key Takeaways Box */
.takeaways-card {
    background: #f0fdfa;
    border: 1px solid rgba(13, 148, 136, 0.25);
    border-radius: 1.25rem;
    padding: 2rem;
    margin: 3rem 0;
}

.takeaways-card h3 {
    color: #0f766e;
    font-size: 1.25rem;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.takeaways-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
}

.takeaways-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 1rem;
    color: #134e4a;
    line-height: 1.5;
}

.takeaways-list li i {
    color: var(--color-primary, #0d9488);
    margin-top: 0.3rem;
}

/* Author Profile Box */
.author-box-footer {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    margin-top: 4rem;
}

.author-box-footer img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box-footer h4 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.author-box-footer p {
    font-size: 0.9rem !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Share Buttons */
.share-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.share-bar span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-btn {
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.share-btn:hover {
    border-color: var(--color-primary, #0d9488);
    color: var(--color-primary, #0d9488);
}

/* Related Articles Section */
.related-posts-section {
    padding: 5rem 2rem 14rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.related-title {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 2.5rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light, #2dd4bf);
}

.related-card-img-wrap {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.related-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card:hover .related-card-img-wrap img {
    transform: scale(1.05);
}

.related-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.related-card-content h3 {
    font-size: 1.25rem;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.related-card-content p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.related-card-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media(max-width: 900px) {
    .post-header-section {
        padding-top: 8rem;
    }

    .post-feature-image {
        height: 340px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 640px) {
    .post-header-section {
        padding-top: 7rem;
    }

    .post-feature-image {
        height: 240px;
    }

    .author-box-footer {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}
