/* Landing Page Table 2 - Multi-Column Table */

.landing-table-2-block {
    padding: 80px 0;
    position: relative;
}

.landing-table-2-container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
}

.landing-table-2-title {
    color: #000;
    font-family: helvetica_lt_std_condensed, Arial, Helvetica, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 15px;
    text-align: center;
    text-transform: none;
}

.landing-table-2-subtitle {
    color: #333;
    font-family: helvetica_lt_stdlight, Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    margin: 0 auto 50px;
    max-width: 700px;
    text-align: center;
}

/* Table Wrapper */
.landing-table-2-wrapper {
    position: relative;
    overflow-x: auto;
}

/* Multi-Column Table */
.multi-column-table {
    width: 100%;
    min-width: 800px;
}

/* Table Header */
.multi-column-table .table-header {
    display: flex;
    align-items: stretch;
    border-bottom: 2px solid #e0e5eb;
}

.multi-column-table .table-header .table-cell {
    padding: 15px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.multi-column-table .table-header .row-label-cell {
    flex: 0 0 180px;
    min-width: 180px;
    background: #fff;
}

.multi-column-table .table-header .header-cell {
    flex: 1;
    min-width: 100px;
    background: rgba(90, 122, 154, 0.15);
}

.multi-column-table .table-header .header-cell:first-of-type {
    border-top-left-radius: 10px;
}

.multi-column-table .table-header .header-cell:last-of-type {
    border-top-right-radius: 10px;
}

.multi-column-table .table-header .cta-header-cell {
    flex: 0 0 400px;
    min-width: 400px;
}

.multi-column-table .header-text {
    font-family: helvetica_lt_std_condensed, Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    color: #000;
    text-align: center;
}

/* Table Body */
.multi-column-table .table-body {
    position: relative;
}

/* Table Rows */
.multi-column-table .table-row {
    display: flex;
    align-items: stretch;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e8ecf0;
}

.multi-column-table .table-row.row-even {
    background-color: #f8f9fa;
}

.multi-column-table .table-row.row-odd {
    background-color: #fff;
}

.multi-column-table .table-row:hover {
    background-color: #f0f4f8;
}

/* Table Cells */
.multi-column-table .table-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 12px;
    min-height: 60px;
}

.multi-column-table .row-label-cell {
    flex: 0 0 180px;
    min-width: 180px;
    justify-content: flex-start;
    background: rgba(90, 122, 154, 0.08);
}

