/* 
 * Custom Single Review Page Styles 
 * Version: 1.0 - Premium review post template styling
 */

/* =========================================
   1. Container & Variables
   ========================================= */
.cb-review-container {
    --rv-gap-xs: 8px;
    --rv-gap-sm: 16px;
    --rv-gap-md: 24px;
    --rv-gap-lg: 32px;
    --rv-gap-xl: 48px;

    --rv-radius-sm: 8px;
    --rv-radius-md: 16px;
    --rv-radius-lg: 24px;

    --rv-shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05);
    --rv-shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --rv-shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.1);

    --rv-color-bg: #ffffff;
    --rv-color-bg-alt: #f8fafc;
    --rv-color-border: #e2e8f0;
    --rv-color-text-main: #0f172a;
    --rv-color-text-muted: #64748b;
    --rv-color-primary: var(--cb-color-primary, #4f46e5);
    --rv-color-success: #10b981;
    --rv-color-danger: #ef4444;
    --rv-color-warning: #f59e0b;

    max-width: var(--cb-container-wide, 1200px);
    margin: 0 auto 60px;
    padding: 0 var(--rv-gap-sm);
    font-family: var(--cb-font-main, 'Outfit', sans-serif);
    color: var(--rv-color-text-main);

    /* Map Specs Variables for reused components (Price Cards, Pros/Cons) */
    --sp-color-primary: var(--rv-color-primary);
    --sp-color-bg: var(--rv-color-bg);
    --sp-color-bg-alt: var(--rv-color-bg-alt);
    --sp-color-border: var(--rv-color-border);
    --sp-color-text-main: var(--rv-color-text-main);
    --sp-color-text-muted: var(--rv-color-text-muted);
    --sp-color-success: var(--rv-color-success);
    --sp-color-danger: var(--rv-color-danger);

    --sp-gap-sm: var(--rv-gap-sm);
    --sp-gap-md: var(--rv-gap-md);
    --sp-gap-lg: var(--rv-gap-lg);
    --sp-gap-xl: var(--rv-gap-xl);

    --sp-radius-md: var(--rv-radius-md);

    --sp-shadow-subtle: var(--rv-shadow-subtle);
    --sp-shadow-card: var(--rv-shadow-card);
    --sp-shadow-hover: var(--rv-shadow-hover);
}

/* =========================================
   2. Review Hero Section
   ========================================= */
.review-hero {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: var(--rv-gap-xl);
    margin-bottom: 60px;
    background: var(--rv-color-bg);
    padding: var(--rv-gap-lg);
    border-radius: var(--rv-radius-lg);
    box-shadow: var(--rv-shadow-card);
    border: 1px solid var(--rv-color-border);
    align-items: start;
}

.review-hero-image {
    width: 100%;
}

.review-hero-content {
    display: flex;
    flex-direction: column;
    padding-top: var(--rv-gap-xs);
}

/* Title Row */
.review-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--rv-gap-md);
    margin-bottom: var(--rv-gap-sm);
    padding-bottom: var(--rv-gap-md);
    border-bottom: 1px solid var(--rv-color-border);
}

.review-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    color: var(--rv-color-text-main);
    letter-spacing: -0.02em;
}

/* Review Score Badge */
.review-score-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(145deg, #f0fdf4, #ffffff);
    border: 2px solid #bbf7d0;
    border-radius: var(--rv-radius-md);
    padding: 14px 20px;
    box-shadow: var(--rv-shadow-subtle);
    min-width: 100px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.review-score-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
}

.review-score-badge .score-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #15803d;
    line-height: 1;
}

.review-score-badge .score-out-of {
    font-size: 1rem;
    color: #16a34a;
    font-weight: 600;
    margin-left: 2px;
}

.review-score-badge .score-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #166534;
    margin-top: 6px;
    letter-spacing: 0.03em;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Score variations */
