/* ==========================================================================
   EXPERTPULSE SINGLE POST STYLES (Styles 1-4)
   ========================================================================== */

/* --- 1. CORE ARTICLE TYPOGRAPHY & ELEMENTS --- */
.article-body, .article-content {
    font-size: 1.15rem; 
    line-height: 1.8; 
    color: var(--text-main);
}

.article-body p, .article-content p { 
    margin-bottom: 1.8rem; 
}

.article-body h2, .article-content h2 {
    font-family: var(--font-heading); font-size: 2rem; font-weight: 800;
    margin: 3.5rem 0 1.5rem; letter-spacing: -0.5px; scroll-margin-top: 100px; color: var(--text-main);
}

.article-body h3, .article-content h3 {
    font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700;
    margin: 2.5rem 0 1rem; color: var(--text-main);
}

.article-body h4, .article-content h4,
.article-body h5, .article-content h5,
.article-body h6, .article-content h6 {
    font-family: var(--font-heading); font-weight: 700;
    margin: 2rem 0 1rem; color: var(--text-main);
}

/* Global Dropcap Generation */
.dropcap-wrapper > p:first-of-type::first-letter,
.article-body > p:first-of-type::first-letter,
.article-content > p:first-of-type::first-letter {
    font-family: var(--font-heading); font-size: 4.5rem; float: left;
    line-height: 0.8; padding-right: 12px; padding-top: 8px; font-weight: 900; color: var(--accent);
}

/* Blockquotes & Pullquotes */
.article-body blockquote, .article-content blockquote {
    margin: 3rem 0; padding: 30px 40px; background: var(--bg-section-alt); border-radius: var(--radius);
    border-left: 5px solid var(--accent); font-size: 1.35rem; font-weight: 600; font-style: italic;
    color: var(--text-main); line-height: 1.6; position: relative;
}
.article-body blockquote::before, .article-content blockquote::before {
    content: '\201C'; position: absolute; top: -10px; left: 20px; font-size: 6rem;
    color: var(--accent); opacity: 0.1; font-family: Georgia, serif; line-height: 1;
}

.article-body .pullquote, .article-content .pullquote {
    margin: 3.5rem 0; padding: 40px 0; border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
    font-size: 1.8rem; font-weight: 900; text-align: center; color: var(--text-main);
    background: transparent; border-left: none; line-height: 1.4; font-style: normal;
}
.article-body .pullquote::before, .article-content .pullquote::before { display: none; }

/* Lists (Unordered and Ordered) */
.article-body ul, .article-content ul,
.article-body ol, .article-content ol {
    margin: 0 0 2.5rem 1.5rem;
    padding: 0;
}

.article-body ul li, .article-content ul li,
.article-body ol li, .article-content ol li {
    margin-bottom: 0.85rem;
    line-height: 1.8;
}

/* FIX: Prevent paragraphs inside lists from blowing out spacing */
.article-body li p, .article-content li p {
    margin-bottom: 0;
    display: inline;
}

/* Custom Unordered Lists */
.article-body ul, .article-content ul { list-style-type: none; }
.article-body ul li, .article-content ul li { position: relative; padding-left: 1.8rem; }
.article-body ul li::before, .article-content ul li::before {
    content: "•"; position: absolute; left: 0; color: var(--accent); font-weight: bold;
    font-size: 1.5rem; line-height: 1.2; top: 2px;
}

/* Custom Ordered Lists (Editorial Counters) */
.article-body ol, .article-content ol { counter-reset: custom-counter; list-style-type: none; }
.article-body ol li, .article-content ol li { position: relative; padding-left: 2.2rem; }
.article-body ol li::before, .article-content ol li::before {
    counter-increment: custom-counter;
    content: counter(custom-counter) ".";
    position: absolute; left: 0; color: var(--accent);
    font-weight: 800; font-size: 1.1rem; line-height: 1.6;
    font-family: var(--font-heading);
}

/* ==========================================================================
   PERMANENT FIX: Prevent Flexbox/Grid Blowout from Tables
   ========================================================================== */
.ep-main-content,
.article-body-area,
.article-content,
.article-body,
.main-article {
    min-width: 0 !important;
    max-width: 100% !important;
}

/* Tables */
.wp-block-table,
.article-body table, 
.article-content table {
    width: 100%; 
    max-width: 100%; 
    border-collapse: collapse; 
    margin: 3rem 0;
    background: var(--bg-card); 
    font-size: 0.95rem; 
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    
    /* CRITICAL FIX: Forces horizontal scroll */
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    word-break: normal !important;
}

/* Custom scrollbar for the sliding table */
.article-body table::-webkit-scrollbar, 
.article-content table::-webkit-scrollbar {
    height: 6px;
}
.article-body table::-webkit-scrollbar-track, 
.article-content table::-webkit-scrollbar-track {
    background: transparent;
}
.article-body table::-webkit-scrollbar-thumb, 
.article-content table::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
.article-body table:hover::-webkit-scrollbar-thumb, 
.article-content table:hover::-webkit-scrollbar-thumb {
    background: var(--text-muted);
}

.article-body thead, .article-content thead {
    background: var(--bg-section-alt);
    border-bottom: 2px solid var(--border-heavy, var(--accent));
}

.article-body th, .article-content th,
.article-body thead td, .article-content thead td { 
    text-align: left; padding: 18px 20px; font-weight: 800; color: var(--text-main);
    text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.85rem;
    white-space: nowrap !important; /* Keeps headers cleanly on one line */
}

.article-body td, .article-content td {
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    color: var(--text-muted); vertical-align: top; line-height: 1.6;
    min-width: 150px; /* Forces columns to maintain width so it triggers the slide */
}

.article-body tr:last-child td, .article-content tr:last-child td { border-bottom: none; }
.article-body tr:hover td, .article-content tr:hover td { background: rgba(0,0,0,0.01); }

[data-theme="dark"] .article-body tr:hover td,
[data-theme="dark"] .article-content tr:hover td { background: rgba(255,255,255,0.02); }

