/* Single Post Styles - Do NOT override global theme styles */
    .post-hero,
    .single-post-bg {
        --primary: #ff6b35;
        --primary-dark: #e55a2b;
        --secondary: #2a5298;
        --secondary-dark: #1e3c72;
        --text-dark: #333;
        --text-light: #666;
        --glass-bg: rgba(255,255,255,0.97);
        --glass-border: rgba(255,255,255,0.6);
        --glass-shadow: 0 8px 32px 0 rgba(31,38,135,0.1);
    }
    
    /* Only style post-specific elements, don't reset global styles */

    /* =====================================================
       READING PROGRESS BAR
    ===================================================== */
    .reading-progress-bar {
        position: fixed;
        top: 0; left: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), #667eea);
        z-index: 9999;
        width: 0%;
        transition: width 0.1s linear;
    }

    /* =====================================================
       POST HERO BANNER
    ===================================================== */
    .post-hero {
        background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 60%, #667eea 100%);
        color: white;
        padding: 4rem 0 8rem;
        position: relative;
        overflow: hidden;
    }
    .post-hero::before {
        content: '';
        position: absolute; inset: 0;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200'%3E%3Cpath fill='white' fill-opacity='0.05' d='M0,160L80,144C160,128,320,96,480,101C640,107,800,149,960,154C1120,160,1280,128,1360,112L1440,96L1440,200L0,200Z'/%3E%3C/svg%3E") no-repeat bottom;
        background-size: cover;
    }
    .post-hero-blob-1 {
        position: absolute; top: -60px; right: -60px;
        width: 320px; height: 320px;
        background: rgba(255,107,53,0.11);
        border-radius: 50%; filter: blur(55px);
        pointer-events: none;
    }
    .post-hero-inner {
        position: relative; z-index: 2;
        max-width: 860px;
        margin: 0 auto;
        padding: 0 2rem;
        text-align: center;
    }

    /* Breadcrumb */
    .post-breadcrumb {
        display: flex; align-items: center; justify-content: center;
        gap: 0.5rem; font-size: 0.84rem;
        opacity: 0.72; margin-bottom: 1.5rem;
        flex-wrap: wrap;
    }
    .post-breadcrumb a { color: white; text-decoration: none; }
    .post-breadcrumb a:hover { text-decoration: underline; }
    .post-breadcrumb .sep { opacity: 0.45; font-size: 0.65rem; }

    /* Category badge */
    .post-cat-label {
        display: inline-flex; align-items: center; gap: 0.4rem;
        background: var(--primary); color: white;
        padding: 0.3rem 1rem; border-radius: 20px;
        font-size: 0.75rem; font-weight: 700;
        text-transform: uppercase; letter-spacing: 1px;
        margin-bottom: 1.2rem; text-decoration: none;
        transition: background 0.3s;
    }
    .post-cat-label:hover { background: var(--primary-dark); }

    /* Title */
    .post-hero-title {
        font-size: 2.5rem; font-weight: 800;
        line-height: 1.25; margin-bottom: 1.5rem;
        color: white;
    }

    /* Meta pills row */
    .post-hero-meta {
        display: flex; align-items: center; justify-content: center;
        gap: 0.6rem; flex-wrap: wrap; font-size: 0;
    }
    .meta-pill {
        display: inline-flex; align-items: center; gap: 0.4rem;
        background: rgba(255,255,255,0.12);
        border: 1px solid rgba(255,255,255,0.2);
        color: rgba(255,255,255,0.88);
        padding: 0.4rem 1rem; border-radius: 30px;
        font-size: 0.84rem; font-weight: 500;
        backdrop-filter: blur(8px);
    }
    .meta-pill i { color: #ffcbba; font-size: 0.8rem; }

    /* =====================================================
       PAGE BACKGROUND — dot grid
    ===================================================== */
    .single-post-bg {
        background-color: #f4f6f8;
        background-image: radial-gradient(#dde1e7 1.2px, transparent 1.2px);
        background-size: 28px 28px;
        padding: 0 0 5rem;
    }

    /* =====================================================
       TWO-COLUMN WRAPPER (floats up over hero)
    ===================================================== */
    .single-layout {
        max-width: 1180px;
        margin: -4.5rem auto 0;
        padding: 0 2rem;
        display: grid;
        grid-template-columns: 1fr 310px;
        gap: 2.5rem;
        align-items: start;
    }
    @media (max-width: 1024px) {
        .single-layout { grid-template-columns: 1fr; margin-top: -2.5rem; }
    }

    /* =====================================================
       MAIN ARTICLE GLASS CARD
    ===================================================== */
    .singular-container {
        /* Override theme's default container */
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
    }
    .singular-article {
        background: var(--glass-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--glass-border);
        border-radius: 24px;
        box-shadow: 0 20px 60px rgba(31,38,135,0.12);
        overflow: hidden;
    }

    /* =====================================================
       SINGULAR HEADER (inside article)
    ===================================================== */
    .singular-header {
        padding: 0;       /* remove any default padding — hero handles it */
    }
    /* Meta row inside article header — hidden here (shown in hero) */
    .singular-header .singular-meta,
    .singular-header .post-categories,
    .singular-header .singular-title {
        display: none;    /* rendered in our custom hero above */
    }
    /* Featured image */
    .singular-thumbnail {
        margin: 0;
        line-height: 0;
    }
    .singular-thumbnail img,
    .singular-thumbnail .rounded-lg {
        width: 100%;
        max-height: 460px;
        object-fit: cover;
        border-radius: 0 !important;
        display: block;
    }

    /* =====================================================
       ARTICLE BODY TYPOGRAPHY  (targets your .singular-content)
    ===================================================== */
    .singular-content {
        padding: 2.5rem 3rem;
        font-size: 1.05rem;
        line-height: 1.85;
        color: #444;
    }
    @media (max-width: 768px) { .singular-content { padding: 1.8rem 1.5rem; } }

    .singular-content h2 {
        font-size: 1.65rem; font-weight: 700;
        color: var(--text-dark);
        margin: 2.5rem 0 1rem;
        padding-left: 1rem;
        border-left: 4px solid var(--primary);
        line-height: 1.3;
    }
    .singular-content h3 {
        font-size: 1.3rem; font-weight: 700;
        color: var(--secondary);
        margin: 2rem 0 0.8rem;
    }
    .singular-content h4 {
        font-size: 1.1rem; font-weight: 700;
        color: var(--text-dark);
        margin: 1.5rem 0 0.6rem;
    }
    .singular-content p { margin-bottom: 1.4rem; }
    .singular-content ul, .singular-content ol {
        padding-left: 1.5rem; margin-bottom: 1.4rem;
    }
    .singular-content li { margin-bottom: 0.5rem; line-height: 1.75; }
    .singular-content strong { color: var(--text-dark); }
    .singular-content a {
        color: var(--primary); text-decoration: underline;
        transition: color 0.2s;
    }
    .singular-content a:hover { color: var(--primary-dark); }

    /* Blockquote */
    .singular-content blockquote {
        background: linear-gradient(135deg, #fff5f2, #fff);
        border-left: 5px solid var(--primary);
        border-radius: 0 16px 16px 0;
        padding: 1.5rem 2rem;
        margin: 2rem 0;
        font-style: italic;
        font-size: 1.1rem; color: #555;
        position: relative;
    }
    .singular-content blockquote::before {
        content: '\201C';
        font-size: 4rem; color: var(--primary);
        opacity: 0.2; line-height: 0;
        position: absolute; top: 2rem; left: 1rem;
    }

    /* Code */
    .singular-content code {
        background: #1e3c72; color: #e8f4ff;
        padding: 0.2rem 0.5rem; border-radius: 6px;
        font-size: 0.88em;
    }
    .singular-content pre {
        background: var(--secondary-dark); color: #e0ecff;
        padding: 1.5rem; border-radius: 16px;
        overflow-x: auto; margin: 1.5rem 0;
        font-size: 0.92rem; line-height: 1.6;
        border: 1px solid rgba(255,255,255,0.08);
    }
    .singular-content pre code { background: none; color: inherit; padding: 0; }

    /* Tables */
    .singular-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
    .singular-content th {
        background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
        color: white; padding: 0.9rem 1rem;
        text-align: left; font-weight: 600;
    }
    .singular-content td { padding: 0.8rem 1rem; border-bottom: 1px solid #eee; color: #444; }
    .singular-content tr:nth-child(even) td { background: #f8f9fa; }

    /* Images inside content */
    .singular-content img {
        max-width: 100%; border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin: 1.5rem 0;
    }

    /* =====================================================
       PAGE LINKS (paginated posts)
    ===================================================== */
    .page-links {
        padding: 1.5rem 3rem 0;
        font-size: 0.9rem; color: var(--text-light);
    }
    @media (max-width: 768px) { .page-links { padding: 1rem 1.5rem 0; } }

    /* =====================================================
       SHARE BAR
    ===================================================== */
    .custom-share-bar {
        display: flex; align-items: center; gap: 0.8rem;
        padding: 1.5rem 3rem;
        border-top: 1px solid #f0f0f0;
        flex-wrap: wrap;
    }
    @media (max-width: 768px) { .custom-share-bar { padding: 1.2rem 1.5rem; } }
    .share-label { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); }
    .share-btn {
        display: inline-flex; align-items: center; gap: 0.4rem;
        padding: 0.5rem 1.1rem; border-radius: 20px;
        font-size: 0.84rem; font-weight: 600;
        text-decoration: none; transition: all 0.3s; color: white;
        cursor: pointer; border: none;
    }
    .share-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
    .share-wa  { background: #25d366; }
    .share-tw  { background: #1da1f2; }
    .share-li  { background: #0077b5; }
    .share-cp  { background: #667eea; }

    /* =====================================================
       SINGULAR FOOTER — Tags (your existing .singular-footer)
    ===================================================== */
    .singular-footer {
        padding: 1.5rem 3rem;
        border-top: 1px solid #f0f0f0;
    }
    @media (max-width: 768px) { .singular-footer { padding: 1.2rem 1.5rem; } }
    .post-tags { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
    .tag-label { font-size: 0.88rem; font-weight: 700; color: var(--text-dark); }
    .post-tags a {
        padding: 0.3rem 0.9rem; border-radius: 20px;
        font-size: 0.82rem; font-weight: 600;
        background: #f0f2f5; color: var(--text-light);
        text-decoration: none;
        border: 1px solid #e5e7eb;
        transition: all 0.3s;
    }
    .post-tags a:hover { background: var(--primary); color: white; border-color: var(--primary); }

    /* =====================================================
       AUTHOR BOX
    ===================================================== */
    .custom-author-box {
        margin: 0 3rem 2rem;
        background: linear-gradient(135deg, #f8f9ff, #fff);
        border: 1px solid #eaecf5;
        border-radius: 20px;
        padding: 1.8rem;
        display: flex; gap: 1.5rem; align-items: flex-start;
    }
    @media (max-width: 768px) {
        .custom-author-box { margin: 0 1.5rem 1.5rem; flex-direction: column; align-items: center; text-align: center; }
    }
    .author-av {
        width: 68px; height: 68px; border-radius: 50%;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white; font-size: 1.5rem; font-weight: 800;
        display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 8px 20px rgba(102,126,234,0.3);
    }
    .author-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
    .author-text h4 { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.2rem; }
    .author-text .author-role {
        font-size: 0.8rem; font-weight: 700; color: var(--primary);
        text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem;
    }
    .author-text p { font-size: 0.91rem; color: var(--text-light); line-height: 1.6; margin: 0; }

    /* =====================================================
       RELATED POSTS
    ===================================================== */
    .custom-related {
        padding: 2rem 3rem;
        border-top: 1px solid #f0f0f0;
    }
    @media (max-width: 768px) { .custom-related { padding: 1.5rem; } }
    .custom-related h3 {
        font-size: 1.2rem; font-weight: 700;
        color: var(--text-dark); margin-bottom: 1.2rem;
        display: flex; align-items: center; gap: 0.5rem;
    }
    .custom-related h3 i { color: var(--primary); }
    .related-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 1rem;
    }
    .related-card {
        background: #f8f9fa; border: 1px solid #eee;
        border-radius: 16px; overflow: hidden;
        text-decoration: none; transition: all 0.3s;
        display: flex; flex-direction: column;
    }
    .related-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.1);
        border-color: rgba(255,107,53,0.3);
    }
    .related-card img { width: 100%; height: 105px; object-fit: cover; }
    .related-card-ph {
        height: 105px; display: flex; align-items: center; justify-content: center;
        font-size: 2rem;
        background: linear-gradient(135deg, #e8eaf6, #e3f2fd);
        color: rgba(42,82,152,0.3);
    }
    .related-card-body { padding: 0.9rem; }
    .related-card-title {
        font-size: 0.88rem; font-weight: 600;
        color: var(--text-dark); line-height: 1.4;
        margin-bottom: 0.3rem;
        display: -webkit-box; -webkit-line-clamp: 2;
        -webkit-box-orient: vertical; overflow: hidden;
    }
    .related-card-date { font-size: 0.76rem; color: var(--text-light); }

    /* =====================================================
       COMMENTS (your existing .singular-comments)
    ===================================================== */
    .singular-comments {
        padding: 2rem 3rem;
        border-top: 1px solid #f0f0f0;
    }
    @media (max-width: 768px) { .singular-comments { padding: 1.5rem; } }
    .comments-title {
        font-size: 1.3rem; font-weight: 700;
        color: var(--text-dark); margin-bottom: 1.5rem;
        display: flex; align-items: center; gap: 0.5rem;
    }
    .comments-title::before {
        content: '\f086';
        font-family: 'Font Awesome 6 Free'; font-weight: 900;
        color: var(--primary);
    }
    /* Comment list */
    .comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
    .comment-list .comment {
        padding: 1.2rem 0;
        border-bottom: 1px solid #f5f5f5;
    }
    .comment-list .comment:last-child { border-bottom: none; }
    .comment-author { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
    .comment-author img {
        border-radius: 50%; width: 42px; height: 42px;
        box-shadow: none !important; margin: 0 !important;
    }
    .comment-author .fn { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); }
    .comment-metadata a { font-size: 0.78rem; color: var(--text-light); text-decoration: none; }
    .comment-content p { font-size: 0.95rem; color: #555; line-height: 1.65; margin: 0; }
    .reply a {
        font-size: 0.82rem; color: var(--primary);
        font-weight: 600; text-decoration: none;
    }
    /* Comment form */
    #respond { margin-top: 2rem; }
    #reply-title { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1.5rem; }
    .comment-form label { font-size: 0.88rem; font-weight: 600; color: var(--text-dark); display: block; margin-bottom: 0.4rem; }
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea {
        width: 100%; padding: 0.85rem 1.1rem;
        border: 1.5px solid #e0e3e8; border-radius: 12px;
        font-size: 0.95rem; font-family: inherit;
        outline: none; background: #fafbfc;
        transition: border-color 0.3s; margin-bottom: 1rem;
    }
    .comment-form input:focus,
    .comment-form textarea:focus { border-color: var(--primary); }
    .comment-form-comment { margin-bottom: 0.5rem; }
    #submit {
        background: var(--primary); color: white;
        border: none; padding: 0.9rem 2.4rem;
        border-radius: 30px; font-size: 1rem;
        font-weight: 700; cursor: pointer;
        transition: all 0.3s;
    }
    #submit:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255,107,53,0.3);
    }

    /* =====================================================
       SIDEBAR
    ===================================================== */
    .single-sidebar { position: sticky; top: 90px; }
    .sidebar-widget {
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        padding: 1.8rem;
        margin-bottom: 1.8rem;
        box-shadow: var(--glass-shadow);
    }
    .widget-title {
        font-size: 1rem; font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 1.2rem; padding-bottom: 0.8rem;
        border-bottom: 2px solid var(--primary);
        display: flex; align-items: center; gap: 0.5rem;
    }
    .widget-title i { color: var(--primary); }

    /* CTA widget */
    .cta-widget {
        background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
        color: white; border-radius: 20px;
        padding: 1.8rem; text-align: center;
        margin-bottom: 1.8rem;
        position: relative; overflow: hidden;
        box-shadow: 0 15px 35px rgba(30,60,114,0.2);
    }
    .cta-widget::before {
        content: ''; position: absolute;
        top: -30px; right: -30px;
        width: 110px; height: 110px;
        background: rgba(255,107,53,0.15); border-radius: 50%;
    }
    .cta-widget h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.7rem; position: relative; z-index: 1; }
    .cta-widget p  { font-size: 0.88rem; opacity: 0.85; margin-bottom: 1.3rem; line-height: 1.55; position: relative; z-index: 1; }
    .cta-widget a {
        display: inline-block; background: var(--primary); color: white;
        padding: 0.75rem 1.6rem; border-radius: 30px;
        font-weight: 700; font-size: 0.9rem;
        text-decoration: none; transition: all 0.3s;
        position: relative; z-index: 1;
        box-shadow: 0 6px 18px rgba(255,107,53,0.35);
    }
    .cta-widget a:hover { background: var(--primary-dark); transform: translateY(-2px); }

    /* TOC */
    .toc-list { list-style: none; padding: 0; margin: 0; }
    .toc-list li { border-bottom: 1px solid #f5f5f5; }
    .toc-list li:last-child { border-bottom: none; }
    .toc-list a {
        display: flex; align-items: flex-start; gap: 0.5rem;
        padding: 0.55rem 0; font-size: 0.88rem;
        color: var(--text-light); text-decoration: none;
        transition: all 0.2s; line-height: 1.4;
    }
    .toc-list a i { color: var(--primary); font-size: 0.6rem; margin-top: 0.4rem; flex-shrink: 0; }
    .toc-list a:hover { color: var(--primary); padding-left: 4px; }
    .toc-list a.active { color: var(--primary); font-weight: 600; }

    /* Recent posts */
    .recent-post-item {
        display: flex; gap: 0.8rem; padding: 0.8rem 0;
        border-bottom: 1px solid #f5f5f5;
        text-decoration: none; transition: all 0.25s;
    }
    .recent-post-item:last-child { border-bottom: none; }
    .recent-post-item:hover { transform: translateX(4px); }
    .rp-thumb { width: 58px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
    .rp-thumb-ph {
        width: 58px; height: 52px; border-radius: 10px;
        background: linear-gradient(135deg, #e8eaf6, #e3f2fd);
        display: flex; align-items: center; justify-content: center;
        font-size: 1.3rem; color: rgba(42,82,152,0.3); flex-shrink: 0;
    }
    .rp-info .rp-title { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); line-height: 1.35; margin-bottom: 0.2rem; }
    .rp-info .rp-date  { font-size: 0.76rem; color: var(--text-light); }

    /* =====================================================
       ANIMATIONS
    ===================================================== */
    .fade-in-up {
        opacity: 0; transform: translateY(24px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .fade-in-up.visible { opacity: 1; transform: translateY(0); }

    @media (max-width: 768px) {
        .post-hero-title { font-size: 1.75rem; }
        .post-hero { padding: 3rem 0 5rem; }
        .post-hero-inner { padding: 0 1.5rem; }
        .singular-content { padding: 1.5rem; }
        .singular-content h2 { font-size: 1.4rem; margin: 1.5rem 0 0.8rem; padding-left: 0.8rem; }
        .singular-content h3 { font-size: 1.15rem; }
        .custom-author-box { margin: 0 1.5rem 1.5rem; flex-direction: column; align-items: center; text-align: center; }
        .custom-related { padding: 1.5rem; }
        .related-grid { grid-template-columns: 1fr; }
        .singular-comments { padding: 1.5rem; }
        .single-sidebar { position: static; }
        .custom-share-bar { padding: 1rem 1.5rem; flex-wrap: wrap; gap: 0.5rem; }
        .share-btn { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
    }
    
    @media (max-width: 480px) {
        .post-hero-title { font-size: 1.5rem; }
        .post-hero-inner { padding: 0 1rem; }
        .meta-pill { padding: 0.3rem 0.8rem; font-size: 0.75rem; }
        .singular-content { padding: 1rem; font-size: 1rem; }
        .singular-content h2 { font-size: 1.2rem; }
        .singular-content blockquote { padding: 1rem 1.2rem; }
        .custom-author-box { margin: 0 1rem 1rem; padding: 1rem; }
        .author-av { width: 56px; height: 56px; font-size: 1.2rem; }
        .sidebar-widget { padding: 1rem; }
        .recent-post-item { padding: 0.6rem 0; }
        .rp-thumb { width: 48px; height: 44px; }
    }