.review-score-badge.score-9,
.review-score-badge.score-10 {
    background: linear-gradient(145deg, #f0fdf4, #ffffff);
    border-color: #86efac;
}

.review-score-badge.score-8 {
    background: linear-gradient(145deg, #ecfdf5, #ffffff);
    border-color: #a7f3d0;
}

.review-score-badge.score-7 {
    background: linear-gradient(145deg, #fef9c3, #ffffff);
    border-color: #fde047;
}

.review-score-badge.score-7::before {
    background: linear-gradient(90deg, #eab308, #ca8a04);
}

.review-score-badge.score-7 .score-value {
    color: #a16207;
}

.review-score-badge.score-5,
.review-score-badge.score-6 {
    background: linear-gradient(145deg, #fed7aa, #ffffff);
    border-color: #fdba74;
}

.review-score-badge.score-5::before,
.review-score-badge.score-6::before {
    background: linear-gradient(90deg, #f97316, #ea580c);
}

.review-score-badge.score-5 .score-value,
.review-score-badge.score-6 .score-value {
    color: #c2410c;
}

/* Quick Verdict */
.quick-verdict {
    background: var(--rv-color-bg-alt);
    border-left: 4px solid var(--rv-color-primary);
    padding: var(--rv-gap-sm) var(--rv-gap-md);
    margin-bottom: var(--rv-gap-md);
    border-radius: 0 var(--rv-radius-sm) var(--rv-radius-sm) 0;
}

.quick-verdict p {
    margin: 0;
    font-size: 1rem;
    color: var(--rv-color-text-main);
    font-style: italic;
    line-height: 1.6;
}

/* Specs Link Button */
.specs-link-row {
    margin-top: var(--rv-gap-md);
    text-align: center;
}

.btn-view-specs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--rv-color-primary);
    border: 2px solid var(--rv-color-primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-view-specs:hover {
    background: var(--rv-color-primary);
    color: #fff;
}

/* =========================================
   3. Table of Contents
   ========================================= */
.review-toc {
    background: var(--rv-color-bg);
    border: 1px solid var(--rv-color-border);
    border-radius: var(--rv-radius-md);
    padding: var(--rv-gap-lg);
    margin-bottom: 50px;
}

.toc-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rv-color-text-main);
    margin: 0 0 var(--rv-gap-md) 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-title svg {
    width: 20px;
    height: 20px;
    fill: var(--rv-color-primary);
}

.toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc-counter;
}

.toc-list li {
    counter-increment: toc-counter;
}

.toc-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--rv-color-bg-alt);
    border-radius: var(--rv-radius-sm);
    text-decoration: none;
    color: var(--rv-color-text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.toc-list li a::before {
    content: counter(toc-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--rv-color-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.toc-list li a:hover {
    background: #e0e7ff;
    color: var(--rv-color-primary);
}

/* =========================================
   4. Category Scores
   ========================================= */
.review-category-scores {
    background: var(--rv-color-bg);
    border: 1px solid var(--rv-color-border);
    border-radius: var(--rv-radius-md);
    padding: var(--rv-gap-lg);
    margin-bottom: 50px;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rv-color-text-main);
    margin: 0 0 var(--rv-gap-lg) 0;
    padding-bottom: var(--rv-gap-sm);
    border-bottom: 2px solid #f1f5f9;
}

.scores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--rv-gap-md);
}

.score-item {
    padding: var(--rv-gap-sm) 0;
}

.score-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.score-category-label {
    font-weight: 600;
    color: var(--rv-color-text-main);
    font-size: 0.95rem;
}

.score-category-value {
    font-weight: 700;
    color: var(--rv-color-primary);
    font-size: 0.95rem;
}

.score-bar-container {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.score-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--rv-color-primary), #818cf8);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* =========================================
   5. Content Sections
   ========================================= */
.review-content-sections {
    margin-bottom: 50px;
}

.review-section {
    background: var(--rv-color-bg);
    border: 1px solid var(--rv-color-border);
    border-radius: var(--rv-radius-md);
    padding: var(--rv-gap-lg);
    margin-bottom: var(--rv-gap-lg);
    scroll-margin-top: 100px;
}

.review-section .section-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--rv-color-text-main);
}

.review-section .section-content a {
    color: var(--rv-color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.review-section .section-content a:hover {
    color: #4338ca;
    text-decoration-thickness: 2px;
}

.review-section .section-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rv-color-text-main);
    margin: 1.5em 0 0.75em 0;
}

.review-section .section-content p {
    margin-bottom: 1em;
}

.review-section .section-content ul,
.review-section .section-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.review-section .section-content li {
    margin-bottom: 0.5em;
}

/* =========================================
   6. Best For / Not Ideal For
   ========================================= */
.best-for-section {
    margin-bottom: 50px;
}

.best-for-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--rv-gap-lg);
}

