/**
 * custom-comparison.css
 * 
 * Styles for comparison post template.
 * Reuses design tokens from the main theme (--cb-* variables).
 * The spec comparison table reuses classes from custom-compare.css.
 *
 * @since 1.3.0
 */

/* Override any global img box-shadow (e.g. from Customizer Additional CSS)
   for all images inside the comparison page card sections */
.cb-similar-product-card img,
.cb-review-card img,
.cb-sp-img-link img,
.cb-review-card-img img,
.cb-comparison-product-img img,
.cb-prod-thumb img {
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}


/* ========================================
   Container
======================================== */
.cb-comparison-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    font-family: var(--cb-font-main, 'Outfit', sans-serif);
    color: #1e293b;
}

/* ========================================
   Hero Section
======================================== */
.cb-comparison-hero {
    text-align: center;
    margin-bottom: 50px;
    padding: 50px 20px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f5f3ff 100%);
    border-radius: 24px;
    position: relative;
}

.cb-comparison-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.cb-comparison-hero-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.cb-comparison-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.cb-comparison-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0 0 20px 0;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cb-comparison-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cb-comparison-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #64748b;
}

.cb-comparison-meta-item svg {
    width: 14px;
    height: 14px;
    fill: #94a3b8;
}

.cb-comparison-keyword-badge {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Product Cards Row */
.cb-comparison-products-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cb-comparison-product-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cb-comparison-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.cb-comparison-product-img {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.cb-comparison-product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cb-comparison-product-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cb-comparison-product-name:hover {
    color: #6366f1;
}

.cb-comparison-product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #6366f1;
    margin-bottom: 10px;
}

.cb-comparison-product-buy {
    display: inline-block;
    padding: 6px 18px;
    background: var(--cb-gradient-primary-btn, linear-gradient(135deg, #6366f1, #818cf8));
    color: #fff;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--cb-transition-smooth, all 0.3s ease);
}

.cb-comparison-product-buy:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    color: #fff;
}

.cb-comparison-vs-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
}

/* ========================================
   Table of Contents
======================================== */
.cb-comparison-toc {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.cb-comparison-toc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
}

.cb-comparison-toc-title svg {
    width: 18px;
    height: 18px;
    fill: #6366f1;
}

.cb-comparison-toc-nav ol {
    margin: 0;
    padding-left: 24px;
    list-style-type: decimal;
}

.cb-comparison-toc-nav li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.cb-comparison-toc-nav a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.cb-comparison-toc-nav a:hover {
    color: #6366f1;
}

/* ========================================
   Quick Verdict
======================================== */
.cb-comparison-verdict-section {
    margin-bottom: 50px;
}

.cb-comparison-verdict-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.cb-comparison-verdict-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid #e2e8f0;
    transition: border-color 0.3s ease;
}

.cb-comparison-verdict-card:hover {
    border-color: #6366f1;
}

.cb-verdict-a {
    border-top: 3px solid #6366f1;
}

.cb-verdict-b {
    border-top: 3px solid #f59e0b;
}

.cb-verdict-card-header {
    margin-bottom: 12px;
}

.cb-verdict-label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.cb-verdict-product-name {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    margin: 4px 0;
}

.cb-verdict-reasons {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
}

.cb-verdict-reasons br+br {
    display: none;
}

.cb-comparison-winner-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #fef3c7, #fef9c3);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 20px 24px;
}

.cb-winner-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.cb-winner-content {
    flex: 1;
}

.cb-winner-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #92400e;
    margin-bottom: 4px;
}

.cb-winner-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #92400e;
}

.cb-winner-reason {
    font-size: 0.95rem;
    color: #a16207;
}

/* ========================================
   Expandable Review Wrapper
======================================== */
.cb-comparison-review-wrapper {
    margin-bottom: 50px;
}

.cb-comparison-review-expandable {
    position: relative;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cb-comparison-review-expandable.is-expanded {
    max-height: none;
}

/* Gradient fade overlay */
.cb-review-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 50%, #fff 100%);
    pointer-events: none;
    z-index: 2;
}

/* Toggle button */
.cb-review-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    margin-top: 16px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border: 2px solid #c7d2fe;
    border-radius: 12px;
    color: #6366f1;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cb-review-toggle-btn:hover {
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
    border-color: #818cf8;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.cb-review-toggle-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.cb-review-toggle-btn.is-expanded svg {
    transform: rotate(180deg);
}

/* Content Sections (inside review wrapper) */
.cb-comparison-content-sections {
    margin-bottom: 0;
}

.cb-comparison-content-section {
    margin-bottom: 40px;
    scroll-margin-top: 80px;
}

.cb-comparison-section-body {
    font-size: 1.02rem;
    line-height: 1.85;
    color: #334155;
}

.cb-comparison-section-body p {
    margin-bottom: 16px;
}

