/* ===================================================
   Elementor Comparison Table v2.1.0
   Developed by Vivek Kumar — https://codingindialab.com/
   =================================================== */

/* ── Google Font import (Inter) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ─────────────────────────────────────────────────────
   WRAPPER
───────────────────────────────────────────────────── */
.ect-table-wrapper {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.06);
    padding: 36px 36px 28px;
    border: 1px solid #ebebeb;
    overflow: hidden;
}

/* ─────────────────────────────────────────────────────
   TITLE
───────────────────────────────────────────────────── */
.ect-table-title {
    margin: 0 0 28px 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.75em;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #111827;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
    position: relative;
}

.ect-table-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, #4f7942, #7ab86a);
    border-radius: 2px;
}

/* ─────────────────────────────────────────────────────
   SCROLL CONTAINER
───────────────────────────────────────────────────── */
.ect-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 0 4px;
}

/* ─────────────────────────────────────────────────────
   TABLE BASE
───────────────────────────────────────────────────── */
.ect-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

/* ─────────────────────────────────────────────────────
   HEADER ROW
───────────────────────────────────────────────────── */
.ect-table thead tr {
    background: linear-gradient(135deg, #3a5f32 0%, #507a44 50%, #5d8a50 100%);
}

.ect-table thead th {
    padding: 14px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82em;
    font-weight: 600;
    text-align: left;
    vertical-align: middle;
    color: #ffffff;
    background: transparent;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    border: none;
}

.ect-table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.ect-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

/* Header accent line beneath */
.ect-table thead th::after {
    display: none;
}

/* ─────────────────────────────────────────────────────
   BODY ROWS
───────────────────────────────────────────────────── */
.ect-table tbody tr {
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.ect-table tbody td {
    padding: 15px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0ee;
    color: #374151;
    line-height: 1.6;
    background-color: #ffffff;
}

/* Alternating rows — very subtle tint */
.ect-table tbody tr:nth-child(even) td {
    background-color: #fafaf9;
}

/* Hover state */
.ect-table tbody tr:hover td {
    background-color: #f0f7ee !important;
    box-shadow: inset 3px 0 0 #4f7942;
}

/* Last row — no bottom border */
.ect-table tbody tr:last-child td {
    border-bottom: none;
}

/* First column — feature label */
.ect-table tbody td:first-child {
    font-weight: 600;
    color: #1f2937;
    border-right: 1px solid #f0f0ee;
}

/* ─────────────────────────────────────────────────────
   HIGHLIGHTED ROW
───────────────────────────────────────────────────── */
.ect-table tbody tr.ect-highlight td {
    background-color: #f0f7ee !important;
    color: #2d5226;
}

.ect-table tbody tr.ect-highlight td:first-child {
    color: #2d5226;
    font-weight: 700;
}

.ect-table tbody tr.ect-highlight {
    box-shadow: inset 3px 0 0 #4f7942;
}

/* ─────────────────────────────────────────────────────
   ROUNDED BOTTOM CORNERS
───────────────────────────────────────────────────── */
.ect-table tbody tr:last-child td:first-child  { border-radius: 0 0 0 8px; }
.ect-table tbody tr:last-child td:last-child   { border-radius: 0 0 8px 0; }

/* ─────────────────────────────────────────────────────
   FOOTER NOTE
───────────────────────────────────────────────────── */
.ect-footer-note {
    margin: 20px 0 0 0;
    padding: 14px 18px;
    font-size: 0.82em;
    color: #6b7280;
    line-height: 1.65;
    background: #f9fafb;
    border-left: 3px solid #7ab86a;
    border-radius: 0 6px 6px 0;
    font-style: normal;
}

/* ─────────────────────────────────────────────────────
   MOBILE
───────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .ect-table-wrapper {
        padding: 24px 18px 20px;
        border-radius: 8px;
    }

    .ect-table-title {
        font-size: 1.3em;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .ect-responsive .ect-table-scroll {
        overflow-x: auto;
    }

    .ect-responsive .ect-table th,
    .ect-responsive .ect-table td {
        min-width: 130px;
        white-space: normal;
    }

    .ect-table thead th {
        padding: 12px 14px;
        font-size: 0.75em;
    }

    .ect-table tbody td {
        padding: 12px 14px;
        font-size: 0.85em;
    }
}
