/* =================================================================
   INFORMATIONAL ARTICLE CSS FRAMEWORK v1.0
   Purpose: Premium design for educational content with affiliate support
   Compatible with: WordPress, Static HTML, Custom CMS
   Author: Custom Design System
   Last Updated: 2026
   ================================================================= */

/* ===== 1. GLOBAL WRAPPER & TYPOGRAPHY ===== */

.info-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #1e293b;
    background: #ffffff;
    padding: 40px 20px;
}

.info-content-wrapper * {
    box-sizing: border-box;
}

/* Typography Hierarchy */
.info-content-wrapper h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
}

.info-content-wrapper h2 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
    margin: 48px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #3b82f6;
}

.info-content-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #334155;
    margin: 32px 0 16px 0;
}

.info-content-wrapper h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: #475569;
    margin: 24px 0 12px 0;
}

.info-content-wrapper p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
    margin: 0 0 24px 0;
}

.info-content-wrapper a {
    color: #3b82f6;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.info-content-wrapper a:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Strong and emphasis */
.info-content-wrapper strong {
    font-weight: 700;
    color: #1e293b;
}

.info-content-wrapper em {
    font-style: italic;
    color: #475569;
}

/* ===== 2. INTRODUCTION SECTION ===== */

.info-intro {
    margin-bottom: 48px;
}

.info-hook {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #0f172a;
    margin-bottom: 24px;
}

.info-hook strong {
    font-weight: 700;
    color: #1e40af;
}

/* ===== 3. TABLE OF CONTENTS ===== */

.info-toc {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 32px 0 48px 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.info-toc h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-toc ol {
    margin: 0;
    padding: 0 0 0 24px;
    list-style: none;
    counter-reset: toc-counter;
}

.info-toc ol li {
    counter-increment: toc-counter;
    margin-bottom: 10px;
    position: relative;
}

.info-toc ol li::before {
    content: counter(toc-counter);
    position: absolute;
    left: -24px;
    top: 2px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #3b82f6;
    width: 20px;
    text-align: right;
}

.info-toc a {
    color: #1e40af;
    font-size: 1.05rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.info-toc a:hover {
    color: #1e3a8a;
    border-bottom-color: #3b82f6;
    padding-left: 4px;
}

/* ===== 4. MAIN CONTENT SECTIONS ===== */

.info-section {
    margin-bottom: 48px;
}

.info-section:last-of-type {
    margin-bottom: 32px;
}

/* ===== 5. CALLOUT BOXES ===== */

/* Standard Callout (Tips, Notes) */
.info-callout-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 32px 0;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.info-callout-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-callout-box p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #78350f;
    margin: 0;
}

/* Warning Variant */
.info-warning-box {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 5px solid #ef4444;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 32px 0;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.info-warning-box h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #991b1b;
    margin: 0 0 12px 0;
}

.info-warning-list {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: none;
}

.info-warning-list li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    color: #7f1d1d;
    line-height: 1.6;
}

.info-warning-list li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    color: #ef4444;
}

.info-warning-list li strong {
    color: #991b1b;
    font-weight: 600;
}

/* Success/Tip Variant */
.info-success-box {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 5px solid #10b981;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 32px 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.info-success-box h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 12px 0;
}

.info-success-box p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #064e3b;
    margin: 0;
}

/* Info/Note Variant */
.info-note-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 5px solid #3b82f6;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 32px 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.info-note-box h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 12px 0;
}

.info-note-box p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1e40af;
    margin: 0;
}

/* ===== 6. COMPARISON TABLES ===== */

.info-table-wrapper {
    margin: 32px 0;
    overflow-x: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.info-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 1rem;
    table-layout: fixed;
}