/* Code Blocks & Inline Code */
.article-body pre, .article-content pre {
    background: #1e1e2d; color: #a2a3b7; padding: 25px; border-radius: var(--radius);
    margin: 3rem 0; overflow-x: auto; font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9rem; line-height: 1.6; box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    border-left: 4px solid var(--accent);
}
.article-body pre code, .article-content pre code { background: transparent; padding: 0; color: inherit; border-radius: 0; }
.article-body code, .article-content code {
    background: var(--bg-section-alt); color: var(--accent); padding: 3px 6px;
    border-radius: 4px; font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.85em;
    border: 1px solid var(--border);
}

/* ==========================================================================
   PERMANENT FIX: Prevent Large Images & Captions from Breaking Containers
   ========================================================================== */

/* 1. Force the hardcoded WordPress wrappers to respect the container */
.article-body .wp-caption, 
.article-content .wp-caption,
.article-body figure, 
.article-content figure {
    max-width: 100% !important; /* Overrides the inline style="width: 1754px" */
    height: auto;
    margin: 2rem auto;
    display: block;
}

/* 2. Ensure all images strictly fit and keep their rounded corners */
.article-body img, 
.article-content img {
    max-width: 100% !important; 
    height: auto !important; 
    border-radius: var(--radius); 
    margin: 2rem 0;
    box-sizing: border-box;
}

/* 3. Remove double-margins if an image is already inside a caption wrapper */
.article-body .wp-caption img, 
.article-content .wp-caption img,
.article-body figure img, 
.article-content figure img {
    margin: 0 auto;
    display: block;
    width: 100%;
}

.article-body figcaption, .article-content figcaption,
.article-body .wp-caption-text, .article-content .wp-caption-text {
    text-align: center; 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    margin-top: 10px; 
    font-style: italic;
}

/* Article Tags */
.tag {
    padding: 6px 14px; background: var(--bg-section-alt); border-radius: 20px;
    font-size: 0.8rem; font-weight: 700; color: var(--text-muted); border: 1px solid var(--border);
    transition: all 0.2s; display: inline-block; text-decoration: none;
}
.tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* --- 2. SOCIAL SHARE BUTTONS --- */
.share-btn {
    width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 1.2rem; background: var(--bg-card);
    color: var(--text-muted); border: 1px solid var(--border); transition: all 0.2s ease; cursor: pointer;
}
.share-btn:hover { background: var(--bg-section-alt); color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.share-btn.tw:hover { background: #000; color: #fff; border-color: #000; }
.share-btn.fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.share-btn.lk:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }

/* --- 3. STYLE 1 SPECIFIC CSS (Minimalist Layout) --- */

/* Text-First Hero & Featured Image */
.minimal-hero { max-width: 800px; margin: 80px auto 40px; text-align: center; }
.hero-cat { color: var(--accent); font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; display: block; }
.hero-title { font-size: 3.5rem; font-weight: 900; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 25px; color: var(--text-main); }
.hero-subtitle { font-size: 1.3rem; color: var(--text-muted); line-height: 1.6; font-weight: 400; max-width: 700px; margin: 0 auto; }
.hero-media-wrapper { max-width: 1000px; margin: 0 auto 60px; padding: 0 20px; }
.hero-media-wrapper img { width: 100%; height: 65vh; max-height: 700px; border-radius: 24px; box-shadow: var(--shadow-subtle); object-fit: cover; }
.media-caption { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 15px; font-weight: 500; }

/* Complex Minimal Grid */
.style-1-wrapper .article-layout { display: grid; grid-template-columns: 60px 1fr; gap: 40px; max-width: 1000px; margin: 0 auto 80px; padding: 0 20px; }

/* Sticky Action Bar */
.action-sidebar { position: sticky; top: 120px; height: fit-content; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.author-mini { text-align: center; border-bottom: 1px solid var(--border); padding-bottom: 30px; width: 100%; }
.author-mini img { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 10px; }
.author-mini span { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.author-mini strong { font-size: 0.9rem; color: var(--text-main); }

/* Ensure buttons stay perfect circles */
.style-1-wrapper .action-buttons { display: flex; flex-direction: column; gap: 15px; }
.style-1-wrapper .action-sidebar .action-btn { 
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); 
    background: var(--bg-card); color: var(--text-muted); display: flex; 
    flex-direction: column; align-items: center; justify-content: center; 
    cursor: pointer; transition: 0.2s; text-decoration: none; padding: 0; gap: 0; 
}
.style-1-wrapper .action-sidebar .action-btn i { font-size: 1.2rem; line-height: 1; margin: 0; }
.style-1-wrapper .action-sidebar .action-btn .count { font-size: 0.7rem; font-weight: 700; margin-top: 2px; line-height: 1; }
.style-1-wrapper .action-sidebar .action-btn:hover { border-color: var(--text-main); color: var(--text-main); transform: translateY(-3px); }
.style-1-wrapper .action-sidebar .action-btn.active,
.style-1-wrapper .action-sidebar .action-btn.saved { color: var(--accent); border-color: var(--accent); background: rgba(255,51,102,0.05); }

/* Soft Newsletter Component */
.inline-newsletter { background: var(--bg-section-alt); border-radius: var(--radius); padding: 40px; margin: 4rem 0; text-align: center; border: 1px solid var(--border); }
.inline-newsletter h4 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.inline-newsletter p { font-size: 1rem; color: var(--text-muted); margin-bottom: 25px; }
.news-form { display: flex; gap: 10px; max-width: 400px; margin: 0 auto; }
.news-form input { flex: 1; padding: 15px 20px; border-radius: 30px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-main); font-family: inherit; font-size: 1rem; outline: none; transition: 0.2s; }
.news-form input:focus { border-color: var(--text-main); }
.news-form button { padding: 0 30px; border-radius: 30px; background: var(--text-main); color: var(--bg-body); font-weight: 700; border: none; cursor: pointer; transition: 0.2s; }
.news-form button:hover { opacity: 0.8; }

/* Minimal Footer Layout */
.article-footer { max-width: 680px; margin: 0 auto 100px; padding-top: 40px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.tag-list { display: flex; gap: 10px; flex-wrap: wrap; }
.tag-list a { padding: 8px 16px; background: var(--bg-section-alt); border-radius: 30px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); transition: 0.2s; text-decoration: none; }
.tag-list a:hover { background: var(--border); color: var(--text-main); }
.author-large { display: flex; gap: 20px; align-items: center; margin-top: 60px; }
.author-large img { width: 80px; height: 80px; border-radius: 50%; }
.author-large h4 { font-size: 1.2rem; font-weight: 800; }
.author-large p { font-size: 0.95rem; color: var(--text-muted); margin-top: 5px; line-height: 1.5; }

/* ==========================================================================
   4. MODERN COMMENTS SECTION & FORM STYLING
   ========================================================================== */

.comments-area {
    max-width: 800px;
    margin: 60px auto;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.style-1-wrapper .comments-area {
    max-width: 680px;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-section-alt);
    color: var(--text-main);
}

/* Comment List */
.comment-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.comment {
    margin-bottom: 2rem;
}

.comment-body {
    display: flex;
    gap: 1rem;
}

.comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-section-alt);
    margin: 0;
}

