/* =========================================
   Affiliated Writer Pro - Main Frontend Styles
   File: assets/css/aap-frontend.css
   Version: Premium UI & Optimized Images (Final)
   ========================================= */
/* LOCKED SECTION: AFFILIATE_FRONTEND_DESIGN
   Affiliate article design selectors (`.aap-*`) are treated as locked.
   Do not change without explicit approval.
*/

/* 1. Global Reset & Wrapper */
.aap-content-wrapper {
    position: relative;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
    line-height: 1.8;
    color: #334155;
    font-size: 16px;
    background: #ffffff;
}

.aap-content-wrapper * {
    box-sizing: border-box;
}

.aap-content-wrapper p {
    margin: 0 0 20px;
    font-size: 1.05rem;
    color: #475569;
}

/* -------------------------------------------
   SPECIFICATIONS CARD - PREMIUM UI (ERROR-FREE)
   ------------------------------------------- */

/* Wrapper to ensure proper styling */
.aap-content-wrapper .aap-specs-card-wrapper {
    max-width: 100%;
    margin: 30px 0;
}

/* Header Styling - Gradient Background */
.aap-content-wrapper h4.aap-specs-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 0;
    padding: 22px 28px;
    border: none;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Icon before header */
.aap-content-wrapper h4.aap-specs-header::before {
    content: "⚡";
    font-size: 24px;
}

/* List Body Styling */
.aap-content-wrapper ul.aap-specs-list {
    margin: 0 0 30px 0;
    padding: 20px 28px;
    list-style: none;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Individual List Items */
.aap-specs-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px 16px 50px;
    margin-bottom: 10px;
    background: linear-gradient(to right, #f8fafc, #ffffff);
    border-radius: 10px;
    border-left: 4px solid #667eea;
    font-size: 15px;
    color: #475569;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
}

.aap-specs-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    background: linear-gradient(to right, #eef2ff, #ffffff);
}

.aap-specs-list li:last-child {
    margin-bottom: 0;
}

/* Checkmark Icon */
.aap-specs-list li::before {
    content: "✓";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
}

/* Strong Label Styling */
.aap-specs-list li strong {
    color: #1e293b;
    font-weight: 700;
    min-width: 180px;
    font-size: 15px;
}

/* Tablet Responsive */
@media (max-width: 768px) {
    .aap-content-wrapper h4.aap-specs-header {
        padding: 18px 22px;
        font-size: 18px;
        border-radius: 12px 12px 0 0;
    }

    .aap-content-wrapper ul.aap-specs-list {
        padding: 16px 22px;
        border-radius: 0 0 12px 12px;
    }

    .aap-specs-list li {
        padding: 14px 16px 14px 46px;
        font-size: 14px;
    }

    .aap-specs-list li strong {
        min-width: 150px;
        font-size: 14px;
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .aap-content-wrapper h4.aap-specs-header {
        padding: 16px 18px;
        font-size: 16px;
        gap: 8px;
    }

    .aap-content-wrapper h4.aap-specs-header::before {
        font-size: 20px;
    }

    .aap-content-wrapper ul.aap-specs-list {
        padding: 12px 16px;
        margin-bottom: 20px;
    }

    .aap-specs-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 14px 14px 42px;
        font-size: 14px;
    }

    .aap-specs-list li::before {
        width: 20px;
        height: 20px;
        font-size: 12px;
        left: 12px;
    }

    .aap-specs-list li strong {
        min-width: 100%;
        font-size: 13px;
        color: #667eea;
        display: block;
        margin-bottom: 4px;
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
    .aap-content-wrapper h4.aap-specs-header {
        padding: 14px 16px;
        font-size: 15px;
    }

    .aap-specs-list li {
        padding: 12px 12px 12px 38px;
        font-size: 13px;
    }
}

/* -------------------------------------------
   2. PREMIUM EYE-CATCHY TYPOGRAPHY (H2, H3)
   ------------------------------------------- */
.aap-content-wrapper h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
    /* Deep Dark Blue */
    margin-top: 50px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e2e8f0;
    /* Thick Premium Underline */
    line-height: 1.3;
    letter-spacing: -0.02em;
    position: relative;
}

/* Accent line below H2 */
.aap-content-wrapper h2::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #3b82f6;
    /* Accent Blue Line */
}