.info-comparison-table thead {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.info-comparison-table thead th {
    padding: 18px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 3px solid #1e40af;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.info-comparison-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}

.info-comparison-table tbody tr:hover {
    background: #f8fafc;
}

.info-comparison-table tbody tr:last-child {
    border-bottom: none;
}

.info-comparison-table td {
    padding: 16px;
    color: #334155;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.info-comparison-table td:first-child {
    font-weight: 600;
    color: #1e293b;
}

/* Alternating row colors option */
.info-comparison-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.info-comparison-table tbody tr:nth-child(even):hover {
    background: #f1f5f9;
}

/* Mobile Responsive Tables */
@media screen and (max-width: 768px) {
    .info-comparison-table thead {
        display: none;
    }
    
    .info-comparison-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        padding: 12px;
    }
    
    .info-comparison-table td {
        display: block;
        padding: 8px 0;
        text-align: left;
        border: none;
    }
    
    .info-comparison-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #3b82f6;
        display: block;
        margin-bottom: 4px;
    }
}

/* Keep comparison tables inside article width on desktop+sidebar layouts */
@media screen and (max-width: 1280px) {
    .info-table-wrapper {
        margin: 24px 0;
    }

    .info-comparison-table thead th {
        padding: 14px 12px;
        font-size: 0.95rem;
    }

    .info-comparison-table td {
        padding: 12px;
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Force parity in frontend + block editor + classic editor */
.info-content-wrapper .info-table-wrapper,
.editor-styles-wrapper .info-content-wrapper .info-table-wrapper,
body#tinymce .info-content-wrapper .info-table-wrapper {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.info-content-wrapper .info-comparison-table,
.editor-styles-wrapper .info-content-wrapper .info-comparison-table,
body#tinymce .info-content-wrapper .info-comparison-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    display: table !important;
    table-layout: fixed !important;
}

.info-content-wrapper .info-comparison-table th,
.info-content-wrapper .info-comparison-table td,
.editor-styles-wrapper .info-content-wrapper .info-comparison-table th,
.editor-styles-wrapper .info-content-wrapper .info-comparison-table td,
body#tinymce .info-content-wrapper .info-comparison-table th,
body#tinymce .info-content-wrapper .info-comparison-table td {
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    text-transform: none !important;
}

/* Defend against theme table wrappers forcing horizontal scrolling in preview/published view */
.info-content-wrapper .info-table-wrapper,
.entry-content .info-content-wrapper .info-table-wrapper,
.post-content .info-content-wrapper .info-table-wrapper {
    overflow-x: clip !important;
}

.info-content-wrapper .info-table-wrapper .info-comparison-table,
.entry-content .info-content-wrapper .info-table-wrapper .info-comparison-table,
.post-content .info-content-wrapper .info-table-wrapper .info-comparison-table {
    margin: 0 !important;
    border-spacing: 0 !important;
}

/* ===== 7. STEP-BY-STEP GUIDE SECTION ===== */

.info-steps-container {
    margin: 32px 0;
}