.cb-comparison-section-body ul,
.cb-comparison-section-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.cb-comparison-section-body li {
    margin-bottom: 6px;
}

.cb-comparison-section-body strong {
    color: #1e293b;
}

.cb-comparison-section-body a {
    color: #6366f1;
    text-decoration: underline;
}

.cb-comparison-section-body a:hover {
    color: #4f46e5;
}

/* ========================================
   Specs Comparison
======================================== */
.cb-comparison-specs-section {
    margin-bottom: 50px;
    scroll-margin-top: 80px;
}

/* Table styling is inherited from custom-compare.css */

/* ========================================
   FAQ Section
======================================== */
.cb-comparison-faq-section {
    margin-bottom: 50px;
    scroll-margin-top: 80px;
}

.cb-comparison-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cb-comparison-faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.cb-comparison-faq-item:hover {
    border-color: #c7d2fe;
}

.cb-comparison-faq-item[open] {
    border-color: #6366f1;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

.cb-comparison-faq-question {
    padding: 18px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
}

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

.cb-faq-toggle-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.cb-faq-toggle-icon svg {
    width: 16px;
    height: 16px;
    fill: #94a3b8;
}

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

.cb-comparison-faq-answer {
    padding: 0 24px 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
}

/* ========================================
   SEO Section Title (reuse from specs)
======================================== */
.cb-comparison-container .seo-section-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    letter-spacing: -0.01em;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 768px) {
    .cb-comparison-container {
        padding: 16px 14px 40px;
    }

    .cb-comparison-hero {
        padding: 28px 14px 22px;
        border-radius: 14px;
        margin-bottom: 28px;
    }

    .cb-comparison-title {
        font-size: 1.5rem;
    }

    .cb-comparison-subtitle {
        font-size: 0.92rem;
    }

    .cb-comparison-intro {
        font-size: 0.9rem;
        padding: 0 4px;
    }

    .cb-comparison-products-row {
        gap: 10px;
    }

    .cb-comparison-product-card {
        width: 140px;
        padding: 14px 10px;
    }

    .cb-comparison-product-img {
        width: 72px;
        height: 72px;
    }

    .cb-comparison-product-name {
        font-size: 0.8rem;
    }

    .cb-comparison-product-price {
        font-size: 0.95rem;
    }

    .cb-comparison-product-buy {
        padding: 5px 14px;
        font-size: 0.75rem;
    }

    .cb-comparison-vs-badge {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }

    .cb-comparison-verdict-grid {
        grid-template-columns: 1fr;
    }

    .cb-comparison-verdict-card {
        padding: 16px;
    }

    .cb-comparison-winner-banner {
        padding: 14px 16px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .cb-comparison-toc {
        padding: 16px 18px;
        border-radius: 12px;
    }

    .cb-comparison-toc-nav ol {
        padding-left: 18px;
    }

    .cb-comparison-section-body {
        font-size: 0.93rem;
        line-height: 1.75;
    }

    .cb-comparison-faq-question {
        padding: 13px 16px;
        font-size: 0.93rem;
    }

    .cb-comparison-faq-answer {
        padding: 0 16px 14px;
        font-size: 0.88rem;
    }

    .cb-review-toggle-btn {
        font-size: 0.88rem;
        padding: 11px 16px;
    }

    .cb-comparison-container .seo-section-title {
        font-size: 1.2rem;
    }

    /* Specs table — right-side scroll hint shadow */
    .cb-compare-table-wrapper {
        position: relative;
    }

    .cb-compare-table-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 28px;
        height: 100%;
        background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 100%);
        pointer-events: none;
        border-radius: 0 12px 12px 0;
        z-index: 5;
    }
}

