* {
    box-sizing: border-box;
}

@media (max-width: 576.98px) {
    .author-bio-container h2 {
        font-size: 19px;
        font-weight: 600;
    }

    .author-bio-container span {
        font-size: 14px;
    }
}

@media (min-width: 577px) {
    .author-bio-container h2 {
        font-size: 22px;
        font-weight: 600;
    }

    .author-bio-container span {
        font-size: 18px;
    }
}

@media (min-width: 992px) {

    .author-bio-container h2 {
        font-size: 24px;
        font-weight: 700;
    }

    .author-bio-container span {
        font-size: 20px;
    }
}


/*AUTHOR BIO START*/

.author-bio-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bs-secondary) 0%, #c4512b 100%);
    transform: translateY(-50%) skewY(8deg);
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.author-bio-container {
    overflow: hidden;
    box-shadow: 0 5px 15px 5px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
    padding: 1.5rem;
    position: relative;
}

.author-bio-container .author-bio-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 12.5em;
}

.author-bio-container .author-bio {
    text-align: justify;
}

.author-bio-wrapper {
    overflow: hidden;
    transition: max-height 0.6s ease;
    position: relative;
}

.author-bio-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3em;
    /*background: linear-gradient(to bottom, rgba(255,255,255,0), #f8f9fa);*/
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.author-bio-wrapper.expanded::after {
    opacity: 0;
}

.author-bio-container .toggle-btn {
    background: none;
    border: none;
    color: var(--bs-primary);
    font-weight: 500;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.author-bio-container .toggle-btn:hover{
    color: var(--bs-secondary) !important;
}

/*AUTHOR BIO END*/

.suggested-authors .suggested-authors-swiper a{
    text-decoration: none;
}

/*AUTHOR BOOKS START*/

.books-by-author .search-input {
    width: 100%;
    border: 2px solid #ccc;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.books-by-author .search-input:focus {
    box-shadow: inset 0 0 5px rgba(0, 123, 255, 0.4);
}

.books-by-author .btn-clear {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-42%);
    background: none;
    border: none;
    color: var(--bs-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    display: none;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.books-by-author .btn-clear:hover {
    color: var(--bs-primary);
}

.books-by-author .search-container {
    position: relative;
    direction: rtl;
}

.books-by-author .search-icon {
    width: 20px;
    height: 20px;
    transform: translateX(-40px);
}

.books-by-author .search-input {
    width: 100%;
    border: 2px solid #ccc;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.page-btn.inactive-page {
    background-color: #fff;
    color: #0c2d57;
    border: 1px solid #0c2d57;
}

.page-btn.inactive-page:hover {
    background-color: rgba(12, 45, 87, 0.2);
}

.page-btn.active-page {
    background-color: #0c2d57;
    color: white;
    border: 1px solid #0c2d57;
}

/*AUTHOR BOOKS END*/

/*SUGGESTED AUTHOR START*/

.author-img-border {
    width: 180px;
    background: linear-gradient(45deg, #0c2d57 50%, #fc6736 50%);
    padding: 2px;
    border-radius: 50%;
    display: inline-block;
}


.swiper-pagination-bullet-active {
    background-color: var(--bs-secondary);
}

/*SUGGESTED AUTHOR END*/