.multi-column-table .row-label {
    font-family: helvetica_lt_std_condensed, Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

.multi-column-table .data-cell {
    flex: 1;
    min-width: 100px;
}

.multi-column-table .cta-cell {
    flex: 0 0 400px;
    min-width: 400px;
    justify-content: flex-start;
}

/* CTA Button */
.multi-column-table .table-cta-button {
    margin: 0;
}

.multi-column-table .table-cta-button .wp-block-button__link {
    font-size: 13px;
    padding: 10px 18px;
    min-width: 230px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.multi-column-table .table-cta-button .wp-block-button__link::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'%3E%3C/line%3E%3Cpolyline points='7 7 17 7 17 17'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.multi-column-table .table-cta-button .wp-block-button__link:hover::after {
    background-color: #000;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'%3E%3C/line%3E%3Cpolyline points='7 7 17 7 17 17'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Hide icon when link is empty */
.multi-column-table .table-cta-button .wp-block-button__link[href=""]::after,
.multi-column-table .table-cta-button .wp-block-button__link:not([href])::after {
    display: none !important;
    content: none !important;
}

/* Cell Content */
.multi-column-table .cell-text {
    font-family: helvetica_lt_stdlight, Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #333;
    text-align: center;
    line-height: 1.4;
}

/* Status Icons */
.multi-column-table .status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.multi-column-table .status-icon svg {
    width: 22px;
    height: 22px;
}


/* Footnotes */
.landing-table-2-footnotes {
    margin-top: 30px;
    padding: 0 10px;
}

.landing-table-2-footnotes p {
    font-family: helvetica_lt_stdlight, Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 5px;
}

/* Animation on scroll */
.multi-column-table .table-row {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.multi-column-table .table-row:nth-child(1) { animation-delay: 0.1s; }
.multi-column-table .table-row:nth-child(2) { animation-delay: 0.15s; }
.multi-column-table .table-row:nth-child(3) { animation-delay: 0.2s; }
.multi-column-table .table-row:nth-child(4) { animation-delay: 0.25s; }
.multi-column-table .table-row:nth-child(5) { animation-delay: 0.3s; }
.multi-column-table .table-row:nth-child(6) { animation-delay: 0.35s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode */
body.dark-mode .landing-table-2-block {
    background-color: #000 !important;
}

body.dark-mode .landing-table-2-title {
    color: #fff;
}

body.dark-mode .landing-table-2-subtitle {
    color: #ccc;
}

body.dark-mode .landing-table-2-footnotes p {
    color: #ccc;
}

body.dark-mode .multi-column-table .header-text {
    color: #fff;
}

body.dark-mode .multi-column-table .table-cta-button .wp-block-button__link {
    color: #fff !important;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .landing-table-2-block {
        padding: 60px 0;
    }

    .landing-table-2-subtitle {
        margin-bottom: 40px;
    }

    .multi-column-table .table-header .row-label-cell,
    .multi-column-table .row-label-cell {
        flex: 0 0 150px;
        min-width: 150px;
    }

    .multi-column-table .table-header .cta-header-cell,
    .multi-column-table .cta-cell {
        flex: 0 0 360px;
        min-width: 360px;
    }

    .multi-column-table .header-text {
        font-size: 13px;
    }

    .multi-column-table .row-label {
        font-size: 14px;
    }

    .multi-column-table .cell-text {
        font-size: 13px;
    }
}

/* Mobile Styles - Card Layout */
@media (max-width: 768px) {
    .landing-table-2-block {
        padding: 50px 0;
    }

    .landing-table-2-container {
        padding: 0;
    }

    .landing-table-2-title {
        font-size: 1.75rem;
        margin-bottom: 12px;
        padding: 0 15px;
    }

    .landing-table-2-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .landing-table-2-wrapper {
        overflow-x: visible;
    }

    .multi-column-table {
        min-width: auto;
        width: 100%;
    }

    /* Hide desktop header on mobile */
    .multi-column-table .table-header {
        display: none;
    }

    /* Card layout for rows */
    .multi-column-table .table-body {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .multi-column-table .table-row {
        display: flex;
        flex-direction: column;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        border: none;
    }

    .multi-column-table .table-row.row-even,
    .multi-column-table .table-row.row-odd {
        background: #fff;
    }

    .multi-column-table .table-row:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
        background: #fff;
    }

    /* Row label as card header */
    .multi-column-table .row-label-cell {
        flex: none;
        width: 100%;
        min-width: auto;
        padding: 18px 20px;
        background: #f0f4f8;
        border-bottom: 1px solid #e0e5eb;
        justify-content: flex-start;
    }

    .multi-column-table .row-label {
        font-size: 16px;
    }

    /* Data cells stacked */
    .multi-column-table .data-cell {
        flex: none;
        width: 100%;
        min-width: auto;
        padding: 12px 20px;
        justify-content: space-between;
        border-bottom: 1px solid #f0f2f5;
    }

    .multi-column-table .data-cell::before {
        content: attr(data-label);
        font-family: helvetica_lt_std_condensed, Arial, Helvetica, sans-serif;
        font-size: 13px;
        font-weight: 700;
        color: #000;
        flex: 1;
    }

    .multi-column-table .data-cell .status-icon,
    .multi-column-table .data-cell .cell-text {
        flex-shrink: 0;
    }

    .multi-column-table .cell-text {
        text-align: right;
    }

    /* CTA cell */
    .multi-column-table .cta-cell {
        flex: none;
        width: 100%;
        min-width: auto;
        padding: 15px 20px;
        justify-content: center;
        background: #fafafa;
    }

    .multi-column-table .cta-cell::before {
        display: none;
    }

    .multi-column-table .table-cta-button .wp-block-button__link {
        font-size: 14px;
        width: 100%;
        text-align: center;
    }

    .landing-table-2-footnotes {
        margin-top: 25px;
        padding: 0 15px;
    }

    .landing-table-2-footnotes p {
        font-size: 12px;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .landing-table-2-block {
        padding: 40px 0;
    }

    .landing-table-2-title {
        font-size: 1.5rem;
    }

    .landing-table-2-subtitle {
        font-size: 15px;
    }

    .multi-column-table .table-body {
        gap: 12px;
    }

    .multi-column-table .row-label-cell {
        padding: 15px;
    }

    .multi-column-table .row-label {
        font-size: 15px;
    }

    .multi-column-table .data-cell {
        padding: 10px 15px;
    }

    .multi-column-table .data-cell::before {
        font-size: 12px;
    }

    .multi-column-table .status-icon svg {
        width: 20px;
        height: 20px;
    }

    .multi-column-table .cell-text {
        font-size: 12px;
    }

    .multi-column-table .cta-cell {
        padding: 12px 15px;
    }

    .multi-column-table .table-cta-button .wp-block-button__link {
        font-size: 13px;
        padding: 8px 15px;
    }
}

/* Print Styles */
@media print {
    .landing-table-2-block {
        padding: 20px 0;
    }

    .multi-column-table .table-row {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