.aap-content-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #334155;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* -------------------------------------------
   6. HIGHLIGHTED TEXTS (Verdict Style)
   Who It's For, Performance, Best For etc.
   ------------------------------------------- */
strong {
    color: #0f172a;
    font-weight: 700;
}

/* Style specifically the phrases ending with ":" */
p strong:first-child {
    color: #2563eb;
    /* Blue highlight */
    font-weight: 800;
    font-size: 1.05em;
    position: relative;
    padding-right: 5px;
}

/* Specific Highlight Colors */
p strong:first-child:contains("Best Overall") {
    color: #1d4ed8;
}

p strong:first-child:contains("Best Value") {
    color: #059669;
}

p strong:first-child:contains("Who It's For") {
    color: #7c3aed;
}

p strong:first-child:contains("Performance") {
    color: #db2777;
}

p strong:first-child:contains("Model") {
    color: #db2777;
}

p strong:first-child:contains("Key Specifications") {
    color: #db2777;
}

/* -------------------------------------------
   3. SMART IMAGE CONTROL (Article & Tables)
   Fixes the huge Amazon image issue
   ------------------------------------------- */
/* End of Affiliate Article Styles */

/* Specific Constraint for Product Images in Body */
/* Prevents them from filling the whole screen on desktop */
.aap-product-review figure img,
.aap-review-image-container img {
    max-width: 350px !important;
    /* Ideal size for product showcase */
    width: 100%;
    /* Responsive below 450px */
}

/* Table Images - Strictly Small */
.aap-unique-comparison-table img {
    max-width: 90px !important;
    /* Never bigger than this in table */
    height: auto !important;
    mix-blend-mode: multiply;
    /* Blends white bg */
    margin: 0 auto;
}

/* -------------------------------------------
   4. CTA BUTTON (Structure Only)
   ------------------------------------------- */
.aap-cta-button,
a.aap-cta-button {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.8px;
    text-decoration: none !important;
    line-height: 1;
    cursor: pointer;
    border: none;
    margin: 25px auto;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    background: #6366f1 !important;
    /* Premium Default Indigo */
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    position: relative;
    overflow: hidden;
}

.aap-cta-button:hover,
a.aap-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.12);
    filter: brightness(0.95);
}

/* -------------------------------------------
   5. COMPARISON TABLE (Clean & Professional)
   ------------------------------------------- */
