@font-face {
    font-family: "Vazir";
    src: url("../fonts/Vazir.eot");
    /* IE9 Compat Modes */
    src: url("../fonts/Vazir.eot?#iefix") format("embedded-opentype"),
    url("../fonts/Vazir.woff2") format("woff2"),
    url("../fonts/Vazir.woff") format("woff"),
    url("../fonts/Vazir.ttf") format("truetype");
    /* Safari, Android, iOS */
}

body {
    font-family: "Vazir" !important;
}









/* نوشته‌ها واضح‌تر و خواناتر */
.carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.carousel-caption p {
    font-size: 1rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* دایره‌ای کردن دکمه‌های کنترل */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 70% 70%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
}

/* تغییر استایل دات‌ها */
.carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.6);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: #fff;
    transform: scale(1.2);
}

/* انیمیشن فید بین اسلایدها */
.carousel-fade .carousel-item {
    transition: opacity 0.8s ease-in-out;
}





/* ارتفاع اسلایدر کل صفحه */
#carouselExampleCaptions,
#carouselExampleCaptions .carousel-inner,
#carouselExampleCaptions .carousel-item,
#carouselExampleCaptions img {
    height: 70vh;
}

/* برای اینکه تصویر کش بیاد و وسط بمونه */
#carouselExampleCaptions img {
    object-fit: cover;
    width: 100%;
}
/*.card-img{*/

/*    border-radius: 20px;*/
/*}*/
.card{
    border-radius: 10px;
    border: none;
}

.card-body p{
    text-align: center;!important;
}

.a-style a {
    display: block; /* کل کارت به صورت بلوک لینک شود */
    color: inherit; /* رنگ متن تغییر نکند */
}

.a-style a:hover {
    text-decoration: none; /* حذف خط زیر لینک هنگام هاور */
}




.fixed-img {
    height: 220px;
    object-fit: cover; /* برش و وسط‌چین کردن تصویر */
    /*border-top-left-radius: 0.5rem;*/
    /*border-top-right-radius: 0.5rem;*/
    width: 100%;
    border-radius: 10px 10px 0 0;
}

.slider-wrapper {
    scroll-behavior: smooth;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
}

.prev-btn {
    right: -20px;
}

.next-btn {
    left: -20px;
}
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.fixed-img {
    transition: transform 0.3s ease;
}

.card:hover .fixed-img {
    /*transform: scale(1.05);*/
}

.card .btn {
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.card:hover .btn {
    background-color: #34699a; /* آبی پررنگ‌تر */
    transform: scale(1.05);
}
.btn-primary{
    background-color: #113F67FF;
}
.img-category{
    width: 200px;
    height: 200px;

}
.card-category{
    color: #113F67FF;
}
.card-category a{
    color: #113F67FF;
    text-decoration: none;
}
.poster{
    /*background: url("../img/book3.jpg") center/cover no-repeat;*/
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: end;
    text-align: center;
    color: white;
    padding: 20px;
    border-radius: 20px ;

}
.poster-content{
    background-color: black;
    opacity: 0.8;
    padding: 20px;
    border-radius: 20px;
}
.poster-content h1{
    font-size: 3rem;
}
.poster-content p{
    font-size: 1.2rem;
    margin: 10px 0 20px;
}
@media (max-width: 768px) {
    .poster{
        height: 35vh;
    }
    .poster-content h1{
        font-size: 2rem;
    }
    .poster-content p{
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .poster{
        height: 30vh;
    }
    .poster-content h1{
        font-size: 1.5rem;
    }
    .poster-content p{
        font-size: 0.9rem;
    }
}



.top-poster{
    border-radius: 0 0 40px 40px;
}









.img-writer{
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 5px;


}
.card-writer a{
    color: #113F67FF;
    text-decoration: none;
}
.card-writer{
    display: flex;
    justify-content: center;
}
.card-width{
    width: 200px;
}
@media (max-width: 768px) {
    .card-width{
        width: 180px;
    }
}
/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #888;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Megamenu fix */
.megamenu {
    position: static;
}
.megamenu .dropdown-menu {
    background: none;
    border: none;
    width: 100%;
}

/* Background */
body {
    background: linear-gradient(to right, #F5FCFF, #DBF3FA);
    /*background: linear-gradient(to right, #113F67FF, #FFFFFF);*/
    min-height: 100vh;
}

code {
    color: #745eb1;
    background: #fff;
    padding: 0.1rem 0.2rem;
    border-radius: 0.2rem;
}

.text-uppercase {
    letter-spacing: 0.08em;
}


/* برای موبایل: اسکرول داخلی منوی مگامنو */
@media (max-width: 991.98px) {
    .megamenu .dropdown-menu {
        max-height: 70vh;   /* حداکثر ارتفاع ۷۰٪ صفحه */
        overflow-y: auto;   /* اسکرول داخلی */
    }
}


