/* =========================================================
   SINGLE ARTICLE LAYOUT
========================================================= */

.custom-single-layout-wrap {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    float: none !important;
}

.custom-single-layout-wrap .sidebar_container,
.custom-single-layout-wrap #sidebar {
    display: none !important;
}

.custom-single-layout-wrap #content {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.custom-single-article {
    background: #f5f5f3;
    color: #1c1c1c;
    padding-bottom: 100px;
    font-family: "Inter", sans-serif;
}

.single-article-topbar {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: #f5f5f3;
    position: sticky;
    top: 0;
    z-index: 50;
}

.single-article-topbar-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.single-back-home {
    color: #222;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.single-top-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.single-share-icon {
    color: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.single-subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: #2ba7df;
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.single-hero-header {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 20px 0 40px;
    text-align: center;
}

.single-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.single-category-pill,
.single-must-read {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.single-category-pill {
    background: #dff3fb;
    color: #1c89b8;
}

.single-must-read {
    background: transparent;
    color: #333;
}

.single-hero-title {
    margin: 0 auto 28px;
    max-width: 760px;
    font-family: "Playfair Display", serif;
    font-size: clamp(32px, 5vw, 32px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: #111;
}

.single-hero-excerpt {
    max-width: 720px;
    margin: 0 auto 34px;
    font-size: 25px;
    line-height: 1.8;
    color: #666f7a;
}

.single-hero-excerpt p {
    margin: 0;
}

.single-author-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.single-author-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.single-author-avatar img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.single-author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.single-author-info strong {
    font-size: 15px;
    color: #1c1c1c;
}

.single-author-info span,
.single-post-meta-info span {
    font-size: 14px;
    color: #717985;
}

.single-post-meta-info {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.single-featured-image-wrap {
    width: min(1100px, calc(100% - 40px));
    margin: 35px auto 60px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.10);
}

.single-featured-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.single-content-wrap {
    width: min(760px, calc(100% - 40px));
    margin: 0 auto;
}

.single-content-body {
    font-size: 21px;
    line-height: 1.95;
    color: #555f6b;
}

.single-content-body p {
    margin: 0 0 26px;
}

.single-content-body h2,
.single-content-body h3,
.single-content-body h4 {
    margin: 48px 0 18px;
    font-family: "Playfair Display", serif;
    color: #141414;
    line-height: 1.2;
}

.single-content-body h2 {
    font-size: 52px;
}

.single-content-body h3 {
    font-size: 34px;
}

.single-content-body h4 {
    font-size: 28px;
}

.single-content-body blockquote {
    margin: 34px 0;
    padding: 20px 24px;
    border-left: 4px solid #1c89b8;
    background: #eef2f5;
    border-radius: 10px;
    font-family: "Playfair Display", serif;
    font-size: 30px;
    line-height: 1.5;
    color: #202020;
}

.single-content-body img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    margin: 26px 0;
}

.single-content-body .wp-block-gallery,
.single-content-body .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 34px 0;
}

.single-content-body .wp-block-gallery img,
.single-content-body .gallery img {
    margin: 0;
    border-radius: 16px;
}

.single-content-body p:first-of-type::first-letter {
    float: left;
    font-family: "Playfair Display", serif;
    font-size: 84px;
    line-height: 0.9;
    padding-right: 12px;
    color: #1c89b8;
}

.single-post-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 34px 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin: 60px 0 40px;
}

.single-tags-wrap a {
    display: inline-flex;
    margin-right: 12px;
    color: #30343a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.single-share-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.single-share-wrap span {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.single-share-wrap a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #222;
    text-decoration: none;
    background: #fff;
}

.single-author-box {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: #edf0f2;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 40px;
}

.single-author-box-avatar img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
}

.single-author-box-content h3 {
    margin: 0 0 10px;
    font-family: "Playfair Display", serif;
    font-size: 36px;
    color: #1a1a1a;
}

.single-author-box-content p {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.8;
    color: #5f6771;
}

.single-author-box-content a {
    color: #1c89b8;
    font-weight: 600;
    text-decoration: none;
}

.single-comments-link-wrap {
    text-align: center;
    margin-bottom: 90px;
}

.single-comments-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.12);
    color: #222;
    text-decoration: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
}

.single-related-posts {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding-top: 80px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.single-related-posts h2 {
    margin: 0 0 40px;
    font-family: "Playfair Display", serif;
    font-size: 50px;
    color: #111;
}

.single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-story-card {
    display: flex;
    flex-direction: column;
}

.related-story-thumb {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 16px;
}

.related-story-thumb img {
    width: 100%;
    aspect-ratio: 1.2 / 0.9;
    object-fit: cover;
    display: block;
}

.related-story-category {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.related-story-content h3 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: 20px;
    line-height: 1.45;
}

.related-story-content h3 a {
    color: #131313;
    text-decoration: none;
}

.single-comments-area {
    width: min(760px, calc(100% - 40px));
    margin: 80px auto 0;
}

/* hide some Themify defaults if needed */
.custom-single-article .post-image,
.custom-single-article .post-meta,
.custom-single-article .post-title,
.custom-single-article .entry-title {
    display: none !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 991px) {
    .single-hero-title {
        font-size: clamp(34px, 7vw, 54px);
    }

    .single-content-body h2 {
        font-size: 40px;
    }

    .single-content-body h3 {
        font-size: 28px;
    }

    .single-related-grid {
        grid-template-columns: 1fr;
    }

    .single-author-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .single-article-topbar-inner,
    .single-hero-header,
    .single-featured-image-wrap,
    .single-content-wrap,
    .single-related-posts,
    .single-comments-area {
        width: min(100% - 24px, 100%);
    }

    .single-hero-header {
        padding: 60px 0 28px;
    }

    .single-hero-title {
        font-size: 38px;
    }

    .single-hero-excerpt {
        font-size: 17px;
    }

    .single-content-body {
        font-size: 17px;
    }

    .single-content-body blockquote {
        font-size: 24px;
        padding: 16px 18px;
    }

    .single-content-body .wp-block-gallery,
    .single-content-body .gallery {
        grid-template-columns: 1fr;
    }

    .single-post-footer-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .single-author-row {
        flex-direction: column;
        gap: 14px;
    }
}