/**
 * Comparison Panel Widget Styles
 */


/* Main Container */

.comparison-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}


/* Heading */

.comparison-panel__heading {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    line-height: 1.2;
}


/* Columns Container */

.comparison-panel__columns {
    display: flex;
    flex-direction: row;
    gap: 1.875rem;
    width: 100%;
}


/* Individual Column */

.comparison-panel__column {
    flex: 1;
    width: calc(50% - 0.9375rem);
    /* Subtracting half the gap to maintain total width */
    display: flex;
    flex-direction: column;
}

.comparison-panel--equal-height .comparison-panel__column {
    height: 100%;
}


/* Column Title */

.comparison-panel__column-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}


/* Column Content */

.comparison-panel__column-content {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}


/* Column Links */

.comparison-panel__column-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comparison-panel__link {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    transition: color 0.3s ease;
}


/* Create a span inside the link to hold the text and animation */

.comparison-panel__link span {
    position: relative;
    display: inline-block;
}

.comparison-panel__link span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.comparison-panel__link:hover span::after {
    transform: scaleX(1);
    transform-origin: left;
}

.comparison-panel__link:hover {
    color: #005a87;
}


/* Responsive Styles */

@media (max-width: 767px) {
    .comparison-panel--stack-mobile .comparison-panel__columns {
        flex-direction: column;
        gap: 2rem;
        /* Increased gap for stacked mobile view */
    }
    .comparison-panel--stack-mobile .comparison-panel__column {
        width: 100%;
    }
    .comparison-panel__heading {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
}