/* Service Tabs Plugin - Frontend Styles */

.stp-wrapper {
    box-sizing: border-box;
    position: relative;
}

.stp-wrapper *,
.stp-wrapper *:before,
.stp-wrapper *:after {
    box-sizing: border-box;
}

.stp-main-panels {
    background: #F5F5F5;
    border: 1px solid #D4D4D4;
    border-radius: 20px;
    padding: 40px;
    padding-top: 100px;
}


/* .stp-card {
    background: #F5F5F5;
    border: 1px solid #D4D4D4;
    border-radius: 20px;
    padding: 40px;
    padding-top: 100px;
} */


/* Main pill tabs (Solar / Battery / Electrical) */

.stp-main-tabs-inner {
    position: absolute;
    top: -30px;
    left: 30px;
    background: #fff;
    padding: 10px;
    border-radius: 100px;
    border-bottom: 1px solid #D4D4D4;
    border-left: 1px solid #d4d4d4;
    border-right: 1px solid #d4d4d4;
}

.stp-main-tabs {
    display: inline-flex;
    gap: 6px;
    border-radius: 999px;
    padding: 15px;
    flex-wrap: wrap;
    box-shadow: -1px -3px 4px 0px #00000014;
    z-index: 999;
    position: relative;
}

.stp-wrapper::after {
    position: absolute;
    content: '';
    background: #fff;
    width: 60%;
    top: -40px;
    height: 40px;
    z-index: 0;
}

.stp-main-tab-btn {
    border: none;
    background: transparent;
    color: #000;
    font-weight: 600;
    font-size: 20px;
    padding: 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    border: 1px solid #110542;
    width: 157px;
}

.stp-main-tab-btn:hover {
    background: #f0f4ff;
}

.stp-main-tab-btn.active {
    background: radial-gradient(58.24% 58.24% at 50% 50%, #2D9AFF 0%, #0159ED 100%);
    color: #fff;
    border: none;
}

.stp-main-panel {
    display: none;
}

.stp-main-panel.active {
    display: block;
}

.top_title_tan {
    width: 50%;
}

.stp-heading {
    font-size: 35px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #111827;
}

.stp-divider {
    border: none;
    border-top: 1px solid #d1d5db;
    margin: 0 0 20px;
}


/* Sub-service tabs (Battery Supply And Installations / EV Car Charging) */

.stp-sub-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.stp-sub-tab-btn {
    border: none;
    font-size: 16px;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    color: #000;
    border: 1px solid #e5e7eb;
    transition: background .2s ease, color .2s ease;
}

.stp-sub-tab-btn.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.stp-sub-tab-btn:not(.active):hover {
    background: #f3f4f6;
}

.stp-sub-panel {
    display: none;
}

.stp-sub-panel.active {
    display: block;
}

.stp-sub-panels {
    margin-top: -140px;
}


/* Content grid: text left, image right (like the screenshot) */

.stp-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: end;
}

@media (max-width: 780px) {
    .stp-content-grid {
        grid-template-columns: 1fr;
    }
    .stp-image-col {
        order: -1;
    }
}

.stp-description {
    color: #000;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.stp-description p {
    margin: 0 0 12px;
}

.stp-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stp-btn {
    display: inline-block;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 22px;
    border-radius: 999px;
    transition: background .2s ease, transform .1s ease;
}

.stp-btn:hover {
    background: #1d4ed8;
}

.stp-btn:active {
    transform: scale(0.98);
}

.stp-image-col {
    width: 100%;
}

.stp-image,
.stp-image-col img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.stp-image-placeholder {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
}

@media all and (min-width: 320px) and (max-width: 767px) {
    .stp-main-panels {
        padding: 15px;
        padding-top: 15px;
    }
    .stp-buttons {
        gap: 0px;
    }
    .stp-main-tabs {
        gap: 10px;
        justify-content: center;
    }
    .stp-main-tabs button {
        width: 47%;
    }
    .stp-buttons a {
        width: 50%;
    }
    .stp-sub-tab-btn,
    .stp-description {
        font-size: 15px;
    }
    .stp-main-tab-btn {
        font-size: 16px;
    }
    .stp-heading {
        font-size: 30px;
        margin-bottom: 0;
    }
    .stp-sub-panels {
        margin-top: 0px;
    }
    .stp-main-tabs,
    .stp-main-tabs-inner {
        padding: 10px;
        border-radius: 10px;
        width: 100%;
    }
    .top_title_tan {
        width: 100%;
    }
    .stp-main-tabs-inner {
        position: unset;
    }
}

@media all and (min-width: 481px) and (max-width: 767px) {}

@media all and (min-width: 768px) and (max-width: 980px) {
    .stp-main-panels {
        padding: 20px;
        padding-top: 70px;
    }
    .stp-sub-tab-btn,
    .stp-description {
        font-size: 15px;
    }
    .stp-main-tab-btn {
        font-size: 16px;
    }
    .stp-heading {
        font-size: 30px;
        margin-bottom: 0;
    }
    .stp-sub-panels {
        margin-top: 0px;
    }
    .stp-main-tabs {
        padding: 10px;
    }
    .top_title_tan {
        width: 100%;
    }
}

@media only screen and (min-width: 981px) and (max-width: 1024px) {
    .stp-main-panels {
        padding: 20px;
        padding-top: 70px;
    }
    .stp-sub-tab-btn,
    .stp-description {
        font-size: 15px;
    }
    .stp-main-tab-btn {
        font-size: 16px;
    }
    .stp-heading {
        font-size: 30px;
        margin-bottom: 0;
    }
    .stp-sub-panels {
        margin-top: 0px;
    }
    .stp-main-tabs {
        padding: 10px;
    }
    .top_title_tan {
        width: 100%;
    }
}

@media all and (min-width: 1025px) and (max-width: 1140px) {
    .stp-main-panels {
        padding: 20px;
        padding-top: 70px;
    }
    .stp-sub-tab-btn,
    .stp-description {
        font-size: 15px;
    }
    .stp-main-tab-btn {
        font-size: 16px;
    }
    .stp-heading {
        font-size: 30px;
        margin-bottom: 0;
    }
    .stp-sub-panels {
        margin-top: 0px;
    }
    .stp-main-tabs {
        padding: 10px;
    }
    .top_title_tan {
        width: 100%;
    }
}

@media all and (min-width: 1141px) and (max-width: 1280px) {
    .stp-main-panels {
        padding: 20px;
        padding-top: 70px;
    }
    .stp-sub-tab-btn,
    .stp-description {
        font-size: 15px;
    }
    .stp-main-tab-btn {
        font-size: 16px;
    }
    .stp-heading {
        font-size: 30px;
    }
    .stp-sub-panels {
        margin-top: -100px;
    }
    .stp-main-tabs {
        padding: 10px;
    }
}

@media all and (min-width: 1281px) and (max-width: 1440px) {
    .stp-main-panels {
        padding: 20px;
        padding-top: 100px;
    }
    .stp-sub-tab-btn,
    .stp-description {
        font-size: 15px;
    }
    .stp-main-tab-btn {
        font-size: 16px;
    }
    .stp-heading {
        font-size: 30px;
    }
}

@media all and (min-width: 1441px) and (max-width: 1680px) {}

@media all and (min-width: 1681px) and (max-width: 1880px) {}

@media all and (min-width: 981px) and (max-width: 3000px) {}