/* MT Service Tabs - Container */

/* Tab navigation - horizontal row */
.mt-service-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    list-style: none;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

/* Individual tab - pill style */
.mt-service-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background-color: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #2b7a66;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.mt-service-tab-item:hover {
    transform: translateY(-2px);
}

.mt-service-tab-item:active {
    transform: translateY(0);
}

.mt-service-tab-item.is-active {
    background-color: #6dd4a6;
    color: #ffffff;
}

.mt-service-tab-item:not(.is-active):hover {
    background-color: rgba(45, 122, 102, 0.08);
}

.mt-service-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.mt-service-tab-item:hover .mt-service-tab-icon {
    transform: scale(1.08);
}

.mt-service-tab-icon i,
.mt-service-tab-icon svg {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.mt-service-tab-label {
    white-space: nowrap;
}

/* Content area - two columns */
.mt-service-tabs-content {
    width: 100%;
}

.mt-service-tabs-content-inner {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.mt-service-tabs-content-inner:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Each tab panel - visible one only */
.mt-service-tab-panel {
    display: none;
    flex-wrap: wrap;
    align-items: stretch;
    min-height: 320px;
}

.mt-service-tab-panel.is-active {
    display: flex;
}

/* Left: image */
.mt-service-tab-panel-image {
    height: 500px;
    flex: 0 0 42%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px 0 0 12px;
    transition: transform 0.5s ease;
    overflow: hidden;
}
/* Right: text + button */
.mt-service-tab-panel-text {
    flex: 1 1 50%;
    min-width: 280px;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mt-service-tab-panel-heading {
    margin: 0 0 16px 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.mt-service-tab-panel-desc {
    margin: 0 0 24px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #5a5a5a;
}

.mt-service-tab-panel-btn {
    display: inline-block;
    width: fit-content;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #2b7a66;
    background-color: #ffffff;
    color: #2b7a66;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.mt-service-tab-panel-btn:hover {
    background-color: #f0f9f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 122, 102, 0.15);
}

.mt-service-tab-panel-btn:active {
    transform: translateY(0);
}

/* Responsive: stack image above text on small screens */
@media (max-width: 767px) {
    .mt-service-tab-panel {
        flex-direction: column;
    }

    .mt-service-tab-panel-image {
        flex: 0 0 auto;
        min-height: 220px;
        width: 100%;
        border-radius: 12px 12px 0 0;
    }

    .mt-service-tab-panel-text {
        padding: 24px 20px;
        min-width: 0;
    }

    .mt-service-tab-item {
        flex-shrink: 0;
    }
}
@media (max-width: 1024px) {
    .mt-service-tab-panel {
        padding: 15px;
    }
}