/* ==========================================================
   GEO ARTICLE GENERATOR PRO - MASTER FRONTEND STYLESHEET
   File: assets/css/frontend.css
   Author: Alok Dey (alokdey.xyz)
   Uses Dynamic Variable: var(--geo-primary, #2563eb)
   ========================================================== */

/* ARTICLE LINKS - NO UNDERLINE DEFAULT OR HOVER */
.geo-article-content a {
    color: var(--geo-primary, #2563eb) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border-bottom: none !important;
    transition: opacity 0.2s ease, color 0.2s ease !important;
}

.geo-article-content a:hover,
.geo-article-content a:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    opacity: 0.82 !important;
}

/* ==========================================================
   AUTHORITY-GRADE EDITORIAL HEADINGS (H2, H3, H4)
   ========================================================== */

/* H2: EXECUTIVE PILLAR SECTION */
.geo-article-content h2 { 
    position: relative !important;
    display: block !important;
    color: #090d16 !important;
    font-size: 1.62em !important;
    font-weight: 800 !important;
    line-height: 1.34 !important;
    letter-spacing: -0.025em !important;
    margin-top: 44px !important;
    margin-bottom: 20px !important;
    padding: 12px 18px 12px 20px !important;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.07) 0%, rgba(248, 250, 252, 0.6) 80%, transparent 100%) !important;
    border-left: 5px solid var(--geo-primary, #2563eb) !important;
    border-radius: 0 10px 10px 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

/* H3: STRUCTURED SUB-TOPIC KEY */
.geo-article-content h3 { 
    position: relative !important;
    color: #0f172a !important;
    font-size: 1.3em !important;
    font-weight: 750 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.018em !important;
    margin-top: 32px !important;
    margin-bottom: 14px !important;
    padding-left: 18px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.geo-article-content h3::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 6px !important;
    height: 18px !important;
    background: var(--geo-primary, #2563eb) !important;
    border-radius: 3px !important;
    opacity: 0.9 !important;
}

/* H4: TACTICAL CHECKPOINT & SUB-ITEM */
.geo-article-content h4 {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #1e293b !important;
    font-size: 1.1em !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    letter-spacing: -0.01em !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
}

.geo-article-content h4::before {
    content: '' !important;
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    background: var(--geo-primary, #2563eb) !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.geo-article-content strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* SECTION DIVIDER (<hr>) ABOVE H2 */
.geo-article-content hr.geo-h2-separator {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    border: none !important;
    background: linear-gradient(90deg, transparent 0%, var(--geo-primary, #2563eb) 20%, #cbd5e1 75%, transparent 100%) !important;
    margin: 52px 0 28px 0 !important;
    clear: both !important;
    opacity: 1 !important;
}

/* ==========================================================
   ATTRACTIVE CUSTOM LISTS (SCOPED AWAY FROM TOC)
   ========================================================== */
.geo-article-content ul.geo-custom-list,
.geo-article-content > ul:not([class*='toc']):not([class*='ez-toc']) { 
    list-style: none !important; 
    padding-left: 0 !important; 
    margin: 22px 0 !important; 
}

.geo-article-content ul.geo-custom-list li,
.geo-article-content > ul:not([class*='toc']):not([class*='ez-toc']) > li { 
    position: relative !important; 
    padding-left: 34px !important; 
    margin-bottom: 12px !important; 
    line-height: 1.68 !important; 
    color: #334155 !important; 
}

.geo-article-content ul.geo-custom-list li::before,
.geo-article-content > ul:not([class*='toc']):not([class*='ez-toc']) > li::before { 
    content: '✓' !important; 
    position: absolute !important; 
    left: 4px !important; 
    top: 2px !important; 
    width: 20px !important; 
    height: 20px !important; 
    background: #eff6ff !important; 
    color: var(--geo-primary, #2563eb) !important; 
    border: 1px solid #bfdbfe !important; 
    border-radius: 50% !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    font-size: 11px !important; 
    font-weight: 800 !important; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.geo-article-content ol:not([class*='toc']):not([class*='ez-toc']) {
    counter-reset: geo-ol-counter !important;
    list-style: none !important;
    padding-left: 0 !important;
    margin: 22px 0 !important;
}

.geo-article-content ol:not([class*='toc']):not([class*='ez-toc']) > li {
    position: relative !important;
    counter-increment: geo-ol-counter !important;
    padding-left: 36px !important;
    margin-bottom: 14px !important;
    line-height: 1.68 !important;
    color: #334155 !important;
}

.geo-article-content ol:not([class*='toc']):not([class*='ez-toc']) > li::before {
    content: counter(geo-ol-counter) !important;
    position: absolute !important;
    left: 2px !important;
    top: 2px !important;
    width: 22px !important;
    height: 22px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

/* ==========================================================
   TOC RESET FIX (ELIMINATES GAPS & BULLETS IN TOC)
   ========================================================== */
.entry-content [class*='toc'] ul,
.entry-content #ez-toc-container ul,
.entry-content .ez-toc-list,
.entry-content .table-of-contents ul,
.entry-content #toc_container ul {
    list-style: none !important;
    margin: 4px 0 6px 0 !important;
    padding-left: 18px !important;
}

.entry-content [class*='toc'] ul li,
.entry-content #ez-toc-container ul li,
.entry-content .table-of-contents ul li,
.entry-content #toc_container ul li {
    margin: 4px 0 !important;
    padding-left: 0 !important;
    line-height: 1.45 !important;
}

.entry-content [class*='toc'] ul li::before,
.entry-content #ez-toc-container ul li::before,
.entry-content .table-of-contents ul li::before,
.entry-content #toc_container ul li::before {
    content: none !important;
    display: none !important;
}

/* ==========================================================
   HIGHLIGHT BOXES
   ========================================================== */
.quick-answer-box { 
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important; 
    border-left: 5px solid #16a34a !important; 
    padding: 22px 24px !important; 
    margin-bottom: 30px !important; 
    border-radius: 10px !important; 
    font-size: 1.05em !important; 
    line-height: 1.7 !important; 
    color: #14532d !important; 
    font-weight: 500 !important; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03) !important; 
}

.key-takeaways-box { 
    background: #ffffff !important; 
    border: 1px solid #cbd5e1 !important; 
    border-radius: 12px !important; 
    margin: 30px 0 !important; 
    overflow: hidden !important; 
    box-shadow: 0 8px 12px -3px rgba(0,0,0,0.04) !important; 
}

.key-takeaways-header { 
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important; 
    color: #ffffff !important; 
    padding: 14px 20px !important; 
    font-weight: 700 !important; 
    font-size: 1.05em !important; 
    letter-spacing: 0.5px !important; 
    display: flex !important; 
    align-items: center !important; 
    gap: 8px !important; 
}

.key-takeaways-content { 
    padding: 20px !important; 
    background: #f8fafc !important; 
}

.key-takeaways-content ul { 
    list-style: none !important; 
    padding-left: 0 !important; 
    margin: 0 !important; 
}

.key-takeaways-content ul li { 
    position: relative !important; 
    padding-left: 28px !important; 
    margin-bottom: 10px !important; 
    line-height: 1.6 !important; 
    color: #1e293b !important; 
    font-weight: 500 !important; 
}

.key-takeaways-content ul li::before { 
    content: '📌' !important; 
    position: absolute !important; 
    left: 0 !important; 
    top: 1px !important; 
    font-size: 13px !important; 
}

/* ==========================================================
   RESPONSIVE CARD TABLE (NEVER BREAKS ON MOBILE)
   ========================================================== */
.geo-responsive-table-wrapper { 
    margin: 35px 0 !important; 
    border-radius: 10px !important; 
    overflow: hidden !important;
}

.geo-responsive-table { 
    width: 100% !important; 
    border-collapse: collapse !important; 
    text-align: left !important; 
    font-size: 0.95em !important; 
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.04) !important; 
}

.geo-responsive-table th { 
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important; 
    color: #ffffff !important; 
    padding: 14px 18px !important; 
    font-weight: 600 !important; 
    text-transform: uppercase !important; 
    font-size: 0.84em !important; 
    letter-spacing: 0.5px !important; 
    border-bottom: 3px solid var(--geo-primary, #2563eb) !important; 
}

.geo-responsive-table td { 
    border-bottom: 1px solid #e2e8f0 !important; 
    padding: 14px 18px !important; 
    color: #334155 !important; 
    line-height: 1.5 !important; 
}

.geo-responsive-table tr:nth-child(even) { 
    background: #f8fafc !important; 
}

/* MOBILE CARD VIEW (<= 768px) */
@media (max-width: 768px) {
    .geo-responsive-table-wrapper table.geo-card-table {
        display: block !important;
        width: 100% !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    .geo-responsive-table-wrapper table.geo-card-table thead {
        display: none !important;
    }
    .geo-responsive-table-wrapper table.geo-card-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    .geo-responsive-table-wrapper table.geo-card-table tr {
        display: block !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-left: 4px solid var(--geo-primary, #2563eb) !important;
        border-radius: 10px !important;
        padding: 14px 16px !important;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.04) !important;
    }
    .geo-responsive-table-wrapper table.geo-card-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 0 !important;
        border-bottom: 1px dashed #e2e8f0 !important;
        font-size: 0.94em !important;
        text-align: right !important;
    }
    .geo-responsive-table-wrapper table.geo-card-table td:last-child {
        border-bottom: none !important;
    }
    .geo-responsive-table-wrapper table.geo-card-table td::before {
        content: attr(data-label) !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        text-align: left !important;
        padding-right: 12px !important;
        font-size: 0.88em !important;
        text-transform: uppercase !important;
        letter-spacing: 0.4px !important;
    }
}

/* ==========================================================
   INTERACTIVE WEB TOOL / CALCULATOR CARD STYLES [geo_tool]
   ========================================================== */
.geo-webtool-wrapper {
    margin: 35px 0 !important;
}

.geo-tool-card {
    background: #ffffff !important;
    border: 2px solid var(--geo-primary, #2563eb) !important;
    border-radius: 14px !important;
    padding: 26px 28px !important;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.08) !important;
}

.geo-tool-card h3 {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    color: #0f172a !important;
    font-size: 1.35em !important;
    border-bottom: none !important;
    padding-left: 0 !important;
}

.geo-tool-card h3::before { display: none !important; }

.geo-tool-form-group {
    margin-bottom: 16px !important;
}

.geo-tool-form-group label {
    display: block !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    font-size: 0.92em !important;
    margin-bottom: 6px !important;
}

.geo-tool-input,
.geo-tool-select {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 0.98em !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.geo-tool-input:focus,
.geo-tool-select:focus {
    border-color: var(--geo-primary, #2563eb) !important;
    background: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.geo-tool-btn {
    display: inline-block !important;
    width: 100% !important;
    padding: 12px 20px !important;
    background: var(--geo-primary, #2563eb) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1.05em !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: opacity 0.2s ease, transform 0.1s ease !important;
    margin-top: 10px !important;
}

.geo-tool-btn:hover {
    opacity: 0.92 !important;
    color: #ffffff !important;
}

.geo-tool-btn:active {
    transform: scale(0.99) !important;
}

.geo-tool-result-box {
    margin-top: 22px !important;
    padding: 18px 20px !important;
    background: #f0fdf4 !important;
    border-left: 5px solid #16a34a !important;
    border-radius: 8px !important;
    font-size: 1.08em !important;
    color: #14532d !important;
    font-weight: 600 !important;
    display: none;
}

/* ==========================================================
   DISTINCT FAQ SECTION CARDS
   ========================================================== */
.geo-article-content .geo-faq-section {
    margin: 50px 0 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 30px 24px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03) !important;
}

.geo-article-content .geo-faq-section .geo-faq-header h2 {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border-left: 5px solid var(--geo-primary, #2563eb) !important;
    padding-left: 14px !important;
    margin-top: 0 !important;
    margin-bottom: 22px !important;
    font-size: 1.55em !important;
    color: #0f172a !important;
}

.geo-article-content .geo-faq-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.geo-article-content .geo-faq-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid var(--geo-primary, #2563eb) !important;
    border-radius: 10px !important;
    padding: 18px 20px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.geo-article-content .geo-faq-question {
    font-weight: 700 !important;
    font-size: 1.08em !important;
    color: #0f172a !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
}

.geo-article-content .geo-faq-answer {
    color: #475569 !important;
    line-height: 1.68 !important;
    font-size: 0.98em !important;
}

.geo-article-content .geo-faq-answer p { margin: 0 0 8px 0 !important; }
.geo-article-content .geo-faq-answer p:last-child { margin-bottom: 0 !important; }

/* CHART WRAPPER */
.geo-chart-container { 
    max-width: 650px !important; 
    margin: 38px auto !important; 
    padding: 24px !important; 
    background: #ffffff !important; 
    border-radius: 12px !important; 
    border: 1px solid #e2e8f0 !important; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05) !important; 
}