.best-for-box,
.not-ideal-box {
    background: var(--rv-color-bg);
    border-radius: var(--rv-radius-md);
    padding: var(--rv-gap-lg);
    border: 1px solid var(--rv-color-border);
}

.best-for-box {
    border-top: 4px solid var(--rv-color-success);
}

.not-ideal-box {
    border-top: 4px solid var(--rv-color-danger);
}

.best-for-title,
.not-ideal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 var(--rv-gap-md) 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.best-for-title {
    color: var(--rv-color-success);
}

.not-ideal-title {
    color: var(--rv-color-danger);
}

.best-for-title svg,
.not-ideal-title svg {
    width: 20px;
    height: 20px;
}

.best-for-title svg {
    fill: var(--rv-color-success);
}

.not-ideal-title svg {
    fill: var(--rv-color-danger);
}

.best-for-list,
.not-ideal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.best-for-list li,
.not-ideal-list li {
    position: relative;
    padding: 10px 0 10px 28px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.best-for-list li:last-child,
.not-ideal-list li:last-child {
    border-bottom: none;
}

.best-for-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--rv-color-success);
    font-weight: 700;
}

.not-ideal-list li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: var(--rv-color-danger);
    font-weight: 700;
}

/* =========================================
   7. FAQ Section
   ========================================= */
.review-faq-section {
    margin-bottom: 50px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--rv-gap-sm);
}

.faq-item {
    background: var(--rv-color-bg);
    border: 1px solid var(--rv-color-border);
    border-radius: var(--rv-radius-md);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item[open] {
    border-color: var(--rv-color-primary);
    box-shadow: var(--rv-shadow-card);
}

.faq-question {
    padding: var(--rv-gap-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1rem;
    color: var(--rv-color-text-main);
    list-style: none;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--rv-color-bg-alt);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.faq-icon svg {
    width: 14px;
    height: 14px;
    fill: var(--rv-color-text-muted);
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-item[open] .faq-icon svg {
    fill: var(--rv-color-primary);
}

.faq-answer {
    padding: 0 var(--rv-gap-md) var(--rv-gap-md);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--rv-color-text-main);
    border-top: 1px solid #f1f5f9;
    margin-top: -1px;
    padding-top: var(--rv-gap-md);
}

.faq-answer p {
    margin: 0 0 1em 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* =========================================
   8. Verdict Section
   ========================================= */
.review-verdict-section {
    margin-bottom: 50px;
}

.verdict-card {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border-radius: var(--rv-radius-lg);
    padding: var(--rv-gap-xl);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.verdict-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.verdict-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 var(--rv-gap-lg) 0;
    position: relative;
}

.verdict-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--rv-gap-lg);
    position: relative;
}

.verdict-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 4px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--rv-gap-sm);
}

.verdict-score-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.verdict-score-out-of {
    font-size: 1.1rem;
    opacity: 0.9;
}

.verdict-rating-label {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.verdict-content {
    max-width: 800px;
    margin: 0 auto var(--rv-gap-lg);
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
}

.verdict-bottom-line {
    background: rgba(255, 255, 255, 0.15);
    padding: var(--rv-gap-md);
    border-radius: var(--rv-radius-sm);
    max-width: 700px;
    margin: 0 auto var(--rv-gap-lg);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
}

.verdict-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--rv-gap-sm);
    position: relative;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-link:hover {
    background: #fff;
    color: var(--rv-color-primary);
}