.comment-content-wrap {
    flex: 1;
    background: var(--bg-section-alt);
    padding: 1.25rem;
    border-radius: 0 12px 12px 12px;
    border: 1px solid var(--border);
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.comment-author a {
    color: var(--text-main);
    text-decoration: none;
}

.comment-author a:hover {
    color: var(--accent);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.comment-text p {
    margin-bottom: 0.8rem;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

/* Action Buttons */
.comment-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.action-btn, .comment-reply-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    transition: color 0.2s;
    text-decoration: none;
}

.action-btn:hover, .comment-reply-link:hover {
    color: var(--accent);
}

.comment-like-btn.liked {
    color: #ef4444;
}

.comment-like-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: all 0.2s ease;
}

.comment-like-btn.liked svg {
    fill: #ef4444;
    stroke: #ef4444;
    transform: scale(1.1);
}

/* Nested Replies */
.children {
    list-style: none !important;
    padding-left: 3rem !important;
    margin-top: 1.5rem !important;
    border-left: 2px solid var(--border) !important;
}

.children .comment-avatar img {
    width: 40px;
    height: 40px;
}

/* Comment Form */
.comment-respond, #respond {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-section-alt);
}

.comment-reply-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-reply-title small a {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
}

.comment-form-group {
    margin-bottom: 1rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--bg-section-alt);
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.comment-form textarea {
    resize: vertical;
    min-height: 100px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.submit-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    display: inline-block;
}

.submit-btn:hover {
    opacity: 0.9;
}

@media (max-width: 600px) {
    .children {
        padding-left: 1rem !important;
    }
    .comments-area {
        padding: 1.5rem;
    }
    .comment-form-group[style] {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================================================
   5. RESPONSIVE BEHAVIORS
   ========================================================================== */

@media (max-width: 992px) {
    .style-1-wrapper .article-layout, 
    .style-2-wrapper .article-layout, 
    .article-layout { grid-template-columns: 1fr !important; gap: 20px !important; }
}

@media (max-width: 800px) {
    .hero-title { font-size: 2.5rem !important; margin-bottom: 15px !important; }
    .hero-subtitle { font-size: 1.1rem !important; }
    .hero-media-wrapper img { height: 50vh !important; }
    .style-1-wrapper .article-layout, 
    .article-layout { grid-template-columns: 1fr !important; gap: 20px !important; padding: 0 20px !important; }
    .author-mini { border-bottom: none !important; padding-bottom: 0 !important; width: auto !important; text-align: left !important; display: flex !important; align-items: center !important; gap: 15px !important; }
    .author-mini img { margin: 0 !important; }
    .news-form { flex-direction: column !important; }
    .news-form button { padding: 15px !important; }
    .article-footer { flex-direction: column !important; align-items: flex-start !important; gap: 30px !important; }
}

@media (max-width: 768px) {
    .article-title { font-size: 2.2rem !important; }
    .style-1-wrapper .action-sidebar, 
    .style-2-wrapper .social-share-sidebar, 
    .action-sidebar, 
    .social-share-sidebar { position: static !important; flex-direction: row !important; justify-content: center !important; width: 100% !important; border-bottom: 1px solid var(--border) !important; padding-bottom: 20px !important; margin-bottom: 10px !important; height: auto !important; }
    .article-body-wrapper { flex-direction: column !important; gap: 20px !important; }
    .dropcap-wrapper > p:first-of-type::first-letter, .article-body > p:first-of-type::first-letter, .article-content > p:first-of-type::first-letter { font-size: 3.5rem !important; }

    /* Tables on Mobile: Prevent Breaking the Layout */
    .article-body table, .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    /* Style 1 Action Sidebar Mobile Layout */
    .style-1-wrapper .action-sidebar, 
    .action-sidebar { flex-direction: column !important; align-items: flex-start !important; justify-content: flex-start !important; padding-bottom: 20px !important; gap: 20px !important; }
    .style-1-wrapper .author-mini, 
    .author-mini { display: flex !important; align-items: center !important; gap: 15px !important; text-align: left !important; width: 100% !important; border-bottom: none !important; padding-bottom: 0 !important; }
    .style-1-wrapper .author-mini img, 
    .author-mini img { width: 50px !important; height: 50px !important; margin: 0 !important; flex-shrink: 0 !important; }
    .style-1-wrapper .author-mini div, 
    .author-mini div { display: flex !important; flex-direction: column !important; min-width: 0 !important; }
    .style-1-wrapper .author-mini span, 
    .author-mini span { white-space: nowrap !important; }
    .style-1-wrapper .action-buttons, 
    .action-buttons { flex-direction: row !important; width: 100% !important; justify-content: space-between !important; gap: 10px !important; flex-wrap: nowrap !important; }
   .style-1-wrapper .action-sidebar .action-btn, 
    .action-sidebar .action-btn { flex-shrink: 0 !important; width: 44px !important; height: 44px !important; }

    /* Responsive Comments */
    .comment-form .form-row { grid-template-columns: 1fr !important; gap: 15px !important; }
    .comment-list .comment { flex-direction: column !important; gap: 15px !important; }
    .comment-avatar-wrap img { width: 45px !important; height: 45px !important; }
    .comment-content { border-radius: 16px !important; padding: 15px !important; }
}

@media (max-width: 600px) {
    .minimal-hero { margin: 40px auto 30px !important; }
    .hero-title { font-size: 2rem !important; }
    .inline-newsletter { padding: 25px 20px !important; margin: 3rem 0 !important; }
    .inline-newsletter h4 { font-size: 1.2rem !important; }
    .author-large { flex-direction: column !important; text-align: center !important; gap: 15px !important; margin-top: 40px !important; }
    .author-large img { margin: 0 auto !important; }
}

/* ==========================================================================
   GLOBAL COMMENTS CONTAINER FIX
   ========================================================================== */
.single-wrapper .comments-area,
#comments, 
.comments-section {
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important; 
    box-sizing: border-box !important;
}

.style-1-wrapper #comments,
.style-1-wrapper .comments-section {
    max-width: 680px !important;
}

#respond,
.comment-respond,
.comment-respond form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
}

/* ==========================================================================
   STYLE 2 SPECIFIC CSS (Centered Minimal)
   ========================================================================== */
.style-2-wrapper .article-hero-section { padding: 40px 0; text-align: center; max-width: 900px; margin: 0 auto; }
.style-2-wrapper .article-category {
    display: inline-block; padding: 6px 16px; background: rgba(255, 51, 102, 0.1);
    color: var(--accent); font-weight: 800; border-radius: 30px;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
}
.style-2-wrapper .article-title { font-size: 3rem; font-weight: 900; line-height: 1.2; margin-bottom: 25px; letter-spacing: -1px; }

.style-2-wrapper .article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 15px; padding: 0; margin: 0 auto; width: 100%; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; }
.style-2-wrapper .article-meta span { flex: 0 0 auto; }
.style-2-wrapper .author-box { display: flex; align-items: center; gap: 10px; color: var(--text-main); flex: 0 0 auto; }
.style-2-wrapper .author-box img { width: 45px; height: 45px; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin: 0; }
.style-2-wrapper .meta-divider { width: 4px; height: 4px; border-radius: 50%; background: var(--border); flex: 0 0 auto; transform: translateY(1px); }

