/* ==========================================================================
   Enago Indonesia — "Compare Services" tabbed comparison table.
   Replaces the old 3-card service block under the "Layanan Penyuntingan
   Bahasa Inggris Enago" heading on index.htm. Visual spec adapted from the
   Figma (AppCompareServicesEmerald).
   ========================================================================== */

.enago-compare {
    max-width: 1150px;
    margin: 0 auto;
    text-align: left;
    box-sizing: border-box;
}

.enago-compare *,
.enago-compare *:before,
.enago-compare *:after {
    box-sizing: border-box;
}

/* ---- tab bar ---- */
.ec-tabs {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding: 11.3684px;
    width: 1100px;
    height: 70.11px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #FFFFFF;
    box-shadow: 0px 0px 20px rgba(246, 216, 217, 0.5);
    border-radius: 60.6316px;
    margin: 0 auto 40px auto;
    max-width: 100%;
}

.ec-tabs-inner {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    width: 100%;
    height: 47.37px;
    background: #FAF8F5;
    border: 0.947368px solid rgba(247, 214, 217, 0.8);
    border-radius: 47.3684px;
}

.ec-tab {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    gap: 9.47px;
    height: 47.37px;
    flex-grow: 1;
    background: transparent;
    color: #283341;
    border: none;
    border-radius: 47.3684px;
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    min-width: 0;
    filter: drop-shadow(0px 3.78947px 22.7368px rgba(0, 0, 0, 0.2));
}

.ec-tab:hover {
    background: rgba(40, 51, 65, 0.1);
}

.ec-tab.is-active {
    background: #283341;
    color: #FFFFFF;
    font-weight: 600;
    filter: none;
}

/* ---- panels grid ---- */
.ec-panels {
    margin-top: 20px;
}

.ec-panel {
    display: none;
}

.ec-panel.is-active {
    display: block;
}

