/* Стили для контейнера карточек авторов */
.author-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 960px; /* Максимальная ширина контейнера */
    margin: 0 auto;
}

/* Стили для каждой карточки автора */
.author-card {
    flex-basis: calc(33.33% - 20px); /* Ширина карточки автора, учитывая отступы */
    background-color: #f0f0f0;
    padding: 20px;
    margin-bottom: 20px;
    box-sizing: border-box; /* Учтем padding в расчетах */
}

/* Стили для мобильных устройств (максимальная ширина 768px) */
@media screen and (max-width: 768px) {
    .author-card {
        flex-basis: calc(50% - 20px); /* Две карточки авторов в ряду на мобильных */
    }
}


/* TABS Widget
---------------------------------------------- */
.klim-tabs {
    max-width: 100%;
    margin: 20px auto;
    display: flex;
    flex-direction: column; /* Добавляем вертикальную ориентацию для элементов .klim-tabs */
}

.klim-tab-header {
    display: flex;
    justify-content: center; /* Размещаем ярлыки вкладок по центру */
}

.klim-tab-items {
    display: flex;
    justify-content: center; /* Центрируем ярлыки внутри .klim-tab-header */
    width: 100%;
}

.klim-tab-item {
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.klim-tab-item:after {
    display: block;
    content: '';
    width: 0;
    margin: 5px auto 0;
    background-color: #6d9773;
    opacity: 0;
    height: 2px;
    transition:width .3s, margin .3s, opacity .3s;
}

.klim-tab-item.active {
    color: #6d9773;
    background-color: #fff;
}

.klim-tab-item:hover:after,
.klim-tab-item.active:after {
    width: 100%;
    margin-top: 10px;
    opacity: 1;
}


.klim-tab-content {
    display: none;
    padding: 20px;
    background-color: #fff;
}

.klim-tab-content p {
    margin: 0;
}

.klim-tab-content.active {
    display: block;
}


.klim-tabs .slick-list {
    margin: 0 -5px;
}

.klim-tabs .slick-slide {
    margin: 0 5px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.klim-tabs .slick-slide .books-slider__img {
    display: block;
    margin-bottom: 20px;
    aspect-ratio: 16 / 24;
}

.klim-tabs .slick-slide .books-slider__author {
    font-size: 16px;
}

.klim-tabs .slick-slide .books-slider__title {
    font-weight: 600;
    font-size: 18px;
    color: #121212;
}

.klim-tabs .slick-slide .books-slider__title:hover {
    color: #6d9773;
}

.klim-tabs .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 40px;
    height: 40px;
    color: #121212;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f7f7f7;
}

.klim-tabs .slick-arrow:hover {
    background-color: #e7e7e7;
}


.klim-tabs .slick-arrow:before {
    font-family: "fontello";
}


.klim-tabs .slick-arrow.slick-prev {
    left: -50px;
}

.klim-tabs .slick-arrow.slick-prev:before {
    content: '\e907';
}


.klim-tabs .slick-arrow.slick-next {
    right: -50px;
}

.klim-tabs .slick-arrow.slick-next:before {
    content: '\e908';
}

@media screen and (max-width: 640px) {

    .klim-tabs .slick-arrow.slick-prev {
        left: -45px;
    }

    .klim-tabs .slick-arrow.slick-next {
        right: -45px;
    }
}

/* Latest Books Widget
---------------------------------------------- */
.book-post-columns {
    display: flex;
    flex-wrap: wrap;
    max-width: 1320px;
    margin: 0 auto;
}

.book-post-card {
    flex-grow: 1;
    padding: 0;
    margin: 0 10px 20px;
    box-sizing: border-box;
    position: relative;
}

.book-post-card h4 {
    font-size: 24px;
    text-align: center;
    margin: 10px 0;
}

.book-post-card .image-container {
    display: block;
    position: relative;
    overflow: hidden;
    padding-bottom: 150%;
}

.book-post-card .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .book-post-card {
        flex-basis: calc(50% - 20px) !important;
    }
}