.comparison-container {
    margin-top: 6.2rem;
}

.comparison-container .nav {
    display: flex;
    margin-bottom: 3.3rem;
}

.comparison-container .nav > li {
    flex: 1;
    margin-right: 1.3rem;
}

.comparison-container .nav > li:last-child {
    margin-right: 0;
}

.comparison-container .nav > li a {
    padding: 3.2rem;
    background: var(--white);
    color: #98A5AD;
    text-align: center;
    font-weight: bold;
    font-size: 2.5rem;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.comparison-container .nav > li a.active {
    background: var(--primary-color);
    color: var(--white);
}

.comparison-container .nav > li a::before {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 15px;
    display: block;
    pointer-events: none;
    background: var(--primary-color);
    transition: all 0.3s ease;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    opacity: 0;
    visibility: hidden;
}

.comparison-container .nav > li a.active::before {
    opacity: 1;
    visibility: visible;
}

.comparison-container .title {
    background: linear-gradient(to right, #E2E8EF, #F0F7FF);
    color: #353E46;
    font-size: 2.2rem;
    font-weight: bold;
    padding: 0.4rem 5.6rem;
}

.comparison-container .table-responsive {
    background: linear-gradient(#E2E8EF, #E2E9EF);
    padding: 2px;
}

.comparison-container .benefits-table thead {
    background: #EEF4F9;
}

.comparison-container .benefits-table thead th {
    width: 33.33333%;
    line-height: 1.2;
    vertical-align: top;
    border: 0;
}

.comparison-container .benefits-table thead th p {
    color: #525B64;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: .5rem;
}

.comparison-container .benefits-table thead th h5 {
    color: #525B64;
    font-size: 2.4rem;
    font-weight: 600;
}

.comparison-container .benefits-table tbody td,
.comparison-container .benefits-table thead th {
    padding: 2rem 5.6rem;
}

.comparison-container .benefits-table tbody .title td {
    padding: 0.4rem 5.6rem !important;
    background: linear-gradient(to right, #D5EAEF, #F2FAFC);
    box-shadow: rgba(0, 0, 0, 0.07) 0 1px 1px 0;
    border: 0;
}

.comparison-container .benefits-table tbody td {
    border-bottom: 2px solid #E2E8EF;
    background: #FBFEFF;
}

.comparison-container .benefits-table tbody tr:last-child td {
    border-bottom: 0;
}

.comparison-container .benefits-table tbody td .content {
    display: flex;
    flex-direction: column;
}

.comparison-container .benefits-table tbody td span {
    color: #525B64;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.7rem;
    line-height: 1.2;
}

.comparison-container .benefits-table tbody td span.value {
    font-weight: 600;
    font-size: 2.4rem;
}

/* Media Queries */
@media (max-width: 1400px) {
    .comparison-container .nav > li a {
        padding: 2.6rem;
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .comparison-container .title {
        padding: 0.4rem 1.6rem;
    }
    .comparison-container .benefits-table tbody td, .comparison-container .benefits-table thead th {
        padding: 2rem 1.6rem;
    }
    .comparison-container .benefits-table tbody .title td {
        padding: 0.4rem 1.6rem !important;
    }
    .comparison-container .benefits-table thead th p {
        font-size: 1.4rem;
    }
    .comparison-container .benefits-table thead th h5,
    .comparison-container .benefits-table tbody td span {
        font-size: 1.4rem;
    }
    .comparison-container .benefits-table tbody td span.value {
        font-size: 1.6rem;
    }
    .comparison-container .benefits-table tbody td svg {
        width: 2rem;
        height: 2rem;
    }
    .comparison-container .nav {
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
        margin-bottom: 1rem;
    }
    .comparison-container .nav > li a {
        min-width: max-content;
        padding: 1.6rem 2rem;
        font-size: 1.7rem;
    }
    .comparison-container .nav > li a::before {
        bottom: -9px;
        left: 50%;
        width: 24px;
        height: 10px;
    }
    .comparison-container {
        margin-top: 3.2rem;
    }
}