.ec-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* ---- cards ---- */
.ec-col {
    flex: 1 1 353px;
    max-width: 353px;
    background: #FFFFFF;
    border: 1px solid #E9EAEB;
    border-radius: 24px;
    padding: 32px 20px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ec-col-featured {
    border-color: #E9EAEB;
    border-top: 3px solid #E4635E;
    padding: 30px 0px 24px;
    /* Reduced top padding by 2px because border-top increased by 2px */
}

.ec-col-featured .ec-content {
    padding: 0px 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Popular Tag */
.ec-col-featured::before {
    content: "Populer";
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    background: #E4635E;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 0.5px;
    padding: 3px 20px;
    border-radius: 0 0 10px 10px;
    z-index: 5;
    text-transform: uppercase;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* The gradient background on featured */
.ec-gradient-bg {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 218px;
    background: linear-gradient(180deg, rgba(250, 224, 223, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-radius: 24px 24px 0 0;
    z-index: 0 !important;
}

.ec-col>* {
    z-index: 1;
    position: relative;
}

/* column header: icon + title */
.ec-col-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.ec-icon {
    flex: 0 0 45px;
    width: 45px;
}

.ec-icon img {
    width: 100%;
    height: auto;
    display: block;
}

.ec-title {
    margin: 0 !important;
    color: #283341 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 24px !important;
}

/* card titles switched to plain .lv2: kill the default h3 margin so the
   icon+title row stays tight (no gap below the text) */
.ec-col-head .lv2 {
    margin: 0 !important;
}

/* description */
.ec-desc {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 24px;
    color: #283341;
}

/* Price Block */
.ec-price-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0 24px 0;
    flex-wrap: wrap;
}

/* equal-height description area on desktop (3-across) so the price row,
   divider and checklist start on the same line in all three cards */
@media (min-width: 992px) {
    [data-ec-panel="english-editing"] .ec-col .lv2-text {
        min-height: 220px;
    }
}

.ec-price-main {
    font-size: 36px;
    font-weight: 700;
    color: #1D1D1D;
    line-height: 40px;
}

.ec-price-old {
    font-size: 16px;
    font-weight: 400;
    color: rgba(77, 77, 77, 0.8);
    position: relative;
}

.ec-price-line {
    position: absolute;
    width: 110%;
    height: 1px;
    background: rgba(77, 77, 77, 0.6);
    top: 50%;
    left: -5%;
    transform: rotate(-15deg);
}

.ec-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 0 8px;
    border-radius: 44px;
    line-height: 19px;
    height: 19px;
    white-space: nowrap;
}

.ec-badge-green {
    background: #D7FDDA;
    color: #3EAB43;
}

.ec-badge-orange {
    background: #FDAF2D;
    color: #FFFFFF;
}


/* CTA button */
.ec-btn {
    display: block;
    width: 100%;
    height: 50px;
    line-height: 48px;
    text-align: center;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #DB2F28;
    text-decoration: none;
    transition: opacity .2s ease, background .2s ease, color .2s ease;
}

.ec-btn:hover,
.ec-btn:focus {
    text-decoration: none;
}

.ec-btn-filled {
    background: #DB2F28;
    color: #FFFFFF;
}

.ec-btn-filled:hover,
.ec-btn-filled:focus {
    color: #FFFFFF;
    opacity: .92;
}

.ec-btn-outline {
    background: #FFFFFF;
    color: #DB2F28;
}

.ec-btn-outline:hover,
.ec-btn-outline:focus {
    background: #DB2F28;
    color: #FFFFFF;
}

.ec-grid:has(.ec-btn:hover) .ec-btn-filled:not(:hover) {
    background: #FFFFFF;
    color: #DB2F28;
}

/* feature checklist */
.ec-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ec-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 300;
    color: #000000;
}

/* CSS checkmark (no font dependency) — matches the Figma green tick */
.ec-list li:before {
    content: "";
    position: absolute;
    left: 4px;
    top: 5px;
    width: 6px;
    height: 11px;
    border: solid #3EAB43;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---- research-impact (Dampak Riset) + translation (Terjemahan) panels: same bordered container ---- */
[data-ec-panel="research-impact"] .ec-single,
[data-ec-panel="translation"] .ec-single {
    background: #FFFFFF;
    border: 1px solid #E9EAEB;
    border-radius: 24px;
}

/* ---- publication-support panel per Figma: one bordered container,
   two columns split by a vertical divider (not separate cards) ---- */
[data-ec-panel="publication-support"] .ec-grid {
    gap: 0;
    background: #FFFFFF;
    border: 1px solid #E9EAEB;
    border-radius: 24px;
    padding: 30px 0;
}

[data-ec-panel="publication-support"] .ec-col {
    flex: 1 1 300px;
    max-width: none;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 30px;
}

[data-ec-panel="publication-support"] .ec-col:first-child {
    border-right: 1px solid #E9EAEB;
}

[data-ec-panel="publication-support"] .ec-icon {
    flex: 0 0 60px;
    width: 60px;
}

[data-ec-panel="publication-support"] .ec-btn {
    border-radius: 2px;
    margin-bottom: 24px;
}

/* stacked on mobile: divider moves to the bottom edge of the first column */
@media (max-width: 767px) {
    [data-ec-panel="publication-support"] .ec-col:first-child {
        border-right: none;
        border-bottom: 1px solid #E9EAEB;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
}

/* Links */
.ec-compare-link {
    display: inline-flex;
    align-items: center;
    color: #DB2F28;
    text-decoration: underline;
    font-weight: 500;
    font-size: 16px;
}

.ec-compare-link:hover,
.ec-compare-link:focus,
.ec-compare-link:active {
    color: #DB2F28;
}

.ec-compare-link:after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #DB2F28;
    border-top: 2px solid #DB2F28;
    transform: rotate(45deg);
    margin-left: 8px;
}

/* ---- single full-width service (e.g. Research Impact → Graphical Abstract):
   icon+title+desc on the left, CTA on the right, 2-column checklist below ---- */
.ec-single {
    padding: 30px;
}

.ec-single-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.ec-single-info {
    flex: 1 1 auto;
    min-width: 0;
}

.ec-single-info .ec-col-head {
    min-height: 0;
    margin-bottom: 12px;
}

.ec-single-info .ec-desc {
    min-height: 0;
    margin-bottom: 0;
}

.ec-single-cta {
    flex: 0 0 325px;
    max-width: 325px;
}

.ec-single-cta .ec-btn {
    margin-bottom: 0;
}

.ec-list-2col {
    column-count: 2;
    column-gap: 32px;
    margin-top: 24px;
}

.ec-list-2col li {
    -webkit-column-break-inside: avoid;
    break-inside: avoid;
}

/* placeholder for the not-yet-populated tabs */
.ec-empty {
    padding: 90px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 18px;
}

/* ---- responsive ---- */
@media (max-width: 991px) {
    .ec-col {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid #E9EAEB;
    }

    .ec-col:last-child {
        border-bottom: none;
    }

    .ec-desc {
        min-height: 0;
    }

    /* single-service: stack the CTA under the info, full-width list */
    .ec-single-top {
        flex-direction: column;
        align-items: stretch;
    }

    .ec-single-cta {
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 8px;
    }

    .ec-list-2col {
        column-count: 1;
    }
}

@media (max-width: 767px) {
    .ec-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
        padding: 5px;
        margin-bottom: 20px;
        justify-content: flex-start;
        height: auto;
    }

    .ec-tabs-inner {
        flex-wrap: nowrap;
        gap: 8px;
        border-radius: 12px;
        min-width: max-content;
        height: auto;
    }

    .ec-tab {
        min-width: 150px;
        flex: 0 0 auto;
        font-size: 14px;
        padding: 12px 14px;
    }
}