.info-step {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.info-step:hover {
    background: #eff6ff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.info-step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.info-step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.info-step-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

.info-step-content ul,
.info-step-content ol {
    margin: 12px 0 0 0;
}

/* ===== 8. EXPERT QUOTE SECTION ===== */

.info-expert-quote {
    margin: 48px 0;
    padding: 32px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-left: 6px solid #64748b;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.info-quote-mark {
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 4rem;
    font-weight: 900;
    color: #cbd5e1;
    line-height: 1;
    font-family: Georgia, serif;
}

.info-expert-quote blockquote {
    margin: 0;
    padding: 0 0 0 60px;
}

.info-expert-quote blockquote p {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.7;
    color: #334155;
    margin: 0 0 16px 0;
}

.info-expert-quote footer {
    font-size: 1rem;
    font-style: normal;
    color: #64748b;
    font-weight: 500;
    padding-left: 60px;
}

/* ===== 9. FAQ SECTION (Schema-ready) ===== */

.info-faq-section {
    margin: 48px 0;
}

.info-faq-section h2 {
    font-size: 2rem;
    margin-bottom: 32px;
    color: #0f172a;
}

.info-faq-item {
    margin-bottom: 24px;
    padding: 24px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-faq-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.info-faq-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
    padding-left: 32px;
    position: relative;
}

.info-faq-item h3::before {
    content: "Q";
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.info-faq-item p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
    padding-left: 32px;
}

/* Accordion-style FAQ (optional) */
.info-faq-accordion {
    margin: 24px 0;
}

.info-faq-accordion summary {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
    transition: all 0.2s ease;
}

.info-faq-accordion summary:hover {
    background: #eff6ff;
}

.info-faq-accordion summary::marker {
    display: none;
}

.info-faq-accordion[open] summary {
    background: #dbeafe;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.info-faq-accordion p {
    padding: 20px;
    margin: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* ===== 10. AFFILIATE LINK STYLES ===== */

.info-affiliate-link {
    color: #3b82f6;
    font-weight: 500;
    border-bottom: 2px dotted #3b82f6;
    padding: 2px 4px;
    background: linear-gradient(to bottom, transparent 50%, #dbeafe 50%);
    transition: all 0.2s ease;
    position: relative;
}

.info-affiliate-link:hover {
    color: #1e40af;
    border-bottom-color: #1e40af;
    background: #bfdbfe;
}

/* Affiliate Product Card (for featured products) */
.info-product-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin: 32px 0;
    padding: 24px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

/* Defensive layout: if model outputs imperfect card markup, keep content aligned */
.info-product-card > * {
    grid-column: 2 !important;
    min-width: 0 !important;
}

.info-product-card > .info-product-image {
    grid-column: 1 !important;
    grid-row: 1 / span 8;
}

.info-product-card > img {
    grid-column: 1 !important;
    grid-row: 1 / span 8;
    width: 150px !important;
    max-width: 150px !important;
    height: 150px !important;
    max-height: 150px !important;
    object-fit: contain !important;
}

.info-product-card > .info-product-details {
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
}

.info-product-card > h4,
.info-product-card > p,
.info-product-card > a,
.info-product-card > .info-product-meta,
.info-product-card > .info-product-cta,
.info-product-card > .aap-cta-button {
    grid-column: 2 !important;
}

.info-product-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.info-product-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    flex-shrink: 0;
    background: #f8fafc;
    border-radius: 8px;
}

/* Strong override so theme/global image rules cannot blow up product images */
.info-content-wrapper .info-product-card > .info-product-image,
.info-content-wrapper .info-product-card img.info-product-image,
.editor-styles-wrapper .info-content-wrapper .info-product-card > .info-product-image,
.editor-styles-wrapper .info-content-wrapper .info-product-card img.info-product-image,
body#tinymce .info-content-wrapper .info-product-card > .info-product-image,
body#tinymce .info-content-wrapper .info-product-card img.info-product-image {
    width: 150px !important;
    max-width: 150px !important;
    height: 150px !important;
    max-height: 150px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    flex: 0 0 150px !important;
    justify-self: start !important;
    align-self: start !important;
}

.editor-styles-wrapper .info-product-image,
body#tinymce .info-product-image,
.mce-content-body .info-product-image {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

.info-product-details {
    flex: 1;
    min-width: 0;
}

.info-product-details h4 {
    margin: 0 0 8px 0;
    color: #0f172a;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.info-product-meta {
    margin: 0 0 12px 0;
    color: #64748b;
    font-size: 0.875rem;
}

.info-product-details > p {
    margin: 0 0 16px 0;
    color: #334155;
    line-height: 1.6;
}

.info-product-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.info-product-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 16px 0;
}

.info-product-cta {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.info-product-card .info-product-cta,
.info-product-card .aap-cta-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .info-product-card {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .info-product-card > .info-product-image,
    .info-product-card > img,
    .info-product-card > .info-product-details,
    .info-product-card > h4,
    .info-product-card > p,
    .info-product-card > a,
    .info-product-card > .info-product-meta,
    .info-product-card > .info-product-cta,
    .info-product-card > .aap-cta-button {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .info-product-image {
        width: 100%;
        max-width: 200px;
        height: auto;
    }

    .info-content-wrapper .info-product-card > .info-product-image,
    .info-content-wrapper .info-product-card img.info-product-image,
    .editor-styles-wrapper .info-content-wrapper .info-product-card > .info-product-image,
    .editor-styles-wrapper .info-content-wrapper .info-product-card img.info-product-image,
    body#tinymce .info-content-wrapper .info-product-card > .info-product-image,
    body#tinymce .info-content-wrapper .info-product-card img.info-product-image {
        width: 100% !important;
        max-width: 200px !important;
        height: auto !important;
        max-height: 200px !important;
        flex: 0 0 auto !important;
    }

    .info-product-details h4 {
        font-size: 1rem;
    }
}

.info-product-cta:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    border-bottom: none;
}

/* Product Grid (for multiple products) */
.info-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

/* ===== 11. DISCLOSURE BOXES ===== */

.info-disclosure {
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
    margin: 32px 0;
    padding: 16px;
    background: #f8fafc;
    border-left: 3px solid #94a3b8;
    border-radius: 4px;
}

.info-disclosure-box {
    margin: 32px 0;
    padding: 20px 24px;
    background: #fffbeb;
    border: 2px solid #fbbf24;
    border-radius: 12px;
}

.info-disclosure-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #78350f;
    margin: 0;
}

.info-disclosure-box strong {
    color: #92400e;
    font-weight: 700;
}

.info-disclosure-banner {
    margin: 32px 0 48px 0;
    padding: 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.info-disclosure-banner h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-disclosure-banner p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #78350f;
    margin: 0;
}

/* ===== 12. CONCLUSION SECTION ===== */

.info-conclusion {
    margin: 48px 0 32px 0;
    padding: 32px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    border-top: 4px solid #3b82f6;
}

.info-conclusion h2 {
    border-bottom: none;
    margin-bottom: 24px;
}

.info-cta-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e40af;
    margin: 24px 0 0 0;
}

