.hero-section {
    position: relative;
    height: 70vh;
    min-height: 400px;
    max-height: 500px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.heroSwiper {
    width: 100%;
    height: 100%;
}

.heroSwiper .swiper-slide {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heroSwiper .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.slide-content {
    text-align: center;
    z-index: 3;
    position: relative;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.heroSwiper .swiper-pagination {
    bottom: 30px;
}

.heroSwiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.8);
    width: 12px;
    height: 12px;
}

.heroSwiper .swiper-pagination-bullet-active {
    background: var(--main-color);
}

.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
    display: none;
}

@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        min-height: 300px;
        max-height: 400px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .overlay {
        padding: 2rem 0;
    }

    .heroSwiper .swiper-button-next,
    .heroSwiper .swiper-button-prev {
        display: none;
    }

    .search-overlay {
        bottom: 15%;
    }

    .search-overlay .search-input {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
}

.login_header_btn:hover {
    color: var(--main-color);
}

.overlay {
    padding: 3rem 0;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

/* Nav styling for home page with slider */
.hero-section .nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 2rem 0;
}

.search-overlay {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    z-index: 4;
}

.search-overlay .input-search {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: none;
}

.search-overlay .search-input {
    border: none;
    background: transparent;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.search-overlay .search-input:focus {
    outline: none;
    box-shadow: none;
}

.search-overlay .fa-magnifying-glass {
    color: var(--main-color);
    font-size: 1.2rem;
    padding: 0 1rem;
}

.hero-btn {
    border: none;
    background-color: var(--active-color);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color-white);
    box-shadow: 21px 20px 87px 0px rgba(218, 119, 7, 0.24);
    gap: 10px;
    padding: 1rem 2rem;
    height: 3rem;
    width: 12rem;
    border-radius: 3rem;
    -webkit-border-radius: 3rem;
    -moz-border-radius: 3rem;
    -ms-border-radius: 3rem;
    -o-border-radius: 3rem;
}

/* ================================================================================================== */

.swiper-category {
    width: 100%;
}

.swiper-slide-category {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.category-prev,
.category-next {
    width: 40px;
    height: 40px;
    color: #fff;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    background-color: var(--primary-color);
}

.category-prev::after,
.category-next::after {
    font-size: 18px;
}

.swiper-recent {
    height: fit-content;
}
.swiper-recent .swiper-slide {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category {
    width: 210px;
    height: 170px;
    border: 1px solid rgba(237, 237, 237, 1);
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
    box-shadow: 0px 20px 50px 0px rgba(9, 38, 80, 0.05);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    padding: 1rem 0;
}

.category_puplisher {
    /* width: 210px; */
    height: 170px;
    border: 1px solid rgba(237, 237, 237, 1);
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
    box-shadow: 0px 20px 50px 0px rgba(9, 38, 80, 0.05);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


.category_puplisher img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.category-image {
    height: 40%;
    width: 75%;
    object-fit: contain;
}

/* .category_puplisher img {
    height: 100%;
    width: 100%;
    object-fit: contain;
} */

@media (max-width: 991px) {
    .category-prev,
    .category-next {
        width: 30px;
        height: 30px;
        color: #fff;
        border-radius: 50%;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        -ms-border-radius: 50%;
        -o-border-radius: 50%;
        background-color: var(--main-color);
    }

    .category-prev::after,
    .category-next::after {
        font-size: 14px;
    }
}

/* Card */
.head a,
i {
    color: var(--main-color);
}
.offer_price {
    position: relative;
}

.offer_price::after {
    content: "";
    height: 1px;
    width: 70px;
    background-color: #000;
    position: absolute;
    right: -3%;
    top: 50%;
    transform: translate(50%, -50%);
    transform: rotate(163deg);
}

/* style pagination books card  */

.swiper-recent .swiper-pagination-bullet,
.swiper-offers .swiper-pagination-bullet,
.swiper-selections .swiper-pagination-bullet,
.swiper-author .swiper-pagination-bullet,
.swiper-quotes .swiper-pagination-bullet {
    width: 25px !important;
    height: 5px;
    background-color: var(--primary-color);
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
    margin-top: 10px;
}
/* best seller section */
.best-seller {
    position: relative;
    z-index: 1;
}
.best-seller::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/bg.png");
    background-position: left;
    background-size: 50%;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: -1;
}

/* Quotes Sliders  */
.swiper-quotes {
    min-height: 300px;
}
.quote {
    min-height: 200px;
    border: 1px solid rgba(232, 232, 232, 0.5);
    box-shadow: 0px 20px 50px 0px rgba(33, 55, 137, 0.05);
    border-radius: 17px;
    -webkit-border-radius: 17px;
    -moz-border-radius: 17px;
    -ms-border-radius: 17px;
    -o-border-radius: 17px;
}
.right-quote i,
.left-quote i {
    color: var(--primary-color);
    font-size: 20px;
}
.text__quote p,
.author-description {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(100, 100, 100, 1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Test Swiper  */

.swiper-quotes .swiper-button-next,
.swiper-quotes .swiper-button-prev {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 10px;
    top: auto;
}
.swiper-quotes .swiper-button-next {
    right: 55%;
    transform: translateX(40%);
    position: absolute;
    -webkit-transform: translateX(40%);
    -moz-transform: translateX(40%);
    -ms-transform: translateX(40%);
    -o-transform: translateX(40%);
}
.swiper-quotes .swiper-button-prev {
    right: 45%;
    transform: translateX(-40%);
    position: absolute;
    -webkit-transform: translateX(-40%);
    -moz-transform: translateX(-40%);
    -ms-transform: translateX(-40%);
    -o-transform: translateX(-40%);
}
.swiper-quotes .swiper-pagination {
    display: none;
}
.swiper-quotes .swiper-button-next::after,
.swiper-quotes .swiper-button-prev::after {
    width: 100%;
    height: 100%;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: var(--main-color);
    border-radius: 50%;
    text-align: center;
    line-height: 3.3;
}
/* offers section  */
.best-offer {
    height: 100%;
    background-image: url("../images/offer.jpg");
    background-position: center;
    /* background-size: cover; */
    background-repeat: no-repeat;
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}
.overlay-offer {
    padding: 20px 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
}
.overlay-offer h5 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color-white);
    width: 70%;
    text-align: center;
    line-height: 1.6;
}
.discount-num {
    color: var(--active-color);
    font-size: 2rem;
    font-weight: bold;
}

/* swiper buttons */
@media (max-width: 992px) {
    .swiper-quotes .swiper-button-next,
    .swiper-quotes .swiper-button-prev {
        display: none;
    }
    .swiper-quotes .swiper-pagination {
        display: block;
    }
}