.cta-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* =========================================
   9. Carousels Section
   ========================================= */
.review-carousels-section {
    margin-top: 60px;
}

/* =========================================
   10. Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .review-hero {
        grid-template-columns: 300px 1fr;
        gap: var(--rv-gap-lg);
    }

    .scores-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .review-hero {
        grid-template-columns: 1fr;
        padding: var(--rv-gap-md) var(--rv-gap-sm);
    }

    .review-hero-image {
        max-width: 350px;
        margin: 0 auto 20px;
        padding: var(--rv-gap-sm);
    }

    .review-title {
        font-size: 1.75rem;
    }

    .review-title-row {
        flex-direction: column;
        gap: var(--rv-gap-md);
    }

    .review-score-badge {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 18px;
        min-width: auto;
        padding: 16px 24px;
    }

    .review-score-badge .score-value {
        font-size: 2.2rem;
    }

    .review-score-badge .score-out-of {
        font-size: 1.1rem;
    }

    .quick-verdict {
        padding: var(--rv-gap-md) var(--rv-gap-md);
        font-size: 1rem;
        margin-bottom: var(--rv-gap-md);
    }

    /* Enhanced TOC for better touch targets */
    .toc-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .toc-list li a {
        padding: 14px 18px;
        font-size: 1rem;
    }

    /* Gallery Navigation - Larger touch targets */
    .gallery-nav {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .best-for-grid {
        grid-template-columns: 1fr;
        gap: var(--rv-gap-lg);
    }

    .best-for-list li,
    .not-ideal-list li {
        padding: 12px 0 12px 32px;
        font-size: 1rem;
    }

    .verdict-card {
        padding: var(--rv-gap-lg) var(--rv-gap-md);
    }

    .verdict-title {
        font-size: 1.5rem;
    }

    .verdict-score-value {
        font-size: 2.5rem;
    }

    .verdict-score-circle {
        width: 105px;
        height: 105px;
    }

    /* FAQ with better touch targets */
    .faq-question {
        padding: var(--rv-gap-md) var(--rv-gap-md);
        font-size: 1rem;
        min-height: 60px;
    }

    .faq-answer {
        padding: var(--rv-gap-md);
        font-size: 1rem;
        line-height: 1.7;
    }

    /* CTA Buttons spacing */
    .verdict-cta {
        gap: var(--rv-gap-md);
    }

    .cta-link {
        padding: 14px 26px;
        font-size: 1rem;
        min-height: 48px;
    }



    .verdict-card {
        padding: var(--rv-gap-lg);
    }

    .verdict-title {
        font-size: 1.4rem;
    }

    .verdict-score-circle {
        width: 100px;
        height: 100px;
    }

    .verdict-score-value {
        font-size: 2.5rem;
    }

    .verdict-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cb-review-container {
        padding: 0 14px;
        margin-bottom: 40px;
    }

    .review-hero {
        padding: var(--rv-gap-md);
        margin-bottom: 40px;
    }

    .review-toc,
    .review-category-scores,
    .review-section,
    .best-for-box,
    .not-ideal-box {
        padding: var(--rv-gap-md);
        margin-bottom: var(--rv-gap-lg);
    }

    .faq-item {
        margin-bottom: var(--rv-gap-sm);
    }

    /* Optimized Typography for small screens */
    .review-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .section-heading {
        font-size: 1.15rem;
        margin-bottom: var(--rv-gap-md);
    }

    .toc-title {
        font-size: 1.1rem;
    }

    .verdict-title {
        font-size: 1.3rem;
    }

    .verdict-score-circle {
        width: 95px;
        height: 95px;
    }

    .verdict-score-value {
        font-size: 2.2rem;
    }

    /* Key Specs - Single column */
    .key-specs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .key-spec-item {
        padding: 14px;
    }

    /* Score badges - Refined sizing */
    .review-score-badge .score-value {
        font-size: 2rem;
    }

    .review-score-badge .score-out-of {
        font-size: 1rem;
    }

    .review-score-badge .score-label {
        font-size: 0.65rem;
        padding: 3px 10px;
    }

    /* Category Scores */
    .score-category-label,
    .score-category-value {
        font-size: 0.9rem;
    }

    /* Comfortable touch spacing */
    .toc-list li a {
        padding: 16px 20px;
    }

    .faq-question {
        padding: 18px 16px;
        font-size: 0.95rem;
    }

    /* Best For items */
    .best-for-list li,
    .not-ideal-list li {
        padding: 14px 0 14px 34px;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .best-for-title,
    .not-ideal-title {
        font-size: 1rem;
    }

    /* Section content readability */
    .review-section .section-content {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .review-section .section-content h3 {
        font-size: 1.1rem;
        margin-top: 1.25em;
    }

    /* Verdict CTA buttons */
    .cta-link {
        width: 100%;
        max-width: 100%;
        padding: 16px 24px;
        justify-content: center;
    }

    .verdict-content {
        font-size: 1rem;
    }

    .verdict-bottom-line {
        font-size: 0.95rem;
        padding: var(--rv-gap-md);
    }
}

/* =========================================
   11. Inherit from Specs Styles
   ========================================= */
/* Price cards and pros/cons use existing specs styles */
.cb-review-container .pros-cons-section,
.cb-review-container .prices-section,
.cb-review-container .price-card,
.cb-review-container .key-specs-grid,
.cb-review-container .key-spec-item,
.cb-review-container .product-gallery-carousel {
    /* Inherit display properties from custom-specs.css */
    box-sizing: border-box;
}

/* =========================================
   12. SEO & Internal Links Section
   ========================================= */
.review-seo-explore-section {
    background: #fff;
    border-radius: var(--rv-radius-lg);
    padding: var(--rv-gap-xl);
    margin-top: var(--rv-gap-xl);
    box-shadow: var(--rv-shadow-card);
    border: 1px solid var(--rv-color-border);
}

.seo-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--rv-gap-lg);
    margin-top: var(--rv-gap-md);
}