.style-2-wrapper .article-featured-image {
    width: 100%; height: 60vh; max-height: 600px; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 50px;
}

.style-2-wrapper .article-layout { display: grid; grid-template-columns: 1fr 350px; gap: 60px; padding-bottom: 60px; }
.style-2-wrapper .article-body-wrapper { display: flex; gap: 30px; }

.style-2-wrapper .social-share-sidebar { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 15px; height: fit-content; }
.style-2-wrapper .share-btn {
    width: 45px; height: 45px; border-radius: 50%; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    color: var(--text-muted); background: var(--bg-card); cursor: pointer; transition: 0.3s; padding: 0;
}
.style-2-wrapper .share-btn:hover { background: var(--accent); border-color: var(--accent); color: white; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(255,51,102,0.3); }

.style-2-wrapper .article-content { font-size: 1.15rem; line-height: 1.8; color: var(--text-main); min-width: 0; flex-grow: 1; }

.style-2-wrapper .article-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.style-2-wrapper .tag { padding: 8px 16px; background: var(--bg-section-alt); border: 1px solid var(--border); border-radius: 30px; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); transition: 0.2s; }
.style-2-wrapper .tag:hover { border-color: var(--accent); color: var(--accent); }

.style-2-wrapper .author-bio-box {
    display: flex; gap: 20px; padding: 30px; margin-top: 50px;
    background: var(--bg-section-alt); border-radius: var(--radius); border: 1px solid var(--border);
}
.style-2-wrapper .author-bio-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin: 0; }
.style-2-wrapper .author-bio-info h4 { font-size: 1.2rem; font-weight: 800; margin: 0 0 8px; }
.style-2-wrapper .author-bio-info p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 12px; }
.style-2-wrapper .author-link { color: var(--accent); font-weight: 700; font-size: 0.9rem; }

