/* ===================================
   COMPARISON GRID SECTION (S3)
   =================================== */

.comparison-grid-section {
    background: #ffffff;
    position: relative;
}

.comparison-grid-section .common-heading {
    margin-bottom: 50px;
}

/* Comparison Table Wrapper */
.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 auto;
    max-width: 1400px;
}

/* Table Base Styling */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin: 0;
}

/* Table Header */
.comparison-table thead th {
    padding: 0;
    border: none;
    background: transparent;
    vertical-align: top;
}

.label-column {
    width: 180px;
    min-width: 180px;
}

.service-column {
    width: 280px;
    position: relative;
}

/* Service Header Cards */
.service-header {
    padding: 30px 20px;
    border-radius: 16px 16px 0 0;
    text-align: center;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.service-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
}

/* Column-Specific Headers */
.build-column .service-header {
    background: linear-gradient(135deg, #008060 0%, #00a078 100%);
}

.promote-column .service-header {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
}

.grow-column .service-header {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

/* Service Icons */
.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.service-icon svg {
    color: #ffffff;
    width: 32px;
    height: 32px;
}

.service-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Table Body */
.comparison-table tbody tr {
    transition: all 0.2s ease-in-out;
}

.comparison-table tbody td {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none;
    vertical-align: middle;
    transition: all 0.3s ease-in-out;
}

/* First row after header */
.comparison-table tbody tr:first-child td {
    border-top: 1px solid #e5e7eb;
}

/* Last row */
.comparison-table tbody tr:last-child td.service-column {
    border-radius: 0 0 16px 16px;
}

/* Row Labels */
.row-label {
    background: #f9fafb !important;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    border-left: 4px solid #008060 !important;
}

/* Service Column Content */
.comparison-table tbody td p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

/* Focus Items */
.focus-item,
.timeline-item {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.focus-icon,
.timeline-icon {
    font-size: 24px;
    display: inline-block;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    font-size: 14px;
    color: #4b5563;
    position: relative;
    padding-left: 20px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Features Row Specific Styling */
.features-row td {
    padding-top: 25px;
    padding-bottom: 25px;
}

/* CTA Row */
.cta-row td {
    padding-top: 25px;
    padding-bottom: 30px;
    text-align: center;
}

.cta-row .theme-btn {
    margin: 0 auto;
    min-width: 160px;
}

/* Column Hover Effects */
.comparison-table .service-column {
    position: relative;
}

.comparison-table .build-column:hover {
    background: rgba(0, 128, 96, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 128, 96, 0.1);
}

.comparison-table .promote-column:hover {
    background: rgba(99, 102, 241, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.comparison-table .grow-column:hover {
    background: rgba(16, 185, 129, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .comparison-grid-section .common-heading h2 {
        font-size: 28px;
    }

    .comparison-table-wrapper {
        padding: 0 10px;
    }

    .service-column {
        width: 240px;
    }

    .label-column {
        width: 140px;
        min-width: 140px;
    }

    .service-header {
        padding: 20px 15px;
    }

    .service-header h3 {
        font-size: 16px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }

    .service-icon svg {
        width: 28px;
        height: 28px;
    }

    .comparison-table tbody td {
        padding: 15px 12px;
        font-size: 13px;
    }

    .row-label {
        font-size: 12px;
    }

    .feature-list li {
        font-size: 13px;
        padding: 6px 0;
    }
}

@media (max-width: 767px) {
    .comparison-table-wrapper {
        overflow-x: scroll;
    }

    .service-column {
        width: 200px;
    }

    .label-column {
        width: 120px;
        min-width: 120px;
    }

    .service-header {
        padding: 15px 10px;
    }

    .service-header h3 {
        font-size: 14px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }

    .service-icon svg {
        width: 24px;
        height: 24px;
    }

    .comparison-table tbody td {
        padding: 12px 10px;
        font-size: 12px;
    }

    .row-label {
        font-size: 11px;
        padding: 12px 8px;
    }

    .focus-icon,
    .timeline-icon {
        font-size: 18px;
    }

    .feature-list li {
        font-size: 12px;
        padding: 5px 0;
    }

    .cta-row .theme-btn {
        min-width: 120px;
        padding: 12px 20px;
        font-size: 13px;
    }
}