/* ===========================
   Single Post
   =========================== */

.single-post {
    padding-bottom: var(--spacing-lg);
}

/* Post Header */
.post-header {
    padding: 30px 0 40px;
}

.post-header-center {
    text-align: center;
}

.post-categories {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.post-category-tag {
    font-size: 12px;
    color: var(--color-text-secondary);
    background-color: rgba(0, 0, 0, 0.04);
    padding: 3px 12px;
    border-radius: 3px;
}

.post-category-tag:hover {
    background-color: rgba(0, 0, 0, 0.08);
    opacity: 1;
}

.post-title {
    font-size: 30px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.post-meta {
    font-size: 13px;
    color: var(--color-text-secondary);
    display: flex;
    justify-content: center;
    gap: 12px;
}

.post-updated {
    color: var(--color-text-secondary);
}

/* Featured Image */
.post-featured-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

/* Post Content */
.post-content {
    line-height: 2;
    font-size: 16px;
}

.post-content h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin: 50px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent-warm);
}

.post-content h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin: 40px 0 16px;
}

.post-content h4 {
    font-size: 18px;
    margin: 30px 0 12px;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content ul,
.post-content ol {
    margin: 16px 0 24px 24px;
}

.post-content ul {
    list-style: disc;
}

.post-content ol {
    list-style: decimal;
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.post-content img {
    border-radius: 6px;
    margin: 20px 0;
}

.post-content blockquote {
    border-left: 3px solid var(--color-accent-warm);
    padding: 16px 24px;
    margin: 24px 0;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 0 6px 6px 0;
}

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

.post-content a {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 50px 0;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.post-tag {
    font-size: 13px;
    color: var(--color-text-secondary);
    background-color: rgba(0, 0, 0, 0.03);
    padding: 4px 14px;
    border-radius: 20px;
}

.post-tag:hover {
    background-color: rgba(0, 0, 0, 0.06);
    opacity: 1;
}

/* Diagnosis CTA Box */
.post-cta-box {
    text-align: center;
    padding: 40px 24px;
    background-color: var(--color-white);
    border-radius: 8px;
    margin-top: 10px;
}

.post-cta-text {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Related Section */
.related-section {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 991px) {
    .post-title {
        font-size: 26px;
    }

    .post-content h2 {
        font-size: 22px;
        margin: 40px 0 16px;
    }

    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .post-header {
        padding: 20px 0 30px;
    }

    .post-title {
        font-size: 22px;
    }

    .post-meta {
        flex-direction: column;
        gap: 4px;
    }

    .post-content {
        font-size: 15px;
    }

    .post-content h2 {
        font-size: 20px;
    }

    .post-content h3 {
        font-size: 18px;
    }

    .post-featured-image {
        margin-bottom: 30px;
    }

    .card-grid-3 {
        grid-template-columns: 1fr;
    }
}