@media (max-width: 1024px) {
    .seo-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .seo-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.seo-link-column h3 {
    font-size: 1.1rem;
    color: var(--rv-color-text-main);
    margin-bottom: var(--rv-gap-md);
    font-weight: 600;
    border-bottom: 2px solid var(--rv-color-bg-alt);
    padding-bottom: 8px;
    display: inline-block;
}

.seo-link-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-link-column ul li {
    margin-bottom: 8px;
}

.seo-link-column ul li a {
    color: var(--rv-color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.seo-link-column ul li a:hover {
    color: var(--rv-color-primary);
    transform: translateX(4px);
}

.seo-link-column ul li a::before {
    content: "›";
    font-size: 1.2rem;
    line-height: 1;
    color: var(--rv-color-bg-alt);
    transition: color 0.2s;
}

.seo-link-column ul li a:hover::before {
    color: var(--rv-color-primary);
}

/* Review Card Styles for Carousel */
.review-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--rv-color-border);
    border-radius: var(--rv-radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rv-shadow-hover);
    border-color: var(--rv-color-primary);
}

.review-card .card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-card .card-image {
    position: relative;
    padding-bottom: 60%;
    /* Aspect Ratio */
    background: var(--rv-color-bg-alt);
    overflow: hidden;
}

.review-card .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.review-card:hover .card-image img {
    transform: scale(1.05);
}

.review-card .card-score {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--rv-color-success);
    /* Fallback */
    color: #fff;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.review-card .card-score.score-9,
.review-card .card-score.score-10 {
    background: #10b981;
}

.review-card .card-score.score-8 {
    background: #3b82f6;
}

.review-card .card-score.score-7 {
    background: #f59e0b;
}

.review-card .card-score.score-6 {
    background: #f97316;
}

.review-card .card-score.score-5,
.review-card .card-score.score-4 {
    background: #ef4444;
}

.review-card .card-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card .card-title {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 12px 0;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-card .read-more-link {
    font-size: 0.85rem;
    color: var(--rv-color-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-card:hover .read-more-link {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .review-seo-explore-section {
        padding: var(--rv-gap-lg);
    }
}

/* =========================================
   13. Related Reviews Grid (Clean & Responsive)
   ========================================= */
.review-grids-section {
    margin-top: var(--sp-gap-xl);
}

.review-grid-wrapper {
    margin-bottom: var(--sp-gap-xl);
}

.review-grid-wrapper .section-heading-sm {
    margin-bottom: var(--rv-gap-md);
    color: var(--rv-color-text-main);
}

/* Grid System: 4 Columns desktop, 2 tablet, 1 mobile */
.review-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-gap-md);
}

@media (max-width: 1024px) {
    .review-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    /* Section heading for better hierarchy */
    .review-grid-wrapper .section-heading-sm {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .review-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .review-grid-card .card-content {
        padding: 16px;
    }

    .review-grid-card .card-title {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .review-grid-card .read-more-link {
        font-size: 0.85rem;
        padding: 6px 0;
    }
}

/* Better breakpoint for single column on mobile */
/* Better breakpoint for mobile optimization */
@media (max-width: 600px) {

    /* Section heading optimized for mobile */
    .review-grid-wrapper .section-heading-sm {
        font-size: 1.15rem;
        margin-bottom: 18px;
    }

    /* Maintain 2 columns for better browsing experience */
    .review-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .review-grid-card .card-content {
        padding: 14px;
    }

    .review-grid-card .card-title {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .review-grid-card .read-more-link {
        font-size: 0.8rem;
        padding: 4px 0;
    }

    .review-grid-card .card-score {
        padding: 4px 8px;
        font-size: 0.8rem;
        bottom: 6px;
        right: 6px;
    }
}

/* Optimization for very small screens */
@media (max-width: 480px) {
    .review-grid {
        gap: 12px;
    }

    .review-grid-card .card-image {
        padding-bottom: 100%;
        /* 1:1 aspect ratio for compact look */
    }

    .review-grid-card .card-image img {
        width: 90%;
        height: 90%;
    }

    .review-grid-card .card-content {
        padding: 12px;
    }

    .review-grid-card .card-title {
        font-size: 0.85rem;
        line-height: 1.35;
        height: 2.7em;
        /* Limit to 2 lines visual height */
        overflow: hidden;
    }
}

/* Review Grid Card Styles */
.review-grid-card {
    background: #fff;
    border: 1px solid var(--sp-color-border);
    border-radius: var(--sp-radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.review-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sp-shadow-hover);
    border-color: var(--sp-color-primary);
}

.review-grid-card .card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-grid-card .card-image {
    position: relative;
    padding-bottom: 75%;
    /* Aspect Ratio 4:3 */
    background: #fff;
    overflow: hidden;
    width: 100%;
    border-bottom: 1px solid var(--sp-color-border);
}

.review-grid-card .card-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.review-grid-card:hover .card-image img {
    transform: translate(-50%, -50%) scale(1.08);
    /* Enhance hover with scale */
}

.review-grid-card .card-score {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--sp-color-success);
    color: #fff;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.review-grid-card .card-score.score-9,
.review-grid-card .card-score.score-10 {
    background: #10b981;
}

.review-grid-card .card-score.score-8 {
    background: #3b82f6;
}

.review-grid-card .card-score.score-7 {
    background: #f59e0b;
}

.review-grid-card .card-score.score-6 {
    background: #f97316;
}

.review-grid-card .card-score.score-5,
.review-grid-card .card-score.score-4 {
    background: #ef4444;
}

.review-grid-card .card-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.review-grid-card .card-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 10px 0;
    font-weight: 600;
    color: var(--sp-color-text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-grid-card .read-more-link {
    font-size: 0.85rem;
    color: var(--sp-color-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.review-grid-card:hover .read-more-link {
    text-decoration: underline;
}