

/* =========================
   TABLE WRAPPER
========================= */
.comparison-table-wrapper {
    margin: 35px 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #dfe7ef;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* =========================
   TABLE BASE
========================= */
.comparison-table {
    width: 100%;
    min-width: 700px; /* 🔥 KEY FIX: prevents stretch */
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table thead th {
    background: linear-gradient(135deg, #0c3c63, #133f74);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    padding: 18px 14px;
    border: 1px solid #214b7a;
    white-space: nowrap;
}

.comparison-table tbody td {
    padding: 15px 14px;
    font-size: 14px;
    line-height: 1.6;
    vertical-align: top;
    border: 1px solid #edf2f7;
    background: #fff;
}

.comparison-table tbody tr:nth-child(even) td {
    background: #f8fbff;
}

/* =========================
   LEFT COLUMN
========================= */
.parameter {
    font-weight: 700;
    background: #eef5fb !important;
    color: #0c3c63;
}

/* =========================
   SUB TEXT (FIXED)
========================= */
.sub-text {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;

    white-space: normal;        /* 🔥 allow wrapping */
    word-break: break-word;     /* 🔥 prevent overflow */
}

/* =========================
   GREEN VALUE
========================= */
.green-text {
    color: #1f9d3a;
    font-weight: 600;
}

/* =========================
   RESPONSIVE SCROLL
========================= */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* =========================
   MOBILE FIX
========================= */
@media (max-width: 768px) {

    .comparison-table {
        min-width: 700px; /* 🔥 keeps layout stable */
    }

    .comparison-table thead th {
        font-size: 13px;
        padding: 12px 10px;
    }

    .comparison-table tbody td {
        font-size: 13px;
        padding: 12px 10px;
    }
}

/* =========================
   DARK MODE
========================= */
body.dark-mode .comparison-table-wrapper {
    background: #111827;
    border-color: #374151;
}

body.dark-mode .comparison-table thead th {
    background: linear-gradient(135deg, #102a43, #1e3a5f);
    border-color: #2f4f75;
}

body.dark-mode .comparison-table tbody td {
    background: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}

body.dark-mode .comparison-table tbody tr:nth-child(even) td {
    background: #243244;
}

body.dark-mode .parameter {
    background: #102a43 !important;
    color: #ffffff !important;
}

body.dark-mode .sub-text {
    color: #d1d5db;
}
    
