/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .8s ease-out, visibility 0s linear .0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

/*** Spinner End ***/


/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn:hover i {
    color: white !important;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.border-secondary {
    transition: 0.5s;
}

.btn.border-secondary:hover {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
}

/*** Topbar Start ***/
.fixed-top {
    transition: 0.5s;
    background: var(--bs-white);
    border: 0;
}

.topbar {
    padding: 20px;
    border-radius: 230px 100px;
}

.topbar .top-info {
    font-size: 15px;
    line-height: 0;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.topbar .top-link {
    font-size: 15px;
    line-height: 0;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.topbar .top-link a {
    letter-spacing: 1px;
}

.topbar .top-link a small:hover {
    color: var(--bs-secondary) !important;
    transition: 0.5s;
}

.topbar .top-link a small:hover i {
    color: var(--bs-primary) !important;
}

/*** Topbar End ***/

/*** Navbar Start ***/
.navbar .navbar-nav .nav-link {
    padding: 10px 15px;
    font-size: 16px;
    transition: .5s;
}

.navbar {
    height: 100px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.fixed-top.bg-white .navbar .navbar-nav .nav-link:hover,
.fixed-top.bg-white .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    display: inline-block;
    margin-left: 8px;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        transition: .5s;
        opacity: 0;
    }
}

.dropdown .dropdown-menu a:hover {
    color: var(--bs-primary);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    border-radius: 10px !important;
    transition: .5s;
    opacity: 1;
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, .8);
}

/*** Navbar End ***/

/*** Hero Header ***/
.hero-header {
    background: linear-gradient(rgba(248, 223, 173, 0.1), rgba(248, 223, 173, 0.1)), url(../img/hero-bg.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.carousel-item {
    position: relative;
}

.carousel-item a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25px;
    background: linear-gradient(rgba(255, 181, 36, 0.7), rgba(255, 181, 36, 0.7));
}

.carousel-control-next,
.carousel-control-prev {
    width: 48px;
    height: 48px;
    border-radius: 48px;
    border: 1px solid var(--bs-white);
    background: var(--bs-primary);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-next {
    margin-right: 20px;
}

.carousel-control-prev {
    margin-left: 20px;
}

.page-header {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(https://static.rokomari.io/static/200/dist/desktop/js/30e8a5bd865d9181dc48.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {

    .hero-header,
    .page-header {
        margin-top: 152px !important;
    }
}

@media (max-width: 992px) {

    .hero-header,
    .page-header {
        margin-top: 97px !important;
    }
}

/*** Hero Header end ***/

/*** books Start ***/
.book .tab-class .nav-item a.active {
    background: var(--bs-secondary) !important;
}

.book .tab-class .nav-item a.active span {
    color: var(--bs-white) !important;
}

.book .book-category .category-list {
    line-height: 40px;
}

.book .book-category .category-list a {
    transition: 0.5s;
}

.book .book-category .category-list a:hover {
    color: var(--bs-secondary);
}

.book .book-item {
    height: 100%;
    transition: 0.5s;
}

.book .book-item:hover {
    box-shadow: 0 0 55px rgba(0, 0, 0, 0.4);
}

.book .book-item .book-img {
    overflow: hidden;
    transition: 0.5s;
    border-radius: 10px 10px 0 0;
}

.book .book-item .book-img img {
    transition: 0.5s;
}

.book .book-item .book-img img:hover {
    transform: scale(1.2);
}

/*** books End ***/


/*** feature Start ***/
.feature .feature-item {
    height: 100%;
    transition: 0.5s;
}

.feature .feature-item:hover {
    box-shadow: 0 0 55px rgba(0, 0, 0, 0.4);
}

.feature .feature-item .feature-img {
    overflow: hidden;
    transition: 0.5s;
    border-radius: 10px 10px 0 0;
}

.feature .feature-item .feature-img img {
    transition: 0.5s;
}

.feature .feature-item .feature-img img:hover {
    transform: scale(1.2);
}

.feature .owl-stage {
    margin: 50px 0;
    position: relative;
}

.feature .owl-nav .owl-prev {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--bs-primary);
    padding: 3px 20px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;
}

.feature .owl-nav .owl-prev:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.feature .owl-nav .owl-next {
    position: absolute;
    top: 0px;
    right: 70px;
    color: var(--bs-primary);
    padding: 3px 20px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;
}

.feature .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

/*** feature End ***/


/*** Banner Section Start ***/
.banner .banner-btn:hover {
    background: var(--bs-primary);
}

/*** Banner Section End ***/

/*** testimonial Start ***/
.testimonial .owl-nav .owl-prev {
    position: absolute;
    top: -58px;
    right: 0;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;
}

.testimonial .owl-nav .owl-prev:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

.testimonial .owl-nav .owl-next {
    position: absolute;
    top: -58px;
    right: 88px;
    color: var(--bs-primary);
    padding: 5px 25px;
    border: 1px solid var(--bs-secondary);
    border-radius: 20px;
    transition: 0.5s;
}

.testimonial .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

/*** testimonial End ***/


/*** Single Page Start ***/
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination a {
    color: var(--bs-dark);
    padding: 10px 16px;
    text-decoration: none;
    transition: 0.5s;
    border: 1px solid var(--bs-secondary);
    margin: 0 4px;
}

.pagination a.active {
    background-color: var(--bs-primary);
    color: var(--bs-light);
    border: 1px solid var(--bs-secondary);
}

.pagination a:hover:not(.active) {
    background-color: var(--bs-primary)
}

.nav.nav-tabs .nav-link.active {
    border-bottom: 2px solid var(--bs-secondary) !important;
}

/*** Single Page End ***/

/*** Footer Start ***/
.footer .footer-item .btn-link {
    line-height: 35px;
    color: rgba(255, 255, 255, .5);
    transition: 0.5s;
}

.footer .footer-item .btn-link:hover {
    color: var(--bs-secondary) !important;
}

.footer .footer-item p.mb-4 {
    line-height: 35px;
}

/*** Footer End ***/

/* ==================================================================
                         Custom CSS 
===================================================================*/

/* base css  */
td,
th {
    text-align: center;
}

/* chat icon start */
.chat-icon {
    color: #ffb001;
    background-color: white;
    font-size: 30px;
    position: fixed;
    right: 25px;
    bottom: 120px;
    display: flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

/* chat icon end */

/* Hero Start */

.main-header {
    position: absolute;
    z-index: 999;
}

.main-container {
    max-height: 50vh;
}

/* Hero end */

/* Writer card Start */
.writer-card {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin: auto;
}

.writer-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.writer-card-text {
    font-size: 11px;
}

/* Writer card end */

/* feature categories Start */
.feature-card {
    width: 125px;
    height: 125px;
    overflow: hidden;
    margin: auto;
    border: 10px solid #ffaf017a;
}

.feature-card-text {
    font-size: 14px;
}

/* feature categories end */

/* Book section Start */
.book-item-header {
    padding-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-btn {
    background-color: #ffb001;
    color: #fff;
    border: 1px solid #ffb001;
}

.header-btn:hover {
    background-color: #fff;
    color: #ffb001;
}

.book-author {
    font-size: 0.8rem;
}

.stars i,
.book-stars i {
    font-size: 0.8rem;
}

.original-price {
    text-decoration: line-through;
    color: #fe0000;
    font-size: 0.8rem;
}

.discounted-price {
    color: #28a745;
}

/* Book section end */

/* All books start */
.book-author {
    font-size: 0.8rem;
    color: #555;
}

.book-btn:hover i {
    color: white !important;
}

/* All books end */

/* Filter dropdown styling */
.form-select {
    color: #333 !important;
    background-color: #fff !important;
}

.form-select option {
    color: #333 !important;
    background-color: #fff !important;
    padding: 8px 12px;
}

.form-select option:hover {
    background-color: #f8f9fa !important;
    color: #000 !important;
}

.form-select option:selected {
    background-color: #007bff !important;
    color: #fff !important;
}

/* Ensure filter section text is visible */
#filterCollapse h4 {
    color: #333 !important;
    font-weight: 600;
}

#filterCollapse .mb-3 {
    color: #333 !important;
}