:root {
    --afb-border-color: #cfddb0;
    --afb-icon-color: #799153;
    --afb-bg-color: #fffff7;
}

/* Base Block Styles */
.afb-block {
    border: 1px solid var(--afb-border-color);
    border-bottom: 5px solid var(--afb-border-color);
    padding: 35px;
    margin: 30px 0;
    position: relative;
    background: var(--afb-bg-color);
}

@media (max-width: 499px) {
    .afb-block {
        padding: 28px;
        margin: 45px 0;
    }
}

.afb-title {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    left: 25px;
    background: #fff;
    padding: 0 15px;
    color: #333;
}

@media (max-width: 768px) {
    .afb-title {
        font-size: 20px;
        font-weight: 700;
    }
}

.afb-icon {
    width: 35px;
    height: 35px;
    color: var(--afb-icon-color);
    border: 1px dashed var(--afb-icon-color);
    border-radius: 50%;
    padding: 5px;
    flex-shrink: 0;
}

/* 1. Key Takeaways & 5. Expert Tips Lists */
.key-takeaways ul, .expert-tip ul {
    list-style-type: square;
    margin: 0;
    padding-left: 20px;
}

.key-takeaways li, .expert-tip li {
    margin-bottom: 15px;
    line-height: 1.7;
}

.key-takeaways li::marker, .expert-tip li::marker {
    color: var(--afb-border-color);
}