.aap-unique-comparison-table {
    width: 100%;
    max-width: 100%;
    margin: 45px 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Header Styling */
.aap-unique-comparison-table th {
    background: #f8fafc;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: #64748b;
    padding: 20px 15px;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;
    vertical-align: middle;
}

/* Body Styling */
.aap-unique-comparison-table td {
    background: #fff;
    padding: 22px 15px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #334155;
    font-size: 15px;
    font-weight: 500;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal !important;
}

.aap-unique-comparison-table td:nth-child(2) {
    color: #0f172a;
    font-weight: 700;
    font-size: 16px;
    text-align: left;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal !important;
    hyphens: auto;
}

.aap-unique-comparison-table td:nth-child(3) {
    color: #475569;
    font-size: 14px;
    font-style: italic;
}

.aap-unique-comparison-table tr:last-child td {
    border-bottom: none;
}

.aap-unique-comparison-table tbody tr:hover td {
    background-color: #f8fafc;
}

.aap-unique-comparison-table th:nth-child(1),
.aap-unique-comparison-table td:nth-child(1) {
    width: 16%;
}

.aap-unique-comparison-table th:nth-child(2),
.aap-unique-comparison-table td:nth-child(2) {
    width: 45%;
}

.aap-unique-comparison-table th:nth-child(3),
.aap-unique-comparison-table td:nth-child(3) {
    width: 20%;
}

.aap-unique-comparison-table th:nth-child(4),
.aap-unique-comparison-table td:nth-child(4) {
    width: 19%;
}

.aap-unique-comparison-table td[data-label="Check Price"] .aap-cta-button,
.aap-unique-comparison-table .product-btn {
    white-space: nowrap;
    min-width: 130px;
    padding: 10px 20px;
    font-size: 13px;
    background: #6366f1 !important;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.aap-unique-comparison-table td[data-label="Product Image"],
.aap-unique-comparison-table td[data-label="Check Price"] {
    text-align: center !important;
}

.aap-unique-comparison-table td[data-label="Product Image"] a,
.aap-unique-comparison-table td[data-label="Check Price"] a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

/* Keep affiliate comparison table isolated from floated/sticky widgets */
.aap-content-wrapper .aap-table-container {
    clear: both;
    max-width: 100%;
    overflow-x: auto;
    position: relative;
    z-index: 1;
}

.aap-content-wrapper .aap-unique-comparison-table {
    clear: both;
    display: table;
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

.aap-content-wrapper .aap-unique-comparison-table th,
.aap-content-wrapper .aap-unique-comparison-table td {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}


/* -------------------------------------------
   6. PRODUCT CARD (Beautiful Modern UI) - FIXED
   ------------------------------------------- */
.aap-product-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 35px;
    margin: 40px 0;
    background: linear-gradient(to bottom, #ffffff, #fafbfc);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.aap-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #3b82f6;
}

.aap-card-body {
    display: flex;
    gap: 35px;
    align-items: flex-start;
}

.aap-card-content {
    flex: 1;
}

.aap-card-title {
    margin: 0 0 15px 0;
    font-size: 1.7rem;
    line-height: 1.3;
    color: #0f172a;
    font-weight: 800;
    position: relative;
    padding-bottom: 12px;
}

/* Decorative line under title */
.aap-card-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    border-radius: 2px;
}

.aap-card-meta {
    margin-bottom: 15px;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* Brand and Model styling */
.aap-card-meta strong {
    color: #1e293b;
    font-weight: 700;
}

/* Best For Badge */
.aap-card-best-for {
    display: inline-block;
    color: #0284c7;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 10px 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    padding: 6px 14px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.1);
}

/* Rating Container */
.aap-card-rating {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aap-card-rating strong {
    color: #1e293b;
    font-weight: 700;
    font-size: 1rem;
}

/* Stars Container */
.aap-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Golden Stars */
.aap-stars-color {
    color: #fbbf24;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(251, 191, 36, 0.3);
}

/* Rating Text */
.aap-rating-text {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    margin-left: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .aap-product-card {
        padding: 25px 20px;
        margin: 30px 0;
    }

    .aap-card-body {
        flex-direction: column;
        gap: 20px;
    }

    .aap-card-title {
        font-size: 1.4rem;
    }

    .aap-card-meta {
        font-size: 0.95rem;
    }

    .aap-stars-color {
        font-size: 1.1rem;
    }

    .aap-card-rating {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* -------------------------------------------
   7. SUMMARY BOXES
   ------------------------------------------- */
.aap-product-summary,
.aap-summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0f172a;
    border-radius: 8px;
    padding: 25px;
    margin: 35px 0;
}

.aap-summary-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #cbd5e1;
}

.aap-summary-row:last-child {
    border-bottom: none;
}

.aap-summary-label {
    flex: 0 0 150px;
    font-weight: 800;
    color: #334155;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.aap-summary-value {
    flex: 1;
    font-size: 1rem;
    color: #0f172a;
    font-weight: 600;
}

.aap-star-color {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-right: 5px;
}

/* Summary Card Mobile Stack */
.aap-summary-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
}

.aap-summary-label,
.aap-summary-value {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
}

.aap-summary-value {
    padding-left: 0 !important;
    word-break: break-word !important;
    /* Fixes "C a r P a i n t" issue */
}

/* -------------------------------------------
   8. FINAL VERDICT / RECOMMENDATION CARD (Pro Design)
   This is the upgraded look you wanted.
   ------------------------------------------- */
.aap-honest-opinion,
.aap-verdict-box,
.aap-summary-card {
    background: linear-gradient(to bottom right, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-left: 6px solid #6366f1;
    /* Strong Indigo Accent */
    padding: 35px;
    border-radius: 12px;
    margin: 45px 0;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
    /* Deeper shadow for pop */
    position: relative;
    overflow: hidden;
}

/* Decorative background icon effect (Optional subtle touch) */
.aap-honest-opinion::before,
.aap-verdict-box::before {
    content: "★";
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 150px;
    color: rgba(99, 102, 241, 0.05);
    /* Faint indigo star */
    z-index: 0;
    pointer-events: none;
}

.aap-honest-opinion h4,
.aap-verdict-box h4,
.aap-summary-card h3 {
    font-size: 1.4rem;
    font-weight: 900;
    color: #1e293b;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

/* Add an icon before the title */
.aap-honest-opinion h4::before,
.aap-verdict-box h4::before {
    content: "🏆";
    /* Trophy icon */
    margin-right: 10px;
    font-size: 1.2em;
}

.aap-honest-opinion p,
.aap-verdict-box p {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    color: #475569;
}

.aap-verdict-title {
    color: #2563eb;
    font-size: 1.2rem;
    font-weight: 800;
    margin-right: 8px;
}


/* -------------------------------------------
   9. PROS & CONS (BULLETPROOF BOX LOGIC)
   ------------------------------------------- */
.aap-pros-cons-wrapper {
    display: flex !important;
    flex-direction: column !important;
    /* Force vertical stacking to prevent squeezing */
    gap: 20px !important;
    margin: 30px 0 !important;
    width: 100% !important;
}

/* Base style for boxes - Works even if div wrapper is missing */
ul.aap-pros-list,
.aap-pros-box {
    background: #f0fdf4 !important;
    /* Light Green Bg */
    border: 2px solid #bbf7d0 !important;
    border-radius: 16px !important;
    padding: 25px !important;
    margin: 20px 0 !important;
    list-style: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.2s ease !important;
}

ul.aap-cons-list,
.aap-cons-box {
    background: #fef2f2 !important;
    /* Light Red Bg */
    border: 2px solid #fecaca !important;
    border-radius: 16px !important;
    padding: 25px !important;
    margin: 20px 0 !important;
    list-style: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.2s ease !important;
}

/* Hover effect for responsiveness and interactivity */
.aap-pros-box:hover,
.aap-cons-box:hover,
ul.aap-pros-list:hover,
ul.aap-cons-list:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
}

/* Title Styling inside Boxes (H4) */
.aap-pros-box h4,
.aap-cons-box h4 {
    margin-top: 0 !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.aap-pros-box h4 {
    color: #15803d !important;
}

.aap-cons-box h4 {
    color: #b91c1c !important;
}

.aap-pros-box h4::before {
    content: "👍" !important;
}

.aap-cons-box h4::before {
    content: "👎" !important;
}

/* List Item Styling - Standard for all devices */
.aap-pros-list li,
.aap-cons-list li {
    position: relative !important;
    padding-left: 32px !important;
    /* Space for icons */
    margin-bottom: 12px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    color: inherit !important;
    list-style: none !important;
    /* Removes default dots */
}

/* Custom Icons (Checkmark & Cross) */
.aap-pros-list li::before {
    content: "✔" !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    background: #22c55e !important;
    color: white !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
}

.aap-cons-list li::before {
    content: "✖" !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    background: #ef4444 !important;
    color: white !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
}

/* -------------------------------------------
 8. RELATED POSTS (Colorful & Modern)
   ------------------------------------------- */
.aap-related-posts {
    margin-top: 60px;
    padding: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.05);
}

.aap-related-posts h3 {
    margin-top: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    border-bottom: none;
    margin-bottom: 25px;
}

.aap-related-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.aap-related-posts li a {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #3b82f6;
    /* Blue Accent */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: #334155;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

/* Hover Effects for Related Posts */
.aap-related-posts li a:hover {
    transform: translateX(8px);
    background: #eff6ff;
    /* Light Blue tint */
    border-left-color: #2563eb;
    color: #1e3a8a;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.15);
}

/* Arrow Icon */
.aap-related-posts li a::after {
    content: "→";
    margin-left: auto;
    font-weight: 800;
    color: #94a3b8;
    transition: 0.3s;
}

.aap-related-posts li a:hover::after {
    color: #2563eb;
    transform: translateX(5px);
}

/* -------------------------------------------
   11. MOBILE RESPONSIVE
   ------------------------------------------- */
@media (max-width: 768px) {
    .aap-card-body {
        flex-direction: column;
    }

    .aap-product-review figure,
    .aap-review-image-container {
        width: 100%;
        max-width: 100%;
    }

    /* Reset max-width for mobile so images fill screen */
    .aap-product-review figure img,
    .aap-review-image-container img {
        max-width: 100% !important;
    }

    .aap-pros-cons-wrapper {
        grid-template-columns: 1fr;
    }

    .aap-unique-comparison-table thead {
        display: none;
    }

    .aap-unique-comparison-table,
    .aap-unique-comparison-table tbody,
    .aap-unique-comparison-table tr,
    .aap-unique-comparison-table td {
        display: block;
        width: 100%;
    }

    .aap-unique-comparison-table tr {
        margin-bottom: 25px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }

    .aap-unique-comparison-table td {
        text-align: left;
        padding: 16px 15px;
        position: relative;
        border-bottom: 1px solid #f1f5f9;
    }

    .aap-unique-comparison-table td:nth-child(2) {
        text-align: left;
    }

    .aap-unique-comparison-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 8px;
        font-weight: 800;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #94a3b8;
    }

    .aap-unique-comparison-table td:first-child {
        text-align: center;
        padding-left: 0;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }

    .aap-unique-comparison-table td:first-child::before {
        display: none;
    }

    .aap-unique-comparison-table img {
        max-width: 100px !important;
    }

    .aap-unique-comparison-table td[data-label="Check Price"] .aap-cta-button {
        min-width: 0;
        width: auto;
        max-width: 100%;
        white-space: nowrap;
    }
}

/* =========================================
   NEW MANUAL ARTICLE PREMIUM UI (v4)
   ========================================= */

.awa-ma-container {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin: 40px 0;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.awa-ma-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.awa-ma-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 25px 35px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.awa-ma-title {
    margin: 0 !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    border: none !important;
    padding: 0 !important;
}

.awa-ma-rating {
    font-size: 1.1rem;
    color: #fbbf24;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.awa-ma-rating span {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

.awa-ma-content {
    padding: 35px;
}

.awa-ma-intro {
    font-size: 1.1rem !important;
    color: #334155 !important;
    line-height: 1.7 !important;
    margin-bottom: 25px !important;
}

.awa-ma-specs {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 30px;
}

.awa-ma-specs h4 {
    margin: 0 0 15px 0 !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.awa-ma-specs h4::before {
    content: "⚡";
}

.awa-ma-specs ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.awa-ma-specs li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #475569;
    font-weight: 600;
}

.awa-ma-specs li::before {
    content: "✓";
    color: #10b981;
    font-weight: 800;
}

.awa-ma-review h4 {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 15px !important;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    display: inline-block;
}

.awa-ma-review p {
    color: #475569 !important;
    line-height: 1.8 !important;
    margin-bottom: 30px !important;
}

.awa-ma-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.awa-ma-pros, .awa-ma-cons {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.awa-ma-pros {
    border-top: 4px solid #10b981;
}

.awa-ma-cons {
    border-top: 4px solid #ef4444;
}

.awa-ma-pros h5, .awa-ma-cons h5 {
    margin: 0 0 15px 0 !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
}

.awa-ma-pros ul, .awa-ma-cons ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.awa-ma-pros li, .awa-ma-cons li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.awa-ma-pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 800;
}

.awa-ma-cons li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: 800;
}

.awa-ma-action {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed #cbd5e1;
}

.awa-ma-cta {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    transition: all 0.3s ease;
}

.awa-ma-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    filter: brightness(1.05);
}

@media (max-width: 768px) {
    .awa-ma-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .awa-ma-content {
        padding: 20px;
    }
    .awa-ma-pros-cons {
        grid-template-columns: 1fr;
    }
    .awa-ma-cta {
        display: block;
        width: 100%;
        padding: 14px 20px;
    }
}