@media (max-width: 480px) {
    .cb-comparison-container {
        padding: 12px 12px 32px;
    }

    .cb-comparison-title {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .cb-comparison-hero {
        padding: 22px 12px 18px;
        margin-bottom: 22px;
    }

    .cb-comparison-products-row {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .cb-comparison-product-card {
        width: 100%;
        max-width: 100%;
        flex-direction: row;
        padding: 12px 14px;
        gap: 14px;
        border-radius: 12px;
    }

    .cb-comparison-product-img {
        width: 64px;
        height: 64px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .cb-comparison-product-name {
        text-align: left;
        font-size: 0.82rem;
    }

    .cb-comparison-product-price {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .cb-comparison-vs-badge {
        width: 28px;
        height: 28px;
        font-size: 0.62rem;
        align-self: center;
    }

    .cb-comparison-meta {
        gap: 8px;
    }

    .cb-verdict-product-name {
        font-size: 0.97rem;
    }

    .cb-winner-icon {
        font-size: 1.6rem;
    }

    .cb-winner-name {
        font-size: 0.97rem;
    }

    .cb-winner-reason {
        font-size: 0.82rem;
    }

    .cb-comparison-winner-banner {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 14px;
    }

    .cb-comparison-toc {
        padding: 14px 14px;
        border-radius: 10px;
    }

    .cb-comparison-toc-nav ol {
        padding-left: 14px;
    }

    .cb-comparison-toc-nav li {
        font-size: 0.88rem;
        margin-bottom: 6px;
    }

    .cb-comparison-container .seo-section-title {
        font-size: 1.1rem;
    }
}

/* ========================================
   Intro Paragraph
======================================== */
.cb-comparison-intro {
    font-size: 0.97rem;
    line-height: 1.75;
    color: #475569;
    max-width: 720px;
    margin: 20px auto 0;
    text-align: center;
    padding: 0 10px;
}

.cb-comparison-intro strong {
    color: #1e293b;
    font-weight: 700;
}

/* ========================================
   Topical Authority Sections (shared)
======================================== */
.cb-ta-section {
    margin-bottom: 56px;
}

.cb-ta-section-header {
    margin-bottom: 24px;
}

.cb-ta-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.cb-ta-section-title svg {
    display: none;
}

.cb-ta-section-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 6px 0 0 0;
}

.cb-ta-view-all {
    text-align: right;
    margin-top: 20px;
}

.cb-ta-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #6366f1;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.cb-ta-view-all-link:hover {
    color: #4f46e5;
    border-color: #6366f1;
}

/* ========================================
   Related Comparisons Grid
======================================== */
.cb-related-comparisons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.cb-related-comparison-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.cb-related-comparison-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    transform: scaleY(0);
    transition: transform 0.25s ease;
    transform-origin: bottom;
}

.cb-related-comparison-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.cb-related-comparison-card:hover::before {
    transform: scaleY(1);
}

.cb-rcomp-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cb-rcomp-icon svg {
    width: 16px;
    height: 16px;
    fill: #6366f1;
}

.cb-rcomp-title {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1e293b;
}

.cb-rcomp-date {
    font-size: 0.78rem;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
}

.cb-rcomp-arrow {
    font-size: 1rem;
    color: #cbd5e1;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.cb-related-comparison-card:hover .cb-rcomp-arrow {
    color: #6366f1;
    transform: translateX(3px);
}

/* ========================================
   Similar Products Grid
======================================== */
.cb-similar-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.cb-similar-product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cb-similar-product-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
    transform: translateY(-3px);
}

.cb-sp-img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    background: #fff;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
}

.cb-sp-img-link img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 10px;
}

.cb-sp-info {
    padding: 10px 12px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cb-sp-name {
    font-size: 0.83rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cb-sp-name:hover {
    color: #6366f1;
}

.cb-sp-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #6366f1;
}

.cb-sp-compare-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border-top: 1px solid #e2e8f0;
    transition: background 0.2s, color 0.2s;
}

.cb-sp-compare-link:hover {
    background: linear-gradient(135deg, #eef2ff, #ede9fe);
    color: #6366f1;
}

.cb-sp-compare-link svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

/* ========================================
   Latest Reviews Grid
======================================== */
.cb-latest-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.cb-review-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cb-review-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.cb-review-card-img {
    height: 160px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-review-card-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.4s ease;
}

.cb-review-card:hover .cb-review-card-img img {
    transform: scale(1.04);
}

.cb-review-card-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cb-review-card-date {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.cb-review-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cb-review-card:hover .cb-review-card-title {
    color: #6366f1;
}

.cb-review-card-excerpt {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Responsive — Topical Authority Sections
======================================== */
@media (max-width: 768px) {
    .cb-ta-section-title {
        font-size: 1.2rem;
    }

    .cb-related-comparisons-grid {
        grid-template-columns: 1fr;
    }

    .cb-similar-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .cb-latest-reviews-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .cb-similar-products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .cb-latest-reviews-grid {
        grid-template-columns: 1fr;
    }

    .cb-review-card {
        flex-direction: row;
    }

    .cb-review-card-img {
        width: 90px;
        height: 90px;
        flex-shrink: 0;
        aspect-ratio: auto;
    }

    .cb-ta-section {
        margin-bottom: 36px;
    }

    .cb-ta-view-all {
        margin-top: 14px;
    }

    .cb-ta-section-title {
        font-size: 1.1rem;
        padding-bottom: 10px;
    }
}

/* ========================================
   Recently Added Comparisons Section
   (spacing inherited from .cb-ta-section)
======================================== */
.cb-recent-comparisons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

/* Reuse .cb-related-comparison-card styles — no extra overrides needed */

@media (max-width: 768px) {
    .cb-recent-comparisons-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cb-recent-comparisons-grid {
        gap: 8px;
    }

    .cb-rcomp-date {
        display: none;
        /* save space on tiny screens */
    }
}