/**
 * Tabs Widget Styles
 * Author: Templines
 * Website: templines.com
 */

/* Tabs Container */
.templines-tabs-slider-wrap {
    position: relative;
    margin-bottom: 50px;
}

/* Top Tabs Navigation */
.templines-tabs-slider-top {
    margin-bottom: 30px;
}

.templines-tabs-slider-top .swiper-slide {
    cursor: pointer;
    transition: all 0.3s ease;
}

.templines-tabs-slider-top .swiper-slide-active {
    transform: scale(1.05);
}

.templines-tabs-slider-top .tab-icon-wrap {
    margin-bottom: 15px;
    text-align: center;
}

.templines-tabs-slider-top .tab-title-wrap {
    text-align: center;
}

.templines-tabs-slider-top .tab-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* Bottom Content Area */
.templines-tabs-slider-bottom .swiper-slide {
    height: auto;
}

/* Custom Content Styling */
.custom-content-wrap {
    padding: 35px;
}

.tab-bottom-item-wrap .tab-custom-heading{
    margin-bottom: 20px;
    color: #222;
    font-family: Cormorant;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.17;
    text-align: center;
}

.tab-bottom-item-wrap .tab-custom-description {
    color: #222;
    font-family: FaunaOne;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.89;
    text-align: center;
    max-width: 80%;
    margin: 20px auto 30px;
}

.tab-bottom-item-wrap .tab-custom-button{
    letter-spacing: -0.025em;
    text-transform: uppercase;
    font-size: 17px;
    color: #f8f2f0 !important;
    transition: 0.3s ease;
    padding: 1.5625rem 4.375rem;
    line-height: 1;
    background: #eb5a31;
    text-align: center;
}



.tab-custom-heading {
    font-size: 24px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.tab-custom-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #666;
}

.tab-custom-button-wrap {
    margin-top: 20px;
    text-align: center;
}

.tab-custom-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-custom-button:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 767px) {
    .templines-tabs-slider-top .swiper-slide {
        padding: 10px;
    }
    
    .tab-custom-heading {
        font-size: 20px;
    }
    
    .tab-custom-description {
        font-size: 14px;
    }
    
    .tab-custom-button {
        padding: 10px 20px;
    }
}

/* Контейнер табов */
.templines-tabs-slider-wrap {
    margin-bottom: 30px;
}

/* Верхние табы */
.templines-tabs-slider-top {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 30px;
    padding-bottom: 5px;
    scrollbar-width: thin;
    gap: 44px;
    justify-content: space-evenly;
}

/* Скрываем полосу прокрутки для Chrome */
.templines-tabs-slider-top::-webkit-scrollbar {
    height: 4px;
}

.templines-tabs-slider-top::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

/* Элементы табов */
.templines-tabs-slider-top .tab-top-item-wrap {
    flex: 0 0 auto;
    margin-right: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 35px;
    border-radius: 0;
}

/* Активный таб */
.templines-tabs-slider-top .tab-top-item-wrap.active-tab .tab-title{
color: #eb5a31;
}

.templines-tabs-slider-top .tab-top-item-wrap.active-tab .entry-content {
    opacity: 1;
}

/* Стили для контента табов */
.templines-tabs-slider-bottom .tab-bottom-item-wrap {
    display: none; /* Скрываем все табы по умолчанию */
}

.templines-tabs-slider-bottom .tab-bottom-item-wrap:first-child {
    display: block; /* Показываем первый таб по умолчанию */
}

/* Анимация появления контента */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.templines-tabs-slider-bottom .tab-bottom-item-wrap {
    animation: fadeIn 0.3s ease-in-out;
}

/* Стили для кастомного контента */
.custom-content-wrap {
    padding: 30px;
}


.templines-tabs-slider-top .noswiper-wrapper{
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.tab-custom-heading {
    font-size: 24px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.tab-custom-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #666;
}

.tab-custom-button-wrap {
    margin-top: 20px;
}

.tab-custom-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-custom-button:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