/* 2. Pros & Cons */
.pros-cons-block {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.pros-section, .cons-section {
    flex: 1;
    min-width: 250px;
}

.afb-subtitle {
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
	font-weight: 600;
}

.pros-section .afb-subtitle { color: #145322; }
.cons-section .afb-subtitle { color: #6e1a22; }

.pros-section .afb-icon { color: #145322; border-color: #145322; }
.cons-section .afb-icon { color: #6e1a22; border-color: #6e1a22; }

.pros-cons-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pro-item, .con-item {
    margin-bottom: 10px;
    line-height: 1.6;
}

.pro-item { color: #145322; }
.con-item { color: #6e1a22; }

/* 3. Climate Note */
.climate-note p {
    margin-bottom: 15px;
    line-height: 1.6;
}
.climate-note p:last-child {
    margin-bottom: 0;
}

/* 4. Quick Facts */
.quick-facts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.quick-facts li {
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
    line-height: 1.6;
}
.quick-facts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* 5. Expert Tips */
.expert-tip p {
    font-style: italic;
    line-height: 1.8;
    margin: 0;
}

/* 6. CTA Box */
.cta-box {
    text-align: center;
    background: #f8f9fa;
    border-color: #dee2e6;
    border-bottom-color: #ced4da;
}
.cta-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
}
.cta-box p {
    margin-bottom: 25px;
    color: #555;
}
.afb-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}
.afb-btn:hover {
    background: #0056b3;
    color: #fff;
}

/* 7. MultiText Block */
.multitext-block ul {
    list-style-type: square;
    margin: 0;
    padding-left: 20px;
}
.multitext-block li {
    margin-bottom: 15px;
    line-height: 1.7;
}
.multitext-block li::marker {
    color: var(--afb-border-color);
}

/* 8. Features List Block */
.features-list-block ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.features-list-block li {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* 9. Universal Compare Block */
.compare-block {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.compare-section {
    flex: 1;
    min-width: 250px;
}
.compare-block ul {
    list-style-type: disc;
    margin: 0;
    padding-left: 20px;
}
.compare-block li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 10. Don't Miss Block */
/* Scoped title override — keeps core .afb-title untouched */
.dont-miss-block .afb-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
    position: static;
    transform: none;
    left: auto;
    top: auto;
    background: transparent;
    padding: 0;
    margin: 0 0 10px 0;
    display: block;
}

.dont-miss-block {
    background: #fff;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin: 20px 0;
}
.dont-miss-link {
    display: flex;
    gap: 15px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.dont-miss-link:hover .dont-miss-title {
    text-decoration: underline;
}
/* Default - All devices */
.dont-miss-thumb {
    width: 220px;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

/* Mobile only (less than 600px) */
@media (max-width: 599px) {
    .dont-miss-thumb {
        width: 120px;
    }
}
.dont-miss-content {
    flex: 1;
}
.dont-miss-title {
    margin: 0 0 5px 0;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
    color: #333;
}

/* Mobile only (less than 600px) */
@media (max-width: 599px) {
    .dont-miss-title {
    margin: 0 0 5px 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: bold;
    color: #333;
}
}
.dont-miss-sponsored {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
}

/* ============================================================================
   11. Market Price Card (PRO)
============================================================================ */
.afb-market-price-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border: 1px solid var(--afb-border-color);
    margin: 30px 0;
}

.afb-market-price-card .price-card-header {
    border-left: 4px solid var(--afb-border-color);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.afb-market-price-card .price-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #0f172a;
}

.afb-market-price-card .price-card-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.afb-market-price-card .price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    background: var(--afb-bg-color);
    padding: 1.5rem;
    border-radius: 12px;
}

.afb-market-price-card .price-col h4 {
    font-size: 0.875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem 0;
}

.afb-market-price-card .price-val {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a;
}

.afb-market-price-card .trend {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}
.afb-market-price-card .trend.down { color: #dc2626; background: #fee2e2; }
.afb-market-price-card .trend.up { color: #16a34a; background: #dcfce7; }

.afb-market-price-card .price-card-updated {
    font-size: 0.875rem;
    color: #b91c1c;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.afb-market-price-card .price-meta {
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.afb-market-price-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--afb-border-color);
    color: #111;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.afb-market-price-card .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   12. Stock List Grid (PRO)
============================================================================ */
.afb-stock-list-grid {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--afb-border-color);
    margin: 30px 0;
}

.afb-stock-list-grid .share-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--afb-border-color);
    padding-bottom: 1rem;
    flex-wrap: wrap;
    gap: 10px;
}

.afb-stock-list-grid .share-list-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.afb-stock-list-grid .share-list-updated {
    font-size: 0.875rem;
    color: #64748b;
}

.afb-stock-list-grid .company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.afb-stock-list-grid .company-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.afb-stock-list-grid .company-item:hover {
    border-color: var(--afb-border-color);
}

.afb-stock-list-grid a.company-item-link {
    text-decoration: none;
    color: inherit;
}

.afb-stock-list-grid a.company-item-link:hover {
    border-color: var(--afb-border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.afb-stock-list-grid a.company-item-link .company-name {
    color: #1d4ed8;
}

.afb-stock-list-grid .company-info {
    display: flex;
    flex-direction: column;
}

.afb-stock-list-grid .company-name {
    font-weight: 600;
    color: #0f172a;
}

.afb-stock-list-grid .company-region {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
}

.afb-stock-list-grid .company-price {
    font-weight: 700;
    font-size: 1.125rem;
    color: #0f172a;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .afb-market-price-card .price-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   13. FAQs Block (PRO)
============================================================================ */
.afb-faqs-block {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--afb-border-color);
    margin: 30px 0;
}

.afb-faqs-block .faqs-main-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 2rem;
    color: #0f172a;
    border-bottom: 2px solid var(--afb-border-color);
    padding-bottom: 0.75rem;
}

.afb-faqs-block .faq-item {
    margin-bottom: 2rem;
}
.afb-faqs-block .faq-item:last-child {
    margin-bottom: 0;
}

.afb-faqs-block .faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.afb-faqs-block .faq-answer {
    font-size: 1rem;
    color: #475569;
    line-height: 1.8;
    margin: 0;
}

/* Better mobile line spacing for FAQs */
@media (max-width: 600px) {
    .afb-faqs-block {
        padding: 1.5rem;
    }
    .afb-faqs-block .faq-question {
        font-size: 1.15rem;
        line-height: 1.5;
    }
    .afb-faqs-block .faq-answer {
        font-size: 1rem;
        line-height: 1.9;
    }
}

/* ============================================================================
   Featured Image in MultiText Block
============================================================================ */
.afb-block-body {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.afb-block-body > ul {
    flex: 1;
    min-width: 0;
}

.afb-block-image {
    flex-shrink: 0;
    width: 250px;
    margin: 0;
}

.afb-block-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.afb-block-image .wp-element-caption {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
    line-height: 1.4;
}

/* Mobile: headline stays on top (absolute), then image, then list */
@media (max-width: 768px) {
    .afb-block-body {
        flex-direction: column;
        align-items: center;
    }

    .afb-block-body > ul {
        width: 100%;
    }

    .afb-block-image {
        width: 65%;
        max-width: 300px;
        order: -1;
        margin-top: 10px;
        margin-bottom: 5px;
    }
}