/*
 Theme Name:   GeneratePress Bank Promo
 Theme URI:    https://bankpromotionexamguide.com
 Description:  Child theme to unify the custom header and footer across all posts.
 Author:       BankPromotionExamGuide.com
 Template:     generatepress
 Version:      1.0.3
*/

:root {
    /* Synced perfectly with the Bank Promotion UI */
    --brand: #2563eb;        
    --brand-dark: #1e3a8a;  
    --accent: #f59e0b;      
    --dark: #0f172a; 
    --text: #334155; 
    --bg: #f8fafc; 
    --border: #e2e8f0;
}

/* ================= HEADER STYLES ================= */
.er-site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.er-header-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; height: 70px; display: flex; justify-content: space-between; align-items: center; }
.er-logo { display: flex; align-items: center; gap: 8px; font-size: 1.5rem; font-weight: 800; color: var(--dark); transition: transform 0.2s; text-decoration: none; }
.er-logo:hover { transform: scale(1.02); }

.er-nav-links { display: flex; gap: 20px; }
.er-nav-links a { font-weight: 600; color: #64748b; font-size: 0.95rem; background: rgba(0,0,0,0.03); padding: 8px 16px; border-radius: 12px; transition: 0.2s; text-decoration: none; }
.er-nav-links a:hover { background: var(--brand); color: white; }

/* ================= FOOTER STYLES ================= */
.er-site-footer { background: #0f172a; color: #cbd5e1; padding: 60px 0 20px; margin-top: 60px; border-top: 4px solid var(--brand); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.er-footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; padding: 0 20px 40px; }
.er-footer-brand h3 { color: white; font-size: 1.5rem; margin: 0 0 15px; font-weight: 800; }
.er-footer-brand p { font-size: 1rem; line-height: 1.6; margin: 0 0 15px; }
.er-social-icons { display: flex; gap: 10px; margin-top: 10px; }
.er-social-icons a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: #1e293b; border-radius: 50%; color: white; font-size: 0.8rem; font-weight: bold; transition: 0.2s; text-decoration: none; }
.er-social-icons a.telegram:hover { background: #24A1DE; }
.er-social-icons a.youtube:hover { background: #FF0000; }
.er-footer-links-col h4 { color: white; margin-bottom: 15px; font-size: 1.2rem; }
.er-footer-links-col a { display: block; color: #94a3b8; margin-bottom: 10px; transition: 0.2s; text-decoration: none; }
.er-footer-links-col a:hover { color: white; }
.er-footer-bottom { text-align: center; border-top: 1px solid #1e293b; padding-top: 20px; font-size: 0.9rem; }

/* ========================================================================= */
/* ================= MENU & DROPDOWN STYLES (RESTORED) ===================== */
/* ========================================================================= */
.er-hamburger { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--dark); padding: 0; margin-left: 10px; }
.er-nav-links { display: flex; align-items: center; }
.er-nav-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 15px; align-items: center; }
.er-nav-list li { position: relative; }

.er-nav-list > li > a { font-weight: 700 !important; color: #334155 !important; font-size: 0.9rem !important; padding: 10px 8px !important; transition: all 0.2s ease !important; display: block !important; white-space: nowrap !important; position: relative !important; background-color: transparent !important; }
.er-nav-list > li:hover > a, .er-nav-list > li.sfHover > a, .er-nav-list > li > a:hover { color: var(--brand) !important; background-color: transparent !important; }
.er-nav-list > li > a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px; background: var(--brand); transition: all 0.3s ease; transform: translateX(-50%); border-radius: 3px 3px 0 0; }
.er-nav-list > li:hover > a::after { width: 80%; }
.nav-chevron { font-size: 0.7em; margin-left: 4px; opacity: 0.6; display: inline-block; transition: transform 0.3s; }
.er-nav-list > li:hover .nav-chevron { transform: rotate(180deg); opacity: 1; color: var(--brand); }

/* Submenu Dropdown Container */
.er-nav-list ul.sub-menu { 
    visibility: hidden; opacity: 0; transform: translateY(15px) scale(0.98); 
    pointer-events: none; position: absolute; top: 100%; left: 0; margin-top: 10px; 
    background: rgba(255, 255, 255, 0.98) !important; backdrop-filter: blur(10px); 
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05) !important; 
    border-radius: 12px; padding: 8px !important; width: 260px !important; 
    display: block !important; list-style: none; z-index: 1000; 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 70vh; overflow-y: auto; overflow-x: hidden;
    scrollbar-width: thin; scrollbar-color: var(--brand) transparent;
}
.er-nav-list ul.sub-menu::-webkit-scrollbar { width: 5px; }
.er-nav-list ul.sub-menu::-webkit-scrollbar-thumb { background-color: var(--brand); border-radius: 5px; }

/* Submenu Hover Logic */
.er-nav-list ul.sub-menu::before { content: ''; position: absolute; top: -15px; left: 0; width: 100%; height: 15px; background: transparent; }
.er-nav-list li:hover > ul.sub-menu, .er-nav-list li.sfHover > ul.sub-menu { visibility: visible; opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.er-nav-list ul.sub-menu li { width: 100%; display: block; margin-bottom: 2px; }

/* Submenu Links */
.er-nav-list ul.sub-menu a { 
    position: relative !important; padding: 6px 10px !important; 
    border-radius: 6px !important; font-weight: 600 !important; 
    font-size: 0.82rem !important; line-height: 1.3 !important; 
    color: #475569 !important; transition: all 0.2s ease !important; 
    display: flex !important; align-items: center !important; 
    white-space: normal !important; word-break: break-word;
    background: transparent !important; 
}
.er-nav-list ul.sub-menu a::before { content: '→'; position: absolute; left: 8px; opacity: 0; color: var(--brand); font-weight: bold; font-size: 1rem; transition: all 0.2s ease; transform: translateX(-8px); }
.er-nav-list ul.sub-menu a:hover { background: #f8fafc !important; color: var(--brand) !important; padding-left: 24px !important; }
.er-nav-list ul.sub-menu a:hover::before { opacity: 1; transform: translateX(0); }

/* Ultimate Single Column Menu Override */
body .er-site-header .er-nav-list ul.sub-menu, body .er-site-header .er-nav-list li.bpeg-mega-menu > ul.sub-menu, body .er-site-header .er-nav-list li.dynamic-mega-menu > ul.sub-menu, .main-navigation ul ul { display: block !important; column-count: 1 !important; width: 280px !important; max-height: 70vh !important; overflow-y: auto !important; overflow-x: hidden !important; padding: 10px !important; white-space: normal !important; }
body .er-site-header .er-nav-list ul.sub-menu > li, body .er-site-header .er-nav-list li.bpeg-mega-menu > ul.sub-menu > li, .main-navigation ul ul li { break-inside: auto !important; page-break-inside: auto !important; display: block !important; width: 100% !important; margin-bottom: 4px !important; }
body .er-site-header .er-nav-list li:hover > ul.sub-menu, body .er-site-header .er-nav-list li.sfHover > ul.sub-menu, body .er-site-header .er-nav-list li.bpeg-mega-menu:hover > ul.sub-menu { pointer-events: auto !important; z-index: 99999 !important; }
body .er-site-header .er-nav-list ul.sub-menu a { pointer-events: auto !important; cursor: pointer !important; position: relative !important; z-index: 99999 !important; }
body .er-site-header .er-nav-list ul.sub-menu::before { content: ''; position: absolute; top: -25px !important; left: 0; width: 100%; height: 30px !important; background: transparent; }

/* Hide Featured Image on Single Posts */
body.single .featured-image, body.single .page-header-image-single { display: none !important; }

/* ================= AWESOME CENTERED POST HEADINGS ================= */
body.single h1.entry-title { font-size: 2.6rem; font-weight: 800; color: var(--dark); line-height: 1.2; margin-bottom: 15px; letter-spacing: -0.02em; text-align: center; margin-top: 30px; }
body.single .entry-meta { font-size: 0.95rem; color: #64748b; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--border); text-align: center; }
body.single .entry-content h2 { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-top: 50px; margin-bottom: 25px; padding-bottom: 12px; border-bottom: 2px solid var(--border); position: relative; text-align: center; }
body.single .entry-content h2::after { content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); width: 70px; height: 3px; background-color: var(--brand); border-radius: 2px; }
body.single .entry-content h3 { font-size: 1.4rem; font-weight: 700; color: var(--brand-dark); margin-top: 40px; margin-bottom: 20px; text-align: center; }
body.single .entry-content p, body.single .entry-content li { font-size: 1.1rem; line-height: 1.75; color: var(--text); margin-bottom: 20px; }

/* ================= SINGLE POST GLOBAL LAYOUT ================= */
body.single .site-main, body.single .inside-article { max-width: 800px !important; margin: 0 auto !important; }
body.single .entry-content img { max-width: 100%; height: auto; display: block; margin: 30px auto; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }

/* ================= BACK TO TOP BUTTON ================= */
.er-back-to-top { position: fixed; bottom: 30px; right: 30px; z-index: 999; width: 48px; height: 48px; background-color: var(--brand); color: white; border: none; border-radius: 50%; font-size: 20px; font-weight: bold; cursor: pointer; box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3); opacity: 0; visibility: hidden; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }
.er-back-to-top.show { opacity: 1; visibility: visible; }
.er-back-to-top:hover { background-color: var(--brand-dark); transform: translateY(-4px); box-shadow: 0 6px 14px rgba(37, 99, 235, 0.45); }

/* ========================================================================= */
/* ================= BPEG HOMEPAGE UI ====================================== */
/* ========================================================================= */
body.er-standalone-ui { margin: 0; padding: 0; background: #f8fafc; font-family: 'Plus Jakarta Sans', sans-serif; color: #334155; line-height: 1.5; overflow-x: hidden; }
body.er-standalone-ui * { box-sizing: border-box; }
body.er-standalone-ui a { text-decoration: none; }
.er-logo-text { font-size: 1.35rem; font-weight: 800; color: #1e3a8a; letter-spacing: -0.02em; display: inline-block; line-height: 1.1; vertical-align: middle; margin-top: 2px; }
.logo-accent { background: linear-gradient(135deg, #f97316 20%, #fbbf24 40%, #f97316 60%, #ea580c 80%); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900; display: block; margin-left: 0; font-size: 1.45rem; animation: textShine 4s linear infinite; }
@keyframes textShine { to { background-position: 200% center; } }
.er-hero-section { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); position: relative; color: white; padding: 60px 0 80px; text-align: center; }
.er-hero-grid { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.er-hero-section.slim { padding: 40px 0 60px; }
.er-hero-content { padding-top: 30px; }
.er-single-title, .er-cat-title, .er-archive-title { font-size: 2.2rem; margin-bottom: 10px; line-height: 1.2; font-weight: 800; }
.er-cat-meta { font-size: 1.05rem; color: #e0e7ff; max-width: 600px; margin: 0 auto 15px; }
.er-pill { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); padding: 5px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; margin-bottom: 15px; letter-spacing: 0.05em; text-transform: uppercase; }
.er-hero-text h1 { font-size: 2.8rem; font-weight: 800; margin: 0 0 15px; line-height: 1.2; letter-spacing: -0.03em; }
.er-hero-text h1 .highlight { color: #f97316; }
.er-hero-text p { font-size: 1.1rem; color: #e0e7ff; margin: 0 0 30px; font-weight: 500; }
.er-hero-search { display: flex; align-items: center; max-width: 550px; margin: 0 auto 25px; background: white; border-radius: 12px; padding: 6px; box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.er-search-icon { opacity: 0.4; padding-left: 15px; font-size: 1.1rem; }
.er-hero-search input { flex: 1; border: none; outline: none; padding: 12px 15px; font-size: 1rem; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--dark); font-weight: 500; }
.er-hero-search button { background: #f97316; color: white; border: none; padding: 12px 24px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: all 0.2s ease; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; }
.er-hero-search button:hover { background: #ea580c; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3); }
.er-hero-stats { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; font-size: 0.85rem; font-weight: 600; color: #bfdbfe; }
.er-hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.er-hero-wave svg { display: block; width: calc(100% + 1.3px); height: 40px; fill: var(--bg); }
.er-container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.er-main-body { padding-top: 30px; }
.er-single-main-container { padding-top: 40px; padding-bottom: 60px; }
.er-group { margin-bottom: 50px; }
.er-bg-soft { background: white; padding: 40px 30px; border-radius: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border: 1px solid var(--border); }
.er-single-content { font-size: 1.05rem; line-height: 1.8; color: #334155; }
.er-single-content h2, .er-single-content h3 { color: var(--dark); margin-top: 1.5em; margin-bottom: 0.75em; font-weight: 700; }
.er-single-content p, .er-single-content ul, .er-single-content ol { margin-bottom: 1.2em; }
.er-single-content p:empty, .er-single-content p > br:only-child { display: none !important; margin: 0 !important; padding: 0 !important; }
.er-section-header { text-align: center; margin-bottom: 30px; }
.er-section-header h2 { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin: 0 0 5px; letter-spacing: -0.02em; }
.er-section-header p { font-size: 1rem; color: var(--text); margin: 0; }
.er-core-exams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.er-core-card { display: flex; flex-direction: row; align-items: center; text-align: left; background: white; border: 1px solid var(--border); border-radius: 12px; padding: 16px; transition: all 0.3s ease; box-shadow: 0 2px 4px -1px rgba(0,0,0,0.05); position: relative; overflow: hidden; z-index: 1; text-decoration: none !important; }
.er-core-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%); z-index: -1; opacity: 0; transition: opacity 0.3s ease; }
.er-core-card:hover::after { opacity: 1; }
.er-core-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 10px 15px -3px rgba(37,99,235,0.1); }
.er-core-icon { font-size: 1.6rem; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #f8fafc; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; flex-shrink: 0; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); margin-right: 16px; color: var(--brand); }
.er-core-card:hover .er-core-icon { transform: scale(1.1) rotate(5deg); background: white; border-color: #bfdbfe; }
.er-core-content { flex: 1; min-width: 0; }
.er-core-content h3 { font-size: 1.05rem; font-weight: 800; color: var(--dark); margin: 0 0 4px 0; line-height: 1.2; letter-spacing: -0.01em; }
.er-core-content p { font-size: 0.85rem; color: var(--text); margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.er-core-arrow { font-size: 1.2rem; font-weight: 800; color: #cbd5e1; margin-left: 12px; transition: all 0.3s ease; transform: translateX(0); flex-shrink: 0; }
.er-core-card:hover .er-core-arrow { color: var(--brand); transform: translateX(4px); }
.er-subject-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1000px; margin: 0 auto; }
.subject-pill { display: flex; align-items: center; gap: 6px; background: #f8fafc; border: 1px solid var(--border); padding: 8px 16px; border-radius: 30px; font-weight: 600; color: var(--dark); transition: 0.2s; font-size: 0.85rem; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.subject-pill span { background: #e2e8f0; color: #475569; font-size: 0.7rem; padding: 2px 6px; border-radius: 20px; }
.subject-pill:hover { background: var(--brand); color: white; border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.subject-pill:hover span { background: rgba(255,255,255,0.2); color: white; }
.er-state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.state-link { background: white; border: 1px solid var(--border); padding: 10px 15px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; transition: 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.state-link span { font-size: 0.75rem; background: var(--bg); color: #64748b; padding: 2px 6px; border-radius: 12px; }
.state-link:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.state-link:hover span { background: #eff6ff; color: var(--brand); }
.er-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.er-row { display: flex; flex-direction: column; background: white; border: 1px solid var(--border); border-radius: 16px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03); overflow: hidden; height: 100%; text-decoration: none !important; }
.er-row:hover { transform: translateY(-6px); border-color: #c7d2fe; box-shadow: 0 20px 25px -5px rgba(37,99,235,0.1), 0 10px 10px -5px rgba(37,99,235,0.04); }
.er-row-img-wrap { width: 100%; height: 160px; overflow: hidden; position: relative; background: #f1f5f9; border-bottom: 1px solid var(--border); }
.er-row-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.er-row:hover .er-row-img { transform: scale(1.08); }
.er-row-mid { padding: 20px 20px 15px 20px; flex-grow: 1; display: flex; align-items: flex-start; }
.er-row-title { font-size: 1.15rem; font-weight: 800; color: var(--dark); margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.er-row:hover .er-row-title { color: var(--brand); }
.er-row-bot { padding: 0 20px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.er-bot-upper { display: flex; align-items: center; }
.badge-q { background: #eff6ff; color: #2563eb; padding: 6px 12px; border-radius: 8px; font-size: 0.85rem; font-weight: 700; border: 1px solid #bfdbfe; }
.er-bot-lower { font-size: 0.8rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.er-btn-primary { display: inline-block; background: var(--dark); color: white; padding: 12px 28px; border-radius: 10px; font-weight: 700; font-size: 1rem; transition: 0.3s; }
.er-btn-primary:hover { background: var(--brand); transform: translateY(-2px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.er-seo-block { background: white; padding: 40px; border-radius: 20px; border: 1px solid var(--border); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); margin-top: 60px; }
.er-seo-block h2 { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin: 0 0 20px 0; }
.er-seo-block p { color: var(--text); font-size: 1rem; line-height: 1.7; margin: 0 0 15px 0; }
.er-seo-disclaimer { display: block; margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--border); font-size: 0.85rem; color: #64748b; font-style: italic; }
.er-faq-wrapper { background: white; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); overflow: hidden; }
.er-faq-item { border-bottom: 1px solid var(--border); margin: 0; }
.er-faq-item:last-child { border-bottom: none; }
.er-faq-question { padding: 18px 45px 18px 20px; font-weight: 700; cursor: pointer; position: relative; color: var(--dark); font-size: 1rem; list-style: none; transition: background 0.2s; outline: none; }
.er-faq-question:hover { background: #eff6ff; color: var(--brand); }
.er-faq-question::-webkit-details-marker { display: none; }
.er-faq-question::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--brand); font-size: 24px; font-weight: 300; transition: transform 0.3s; }
.er-faq-item[open] .er-faq-question { background: #eff6ff; color: var(--brand-dark); border-bottom: 1px solid var(--border); }
.er-faq-item[open] .er-faq-question::after { content: '−'; transform: translateY(-50%) rotate(180deg); }
.er-faq-answer { padding: 20px; color: var(--text); line-height: 1.7; font-size: 0.95rem; background: white; }
.er-pagination { text-align: center; margin-top: 40px; }
.er-pagination ul { list-style: none; padding: 0; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.er-pagination a, .er-pagination span { padding: 10px 16px; background: white; border: 1px solid var(--border); border-radius: 8px; font-weight: 600; color: var(--dark); transition: 0.2s; font-size: 0.9rem; }
.er-pagination a:hover { background: #eff6ff; border-color: var(--brand); color: var(--brand); }
.er-pagination .current { background: var(--brand); color: white; border-color: var(--brand); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }

/* ========================================================================= */
/* ================= BPEG MCQ NUCLEAR CSS (MOVED FROM PLUGIN) ============== */
/* ========================================================================= */
:root { 
    --bpeg-primary:#4f46e5; 
    --bpeg-text:#1e293b; 
    --bpeg-text-soft:#64748b; 
    --bpeg-success:#10b981; 
    --bpeg-success-bg:#ecfdf5; 
    --bpeg-error:#ef4444; 
    --bpeg-error-bg:#fef2f2; 
    --bpeg-bg:#ffffff; 
    --bpeg-font:'Inter',-apple-system,BlinkMacSystemFont,sans-serif; 
}
mjx-container, mjx-container *, .bpeg-wrapper mjx-container, .bpeg-wrapper mjx-container *, .bpeg-deep-dive mjx-container, .bpeg-deep-dive mjx-container * { box-sizing: content-box !important; }
mjx-container { font-weight: normal !important; line-height: normal !important; }
mjx-container[display='true'] { max-width: 100% !important; overflow-x: auto !important; overflow-y: visible !important; -webkit-overflow-scrolling: touch !important; padding-bottom: 5px !important; margin-top: 5px !important; }
mjx-container:not([display='true']) { display: inline-block !important; max-width: 100% !important; overflow: visible !important; }

.bpeg-wrapper img, .bpeg-deep-dive img, .alert-body img, .concept-body img, .rev-fact-item img, .bpeg-faq-answer img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; display: block; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.bpeg-opt-val img { max-width: 100%; max-height: 120px; border-radius: 4px; margin-top: 8px; box-shadow: none; }
.bpeg-meta-bar { background: #f8fafc; padding: 12px 20px; border-radius: 8px; font-size: 0.95em; color: #475569; display: flex; gap: 15px 20px; flex-wrap: wrap; justify-content: center; border: 1px solid #e2e8f0; margin: 0 auto 30px auto; max-width: 800px; text-align: center; }
.bpeg-meta-bar span { display: inline-flex; gap: 6px; align-items: center; }
.bpeg-meta-bar strong { color: #1e293b; }
.bpeg-test-features { max-width:800px; margin: 25px auto; background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #8b5cf6; padding: 20px; border-radius: 8px; font-family: var(--bpeg-font); }
.bpeg-test-features ul { margin: 0; padding-left: 20px; }
.bpeg-test-features li { margin-bottom: 10px; color: #334155; line-height: 1.6; }
.bpeg-trap-zone { max-width:800px; margin: 25px auto; background: #fff1f2; border: 1px solid #fecdd3; border-left: 4px solid #e11d48; padding: 15px 20px; border-radius: 8px; color: #881337; font-weight: 500; font-family: var(--bpeg-font); line-height: 1.6; }
.bpeg-core-concepts { max-width:800px; margin: 25px auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; font-family: var(--bpeg-font); }
.bpeg-concept-card { background: #f0fdf4; border: 1px solid #a7f3d0; padding: 15px; border-radius: 8px; color: #064e3b; font-size: 0.95em; box-shadow: 0 2px 4px rgba(0,0,0,0.02); line-height: 1.6; }
.bpeg-blueprint, .bpeg-versus { max-width:800px; margin: 25px auto; font-family: var(--bpeg-font); }
.bpeg-blueprint table, .bpeg-versus table { width: 100%; border-collapse: collapse; font-size: 0.95em; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.bpeg-blueprint th, .bpeg-versus th { background: linear-gradient(135deg, #1e1b4b, #312e81); color: white; padding: 12px 15px; text-align: left; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.85em; }
.bpeg-blueprint td, .bpeg-versus td { border-bottom: 1px solid #e2e8f0; padding: 12px 15px; color: #1e293b; }
.bpeg-blueprint tr:nth-child(even) td, .bpeg-versus tr:nth-child(even) td { background-color: #f8fafc; }
.bpeg-explanation table { width: 100%; border-collapse: collapse; margin: 0 !important; font-size: 0.9em; border: 1px solid #cbd5e1; }
.bpeg-explanation th { background: #f1f5f9; color: #1e293b; padding: 10px; text-align: left; border: 1px solid #cbd5e1; font-weight:bold; }
.bpeg-explanation td { padding: 10px; border: 1px solid #cbd5e1; color: #334155; }
.bpeg-topical-silo { max-width:800px; margin: 30px auto; background: #eff6ff; border: 1px dashed #93c5fd; padding: 20px; text-align: center; border-radius: 8px; font-family: var(--bpeg-font); line-height: 1.6; color: #1e3a8a; }
.bpeg-internal-link-wrapper a { display: inline-block; background: #2563eb; color: white !important; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: bold; margin-top: 15px; box-shadow: 0 4px 6px rgba(37,99,235,0.2); transition: 0.2s; touch-action: manipulation; }
.bpeg-internal-link-wrapper a:hover { background: #1d4ed8; transform: translateY(-2px); }
.bpeg-intro-text { background: linear-gradient(to right, #f8fafc, #ffffff); border-left: 4px solid #94a3b8; padding: 15px 20px; color: #334155; font-size: 1.05em; line-height: 1.7; margin-bottom: 15px; border-radius: 0 8px 8px 0; box-shadow: 0 1px 2px rgba(0,0,0,0.02); text-align: left; }
.bpeg-layout-box { max-width:800px; margin:30px auto; font-family:var(--bpeg-font); background:#ffffff; border:1px solid #e2e8f0; border-radius:12px; box-shadow:0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03); overflow:hidden; }
.bpeg-player-box { border-top: 4px solid #ec4899; margin-top:0 !important; }

/* Fixed Top Box for Desktop */
.bpeg-header-seo { background: #ffffff; border-bottom: 1px solid #e2e8f0; padding:15px 20px; display: block !important; }
.bpeg-quiz-title > span:nth-child(2) { display: none !important; }

.bpeg-toc { margin-bottom: 10px !important; }
.bpeg-toc + br, .bpeg-toc + p:empty, .bpeg-toc + p > br:only-child { display: none !important; }
.toc-title { background: linear-gradient(90deg, #f5f3ff, #faf5ff); padding:15px 20px; border-bottom:1px solid #ede9fe; font-weight:800; color:#6d28d9; font-size:1.15em; display:flex; align-items:center; gap:8px; margin:0; }
.bpeg-toc details summary { cursor: pointer; list-style: none; position: relative; touch-action: manipulation; }
.bpeg-toc details summary::-webkit-details-marker { display: none; }
.bpeg-toc details summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: #8b5cf6; font-weight: bold; }
.bpeg-toc details[open] summary::after { content: '−'; }
.bpeg-toc details:not([open]) summary { border-bottom: none; }
.toc-list { list-style:none; padding:20px; margin:0; }
.toc-list li { margin-bottom:12px; position:relative; padding-left:20px; }
.toc-list li::before { content:'→'; position:absolute; left:0; color:#c4b5fd; font-size:1em; top:0; transition:all 0.2s; font-weight:bold; }
.toc-list li:hover::before { color:#7c3aed; transform:translateX(3px); }
.toc-list a { color:#4c1d95; text-decoration:none; font-weight:500; transition:all 0.2s; display:block; line-height:1.4; font-size:0.95em; border:none; }
.toc-list a:hover { color:#7c3aed; text-decoration:none; }
.toc-level-3 { padding-left: 40px !important; }
.toc-level-4 { padding-left: 60px !important; font-size: 0.9em; }
.bpeg-revision-box { border-top: 4px solid #f59e0b; }
.bpeg-revision-box .bpeg-box-header { background: #fffbeb; border-bottom: 1px solid #fde68a; padding:15px 20px; }
.bpeg-revision-box .bpeg-box-title { color: #d97706 !important; margin:0 !important; font-size:1.15em !important; font-weight:700 !important; }
.bpeg-faq-box { border-top: 4px solid #3b82f6; }
.bpeg-faq-box .bpeg-box-header { background: #eff6ff; border-bottom: 1px solid #bfdbfe; padding:15px 20px; }
.bpeg-faq-box .bpeg-box-title { color: #1d4ed8 !important; margin:0 !important; font-size:1.15em !important; font-weight:700 !important; }
.bpeg-deep-dive { max-width:800px; margin:0 auto; font-family:var(--bpeg-font); line-height:1.7; color:#334155; font-size:1.05em; text-align: left; }
.bpeg-deep-dive h2, .bpeg-premium-heading-2 { background: #f8f9fa; color: #1e3a8a; font-size: clamp(1.25rem, 4vw, 1.6rem); font-weight: 800; margin: 40px 0 20px 0; padding: 15px 20px; border-left: 6px solid #4f46e5; border-radius: 4px 8px 8px 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.03); line-height: 1.4; word-wrap: break-word; }
.bpeg-deep-dive > br, .bpeg-deep-dive > p:empty { display: none !important; }
.bpeg-deep-dive h3, .bpeg-premium-heading-3 { color: #0f766e; font-size: clamp(1.1rem, 3.5vw, 1.35rem); font-weight: 700; margin: 15px 0 10px 0; padding-bottom: 10px; border-bottom: 2px solid #99f6e4; display: flex; align-items: center; gap: 10px; word-wrap: break-word; }
.bpeg-deep-dive h3::before, .bpeg-premium-heading-3::before { content: '📌'; font-size: 1.2rem; flex-shrink: 0; }
.bpeg-deep-dive h4, .bpeg-premium-heading-4 { color: #1e293b; font-size: clamp(1.05rem, 3.5vw, 1.2rem); font-weight: 700; margin: 25px 0 12px 0; padding-left: 12px; border-left: 3px solid #6366f1; line-height: 1.4; word-wrap: break-word; }
.bpeg-deep-dive pre { background: #f1f5f9; color: #1e293b; padding: 25px; border-radius: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; font-family: 'Consolas', 'Courier New', monospace; font-size: 0.9em; line-height: 1.6; border: 1px solid #cbd5e1; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); margin: 30px 0; text-align: left; }
.bpeg-deep-dive pre code { display: inline-block; text-align: left; font-family: inherit; color: inherit; background: transparent; padding: 0; }
.bpeg-exam-alert { background:#ffffff; border:1px solid #fde68a; border-left:5px solid #f59e0b; border-radius:8px; margin:30px 0; box-shadow:0 4px 12px rgba(245,158,11,0.08); overflow:hidden; }
.alert-title { background:#fffbeb; font-weight:800; color:#d97706; padding:12px 20px; font-size:1.05em; display:flex; align-items:center; gap:8px; border-bottom:1px solid #fde68a; text-transform:uppercase; letter-spacing:0.5px; margin:0; }
.alert-body { padding:20px; color:#334155; font-size:1em; line-height:1.6; text-align: left; }
.alert-body strong { color:#b45309; }
.bpeg-concept-breakdown { background:#ffffff; border:1px solid #bae6fd; border-left:5px solid #0ea5e9; border-radius:8px; margin:30px 0; box-shadow:0 4px 12px rgba(14,165,233,0.08); overflow:hidden; }
.concept-title { background:#f0f9ff; font-weight:800; color:#0369a1; padding:12px 20px; font-size:1.05em; display:flex; align-items:center; gap:8px; border-bottom:1px solid #bae6fd; text-transform:uppercase; letter-spacing:0.5px; margin:0; }
.concept-body { padding:20px; color:#334155; font-size:1em; line-height:1.6; text-align: left; }
.concept-body strong { color:#0369a1; }
.rev-grid, .faq-grid { border:none; background:#fff; }
.rev-fact-item { padding:12px 20px; border-bottom:1px solid #f1f5f9; color:#334155; line-height:1.5; font-size:0.95em; text-align: left; }
.rev-fact-item:last-child { border-bottom:none; }
.rev-fact-item:nth-child(even) { background:#fafafa; }
.fact-label { font-weight:700; color:#b45309; margin-right:6px; text-transform:uppercase; font-size:0.85em; letter-spacing:0.5px; }
.bpeg-faq-item { background:#fff; border-bottom:1px solid #f1f5f9; margin:0 !important; }
.bpeg-faq-item:last-child { border-bottom:none; }
.bpeg-faq-question { padding:15px 45px 15px 20px; font-weight:600; cursor:pointer; list-style:none; position:relative; color:#1e293b; font-size:0.95em; line-height:1.4; transition:background 0.2s; margin:0 !important; text-align: left; touch-action: manipulation; }
.bpeg-faq-question:hover { background:#f8fafc; }
.bpeg-faq-question::-webkit-details-marker { display:none; }
.bpeg-faq-question::after { content:'+'; position:absolute; right:20px; top:50%; transform:translateY(-50%); font-size:20px; color:#3b82f6; font-weight:bold; }
.bpeg-faq-item[open] .bpeg-faq-question { background:#eff6ff; border-bottom:1px solid #bfdbfe; color:#1d4ed8; }
.bpeg-faq-item[open] .bpeg-faq-question::after { content:'−'; }
.bpeg-faq-answer { padding:15px 20px; color:#475569; font-size:0.95em; line-height:1.6; margin:0 !important; background:#fff; text-align: left; }
.bpeg-wrapper { margin:0 auto 30px auto !important; --fs: 16px; font-size: var(--fs); }
.bpeg-player { padding:15px 20px 20px 20px; }

/* Premium Desktop Box */
.bpeg-question-text { 
    font-weight: 700; 
    color: #0f172a; 
    margin-bottom: 20px; 
    line-height: 1.6; 
    text-align: left; 
    background: #f8fafc; 
    padding: 20px 24px; 
    border: 1px solid #e2e8f0; 
    border-left: 2px solid var(--brand);
    border-radius: 8px; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); 
    word-break: break-word; 
}

.bpeg-opt-radio { width:22px !important; height:22px !important; min-width:22px !important; border-radius:50% !important; border:2px solid #94a3b8 !important; flex-shrink:0 !important; display:flex !important; align-items:center !important; justify-content:center !important; transition:all 0.2s !important; margin-top:2px; background: #fff; }
.bpeg-opt-text { font-size:1em; color:var(--bpeg-text); line-height:1.4; word-break:break-word; }
.bpeg-opt-label { color:var(--bpeg-text-soft); margin-right:4px; }
.bpeg-card.done .bpeg-opt.correct { background:var(--bpeg-success-bg); border-radius: 6px; }
.bpeg-card.done .bpeg-opt.correct::before { background:var(--bpeg-success) !important; border-color:var(--bpeg-success) !important; color:white !important; content: '✓' !important; font-weight: bold !important; font-size: 14px !important; }
.bpeg-card.done .bpeg-opt.wrong { background:var(--bpeg-error-bg); border-radius: 6px; }
.bpeg-card.done .bpeg-opt.wrong::before { background:var(--bpeg-error) !important; border-color:var(--bpeg-error) !important; color:white !important; content: '✕' !important; font-weight: bold !important; font-size: 12px !important; }
.bpeg-footer { display:flex; gap:8px; margin-top:15px; padding-top:15px; border-top:1px solid #f1f5f9; }
.bpeg-print-blocker { display:none; }
@media print { .bpeg-layout-box, .bpeg-wrapper, .bpeg-ad-container, .bpeg-toc { display:none !important; } .bpeg-print-blocker { display:block !important; border:2px solid #ef4444; background:#fff1f2; padding:20px; text-align:center; color:#991b1b; font-family:sans-serif;} }
.bpeg-progress-track { height:4px; background:#f1f5f9; width:100%; }
.bpeg-progress-bar { height:100%; background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899); transition:width 0.3s ease; }
.bpeg-top-bar { display:flex; justify-content:space-between; align-items:center; margin-bottom:15px; padding-bottom:10px; border-bottom:1px solid #f1f5f9; }
.video-btn { background:#fff; border:1px solid #fee2e2; color:#dc2626; flex:1.5; }
.fs-btn { background:#f1f5f9; border:1px solid #e2e8f0; min-width:34px; height:34px; padding:0 8px; border-radius:6px; font-weight:600; color:var(--bpeg-text); cursor:pointer; font-size:12px; transition:0.2s; touch-action: manipulation; display:inline-flex; align-items:center; justify-content:center; }
.fs-btn:hover { background:#e2e8f0; }
.bpeg-warning { background:#fffbeb; color:#92400e; padding:10px; border-radius:6px; font-size:0.9em; font-weight:600; text-align:center; margin-bottom:12px; border:1px solid #fcd34d; }
.bpeg-card { display:none; animation:fadeIn 0.2s; } .bpeg-card.active { display:block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(3px)} to{opacity:1;transform:translateY(0)} }
.bpeg-explanation { margin-top:15px; border-top:1px dashed #cbd5e1; padding-top:15px; font-size:0.95em; text-align:left; width:100%; box-sizing:border-box; background:transparent !important; border-left:none !important; border-right:none !important; border-bottom:none !important; border-radius:0 !important; }
.exp-label { font-size:0.75em; font-weight:800; color:#475569; text-transform:uppercase; display:block; margin-bottom:8px; letter-spacing:0.5px; }
.exp-content > strong:first-child { display:inline-block; background:#ecfdf5; color:#059669; padding:4px 10px; border-radius:6px; font-size:0.9em; margin-bottom:12px; border:1px solid #a7f3d0; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.exp-content > strong:first-child + br { display: none; }
.exp-content > .aw-box.aw-general:not(.aw-case):not(.bpeg-table-scroll-wrapper) { background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%) !important; border: 1px solid #dbeafe !important; border-left: 4px solid #3b82f6 !important; border-radius: 8px !important; padding: 15px !important; margin: 0 0 15px 0 !important; box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important; width: 100% !important; box-sizing: border-box !important; }
.exp-content > .bpeg-table-scroll-wrapper.aw-box { background: transparent !important; border: none !important; border-left: none !important; padding: 0 !important; margin: 0 0 15px 0 !important; box-shadow: none !important; width: 100% !important; box-sizing: border-box !important; }
.aw-case { background: #faf5ff !important; border: 1px solid #f3e8ff !important; border-left: 4px solid #a855f7 !important; padding: 15px 15px 15px 45px !important; border-radius: 8px !important; color: #334155 !important; margin: 0 0 15px 0 !important; box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important; position: relative; width: 100% !important; box-sizing: border-box !important; }
.aw-case::before { content: '🧠' !important; position: absolute; left: 12px !important; top: 15px !important; font-size: 1.4em !important; line-height: 1 !important; }
.aw-case strong { color: #1e293b !important; font-weight: 700 !important; }
.exp-video-cta { margin-top:10px; padding-top:8px; border-top:1px dashed #cbd5e1; text-align: left; }
.video-link-text { color:#dc2626; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; font-size:0.9em; transition:0.2s; touch-action: manipulation; }
.video-link-text:hover { color:#b91c1c; text-decoration:underline; }
.bpeg-result-card { text-align:center; padding:30px 15px; }
.result-icon { font-size:36px; margin-bottom:10px; }
.result-actions { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.bpeg-wrapper.is-review-mode .bpeg-explanation { display:block !important; }
.bpeg-in-player-ad-container { overflow:hidden; min-height:50px; }
.bpeg-locked-content { filter: blur(5px); opacity: 0.5; pointer-events: none; user-select: none; }
nav.post-navigation, .post-navigation, .navigation.post-navigation, .nav-links, .nav-single, .post-nav, #nav-below, #nav-single, .ast-single-post-navigation, .oceanwp-post-navigation, .nv-post-navigation, .site-main .post-navigation, .entry-navigation, .post-nav-links, div.nav-previous, div.nav-next, span.nav-previous, span.nav-next { display: none !important; }
.bpeg-bottom-nav-section { max-width: 800px; margin: 50px auto 30px auto; font-family: var(--bpeg-font); border-top: 2px dashed #cbd5e1; padding-top: 30px; }
.bpeg-nav-section-title { font-size: 1.25em; font-weight: 800; color: #1e1b4b; margin: 0 0 20px 0; position: relative; display: inline-block; }
.bpeg-nav-section-title::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 40px; height: 4px; background: #4f46e5; border-radius: 2px; }
.bpeg-post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.bpeg-post-card { display: block; text-decoration: none !important; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); transition: all 0.2s ease-in-out; transform: translateY(0); }
.bpeg-post-card article { display: flex; height: 100%; align-items: stretch; }
.bpeg-post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); border-color: #c7d2fe; }
.bpeg-card-img { width: 38%; min-height: 110px; background-size: contain; background-position: center center; background-repeat: no-repeat; background-color: #f1f5f9; border-right: 1px solid #e2e8f0; flex-shrink: 0; }
.bpeg-card-content { width: 62%; padding: 15px; display: flex; flex-direction: column; justify-content: center; }
.bpeg-card-meta { font-size: 0.75rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; display: block; }
.bpeg-card-title { font-size: 0.95rem; font-weight: 700; color: #1e293b; margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.bpeg-post-card:hover .bpeg-card-title { color: #4f46e5; }

/* ========================================================================= */
/* ================= PREMIUM UI UPGRADES (Desktop & Mobile) ================ */
/* ========================================================================= */
.bpeg-options-grid { grid-template-columns: 1fr !important; gap: 8px !important; }
.bpeg-opt { position: relative !important; display:block; cursor:pointer; transition:all 0.15s; text-align: left; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; background: #ffffff !important; border: 1px solid transparent !important; border-radius: 8px !important; padding: 12px 12px 12px 45px !important; }
.bpeg-opt::before { content: '' !important; position: absolute !important; width:22px !important; height:22px !important; border-radius:50% !important; border:2px solid #94a3b8 !important; display:flex !important; align-items:center !important; justify-content:center !important; transition:all 0.2s !important; background: #fff !important; box-sizing: border-box !important; top: 12px !important; left: 12px !important; }
.bpeg-opt:hover { background: #f8fafc !important; border: 1px solid #e2e8f0 !important; box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important; }
.bpeg-controls { display: flex !important; gap: 12px !important; align-items: stretch !important; }
.nav-btn { display:flex; align-items:center; justify-content:center; gap:5px; min-height:44px; border-radius:8px; font-weight:600; border:none; cursor:pointer; transition:all 0.2s; touch-action: manipulation; }
.nav-btn:hover:not(:disabled):not([disabled]) { filter:brightness(0.95); }
.nav-btn:disabled, .nav-btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.nav-btn.bpeg-prev { flex: 0 0 30% !important; background: #ffffff !important; border: 2px solid #e2e8f0 !important; color: #475569 !important; font-weight: 700 !important; transition: all 0.2s !important; }
.nav-btn.bpeg-prev:hover:not(:disabled) { background: #f8fafc !important; border-color: #cbd5e1 !important; color: #0f172a !important; }
.nav-btn.bpeg-next { flex: 1 !important; font-size: 1.05em !important; font-weight: 700 !important; letter-spacing: 0.5px !important; background: linear-gradient(135deg, #4f46e5, #6366f1); color:white; box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25); }
.nav-btn.bpeg-next:hover:not(:disabled):not([disabled]) { box-shadow: 0 6px 14px rgba(79, 70, 229, 0.35); transform: translateY(-1px); }
.bpeg-status { background: #f8fafc !important; color: #334155 !important; padding: 6px 16px !important; border-radius: 50px !important; font-size: 0.85em !important; font-weight: 800 !important; border: 1px solid #e2e8f0 !important; letter-spacing: 0.5px !important; display: inline-flex !important; align-items: center !important; box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important; }

/* 🚨 BEAUTIFUL FULL-WIDTH EXPLANATION BOXES 🚨 */
.aw-box:not(.aw-general) { padding: 15px 18px !important; margin: 12px 0 !important; position: relative; font-size: 1.05em !important; line-height: 1.6 !important; border: 1px solid transparent; border-radius: 8px !important; background: #f8fafc; text-align: left; word-break: break-word; width: 100% !important; box-sizing: border-box !important; }
.aw-box.aw-concept { background: #eff6ff !important; border-color: #bfdbfe !important; color: #1e3a8a !important; }

.aw-direct { background: #ecfdf5 !important; border-color: #a7f3d0 !important; color: #064e3b !important; }
.aw-structure { background: #faf5ff !important; border-color: #e9d5ff !important; color: #4c1d95 !important; }
.aw-context { background: #fefce8 !important; border-color: #fef08a !important; color: #854d0e !important; }
.aw-causal { background: #fff1f2 !important; border-color: #fecdd3 !important; color: #9f1239 !important; }


/* ================= FLOATING SOCIAL DOCK (NUCLEAR FORCE) ================= */
.er-social-dock {
    position: fixed !important;
    left: 30px !important;
    bottom: 30px !important;
    z-index: 999999 !important; 
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    
    /* Hide it by default & set up smooth animation */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-40px) !important; /* Start slightly off-screen */
    pointer-events: none !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* This class will be added by JS to trigger the slide-in */
.er-social-dock.show-dock {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important; /* Slide into place */
    pointer-events: auto !important;
}
.er-social-dock a {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-decoration: none !important;
}
.er-social-dock a:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25) !important;
}
.er-social-dock svg {
    width: 26px !important;
    height: 26px !important;
    fill: #ffffff !important;
    display: block !important;
}
.dock-tg { background: #24A1DE !important; }
.dock-wa { background: #25D366 !important; }
.dock-yt { background: #FF0000 !important; }

/* ========================================================================= */
/* ================= DESKTOP ONLY TWEAKS (Tablets & Up) ==================== */
/* ========================================================================= */
@media (min-width: 769px) {
    .bpeg-question-text { font-size: 1.25em !important; line-height: 1.6 !important; }
}

/* ========================================================================= */
/* ================= ULTIMATE MASTER MOBILE UI UPGRADES ==================== */
/* ========================================================================= */
@media (max-width: 768px) {
    
    /* 1. Hero & Header Fixes */
    .er-hero-section.slim { padding: 15px 0 65px !important; }
    .er-bg-soft { padding: 10px 10px 25px 10px !important; border-radius: 12px !important; margin-top: -10px !important; position: relative; z-index: 10; }
    body.single h1.entry-title, body .page-hero h1, .er-hero-text h1, .er-single-title { font-size: 1.5rem !important; line-height: 1.3 !important; padding: 0 10px !important; margin-top: 10px !important; margin-bottom: 15px !important; }
    body .page-hero { padding-bottom: 20px !important; margin-bottom: 0 !important; }
    body.single .site-content, body.single .inside-article { padding-top: 0 !important; margin-top: 0 !important; }
    
    /* Fix Mobile Search Bar Overflow & Button Squishing */
    .er-hero-search { 
        padding: 5px !important; 
        margin-left: 15px !important;
        margin-right: 15px !important;
        width: calc(100% - 30px) !important; /* Perfect spacing from screen edges */
        box-sizing: border-box !important;
    }
    .er-hero-search input { 
        padding: 12px 10px !important; 
        font-size: 16px !important; /* 16px prevents iPhones from auto-zooming when clicked */
        min-width: 0 !important; /* CRITICAL: Stops the input from breaking the flex container */
    }
    .er-hero-search button { 
        padding: 10px 16px !important; 
        font-size: 0.9rem !important; 
        white-space: nowrap !important; /* Forces "Search Quizzes" onto one single line */
        flex-shrink: 0 !important; /* Defends the button from being squished by the input box */
    }
    
    /* 2. Menu & Hamburger Overrides */
    .er-nav-links { display: none; position: absolute; top: 75px; left: 0; width: 100%; background: white; flex-direction: column; padding: 20px; gap: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); max-height: calc(100vh - 75px); overflow-y: auto; }
    .er-nav-links.active { display: flex; }
    .er-hamburger { display: block; }
    .er-nav-list { flex-direction: column; width: 100%; gap: 5px; align-items: stretch; }
    .er-nav-list ul.sub-menu { position: static; visibility: visible; opacity: 1; pointer-events: auto; transform: none; display: none; box-shadow: none; border: none; padding: 5px 0 5px 15px; border-left: 2px solid var(--brand); border-radius: 0; margin-top: 5px; min-width: 100%; width: 100% !important; max-height: none; }
    .er-nav-list li:hover > ul.sub-menu { display: block !important; } 
    .er-nav-list ul.sub-menu a::before { display: none; } 
    .er-nav-list ul.sub-menu a:hover { padding-left: 15px !important; } 
    .er-nav-list > li > a::after { display: none !important; } 
    
    /* 3. Footer Grid & Icons */
    .er-footer-grid { grid-template-columns: 1fr; text-align: center; }
    .er-social-icons { justify-content: center; }
    .er-back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; font-size: 18px; }
    
    
    /* Shrink the social dock for mobile (Nuclear Force) */
    .er-social-dock { left: 15px !important; bottom: 20px !important; gap: 8px !important; }
    .er-social-dock a { width: 40px !important; height: 40px !important; }
    .er-social-dock svg { width: 22px !important; height: 22px !important; }

    /* 4. Tables & Structural Flowcharts */
    .bpeg-responsive-html-table { border: none !important; display: block !important; width: 100% !important; box-shadow: none !important; }
    .bpeg-responsive-html-table thead, .bpeg-responsive-html-table tr.bpeg-mobile-hide-row, .bpeg-responsive-html-table th { display: none !important; }
    .bpeg-responsive-html-table tbody { display: block !important; width: 100% !important; }
    .bpeg-responsive-html-table tr:not(.bpeg-mobile-hide-row) { display: flex !important; flex-direction: column !important; margin-bottom: 20px !important; border: 1px solid #cbd5e1 !important; border-radius: 10px !important; background: #fff !important; overflow: hidden !important; border-top: 4px solid #4f46e5 !important; }
    .bpeg-responsive-html-table td { display: block !important; width: 100% !important; box-sizing: border-box !important; text-align: left !important; padding: 14px 16px !important; border-bottom: 1px solid #e2e8f0 !important; border-top: none !important; border-left: none !important; border-right: none !important; }
    .bpeg-responsive-html-table td:last-child { border-bottom: none !important; }
    .bpeg-responsive-html-table td::before { content: attr(data-label); font-weight: 800 !important; color: #4f46e5 !important; text-transform: uppercase !important; font-size: 0.75rem !important; margin-bottom: 6px !important; display: block !important; }
    .aw-structure > span { flex-direction: column !important; }
    .aw-structure > span > span { width: 100% !important; flex: none !important; }
    .mcq-flowchart { flex-direction: column !important; gap: 10px !important; padding: 15px !important; }
    .mcq-flow-node { width: 100% !important; box-sizing: border-box !important; flex: none !important; }
    .mcq-flow-arrow { transform: rotate(90deg) !important; margin: 5px 0 !important; }
    
   /* 5. Premium Edge-to-Edge Quiz Layout */
    .bpeg-wrapper { margin-top: 0 !important; margin-bottom: 20px !important; position: relative !important; z-index: 1 !important; }
    .bpeg-layout-box, .bpeg-toc { width: 100% !important; border-radius: 0 !important; border-left: none !important; border-right: none !important; box-shadow: none !important; border-top: none !important; }
    
    /* The 1px outer container padding */
    .bpeg-player { padding: 10px 1px 15px 1px !important; } 
    
    .bpeg-question-text { background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-left: 2px solid var(--brand) !important; padding: 12px 8px !important; font-size: 1.05em !important; border-radius: 6px !important; margin-bottom: 20px !important; }
    .bpeg-opt { padding: 14px 8px 14px 40px !important; font-size: 0.95em !important; border: 1px solid #e2e8f0 !important; box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important; margin-bottom: 0 !important; border-radius: 6px !important;}
    .bpeg-opt::before { top: 14px !important; left: 8px !important; }
    .aw-case { border-left-color: #3b82f6 !important; padding: 8px 0 8px 12px !important; }
    
    /* 6. Full-Width Explanation Boxes (Adjusted for 1px container) */
    .bpeg-explanation { padding: 15px 0 0 0 !important; margin-top: 15px !important; border: none !important; background: transparent !important; border-top: 1px dashed #cbd5e1 !important; border-radius: 0 !important; }
    .bpeg-explanation .aw-box:not(.aw-general) { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; padding-top: 12px !important; padding-bottom: 12px !important; padding-right: 8px !important; padding-left: 8px !important; font-size: 0.95em !important; }
    
}

@media (max-width: 380px) {
    .er-logo-text { font-size: 1.1rem !important; letter-spacing: -0.02em !important; }
    .logo-accent { font-size: 1.2rem !important; }
    .er-logo-icon { font-size: 1.9rem !important; }
    .er-logo { gap: 8px !important; }
    .er-hamburger { margin-left: 5px; font-size: 1.6rem; }
}
/* Premium Features Box Styling */
.bpeg-test-features {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border-left: 4px solid #3b82f6; /* Modern Blue */
    border-radius: 8px 12px 12px 8px;
    padding: 24px;
    margin: 25px 0;
    box-shadow: 0 4px 15px -3px rgba(59, 130, 246, 0.1);
}

.bpeg-test-features ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bpeg-test-features li {
    position: relative;
    padding-left: 34px;
    font-size: 1rem;
    color: #334155;
    line-height: 1.5;
    font-weight: 600;
}

/* Custom Checkmark Icon for each list item */
.bpeg-test-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -2px;
    width: 24px;
    height: 24px;
    background: #dbeafe;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

/* ==========================================
   REAL EXAM MODE BUTTON - ULTIMATE VIP EDITION
   ========================================== */
.bpeg-pro-footer .bpeg-launch-sim-btn {
    /* Vibrant Orange to Rose Red shifting gradient */
    background: linear-gradient(135deg, #f97316, #e11d48, #f97316) !important;
    background-size: 200% auto !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
    
    /* Dual-animation: Shifts the background colors AND pulses outward */
    animation: bpeg-bg-shift 3s linear infinite, bpeg-sim-pulse-hot 2s infinite !important; 
}

.bpeg-pro-footer .bpeg-launch-sim-btn:hover {
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.5) !important;
    transform: translateY(-2px) scale(1.02) !important; /* Slight grow effect on hover */
    animation: bpeg-bg-shift 2s linear infinite !important; /* Stops the pulse, keeps the colors moving */
}

/* Modern glass-reflection sweep */
.bpeg-pro-footer .bpeg-launch-sim-btn::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 50% !important;
    height: 100% !important;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%) !important;
    transform: skewX(-25deg) !important;
    animation: bpeg-sim-shine 3s infinite 1s !important;
}

/* THE KEYFRAMES (The animation logic) */
@keyframes bpeg-bg-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes bpeg-sim-pulse-hot {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.8); }
    70% { box-shadow: 0 0 0 15px rgba(225, 29, 72, 0); }
    100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

@keyframes bpeg-sim-shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* ==========================================
   MOBILE FIX: Bottom Navigation Cards Layout
   ========================================== */
@media (max-width: 768px) {
    /* 1. Force the grid into a single column so cards have room to breathe */
    .bpeg-post-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* 2. Stack the inside of the card (Image on Top, Text on Bottom) */
    .bpeg-post-card article {
        flex-direction: column !important;
    }
    
    /* 3. Make the image span the full width of the mobile screen */
    .bpeg-card-img {
        width: 100% !important;
        min-height: 180px !important; /* Gives the image a nice, premium height */
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        background-size: cover !important; /* Ensures the image fills the space beautifully without blank borders */
    }
    
    /* 4. Make the text content span the full width below the image */
    .bpeg-card-content {
        width: 100% !important;
        padding: 15px 20px !important;
    }
}
/* ==========================================
   BPEG MASTER FIX: Flowchart Node Visibility
   ========================================== */
.mcq-flowchart .mcq-flow-node {
    background: #ffffff !important;       /* 1. Force a clean white background */
    color: #0f172a !important;            /* 2. Force high-contrast dark text */
    border: 2px solid #3b82f6 !important; /* 3. Add a premium blue border */
    border-bottom: 4px solid #2563eb !important; /* 4. Give it a 3D pop effect */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05) !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    padding: 16px 20px !important;
    text-shadow: none !important;
}

/* SAFETY NET: Force any spans or bold tags the AI puts inside to also be dark */
.mcq-flowchart .mcq-flow-node * {
    color: #0f172a !important;
}