/* =====================================================
   Operational Tabs Widget — op-tabs.css
   ===================================================== */

/* ── Section wrapper ──────────────────────────────────── */
.op-section {
    background-color: #f4f4f4;
    padding-top: 80px;
    padding-bottom: 80px;
    display: block;
}

/* ── Container ────────────────────────────────────────── */
.op-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* ── Section heading ──────────────────────────────────── */
.op-section .op-heading {
    text-align: center;
    margin-top: 0;
    margin-bottom: 3rem;
    font-family: inherit;
    color: inherit;
}

/* ── Tab controls (icon-button row) ──────────────────── */
.op-tab-control {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #ddd;
}

.op-tab-control .op-tab-li {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 15px 18px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #222;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    user-select: none;
    box-sizing: border-box;
}

.op-tab-control .op-tab-li:hover {
    background-color: #e8e8e8;
}

.op-tab-control .op-tab-li.js-active {
    border-bottom-color: #222;
    font-weight: 600;
}

/* ── Icon ─────────────────────────────────────────────── */
.op-figure--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 10px 0;
    padding: 0;
}

.op-figure--icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}

.op-tab-li:not(.js-active) .op-figure--icon img {
    opacity: 0.45;
}

.op-tab-li.js-active .op-figure--icon img {
    opacity: 1;
}

.op-icon-placeholder {
    display: block;
    width: 70px;
    height: 70px;
    background: #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* ── 2-column grid ────────────────────────────────────── */
.op-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 3rem;
    align-items: start;
}

/* ── Left column: single image ────────────────────────── */
.op-col-images {
    padding-right: 30px;
    box-sizing: border-box;
}

.op-col-images figure {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.op-img-responsive {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Right column: text ───────────────────────────────── */
.op-col-text {
    padding-left: 30px;
    box-sizing: border-box;
}

.op-col-text h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: inherit;
    color: inherit;
}

.op-col-text p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: inherit;
}

/* ── Ghost button ─────────────────────────────────────── */
.op-btn {
    display: inline-block;
    padding: 10px 24px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease;
    box-sizing: border-box;
    line-height: 1.5;
}

.op-btn-ghost {
    background-color: transparent;
    border: 2px solid #222;
    color: #222;
    margin-top: 0.5rem;
}

.op-btn-ghost:hover {
    background-color: #222;
    color: #fff;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 767px) {
    .op-tab-control {
        flex-wrap: wrap;
        border-bottom: none;
    }

    .op-tab-control .op-tab-li {
        flex: 0 0 50%;
        max-width: 50%;
        border-bottom: 2px solid #ddd;
        padding: 16px 10px 14px;
        font-size: 0.8rem;
    }

    .op-tab-control .op-tab-li.js-active {
        border-bottom-color: #222;
    }

    .op-grid {
        grid-template-columns: 1fr;
        margin-top: 1.5rem;
    }

    .op-col-images {
        padding-right: 0;
        padding-bottom: 20px;
    }

    .op-col-text {
        padding-left: 0;
    }
}
