/* Competitor Comparison Table Styles */

.comparison-section {
    padding: 80px 0;
    background: white;
}

.comparison-table-wrapper {
    position: relative;
    /* for hint overlays */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* smooth mobile scroll */
    margin: 40px 0;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Mobile scroll hint (suggests horizontal scroll) */
@media (max-width: 768px) {
    .comparison-table-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 42px;
        height: 100%;
        pointer-events: none;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
        transition: opacity .3s ease;
    }

    .comparison-table-wrapper::before {
        content: 'Swipe to see more →';
        position: absolute;
        right: 10px;
        bottom: 10px;
        font-size: .85rem;
        color: var(--secondary-color);
        background: rgba(255, 255, 255, 0.9);
        padding: 6px 10px;
        border-radius: 999px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
        animation: swipeHint 1.6s ease-in-out infinite;
        transition: opacity .3s ease;
        pointer-events: none;
    }

    .comparison-table-wrapper.hint-hidden::before,
    .comparison-table-wrapper.hint-hidden::after {
        opacity: 0;
    }

    @keyframes swipeHint {
        0% {
            transform: translateX(0);
        }

        50% {
            transform: translateX(8px);
        }

        100% {
            transform: translateX(0);
        }
    }
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    min-width: 800px;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--secondary-color), #2d5a8a);
    color: white;
}

.comparison-table th {
    padding: 25px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
}

.comparison-table thead th {
    border-bottom: 3px solid var(--primary-color);
}

.comparison-table th:first-child {
    text-align: left;
    border-top-left-radius: 15px;
}

.comparison-table th:last-child {
    border-top-right-radius: 15px;
}

.feature-column {
    width: 25%;
    background: rgba(255, 255, 255, 0.1);
}

.cluecheck-column {
    background: rgba(232, 132, 31, 0.1) !important;
    border-left: 3px solid var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.company-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.badge-best {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.comparison-table tbody tr {
    transition: all 0.3s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(232, 132, 31, 0.05);
}

.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

/* Fine line separator between Competitor A and B */
.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
    border-right: 1px solid #e0e0e0;
}

.feature-name {
    text-align: left !important;
    font-weight: 600;
    color: var(--secondary-color);
}

.feature-name i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

.highlight {
    font-weight: 600;
    color: var(--secondary-color);
}

.stars {
    font-size: 1.2rem;
    letter-spacing: 3px;
}

.check-icon {
    color: #10b981;
    font-size: 1.5rem;
    font-weight: bold;
}

.cross-icon {
    color: #ef4444;
    font-size: 1.5rem;
    font-weight: bold;
}

.cta-row td {
    padding: 25px 20px;
    background: rgba(248, 249, 250, 0.5);
}

.table-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.table-btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 20px rgba(232, 132, 31, 0.3);
}

.table-btn-primary:hover {
    background: #ffa94d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 132, 31, 0.4);
}

.comparison-note {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.comparison-note i {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 968px) {
    .comparison-section {
        padding: 60px 0;
    }

    .comparison-table-wrapper {
        border-radius: 10px;
    }

    .comparison-table {
        min-width: 700px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 15px 12px;
        font-size: 0.95rem;
    }

    .feature-name i {
        display: none;
        /* Hide icons on smaller screens for space */
    }
}

@media (max-width: 768px) {
    .comparison-section {
        padding: 50px 0;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .company-header img {
        height: 30px;
    }

    .badge-best {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .stars {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .table-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 425px) {
    .comparison-table-wrapper {
        margin: 30px -20px;
        /* Extend to edges on mobile */
        border-radius: 0;
    }

    .comparison-note {
        font-size: 0.85rem;
        padding: 15px;
    }
}