.style-2-wrapper .widget { margin-bottom: 40px; }
.style-2-wrapper .widget-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 8px; }
.style-2-wrapper .widget-title i { color: var(--accent); }
.style-2-wrapper .ad-box { background: var(--bg-section-alt); border: 2px dashed var(--border); height: 300px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-weight: 700; border-radius: var(--radius); }
.style-2-wrapper .trending-list { display: flex; flex-direction: column; gap: 15px; }
.style-2-wrapper .trending-item { display: flex; gap: 15px; align-items: center; cursor: pointer; }
.style-2-wrapper .trending-item img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; transition: 0.3s; flex-shrink: 0; }
.style-2-wrapper .trending-item:hover img { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.style-2-wrapper .trending-info h4 { font-size: 0.95rem; font-weight: 700; line-height: 1.4; margin-bottom: 5px; color: var(--text-main); transition: 0.2s; }
.style-2-wrapper .trending-item:hover h4 { color: var(--accent); }
.style-2-wrapper .trending-info span { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

@media (max-width: 992px) {
    .style-2-wrapper .article-layout, .article-layout { grid-template-columns: 1fr !important; }
    .style-2-wrapper .article-title, .article-title { font-size: 2.2rem !important; }
    .style-2-wrapper .article-featured-image, .article-featured-image { height: 40vh !important; }
}
@media (max-width: 768px) {
    .style-2-wrapper .article-body-wrapper, .article-body-wrapper { flex-direction: column !important; gap: 20px !important; }
    .style-2-wrapper .social-share-sidebar, .social-share-sidebar { position: static !important; flex-direction: row !important; justify-content: center !important; padding: 15px 0 !important; border-top: 1px solid var(--border) !important; border-bottom: 1px solid var(--border) !important; margin-bottom: 20px !important; width: 100% !important;  }
    .style-2-wrapper .author-bio-box, .author-bio-box { flex-direction: column !important; text-align: center !important; }
    .style-2-wrapper .author-bio-box img, .author-bio-box img { margin: 0 auto !important; }
    
    .style-2-wrapper .article-meta, .article-meta { gap: 8px 12px !important; font-size: 0.85rem !important; padding: 15px 0 !important; justify-content: center !important; }
    .style-2-wrapper .author-box, .author-box { gap: 6px !important; }
    .style-2-wrapper .author-box img, .author-box img { width: 35px !important; height: 35px !important; }
}

/* ==========================================================================
   STYLE BUILDER (Dynamic Single Post Blocks)
   ========================================================================== */
.single-header-block { margin-top: 3rem; margin-bottom: 2rem; }
.article-header-wrapper { text-align: center; max-width: 900px; margin: 0 auto 2.5rem; }
.article-header-wrapper .category-tag { margin-bottom: 15px; }
.article-header-wrapper .article-title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.15; margin-bottom: 1.5rem; letter-spacing: -1px; color: var(--text-main); }
.article-header-wrapper .article-subtitle { font-size: 1.25rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 2rem; font-weight: 400; }
.article-header-wrapper .article-meta { display: flex; align-items: center; justify-content: center; gap: 15px; flex-wrap: wrap; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.article-header-wrapper .article-meta .meta-author { display: flex; align-items: center; gap: 10px; color: var(--text-main); }
.article-header-wrapper .article-meta .meta-author img { border-radius: 50%; margin: 0; }
.article-header-wrapper .article-meta .meta-divider { color: var(--border); }
.article-header-wrapper .article-meta a { color: inherit; display: flex; align-items: center; gap: 5px; transition: color 0.2s; }
.article-header-wrapper .article-meta a:hover { color: var(--accent); }

.featured-image-wrapper { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.featured-image-wrapper img { width: 100%; height: auto; max-height: 70vh; object-fit: cover; display: block; }
.featured-image-wrapper .image-caption { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 10px; font-style: italic; }

.single-content-block { margin-bottom: 3rem; }
.single-content-block .content-narrow { max-width: 800px; margin: 0 auto; }
.single-pagination { justify-content: flex-start; margin: 2rem 0; }
.single-pagination .pages-label { font-weight: 800; margin-right: 10px; align-self: center; }

.author-bio-box { display: flex; gap: 20px; padding: 30px; margin-top: 50px; background: var(--bg-section-alt); border-radius: var(--radius); border: 1px solid var(--border); }
.author-bio-box img { border-radius: 50%; flex-shrink: 0; margin: 0; }
.author-bio-info h4 { font-size: 1.2rem; font-weight: 800; margin: 0 0 8px; }
.author-bio-info p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 12px; }
.author-bio-info .author-link { color: var(--accent); font-weight: 700; font-size: 0.9rem; transition: opacity 0.2s; }
.author-bio-info .author-link:hover { opacity: 0.8; }

.single-bottom-share-block { max-width: 900px; margin: 0 auto 3rem; }
.bottom-share-wrapper { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bottom-share-wrapper .tags-container { display: flex; gap: 10px; flex-wrap: wrap; }
.bottom-share-wrapper .share-icons { display: flex; gap: 10px; align-items: center; }
.bottom-share-wrapper .share-icons .share-label { font-weight: 700; font-size: 0.9rem; margin-right: 5px; }

.single-newsletter-block { max-width: 800px; margin: 3rem auto; }
.single-newsletter-block .newsletter-icon { font-size: 3rem; color: var(--accent); margin-bottom: 15px; display: block; }

.single-next-prev-block { margin: 4rem auto; }
.single-next-prev-block .quad-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.single-next-prev-block .article-card { border: 1px solid var(--border); box-shadow: none; border-radius: var(--radius); }
.single-next-prev-block .article-card .img-hover-zoom { aspect-ratio: 16/9; margin-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.single-next-prev-block .article-card .card-body { padding: 25px; }
.single-next-prev-block .article-card.prev-card { text-align: left; }
.single-next-prev-block .article-card.next-card { text-align: right; }

@media (max-width: 768px) {
    .bottom-share-wrapper { flex-direction: column !important; align-items: flex-start !important; gap: 20px !important; }
    .single-next-prev-block .quad-grid { grid-template-columns: 1fr !important; }
    .single-next-prev-block .article-card.next-card { text-align: left !important; }
}

/* -----------------------------------------------------------
   Style 3 Custom Scoped CSS
   ----------------------------------------------------------- */
.style-3-wrapper .top-ad-banner {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.style-3-wrapper .article-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    align-items: start;
    padding-top: 50px;
    padding-bottom: 80px;
}

.style-3-wrapper .article-category {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}
.style-3-wrapper .article-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.style-3-wrapper .article-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 500;
}

.style-3-wrapper .article-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}
.style-3-wrapper .meta-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}
.style-3-wrapper .meta-info img {
    width: 45px; height: 45px; border-radius: 50%; object-fit: cover;
}
.style-3-wrapper .meta-comments-link {
    display: flex; align-items: center; gap: 4px; transition: color 0.2s; color: var(--text-muted);
}
.style-3-wrapper .meta-comments-link:hover { color: var(--accent); }

.style-3-wrapper .share-icons {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.style-3-wrapper .share-btn {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-section-alt); color: var(--text-main);
    font-size: 1.1rem; border: 1px solid var(--border);
    cursor: pointer; transition: 0.2s; padding: 0;
}
.style-3-wrapper .share-btn:hover { background: var(--accent); color: white; border-color: var(--accent); transform: translateY(-2px); }

.style-3-wrapper .share-btn.like-btn {
    width: auto; padding: 0 14px; border-radius: 30px; gap: 6px;
}
.style-3-wrapper .share-btn.like-btn .count {
    font-size: 0.85rem; font-weight: 700;
}
.style-3-wrapper .share-btn.save-btn.saved,
.style-3-wrapper .share-btn.like-btn.liked { 
    background: rgba(255, 51, 102, 0.1); 
    color: var(--accent); 
    border-color: var(--accent); 
}
.style-3-wrapper .share-divider {
    width: 1px; height: 20px; background: var(--border); margin: 0 5px;
}

.style-3-wrapper .article-main-img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 10px;
    max-height: 600px;
    object-fit: cover;
}
.style-3-wrapper .image-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 40px;
    padding-left: 10px;
    border-left: 3px solid var(--border);
}

.style-3-wrapper .article-content a {
    /*color: var(--accent);*/
    text-decoration: underline;
    font-weight: 600;
}
.style-3-wrapper .article-content a:hover { text-decoration: none; }

.style-3-wrapper .newsletter-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 4px solid var(--accent-warning);
    padding: 25px;
    border-radius: 8px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}
.style-3-wrapper .newsletter-box i { font-size: 2rem; color: var(--accent-warning); }
.style-3-wrapper .newsletter-content h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; color: var(--text-main); }
.style-3-wrapper .newsletter-content p { font-size: 0.95rem; margin-bottom: 0; color: var(--text-muted); }

