/* ==========================================================================
   Single Article Reading Page Dedicated Styles
   (Wide reading container, typography, sticky animated sidebar, no comments)
   ========================================================================== */

/* 1. Sticky Top Reading Progress Bar */
.child-single-reading-progress-bar {
    position: fixed;
    top: 50px;
    left: 0;
    width: 0%;
    height: 3.5px;
    background: linear-gradient(90deg, #0284c7, #38bdf8, #6366f1);
    z-index: 9999;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    transition: width 0.1s linear;
}

.admin-bar .child-single-reading-progress-bar {
    top: 82px;
}

body.child-header-is-sticky .child-single-reading-progress-bar {
    top: 30px;
}

.admin-bar.child-header-is-sticky .child-single-reading-progress-bar {
    top: 62px;
}

/* 2. Container & Substantial Width Expansion */
body.single-post .site-content .ast-container,
body.single .site-content .ast-container {
    max-width: 1360px !important;
    width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 32px !important;
    padding-bottom: 60px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 36px !important;
    align-items: flex-start !important;
}

/* 3. Article Reading Column Width (Expanded to ~70%) */
body.single-post #primary,
body.single #primary {
    flex: 1 1 calc(100% - 386px) !important;
    max-width: calc(100% - 386px) !important;
    width: calc(100% - 386px) !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

/* 4. Sidebar Column (Sticky with fixed width) */
body.single-post #secondary,
body.single #secondary {
    flex: 0 0 350px !important;
    max-width: 350px !important;
    width: 350px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    position: sticky !important;
    top: 75px !important;
    align-self: flex-start !important;
    z-index: 10 !important;
}

/* 5. Article Card Container & Padding */
body.single-post .ast-article-single,
body.single .ast-article-single,
body.single-post article.post,
body.single article.post {
    background-color: #ffffff !important;
    border-radius: 22px !important;
    padding: 44px 50px !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05),
                0 0 1px 1px rgba(15, 23, 42, 0.03) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    margin-bottom: 30px !important;
}

/* 6. Single Article Header & Title */
body.single-post .entry-header,
body.single .entry-header {
    margin-bottom: 28px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 22px !important;
}

body.single-post .entry-title,
body.single .entry-title {
    font-size: clamp(28px, 3.5vw, 42px) !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
    margin-top: 12px !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.02em !important;
}

/* 7. Single Post Meta */
body.single-post .entry-meta,
body.single .entry-meta {
    font-size: 14px !important;
    color: #64748b !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 16px !important;
}

body.single-post .entry-meta a,
body.single .entry-meta a {
    color: #0284c7 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

/* 8. Single Post Featured Image */
body.single-post .single-featured-image-post,
body.single .single-featured-image-post,
body.single-post .ast-article-single .post-thumb-img-content {
    border-radius: 16px !important;
    overflow: hidden !important;
    margin-bottom: 36px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08) !important;
}

body.single-post .single-featured-image-post img,
body.single .single-featured-image-post img,
body.single-post .ast-article-single .post-thumb-img-content img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transition: transform 0.4s ease !important;
}

body.single-post .single-featured-image-post:hover img,
body.single .single-featured-image-post:hover img {
    transform: scale(1.02) !important;
}

/* 9. Article Content Typography & Readability */
body.single-post .entry-content,
body.single .entry-content {
    font-size: 18px !important;
    line-height: 1.85 !important;
    color: #334155 !important;
    letter-spacing: -0.005em !important;
}

body.single-post .entry-content p,
body.single .entry-content p {
    margin-bottom: 24px !important;
}

body.single-post .entry-content h2,
body.single .entry-content h2 {
    font-size: 27px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-top: 40px !important;
    margin-bottom: 18px !important;
    padding-left: 14px !important;
    border-left: 4px solid #0284c7 !important;
    line-height: 1.35 !important;
}

body.single-post .entry-content h3,
body.single .entry-content h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-top: 32px !important;
    margin-bottom: 14px !important;
    line-height: 1.4 !important;
}

body.single-post .entry-content blockquote,
body.single .entry-content blockquote {
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%) !important;
    border-left: 4px solid #0284c7 !important;
    border-radius: 0 14px 14px 0 !important;
    padding: 22px 28px !important;
    margin: 32px 0 !important;
    font-style: italic !important;
    color: #1e293b !important;
    font-size: 19px !important;
    line-height: 1.7 !important;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.05) !important;
}

body.single-post .entry-content pre,
body.single .entry-content pre {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    padding: 20px 24px !important;
    border-radius: 12px !important;
    overflow-x: auto !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    margin: 28px 0 !important;
}

