/*
Theme Name:   Astra Child - VedSanjeevani
Theme URI:    https://blogs.vedsanjeevani.com
Description:  Astra Child Theme for VedSanjeevani Blog
Author:       WebsStuff
Author URI:   https://websstuff.in
Template:     astra
Version:      1.0.0
Text Domain:  astra-child
*/

/* =============================================
   SINGLE POST LAYOUT — Image Left, Author Right
   ============================================= */

/* Remove default Astra post thumbnail on single posts */
.single .ast-post-thumbnail-wrap {
    display: none !important;
}

/* ── Hero Section wrapper ── */
.vs-post-hero {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    margin: 0 0 48px 0;
    padding: 40px 0 40px 0;
    border-bottom: 1px solid #e8e0d8;
}

/* ── Left: Featured Image ── */
.vs-post-image {
    flex: 0 0 50%;
    max-width: 50%;
}

.vs-post-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* ── Right: Meta Info ── */
.vs-post-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}

/* Category tag above title */
.vs-post-category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a07850;
    margin-bottom: 14px;
}

/* Post Title */
.vs-post-title {
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    font-family: inherit;
}

/* Divider line */
.vs-post-divider {
    width: 48px;
    height: 2px;
    background: #a07850;
    margin-bottom: 20px;
    border: none;
}

/* Author byline — "BY NAME | CATEGORY" */
.vs-post-byline {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 22px;
}

.vs-post-byline span {
    color: #a07850;
}

/* Author avatar row */
.vs-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.vs-author-row img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8e0d8;
}

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

.vs-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.vs-author-role {
    font-size: 12px;
    color: #999;
}

/* Date row */
.vs-post-date {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.vs-post-date svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* ── Post Content ── */
.vs-post-content {
    font-size: 16px;
    line-height: 1.85;
    color: #333;
}

.vs-post-content h2,
.vs-post-content h3,
.vs-post-content h4 {
    color: #1a1a1a;
    margin-top: 32px;
    margin-bottom: 12px;
}

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

.vs-post-content ul,
.vs-post-content ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.vs-post-content li {
    margin-bottom: 8px;
}

.vs-post-content img {
    max-width: 100%;
    border-radius: 6px;
    margin: 20px 0;
}

/* ── Back to Blog link ── */
.vs-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #a07850;
    text-decoration: none;
    border-top: 1px solid #e8e0d8;
    padding-top: 24px;
    width: 100%;
}

.vs-back-link:hover {
    color: #1a1a1a;
}

/* =============================================
   RESPONSIVE — Mobile & Tablet
   ============================================= */

@media (max-width: 900px) {
    .vs-post-image img {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .vs-post-hero {
        flex-direction: column;
        gap: 24px;
        padding: 24px 0 32px 0;
    }

    .vs-post-image,
    .vs-post-meta {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .vs-post-image img {
        height: 260px;
        border-radius: 4px;
    }

    .vs-post-title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .vs-post-image img {
        height: 220px;
    }

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