.style-3-wrapper .sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.style-3-wrapper .audio-player-widget { border-top: 4px solid #3b82f6; }
.style-3-wrapper .audio-player-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-weight: 700; color: var(--text-main); }
.style-3-wrapper .audio-player-header i { font-size: 1.2rem; color: #3b82f6; }
.style-3-wrapper .audio-controls { display: flex; align-items: center; gap: 15px; }
.style-3-wrapper .play-btn {
    width: 45px; height: 45px; border-radius: 50%; background: #3b82f6; color: white;
    display: flex; align-items: center; justify-content: center; border: none; font-size: 1.2rem; cursor: pointer;
}
.style-3-wrapper .progress-bar { flex-grow: 1; height: 6px; background: var(--border); border-radius: 3px; position: relative; }
.style-3-wrapper .progress-fill { position: absolute; left: 0; top: 0; height: 100%; width: 30%; background: #3b82f6; border-radius: 3px; }

.style-3-wrapper .ad-space {
    background: var(--bg-section-alt);
    border: 2px dashed var(--border);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    border-radius: var(--radius);
}

.style-3-wrapper .section-header {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    display: inline-block;
    color: var(--text-main);
}

.style-3-wrapper .related-media-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.style-3-wrapper .media-item { display: flex; gap: 15px; align-items: center; cursor: pointer; }
.style-3-wrapper .media-thumb { width: 120px; height: 80px; position: relative; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.style-3-wrapper .media-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.style-3-wrapper .media-item:hover .media-thumb img { transform: scale(1.05); }
.style-3-wrapper .play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.6); color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.style-3-wrapper .media-info h4 { font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--text-main); margin-bottom: 5px; transition: color 0.2s; }
.style-3-wrapper .media-item:hover h4 { color: var(--accent); }
.style-3-wrapper .media-info span { font-size: 0.8rem; color: var(--text-muted); }

.style-3-wrapper .read-more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; margin-bottom: 60px; }
.style-3-wrapper .article-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.3s; text-decoration: none; }
.style-3-wrapper .article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.style-3-wrapper .article-card img { width: 100%; height: 180px; object-fit: cover; }
.style-3-wrapper .article-card-content { padding: 15px; }
.style-3-wrapper .article-card-content h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; color: var(--text-main); }

@media (max-width: 992px) {
    .style-3-wrapper .article-wrapper, .article-wrapper { grid-template-columns: 1fr !important; gap: 40px !important; }
    .style-3-wrapper .read-more-grid, .read-more-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
    .style-3-wrapper .article-wrapper, .article-wrapper { padding-top: 30px !important; } 
    .style-3-wrapper .article-title, .article-title { font-size: 2rem !important; }
    .style-3-wrapper .meta-info, .meta-info { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; }
    .style-3-wrapper .article-meta-row, .article-meta-row { flex-direction: column !important; align-items: flex-start !important; gap: 20px !important; }
    .style-3-wrapper .share-divider, .share-divider { display: none !important; }
    .style-3-wrapper .newsletter-box, .newsletter-box { flex-direction: column !important; text-align: center !important; }
    .style-3-wrapper .newsletter-box button, .newsletter-box button { margin-left: 0 !important; margin-top: 10px !important; }
}

