@media (max-width: 576.98px) {
    h2 {
        font-size: 19px;
        font-weight: 600;
    }

    #main-content svg:not(a svg) {
        width: 45px;
        height: 45px;
    }
}

@media (min-width: 577px) {
    h2 {
        font-size: 22px;
        font-weight: 600;
    }

    #main-content svg:not(a svg) {
        width: 48px;
        height: 48px;
    }
}

@media (min-width: 992px) {

    h2 {
        font-size: 24px;
        font-weight: 700;
    }

    #main-content svg:not(a svg) {
        width: 60px;
        height: 60px;
    }
}

/*HEAD START*/

.head-content {
    margin-top: -35px !important;
}

.head-text a {
    max-height: 50px;
    transition: background-color 0.2s ease-out;
}

.head-img-wrapper {
    position: relative;
    border-radius: 0 0 300px 300px;
    overflow: hidden;
    height: 550px;
    box-shadow: 0px 10px 60px 0px rgba(0, 0, 0, 0.05);
}

@media (max-width: 576px) {
    .head-img-wrapper {
        height: 450px;
    }
}

.head-img {
    /*background-image: url("https://ravanamooz.ir/wp-content/uploads/2024/04/%D8%B1%D9%88%D8%A7%D9%86-%D8%A2%D9%85%D9%88%D8%B2.webp");*/
    /*background-size: cover;*/
    object-fit: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.head-img-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--bs-secondary) 0%, #c4512b 100%);
    opacity: 0.5;
    z-index: 1;
}
.head-content .info .info-item p {
    font-weight: bold;
}
/*HEAD END*/

/*PRODUCTS CARDS START*/

#products-cards::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 75%;
    background: linear-gradient(135deg, var(--bs-secondary) 0%, #c4512b 100%);
    transform: translateY(-50%) skewY(8deg);
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

#products-cards > * {
    position: relative;
    z-index: 1;
}

.products-items {
    list-style: none;
    padding: 0;
}

.products-items a {
    text-align: center;
    min-height: 311px;
    text-decoration: none;
    color: var(--bs-secondary);
}

.product-card:hover a {
    color: white;
    transition: color 0.4s ease-in-out;

}


.product-card {
    padding: 24px 24px 24px 24px;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #0c2d572E;
    border-radius: 100px 100px 100px 100px;
    transition: background-color 0.4s cubic-bezier(0.47, 0.07, 0, 0.35),
                color 0.4s ease-out, box-shadow 0.6s ease-out;
}

.product-card:hover {
    background-color: var(--bs-secondary);
    color: white;
    box-shadow: 0px 4px 14px rgba(252, 103, 54, 0.3);
}

.products-items-icon {
    width: 50px;
    height: 50px;
}

.products-items-icon-bg {
    padding: 10px;
    background-color: var(--bs-secondary);
    fill: white;
    color: white;
    border-radius: 50%;
}

.products-items a strong {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.products-items a strong::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.products-items a:hover strong::after {
    width: 100%;
}

/*PRODUCTS CARDS END*/

/*POSTERS START*/

.swiper {
    width: 100%;
    height: 100%;
    padding: 0;
}

.swiper-slide {
    text-align: center;
}

.publishers-swiper .swiper-slide img {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: cover;
}


.custom-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    color: black;
    font-weight: bold;
}

.custom-nav::after {
    font-size: 20px !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--bs-primary);
}


/*POSTERS END*/

/*SPECIAL PRODUCTS START*/

.special-products-text svg {
    padding: 10px;
    background-color: var(--bs-secondary);
    fill: white;
    color: white;
    border-radius: 10%;
}

.custom-product-nav {
    width: 30px;
    height: 50px;
    background-color: var(--bs-primary);
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.custom-product-nav::after {
    font-size: 14px !important;
}

.swiper-container-wrapper {
    padding: 0 50px;
}

/*SPECIAL PRODUCTS END*/

/*PUBLISHERS START*/

.publishers-text svg {
    padding: 10px;
    background-color: var(--bs-primary);
    fill: white;
    color: white;
    border-radius: 10%;
}


/*PUBLISHERS END*/

/*BUY BOOKS START*/

.buy-books-text svg {
    padding: 10px;
    background-color: var(--bs-secondary);
    fill: white;
    color: white;
    border-radius: 10%;
}

.custom-buy-nav {
    width: 30px;
    height: 50px;
    background-color: var(--bs-primary);
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.custom-buy-nav::after {
    font-size: 14px !important;
}

/*BUY BOOKS END*/

/*TOP STUDENTS START*/

.top-students-text svg {
    padding: 10px;
    background-color: var(--bs-primary);
    fill: white;
    color: white;
    border-radius: 10%;
}

.top-students-background-img {
    background-image: url("https://ravanamooz.ir/wp-content/uploads/2024/05/%D9%85%D8%B5%D8%A7%D8%AD%D8%A8%D9%87-%D8%B1%D8%AA%D8%A8%D9%87-%D8%A8%D8%B1%D8%AA%D8%B1.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right center;
    width: 25%;
    opacity: 20%;
    z-index: 2;
}

.custom-top-nav {
    width: 30px;
    height: 50px;
    background-color: white;
    border-radius: 10px;
    color: black;
    border-bottom: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.custom-top-nav::after {
    font-size: 14px !important;
}


/*TOP STUDENTS END*/

/*POPULAR START*/
.popular-poster svg {
    padding: 10px;
    background-color: var(--bs-primary);
    fill: white;
    color: white;
    border-radius: 10%;
}

.custom-popular-nav {
    width: 30px;
    height: 50px;
    background-color: var(--bs-primary);
    border-radius: 10px;
    color: white;
    /*border-bottom: 2px solid black;*/
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.custom-popular-nav::after {
    font-size: 14px !important;
}

/*POPULAR END*/


/*TEXT CONTENT START*/

.text-content svg {

    padding: 10px;
    background-color: var(--bs-primary);
    fill: white;
    color: white;
    border-radius: 10%;
}

.text-content a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/*TEXT CONTENT END*/

/*POSTER START*/

.poster-bg {
    min-height: 270px;
    box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.5);
}

.poster .content-text {
    color: white;
    border-radius: 12px;
    max-width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.poster .content-text .border {
    text-align: start;
    align-items: center;

}

.poster .content-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(252, 103, 54, 0.3);
}

.poster .content-text p {
    margin-right: 5px;
    font-size: 13px;
    font-weight: bold;
}

.poster .border .feature-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    color: var(--bs-primary);
}

/*POSTER END*/

/*FOOTER START*/

.footer-text .icon-element {
    margin-left: 10px;
    padding: 5px;
    width: 65px;
    height: 65px;
    fill: white;
    color: white;
    border-radius: 10px;
}
.footer-content .icon-element {
    margin-left: 10px;
    padding: 5px;
    width: 65px;
    height: 65px;
    background-color: #fc6736;
    fill: white;
    color: white;
    border-radius: 10px;
}
/*FOOTER END*/

@media (min-width: 992px) {
    #head-content {
        margin: -120px 0 0 0;
    }
}
@media (max-width: 992px) {
    #head-content {
        margin: -60px 0 0 0;
    }
}