/* ===== 13. RELATED ARTICLES ===== */

.info-related-articles {
    margin: 48px 0 0 0;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
}

.info-related-articles h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.info-related-articles ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-related-articles li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.info-related-articles li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 2px;
    color: #3b82f6;
    font-weight: 700;
}

.info-related-articles a {
    color: #1e40af;
    font-weight: 500;
    font-size: 1.05rem;
}

/* ===== 14. LISTS (UNORDERED & ORDERED) ===== */

.info-content-wrapper ul:not([class]),
.info-content-wrapper ol:not([class]) {
    margin: 24px 0;
    padding: 0 0 0 32px;
}

.info-content-wrapper ul:not([class]) li,
.info-content-wrapper ol:not([class]) li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #334155;
}

.info-content-wrapper ul:not([class]) {
    list-style: none;
}

.info-content-wrapper ul:not([class]) li {
    padding-left: 24px;
    position: relative;
}

.info-content-wrapper ul:not([class]) li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: 700;
    font-size: 1.2rem;
}

.info-content-wrapper ol:not([class]) {
    counter-reset: ol-counter;
}

.info-content-wrapper ol:not([class]) li {
    counter-increment: ol-counter;
    padding-left: 8px;
}

.info-content-wrapper ol:not([class]) li::marker {
    color: #3b82f6;
    font-weight: 700;
}

/* ===== 15. CODE BLOCKS (for technical articles) ===== */

.info-content-wrapper code {
    background: #f1f5f9;
    color: #dc2626;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Monaco', 'Courier New', monospace;
}

.info-content-wrapper pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    line-height: 1.6;
}

.info-content-wrapper pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: 0.95rem;
}

/* ===== 16. IMAGES & FIGURES ===== */

.info-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.editor-styles-wrapper .info-content-wrapper img,
body#tinymce .info-content-wrapper img,
.mce-content-body .info-content-wrapper img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