/* --- Article Specific Layout & Styles (Style 4) --- */
.style-4-wrapper .single-layout {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 3rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.style-4-wrapper .article-header-wrapper {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.style-4-wrapper .breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}
.style-4-wrapper .breadcrumbs a { color: var(--text-main); }
.style-4-wrapper .breadcrumbs a:hover { color: var(--brand-color); }
.style-4-wrapper .breadcrumbs span.separator { margin: 0 0.5rem; color: var(--text-tertiary); }

.style-4-wrapper .article-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.style-4-wrapper .meta-divider { color: var(--border-light); }
.style-4-wrapper .meta-author { font-weight: 600; color: var(--text-main); }
.style-4-wrapper .meta-author a { color: inherit; transition: color 0.2s; }
.style-4-wrapper .meta-author a:hover { color: var(--brand-color); }
.style-4-wrapper .meta-category { font-weight: 600; }
.style-4-wrapper .meta-category a { color: inherit; }
.style-4-wrapper .meta-comments { display: flex; align-items: center; gap: 0.3rem; }
.style-4-wrapper .meta-comments svg { width: 14px; height: 14px; fill: currentColor; }

.style-4-wrapper .article-title {
    font-family: var(--font-display, 'Merriweather', serif);
    font-size: 3.2rem;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 2rem;
    max-width: 900px;
}

.style-4-wrapper .social-shares {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}
.style-4-wrapper .social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    transition: all 0.3s ease;
    background: #fff;
}
.style-4-wrapper .social-btn:hover {
    border-color: var(--text-main);
    background: var(--bg-alt);
}
.style-4-wrapper .social-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.style-4-wrapper .main-article {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.style-4-wrapper .featured-image {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.style-4-wrapper .featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.style-4-wrapper .article-body {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.style-4-wrapper .dropcap::first-letter,
.style-4-wrapper .article-body > p:first-of-type::first-letter {
    font-family: var(--font-sans);
    font-size: 6rem;
    font-weight: 300;
    line-height: 0.8;
    float: left;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    color: var(--text-main);
}

.style-4-wrapper .article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.style-4-wrapper .widget-search {
    display: flex;
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 4px;
}
.style-4-wrapper .widget-search input {
    flex-grow: 1;
    padding: 1rem;
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-family: var(--font-sans);
}
.style-4-wrapper .widget-search button {
    background-color: #E11D48;
    color: white;
    padding: 0 1.5rem;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    border: none;
}
.style-4-wrapper .widget-search button:hover {
    background-color: #BE123C;
}
.style-4-wrapper .widget-search button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.style-4-wrapper .widget-promo {
    background: var(--bg-alt);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-light);
}
.style-4-wrapper .widget-promo .promo-logo {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: -1px;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.style-4-wrapper .widget-promo .promo-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.4;
}
.style-4-wrapper .widget-promo .buy-btn {
    background-color: #F97316; 
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    transition: background 0.3s ease;
}
.style-4-wrapper .widget-promo .buy-btn:hover { background-color: #EA580C; }
.style-4-wrapper .widget-promo .demo-text {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}
.style-4-wrapper .widget-promo img {
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

@media (max-width: 1024px) {
    .style-4-wrapper .single-layout, .single-layout { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .style-4-wrapper .article-header-wrapper, .article-header-wrapper { text-align: left !important; align-items: flex-start !important; }
    .style-4-wrapper .article-title, .article-title { font-size: 2.8rem !important; }
    .style-4-wrapper .social-shares, .social-shares { justify-content: flex-start !important; }
    .style-4-wrapper .widget-search, .widget-search { padding: 1rem 0 !important; background: transparent !important; }
    .style-4-wrapper .article-sidebar, .article-sidebar { gap: 2rem !important; }
}
@media (max-width: 600px) {
    .style-4-wrapper .article-title, .article-title { font-size: 2.2rem !important; margin-bottom: 1.5rem !important; }
    .style-4-wrapper .breadcrumbs, .breadcrumbs { font-size: 0.8rem !important; margin-bottom: 1rem !important; line-height: 1.5 !important; }
    .style-4-wrapper .article-meta { align-items: flex-start !important; gap: 0.5rem !important; }
    .style-4-wrapper .meta-divider { display: none !important; }
    .style-4-wrapper .dropcap::first-letter,
    .style-4-wrapper .article-body > p:first-of-type::first-letter,
    .dropcap::first-letter, .article-body > p:first-of-type::first-letter { font-size: 5rem !important; }
}

/* ==========================================================================
   FIX: Floating Social Share Dropdown Responsiveness
   ========================================================================== */
.fallback-share-dropdown {
    white-space: nowrap !important;
    animation: epPopupFadeIn 0.2s ease forwards !important;
}

@keyframes epPopupFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 768px) {
    .fallback-share-dropdown {
        left: auto !important;
        right: -10px !important; 
        transform: none !important;
        max-width: calc(100vw - 40px) !important;
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
        border-radius: 16px !important;
        animation: epPopupFadeInMobile 0.2s ease forwards !important;
    }
    
    @keyframes epPopupFadeInMobile {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

.ep-author-box {
    display: flex;
    gap: 25px;
    padding: 35px;
    margin-top: 50px;
    background: var(--bg-card); 
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ep-author-box:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.ep-author-avatar {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: var(--bg-section-alt);
}

.ep-author-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    display: block;
    margin: 0 !important;          
    border-radius: 0 !important;   
}

.ep-author-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ep-author-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 15px;
}
.ep-author-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 4px;
    display: block;
}
.ep-author-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.ep-author-socials {
    display: flex;
    gap: 8px;
}
.ep-author-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-section-alt);
    color: var(--text-muted);
    font-size: 1rem;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    text-decoration: none;
}
.ep-author-socials a:hover {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
    transform: translateY(-3px);
}

.ep-author-bio {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 15px;
}
.ep-author-footer {
    display: flex;
    align-items: center;
    margin-top: auto;
}
.ep-author-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.85rem;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ep-author-link:hover { color: var(--accent); }
.ep-author-link i { transition: transform 0.2s; }
.ep-author-link:hover i { transform: translateX(4px); }

@media (max-width: 600px) {
    .ep-author-box {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 25px !important;
    }
    .ep-author-header {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }
    .ep-author-footer {
        justify-content: center !important;
    }
}

/* ==========================================================================
   PERMANENT FIX: Prevent Flexbox/Grid Blowout from Plain-Text URLs
   ========================================================================== */
.article-body p, 
.article-content p, 
.comment-content p {
    min-width: 0 !important;
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

.article-body a,
.article-content a,
.comment-content a {
    word-break: break-all !important;
}

.article-body pre, 
.article-content pre {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-x: auto !important;
    max-width: 100% !important;
}

/* ==========================================================================
   PERMANENT FIX: Bulletproof Responsive Embeds & Iframes
   ========================================================================== */

/* 1. Constrain Gutenberg Embed Wrappers */
.article-body figure.wp-block-embed,
.article-content figure.wp-block-embed,
.article-body .wp-block-embed__wrapper,
.article-content .wp-block-embed__wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 2. Global Iframe constraints (No forced heights to protect Twitter/Instagram) */
.article-body iframe,
.article-content iframe,
.article-body embed,
.article-content embed,
.article-body object,
.article-content object,
.article-body video,
.article-content video {
    max-width: 100% !important;
    border-radius: var(--radius);
    display: block; 
    box-sizing: border-box !important;
}

/* 3. Force 16:9 Aspect Ratio ONLY for Videos (YouTube & Vimeo) */
.article-body iframe[src*="youtube.com"],
.article-body iframe[src*="youtu.be"],
.article-body iframe[src*="vimeo.com"],
.article-content iframe[src*="youtube.com"],
.article-content iframe[src*="youtu.be"],
.article-content iframe[src*="vimeo.com"],
.wp-block-embed-youtube iframe,
.wp-block-embed-vimeo iframe {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    box-shadow: var(--shadow);
}

/* ==========================================================================
   PREMIUM TABLE OF CONTENTS (TOC)
   ========================================================================== */
.ep-toc-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 3rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    clear: both;
}

.ep-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s ease; /* Adds a smooth fade out for the border */
}

/* Hide the border when the TOC is toggled closed */
.ep-toc-container.collapsed .ep-toc-header {
    border-bottom-color: transparent;
}

.ep-toc-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.ep-toc-title i {
    color: var(--accent);
    font-size: 1.5rem;
}

.ep-toc-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}
.ep-toc-container.collapsed .ep-toc-toggle {
    transform: rotate(180deg);
}

.ep-toc-content {
    padding: 1.5rem 2rem;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
}
.ep-toc-container.collapsed .ep-toc-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;
}

/* 2-Column CSS Layout */
.ep-toc-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    column-count: 2;
    column-gap: 40px;
}

/* Prevent lists from breaking awkwardly across columns */
.ep-toc-h2 {
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
}
.ep-toc-item::before { display: none !important; }

/* Sublist styling */
.ep-toc-sublist {
    list-style: none !important;
    margin: 0.5rem 0 0 0 !important;
    padding: 0 0 0 2rem !important;
}

/* Links & Typography */
.ep-toc-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-main);
    text-decoration: none !important;
    line-height: 1.5;
    transition: color 0.2s ease;
}
.ep-toc-link:hover { color: var(--accent); }

/* Number Boxes */
.ep-toc-number {
    background: #1a1a1a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 6px;
    min-width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 3px;
    font-family: var(--font-body);
}

