#ai_post {
    padding-top: 105px;
    background: white;
    min-height: 100vh;
}

#ai_post .site-post {
    max-width: 100%;
}

/* Content Header */
#ai_post .content-header {
    margin-bottom: 3rem;
}

#ai_post .content-header.no-image {
    padding-top: 2rem;
}

#ai_post .content-feature-image-wrapper {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

#ai_post .content-feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#ai_post .content-meta-wrapper {
    max-width: 800px;
    margin: -3rem auto 0;
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#ai_post .no-image .content-meta-wrapper {
    margin-top: 0;
    box-shadow: none;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
}

#ai_post .content-tag-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

#ai_post .content-tag {
    display: inline-block;
    background: rgba(255, 107, 53, 0.1);
    color: var(--brand-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

#ai_post .content-tag:hover {
    background: var(--brand-primary);
    color: white;
}

#ai_post .content-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

#ai_post .content-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#ai_post .content-author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

#ai_post .author-details {
    flex: 1;
}

#ai_post .content-author {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

#ai_post .content-author:hover {
    color: var(--brand-primary);
}

#ai_post .post-meta-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-neutral);
    font-size: 0.9rem;
}

#ai_post .separator {
    color: var(--brand-neutral);
}

/* Content Body */
#ai_post .content-body:not(:has(.kg-width-full)) {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

#ai_post .content-body:has(.kg-width-full) {
    max-width: 100%;
    margin: 0 auto 3rem;
    padding: 0;
}

#ai_post .content-body p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}

#ai_post .content-body h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--brand-dark);
    margin: 2.5rem 0 1rem;
    font-weight: 700;
}

#ai_post .content-body h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--brand-dark);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

#ai_post .content-body blockquote {
    border-left: 4px solid var(--brand-primary);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: var(--brand-light);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--brand-dark);
    border-radius: 0.5rem;
}

#ai_post .content-body ul,
#ai_post .content-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

#ai_post .content-body li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    color: #333;
}

#ai_post .content-body img {
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#ai_post .content-body a {
    color: var(--brand-primary);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

#ai_post .content-body a:hover {
    opacity: 0.8;
}

/* Related Posts */
#ai_post .site-related-posts {
    background: var(--brand-light);
    padding: 3rem 0;
}

#ai_post .related-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--brand-dark);
    margin-bottom: 2rem;
    text-align: center;
}

#ai_post .related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

#ai_post .related-post-item {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

#ai_post .related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#ai_post .related-post-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

#ai_post .related-post-content {
    padding: 1.25rem;
}

#ai_post .related-post-content h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

#ai_post .related-post-content a {
    color: var(--brand-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

#ai_post .related-post-content a:hover {
    color: var(--brand-primary);
}

#ai_post .related-post-date {
    color: var(--brand-neutral);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    #ai_post .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #ai_post {
        padding-top: 80px;
    }

    #ai_post .content-feature-image-wrapper {
        height: 300px;
    }

    #ai_post .content-meta-wrapper {
        margin-top: -2rem;
        padding: 1.5rem;
    }

    #ai_post .content-title {
        font-size: 1.75rem;
    }

    #ai_post .content-body:not(:has(.kg-width-full)) {
        padding: 0 1rem;
    }

    #ai_post .content-body p {
        font-size: 1rem;
    }

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