.info-content-wrapper figure {
    margin: 32px 0;
}

.info-content-wrapper figcaption {
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
    text-align: center;
    margin-top: 12px;
}

/* Keep generated blog images constrained like affiliate visuals */
.info-section-image, .awa-info-image {
    text-align: center;
    margin: 45px auto !important;
    max-width: 450px !important;
    width: 100%;
}

.info-section-image img, .awa-info-image img, .awa-responsive-img {
    display: block !important;
    width: 100% !important;
    max-width: 450px !important;
    height: auto !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

/* Container variant for awa-info-image */
.awa-image-container {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

/* Strong override against theme/global image rules - MUST apply on frontend */
.info-content-wrapper .info-section-image img,
.info-content-wrapper .awa-info-image img,
.info-content-wrapper img,
.editor-styles-wrapper .info-content-wrapper .info-section-image img,
.editor-styles-wrapper .info-content-wrapper .awa-info-image img,
body#tinymce .info-content-wrapper .info-section-image img,
body#tinymce .info-content-wrapper .awa-info-image img {
    width: 100% !important;
    max-width: 450px !important;
    height: auto !important;
    object-fit: contain !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-shadow: none !important;
    border: none !important;
}

.info-section-image figcaption, 
.awa-info-image figcaption, 
.awa-image-caption {
    display: none !important;
}

@media (max-width: 768px) {
    .info-section-image, .awa-info-image {
        max-width: 100% !important;
        margin: 30px 0 !important;
    }

    .info-section-image img, .awa-info-image img {
        max-width: 100% !important;
        height: auto !important;
    }

    .info-content-wrapper .info-section-image img,
    .info-content-wrapper .awa-info-image img,
    .editor-styles-wrapper .info-content-wrapper .info-section-image img,
    .editor-styles-wrapper .info-content-wrapper .awa-info-image img,
    body#tinymce .info-content-wrapper .info-section-image img,
    body#tinymce .info-content-wrapper .awa-info-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Image with shadow effect - DISABLED as per user request */
.info-image-shadow {
    box-shadow: none !important;
}

/* Image with border */
.info-image-border {
    border: 2px solid #e2e8f0;
    padding: 8px;
}

/* ===== 17. BLOCKQUOTE STYLES ===== */

.info-content-wrapper blockquote:not([class]) {
    margin: 32px 0;
    padding: 20px 24px 20px 60px;
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    position: relative;
    font-style: italic;
}

.info-content-wrapper blockquote:not([class])::before {
    content: '"';
    position: absolute;
    left: 16px;
    top: 10px;
    font-size: 3rem;
    color: #cbd5e1;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ===== 18. BUTTONS & CTAs ===== */

.info-button {
    display: inline-block;
    padding: 12px 24px;
    background: #3b82f6;
    color: #ffffff;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.info-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.info-button-secondary {
    background: #64748b;
}

.info-button-secondary:hover {
    background: #475569;
}

.info-button-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* ===== 19. PROGRESS BAR (reading progress) ===== */

.info-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===== 20. HIGHLIGHT BOX ===== */

.info-highlight {
    background: #fef3c7;
    padding: 2px 6px;
    border-radius: 3px;
    color: #92400e;
    font-weight: 500;
}

/* ===== 21. STAT/NUMBER EMPHASIS ===== */

.info-stat {
    font-size: 2rem;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
    display: block;
    margin: 16px 0 8px 0;
}

.info-stat-label {
    font-size: 0.875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== 22. HORIZONTAL DIVIDER ===== */

.info-divider {
    margin: 48px 0;
    border: none;
    border-top: 3px solid #e2e8f0;
    width: 100px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== 23. RESPONSIVE DESIGN ===== */

@media screen and (max-width: 768px) {
    .info-content-wrapper {
        font-size: 16px;
        padding: 24px 16px;
    }
    
    .info-content-wrapper h1 {
        font-size: 2rem;
    }
    
    .info-content-wrapper h2 {
        font-size: 1.5rem;
        margin-top: 32px;
    }
    
    .info-content-wrapper h3 {
        font-size: 1.25rem;
    }
    
    .info-hook {
        font-size: 1.125rem;
    }
    
    .info-step {
        flex-direction: column;
        gap: 16px;
    }
    
    .info-step-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .info-expert-quote blockquote {
        padding-left: 0;
    }
    
    .info-expert-quote footer {
        padding-left: 0;
    }
    
    .info-quote-mark {
        font-size: 3rem;
        left: 16px;
        top: 12px;
    }
    
    .info-product-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .info-content-wrapper h1 {
        font-size: 1.75rem;
    }
    
    .info-content-wrapper h2 {
        font-size: 1.375rem;
    }
    
    .info-toc {
        padding: 16px 20px;
    }
    
    .info-callout-box,
    .info-warning-box,
    .info-success-box {
        padding: 16px 20px;
    }
}

/* ===== 24. PRINT STYLES ===== */

@media print {
    .info-content-wrapper {
        max-width: 100%;
        font-size: 12pt;
        padding: 0;
    }
    
    .info-toc,
    .info-related-articles,
    .info-product-cta,
    .info-affiliate-link {
        display: none;
    }
    
    .info-content-wrapper a {
        color: #1e293b;
        border-bottom: none;
    }
    
    .info-content-wrapper h2 {
        page-break-after: avoid;
    }
    
    .info-step,
    .info-faq-item,
    .info-product-card {
        page-break-inside: avoid;
    }
}

/* ===== 25. DARK MODE (OPTIONAL) ===== */

@media (prefers-color-scheme: dark) {
    .info-content-wrapper {
        background: #0f172a;
        color: #e2e8f0;
    }
    
    .info-content-wrapper h1,
    .info-content-wrapper h2,
    .info-content-wrapper h3 {
        color: #f1f5f9;
    }
    
    .info-content-wrapper h2 {
        border-bottom-color: #3b82f6;
    }
    
    .info-content-wrapper p {
        color: #cbd5e1;
    }
    
    .info-content-wrapper a {
        color: #60a5fa;
    }
    
    .info-content-wrapper a:hover {
        color: #93c5fd;
    }
    
    .info-toc {
        background: #1e293b;
        border-left-color: #3b82f6;
    }
    
    .info-comparison-table {
        background: #1e293b;
    }
    
    .info-comparison-table td {
        color: #cbd5e1;
    }
    
    .info-faq-item {
        background: #1e293b;
        border-color: #334155;
    }
    
    .info-product-card {
        background: #1e293b;
        border-color: #334155;
    }
}

/* ===== END OF STYLESHEET ===== */

/* ===== 26. CLASSIC EDITOR IMAGE PARITY (FINAL OVERRIDE) ===== */
body#tinymce .info-content-wrapper .info-section-image img,
.mce-content-body .info-content-wrapper .info-section-image img {
    width: auto !important;
    max-width: 520px !important;
    max-height: 320px !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

body#tinymce .info-content-wrapper .info-product-card > .info-product-image,
body#tinymce .info-content-wrapper .info-product-card img.info-product-image,
.mce-content-body .info-content-wrapper .info-product-card > .info-product-image,
.mce-content-body .info-content-wrapper .info-product-card img.info-product-image {
    width: 120px !important;
    max-width: 120px !important;
    height: 120px !important;
    max-height: 120px !important;
    object-fit: contain !important;
    margin: 0 !important;
}

/* ===== 27. PRODUCT CARD HARD LOCK (FRONTEND + PREVIEW) ===== */
.info-content-wrapper .info-product-card {
    display: grid !important;
    grid-template-columns: 150px minmax(0, 1fr) !important;
    gap: 20px !important;
    align-items: start !important;
}

/* If image is wrapped by an anchor, keep it in column 1 */
.info-content-wrapper .info-product-card > a {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: block !important;
    width: 150px !important;
    max-width: 150px !important;
    margin: 0 !important;
    justify-self: start !important;
    align-self: start !important;
}

.info-content-wrapper .info-product-card > a > img,
.info-content-wrapper .info-product-card > a > .info-product-image {
    width: 150px !important;
    max-width: 150px !important;
    height: 150px !important;
    max-height: 150px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
}

.info-content-wrapper .info-product-card > .info-product-details {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

.info-content-wrapper .info-product-card .info-product-details h4,
.info-content-wrapper .info-product-card .info-product-details p,
.info-content-wrapper .info-product-card > h4,
.info-content-wrapper .info-product-card > p {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    max-width: none !important;
}

@media (max-width: 640px) {
    .info-content-wrapper .info-product-card {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        text-align: center !important;
    }

    .info-content-wrapper .info-product-card > a,
    .info-content-wrapper .info-product-card > .info-product-image,
    .info-content-wrapper .info-product-card > img {
        grid-column: 1 !important;
        width: 100% !important;
        max-width: 200px !important;
        height: auto !important;
        max-height: 200px !important;
    }

    .info-content-wrapper .info-product-card > .info-product-details,
    .info-content-wrapper .info-product-card > h4,
    .info-content-wrapper .info-product-card > p,
    .info-content-wrapper .info-product-card > a.info-product-cta,
    .info-content-wrapper .info-product-card > a.aap-cta-button {
        grid-column: 1 !important;
    }
}

/* ===== 28. PRODUCT CARD FINAL FLEX LOCK ===== */
.info-content-wrapper .info-product-card,
.single-post .info-content-wrapper .info-product-card,
.entry-content .info-content-wrapper .info-product-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 20px !important;
}

.info-content-wrapper .info-product-card > .info-product-image,
.info-content-wrapper .info-product-card > img,
.info-content-wrapper .info-product-card > a,
.info-content-wrapper .info-product-card > a > img {
    flex: 0 0 150px !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    height: 150px !important;
    max-height: 150px !important;
    object-fit: contain !important;
    margin: 0 !important;
}

.info-content-wrapper .info-product-card > .info-product-details {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    display: block !important;
}

.info-content-wrapper .info-product-card .info-product-details h4,
.info-content-wrapper .info-product-card .info-product-details p,
.info-content-wrapper .info-product-card .info-product-meta {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 640px) {
    .info-content-wrapper .info-product-card,
    .single-post .info-content-wrapper .info-product-card,
    .entry-content .info-content-wrapper .info-product-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .info-content-wrapper .info-product-card > .info-product-image,
    .info-content-wrapper .info-product-card > img,
    .info-content-wrapper .info-product-card > a,
    .info-content-wrapper .info-product-card > a > img {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 200px !important;
        height: auto !important;
        max-height: 200px !important;
    }
}

/* ===== INFO DISCLAIMER + CLOSING THOUGHT + RELATED POSTS ===== */
.info-affiliate-disclaimer,
aside.info-affiliate-disclaimer {
    display: block;
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 12px;
    color: #78350f;
    margin: 12px 0;
}

.info-affiliate-disclaimer strong,
aside.info-affiliate-disclaimer strong {
    color: #92400e;
}

.info-closing-thought {
    font-style: italic;
    color: #475569;
    border-left: 3px solid #6366f1;
    padding-left: 12px;
    margin-top: 16px;
    font-size: 14px;
}

.info-content-wrapper .awa-related-posts {
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fbff;
}

.info-content-wrapper .awa-related-posts h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #1e3a8a;
}

.info-content-wrapper .awa-related-posts ul {
    margin: 0;
    padding-left: 20px;
}

.info-content-wrapper .awa-related-posts li {
    margin: 8px 0;
}

.info-content-wrapper .awa-related-posts a {
    color: #1d4ed8;
    text-decoration: none;
}

.info-content-wrapper .awa-related-posts a:hover {
    text-decoration: underline;
}
