/* Block Editor Styles */
.ssp-comparison-block {
    flex: 1;
    min-width: 0;
    margin: 10px;
}

.ssp-block-preview {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background: #f9f9f9;
    margin-top: 10px;
}

.ssp-block-preview h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.ssp-block-preview .preview-info {
    font-size: 13px;
    color: #666;
}

.ssp-block-preview .preview-info p {
    margin: 5px 0;
}

.ssp-block-preview ul {
    margin: 10px 0 0 0;
    padding-left: 0;
    list-style: none;
}

.ssp-block-preview li {
    margin: 3px 0;
    color: #888;
    font-style: italic;
}

/* Frontend Styles */
.ssp-comparison-container {
    width: 50%;
    float: left;
    padding: 0 10px;
    box-sizing: border-box;
}

.comparison-kb,
.comparison-other {
    width: 100%;
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background: #fafafa;
    box-sizing: border-box;
    margin-bottom: 20px;
}

/* Clear floats after comparison blocks */
.ssp-comparison-container:nth-child(2n)::after {
    content: "";
    display: table;
    clear: both;
}

.comparison-kb h2,
.comparison-other h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
}

.comparison-kb ul,
.comparison-other ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comparison-kb li,
.comparison-other li {
    margin: 8px 0;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.comparison-kb li:last-child,
.comparison-other li:last-child {
    border-bottom: none;
}

.comparison-kb a,
.comparison-other a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.comparison-kb a:hover,
.comparison-other a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ssp-comparison-block {
        margin: 10px 0;
    }

    .ssp-comparison-container {
        width: 100%;
        float: none;
        padding: 0;
    }
}

/* ==========================================================================
   Product CTA Block
   ========================================================================== */

.ssp-product-cta {
    clear: both;
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    border-radius: 8px;
    padding: 22px 28px;
    margin: 0 0 28px;
}

.ssp-product-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.ssp-product-cta-tagline {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.ssp-product-cta-btn {
    display: inline-block;
    background: #fff;
    color: #005177;
    padding: 10px 22px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.ssp-product-cta-btn:hover {
    background: #e8f4fa;
    color: #003d57;
    text-decoration: none;
}

/* ==========================================================================
   Tabbed Blocks (KB + Articles)
   ========================================================================== */

.ssp-tabbed-block {
    border: 1px solid #dde3e8;
    border-radius: 8px;
    background: #fafafa;
    margin: 0 0 28px;
    overflow: hidden;
}

/* Header: heading + "view all" link */
.ssp-tabbed-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 22px 24px 0;
    gap: 12px;
    flex-wrap: wrap;
}

.ssp-tabbed-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    border: none;
    padding: 0;
}

.ssp-view-all-link {
    font-size: 13px;
    color: #0073aa;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.ssp-view-all-link:hover {
    text-decoration: underline;
    color: #005177;
}

/* Tab navigation bar */
.ssp-tab-nav {
    display: flex;
    padding: 14px 24px 0;
    border-bottom: 2px solid #dde3e8;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
}

.ssp-tab-nav::-webkit-scrollbar {
    display: none;
}

/* Individual tab buttons */
.ssp-tab-btn {
    background: none !important;
    background-color: transparent !important;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 7px 14px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #555 !important;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 4px 4px 0 0 !important;
    transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
    line-height: 1.3;
}

.ssp-tab-btn:hover {
    color: #0073aa !important;
    background: #f5f9fc !important;
    background-color: #f5f9fc !important;
    border-radius: 4px 4px 0 0 !important;
}

.ssp-tab-btn.ssp-tab-active,
.ssp-tab-btn[aria-selected="true"] {
    color: #0073aa !important;
    border-bottom-color: #0073aa;
    font-weight: 600;
    background: none !important;
    background-color: transparent !important;
    border-radius: 4px 4px 0 0 !important;
}

/* Tab panel wrapper */
.ssp-tab-panels {
    padding: 20px 24px 16px;
}

.ssp-tab-panel[hidden] {
    display: none;
}

/* Article list inside each panel */
.ssp-article-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    columns: 2;
    column-gap: 32px;
}

.ssp-article-list li {
    margin: 0 0 9px;
    padding: 0;
    break-inside: avoid;
    border-bottom: none;
}

.ssp-article-list a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.45;
}

.ssp-article-list a::before {
    content: "→";
    color: #0073aa;
    flex-shrink: 0;
    font-size: 12px;
    margin-top: 2px;
}

.ssp-article-list a:hover {
    color: #0073aa;
    text-decoration: underline;
}

/* Per-tab "view all" footer link */
.ssp-tab-view-all {
    display: inline-block;
    font-size: 13px;
    color: #0073aa;
    text-decoration: none;
    border-top: 1px solid #eef1f4;
    padding-top: 12px;
    margin-top: 4px;
    width: 100%;
}

.ssp-tab-view-all:hover {
    text-decoration: underline;
    color: #005177;
}

/* ==========================================================================
   Product Description Block
   ========================================================================== */

.ssp-product-description {
    background: #f5f9fc;
    border-left: 4px solid #0073aa;
    border-radius: 0 6px 6px 0;
    padding: 16px 20px;
    margin: 0 0 24px;
}

.ssp-product-description p {
    margin: 0 0 8px;
    line-height: 1.6;
    font-size: 15px;
    color: #333;
}

.ssp-product-description p:last-child {
    margin-bottom: 0;
}

.ssp-product-description ul,
.ssp-product-description ol {
    margin: 6px 0 0 0;
    padding-left: 22px;
}

.ssp-product-description li {
    margin: 5px 0;
    line-height: 1.5;
    font-size: 14px;
    color: #333;
}

/* ==========================================================================
   Product Reviews Block
   ========================================================================== */

.ssp-product-reviews {
    margin: 0 0 28px;
}

.ssp-product-reviews > h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
    padding: 0;
    border: none;
}

.ssp-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ssp-review-card {
    background: #fff;
    border: 1px solid #dde3e8;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ssp-review-stars {
    color: #f5a300;
    font-size: 20px;
    letter-spacing: 1px;
    line-height: 1;
}

.ssp-review-text {
    color: #333;
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
    font-style: italic;
    flex: 1;
}

.ssp-review-author {
    font-size: 12px;
    color: #aaa;
    font-style: normal;
    font-weight: 400;
}

/* ==========================================================================
   Product Changelog Block
   ========================================================================== */

.comparison-changelog {
    width: 100%;
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background: #fafafa;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.comparison-changelog h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
}

.ssp-changelog-entry {
    margin-bottom: 16px;
}

.ssp-changelog-version {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
}

.comparison-changelog ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.comparison-changelog li {
    margin: 4px 0!important;
    padding: 0;
    font-size: 13px;
    color: #555;
    border-bottom: none;
    line-height: 16px;
}
.single-comparison .rh_post_layout_inner_image #rh_post_layout_inimage {
    min-height:115px;
}
.single-comparison .title_single_area  .post-meta-big {
    display:none;
}
.ssp-changelog-view-all {
    display: inline-block;
    font-size: 13px;
    color: #0073aa;
    text-decoration: none;
    margin-top: 12px;
}

.ssp-changelog-view-all:hover {
    text-decoration: underline;
    color: #005177;
}

/* ==========================================================================
   Responsive overrides
   ========================================================================== */

@media (max-width: 768px) {
    .ssp-product-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .ssp-tabbed-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .ssp-tabbed-header h2 {
        font-size: 18px;
    }

    .ssp-tab-nav {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ssp-tab-panels {
        padding: 16px;
    }

    .ssp-article-list {
        columns: 1;
    }

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