/* 10. Sidebar Card Containers */
.child-single-sidebar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.child-single-sidebar-card,
body.single-post #secondary .widget,
body.single #secondary .widget,
body.single-post #secondary .wp-block-group {
    background-color: #ffffff !important;
    border-radius: 18px !important;
    padding: 26px !important;
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    margin-bottom: 24px !important;
}

.child-single-sidebar-card:hover,
body.single-post #secondary .widget:hover,
body.single #secondary .widget:hover {
    box-shadow: 0 10px 25px -4px rgba(2, 132, 199, 0.1) !important;
}

.child-single-sidebar-title,
body.single-post #secondary .widget-title,
body.single #secondary .widget-title,
body.single-post #secondary .wp-block-heading,
body.single #secondary .wp-block-heading {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 18px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
}

.child-single-sidebar-title::after,
body.single-post #secondary .widget-title::after,
body.single #secondary .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #0284c7;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.child-single-sidebar-card:hover .child-single-sidebar-title::after,
body.single-post #secondary .widget:hover .widget-title::after {
    width: 60px;
}

.child-single-sidebar-icon {
    font-size: 18px;
}

/* 11. Categories Widget */
.child-single-category-list,
body.single-post #secondary .widget_categories ul,
body.single #secondary .widget_categories ul,
body.single-post #secondary .wp-block-categories-list,
body.single #secondary .wp-block-categories-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.child-single-category-link,
body.single-post #secondary .widget_categories li a,
body.single #secondary .widget_categories li a,
body.single-post #secondary .wp-block-categories-list li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    background-color: #f8fafc !important;
    border-radius: 10px !important;
    color: #1e293b !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.child-single-category-link:hover,
body.single-post #secondary .widget_categories li a:hover,
body.single #secondary .widget_categories li a:hover,
body.single-post #secondary .wp-block-categories-list li a:hover {
    background-color: #f0f9ff !important;
    color: #0284c7 !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    transform: translateX(5px) !important;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.08) !important;
}

.child-single-category-badge {
    background-color: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 9999px;
    transition: all 0.25s ease;
}

.child-single-category-link:hover .child-single-category-badge {
    background-color: #0284c7;
    color: #ffffff;
    transform: scale(1.08);
}

/* 12. Recent Posts Widget */
.child-single-recent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.child-single-recent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: transform 0.25s ease;
}

.child-single-recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.child-single-recent-item:hover {
    transform: translateX(4px);
}

.child-single-recent-thumb {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.child-single-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.child-single-recent-item:hover .child-single-recent-thumb img {
    transform: scale(1.12);
}

.child-single-recent-thumb-placeholder {
    font-size: 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e2e8f0 100%);
    text-decoration: none;
}

.child-single-recent-content {
    flex: 1;
    min-width: 0;
}

.child-single-recent-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.child-single-recent-post-title a {
    color: #1e293b;
    text-decoration: none;
    display: inline;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background-image: linear-gradient(to left, #dc2626 0%, #ec4899 50%, #09090b 100%);
    background-repeat: no-repeat;
    background-size: 0% 2.5px;
    background-position: right bottom 1px;
    padding-bottom: 2px;
    transition: background-size 0.75s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}

.child-single-recent-item:hover .child-single-recent-post-title a,
.child-single-recent-post-title a:hover {
    background-size: 100% 2.5px;
}

.child-single-recent-date {
    font-size: 12px;
    color: #94a3b8;
    display: block;
}

/* 13. Completely Remove Comments Section */
body.single-post #comments,
body.single #comments,
body.single-post .comments-area,
body.single .comments-area,
body.single-post .ast-comment-template,
body.single .ast-comment-template,
body.single-post .ast-single-post-order .comments-area,
body.single .ast-single-post-order .comments-area,
body.single-post .comment-respond,
body.single .comment-respond,
body.single-post #respond,
body.single #respond,
body.single-post #commentform,
body.single #commentform {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 14. Responsive Breakpoints */
@media screen and (max-width: 1024px) {
    body.single-post .site-content .ast-container,
    body.single .site-content .ast-container {
        flex-direction: column !important;
        gap: 32px !important;
        padding-top: 24px !important;
    }

    body.single-post #primary,
    body.single #primary {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    body.single-post #secondary,
    body.single #secondary {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        position: static !important;
    }
}

@media screen and (max-width: 768px) {
    body.single-post .site-content .ast-container,
    body.single .site-content .ast-container {
        width: 92% !important;
        padding-top: 16px !important;
    }

    body.single-post .ast-article-single,
    body.single .ast-article-single,
    body.single-post article.post,
    body.single article.post {
        padding: 24px 20px !important;
        border-radius: 16px !important;
    }

    body.single-post .entry-content,
    body.single .entry-content {
        font-size: 16.5px !important;
        line-height: 1.75 !important;
    }

    body.single-post .entry-content h2,
    body.single .entry-content h2 {
        font-size: 22px !important;
    }
}

