/* Single Blog Post Styles */

:root {
    --post-primary: #128c5e;
    --post-primary-dark: #0e6f4a;
    --post-bg-light: #f8fafc;
    --post-text-dark: #1e293b;
    --post-text-muted: #64748b;
    --post-border: #e2e8f0;
    --post-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.single-post-page .site-main {
    background-color: #fff;
    padding: 0 0 80px;
    /* Remove top padding as header has it */
}

.post-header {
    background: #128c5e;
    color: #fff;
    padding: 60px 0;
    margin-bottom: 0;
    text-align: center;
}

.post-cat-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
}

.post-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    justify-content: center;
}

.post-meta i {
    margin-right: 5px;
}

.post-featured-image {
    margin-top: -60px;
    margin-bottom: 50px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--post-shadow);
    height: 450px;
    /* Fixed height for shorter look */
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    /* Better control for sidebar */
    gap: 50px;
    padding: 60px 0;
}

/* Post Content */
.post-entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
}

.post-entry-content p {
    margin-bottom: 25px;
}

.post-entry-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--post-text-dark);
}

.post-entry-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 30px 0 15px;
}

.post-entry-content ul,
.post-entry-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.post-entry-content li {
    margin-bottom: 10px;
}

.post-entry-content blockquote {
    border-left: 4px solid var(--post-primary);
    background: #f0fdf4;
    padding: 30px;
    margin: 40px 0;
    font-style: italic;
    font-size: 1.2rem;
    border-radius: 0 12px 12px 0;
}

.post-entry-content figure {
    margin: 40px 0;
}

.post-entry-content footer.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--post-border);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.post-tags a {
    background: #f1f5f9;
    padding: 5px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--post-text-muted);
    text-decoration: none;
    transition: all 0.3s;
}

.post-tags a:hover {
    background: var(--post-primary);
    color: #fff;
}

/* Sidebar Widgets */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-contact-widget {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--post-border);
    box-shadow: var(--post-shadow);
}

.sidebar-contact-widget h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.sidebar-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--post-text-dark);
    font-size: 0.95rem;
    word-break: break-all;
    /* Prevent overflow on long emails/links */
}

.contact-icon {
    width: 32px;
    height: 32px;
    background: #f0fdf4;
    color: var(--post-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.contact-item:hover .contact-icon {
    background: var(--post-primary);
    color: #fff;
}

/* Experts List */
.sidebar-experts-widget {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--post-border);
}

.expert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.expert-item:last-child {
    border-bottom: none;
}

.expert-avatar {
    width: 45px;
    height: 45px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--post-text-muted);
}

.expert-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.expert-info span {
    font-size: 0.8rem;
    color: var(--post-text-muted);
}

/* Sidebar CTA */
.sidebar-cta-banner {
    background: var(--post-primary-dark);
    color: #fff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    background-image: linear-gradient(135deg, var(--post-primary-dark) 0%, #064e3b 100%);
}

.sidebar-cta-banner h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.sidebar-cta-banner p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 25px;
}

.btn-cta-white {
    background: #fff;
    color: var(--post-primary-dark);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    width: 100%;
    transition: transform 0.3s;
}

.btn-cta-white:hover {
    transform: scale(1.03);
}

/* Related Posts */
.related-posts-section {
    padding: 80px 0;
    background: #f8fafc;
}

.related-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.related-posts-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
}

.view-all-link {
    color: var(--post-primary);
    text-decoration: none;
    font-weight: 700;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--post-shadow);
    transition: all 0.3s;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-thumb {
    height: 180px;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    padding: 20px;
}

.related-post-date {
    font-size: 0.8rem;
    color: var(--post-text-muted);
    margin-bottom: 8px;
}

.related-post-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.related-post-title a {
    color: var(--post-text-dark);
    text-decoration: none;
}

.related-post-title a:hover {
    color: var(--post-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .post-main-layout {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}