[data-theme="dark"] .ep-toc-number { background: #ffffff; color: #1a1a1a; }

/* H2 specific sizing */
.ep-toc-h2 > .ep-toc-link {
    font-size: 0.95rem;
    font-weight: 800;
}

/* H3 specific sizing */
.ep-toc-h3 {
    margin: 0 0 0.8rem 0 !important;
    padding: 0 !important;
}
.ep-toc-h3 > .ep-toc-link {
    font-size: 0.9rem;
    font-weight: 600;
    /*color: var(--text-muted);*/
}
.ep-toc-h3 > .ep-toc-link:hover { color: var(--accent); }

/* Ensure headings have room when scrolled to */
.ep-heading-anchor {
    scroll-margin-top: calc(var(--header-height) + 40px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .ep-toc-list { column-count: 1; }
    .ep-toc-content { padding: 1.5rem; }
    .ep-toc-sublist { padding-left: 1.5rem !important; }
}

/* ==========================================================================
   ARTICLE TAGLINE / SECONDARY TITLE
   ========================================================================== */
.ep-article-tagline {
    font-size: 1.35rem;
    color: var(--text-main);
    line-height: 1.5;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.3px;
    opacity: 0.9;
}

/* Ensure paragraph-based taglines reset browser margins */
p.ep-article-tagline {
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

/* Alignments based on the Single Post Style */
.style-1-header .ep-article-tagline,
.style-3-header .ep-article-tagline { 
    text-align: left; 
}

.style-2-header .ep-article-tagline,
.style-4-header .ep-article-tagline { 
    text-align: center; 
    margin-left: auto; 
    margin-right: auto; 
    max-width: 850px; 
}

/* Responsive adjustments */
@media (max-width: 800px) {
    .ep-article-tagline {
        font-size: 1.15rem;
        margin-top: 0;
        margin-bottom: 1.25rem;
    }
}

/* ==========================================================================
   LIVE BLOGGING TIMELINE
   ========================================================================== */
.ep-live-timeline-wrapper {
    position: relative;
    margin: 4rem 0;
    padding-left: 0; 
}

/* Remove the old continuous vertical line */
.ep-live-timeline-wrapper::before {
    display: none;
}

/* 1. Remove the old continuous global line */
.ep-live-timeline-wrapper::before {
    display: none !important;
}

/* 2. Draw a perfectly measured, separated line for EVERY update block */
.ep-timeline-item::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 24px !important; /* Starts safely below the red dot */
    bottom: 24px !important; /* Stops halfway through the bottom padding to create a clean gap */
    left: 6px !important; /* Aligns with the center of the dot */
    width: 2px !important;
    background-color: var(--border) !important;
    z-index: 1;
}

/* 3. Force the last item to SHOW its line too (This fixes the missing line!) */
.ep-timeline-item:last-child::before,
.ep-timeline-item:last-of-type::before {
    display: block !important;
}

.ep-timeline-item {
    position: relative;
    padding-bottom: 3rem;
    padding-left: 35px; /* Content shifted right */
}

.ep-timeline-item:last-child {
    padding-bottom: 0;
}

/* ALL Timeline Dots */
.ep-live-timeline-wrapper .ep-timeline-dot {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important; 
    z-index: 2;
    margin: 0 !important;
    
    /* Force exact same bullseye style as ep-live-badge */
    width: 14px !important;
    height: 14px !important;
    border: 2px solid var(--ep-live-color) !important;
    background-color: var(--ep-live-color) !important;
    background-clip: content-box !important;
    padding: 2px !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
}

/* Stop the pulse animation for ALL updates in the timeline */
.ep-live-timeline-wrapper .ep-timeline-dot::after {
    display: none !important;
    animation: none !important;
}

/* Header (Time/Date) */
.ep-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.ep-timeline-meta-left {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-main);
}

.full-date {
    color: var(--text-muted);
    font-weight: 500;
}

/* Content Styling */
.ep-timeline-content .timeline-title {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.ep-timeline-content .timeline-text {
    color: var(--text-main);
    line-height: 1.8;
}

.ep-timeline-content .timeline-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .ep-timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .full-date {
        padding-left: 0; /* Aligns perfectly under the time-ago text now */
    }
}

/* ==========================================================================
   STYLE 2 FIX: Remove double padding & keep left sidebar sticky on Desktop
   ========================================================================== */

/* 1. Prevent double-padding when article-layout is inside a container */
.container .article-layout { 
    padding-left: 0 !important; 
    padding-right: 0 !important; 
}

/* 2. Only convert to horizontal Top Share on Mobile/Tablet */
@media (max-width: 768px) {
    .style-2-wrapper .article-body-wrapper { 
        flex-direction: column !important; 
        gap: 20px !important; 
    }
    .style-2-wrapper .social-share-sidebar { 
        position: static !important; 
        flex-direction: row !important; 
        justify-content: center !important; 
        width: 100% !important; 
        border-top: 1px solid var(--border) !important; 
        border-bottom: 1px solid var(--border) !important; 
        padding: 15px 0 !important; 
        margin-bottom: 20px !important; 
        height: auto !important; 
    }
}

/* ==========================================================================
   STYLE 2 FIX: Prevent Tables/Iframes from breaking mobile layout
   ========================================================================== */
.style-2-wrapper .article-layout > article,
.style-2-wrapper .article-body-wrapper {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
/* ==========================================================================
   GOOGLE PREFERRED BUTTON
   ========================================================================== */
.ep-google-preferred-wrapper {
    display: flex;
    margin: 15px 0;
    width: 100%;
}

.ep-google-preferred-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.2s ease;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.ep-google-preferred-btn:hover {
    border-color: var(--border-heavy, #d1d5db);
    background: var(--bg-section-alt);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    color: var(--text-main);
}

.ep-google-preferred-btn svg {
    flex-shrink: 0;
}

/* Contextual Alignment based on Single Post Style */
.style-1-header .ep-google-preferred-wrapper { justify-content: flex-start; }
.style-2-header .ep-google-preferred-wrapper { justify-content: center; }
.style-3-header .ep-google-preferred-wrapper { justify-content: flex-start; margin: 0; }
.style-4-header .ep-google-preferred-wrapper { justify-content: center; }

/* Fix Digital Store Button Underlines */
.digital-store-grid a.ep-store-btn {
    text-decoration: none !important;
}