/* Premium Design Tokens */
:root {
    --primary-color: #0F1C2E;
    /* Navy Blue */
    --accent-color: #D6B25E;
    /* Gold */
    --text-color: #333333;
    --bg-color: #F9F9F9;
    --table-border-color: #E0E0E0;
    --table-header-bg: #EAEAEA;
}

.comparison-block-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.comparison-section-title {
    font-family: "Times New Roman", Times, serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.comparison-section-wrapper {
    margin-bottom: 50px;
    text-align: center;
}

/* Scrollable Table Container */
.table-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    margin-bottom: 20px;
    border: 1px solid var(--table-border-color);
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Table Styles */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    /* Force scroll on smaller screens */
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--table-border-color);
    min-width: 150px;
    /* Ensure columns have width */
}

.comparison-table th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    top: 0;
}

/* Highlight the First Column (Items) */
.comparison-table td:first-child,
.comparison-table th:first-child {
    background-color: #f0f0f0;
    color: var(--primary-color);
    font-weight: bold;
    position: sticky;
    left: 0;
    z-index: 2;
    /* Layer above other cells */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    min-width: 120px;
}

.comparison-table th:first-child {
    background-color: var(--primary-color);
    color: #fff;
    z-index: 3;
    /* Highest layer for top-left corner */
}

/* Highlight GGJ Column */
.ggj-column {
    background-color: #fffbe6;
    /* Very light yellow/gold tint */
    border-left: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
}

.comparison-table th.ggj-header {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Mobile Text Adjustment */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table td,
    .comparison-table th {
        padding: 10px;
    }

    /* Force narrow first column on mobile */
    .comparison-table td:first-child,
    .comparison-table th:first-child {
        min-width: 100px;
        max-width: 100px;
        width: 100px;
        white-space: normal;
        font-size: 0.75rem;
        line-height: 1.3;
        word-wrap: break-word;
    }
}