.card video{
max-width: 100%;
}


/* ======= نوار بالایی ======= */
nav {
  background: #cbdce4;
  color: #fff;

  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4000; /* ߑ蠘蘧لاتر از اسلایدر */
}

/* ======= دکمه همبرگری ======= */
.menu-toggle {
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  display: none; /* در دسکتاپ پنهان */
  z-index: 5001; /* ߑ蠙癅یشه بالاتر از منو */
}
.menu-toggle span {
  background: #fff;
  position: absolute;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  left: 0;
  transition: all 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

/* حالت باز (به ضربدر تبدیل شود) */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* ======= منوی اصلی ======= */
.menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 15px;
  position: relative;
  z-index: 4500; /* ߑ蠙噆و بالاتر از اسلایدر */
}
.menu li a {
  color: #0b1b3d;
  text-decoration: none;
  padding: 0px 8px;
  display: block;
}
/* .menu li a:hover {
  background: #006fa6;
  border-radius: 5px;
} */

.links li::before{
    content: "\f053"; 
 font-family: "Font Awesome 5 pro";
  font-weight: 900;
  right: 0;
  top: 0;
  color: white; 
  margin-left: 10px;
}
.links li{
   position: relative;
  padding-right: 0px;

}
.links li a:hover{
font-weight: bold;
}



/* ======= زیرمنو ======= */
.has-submenu {
  position: relative;
  z-index: 4600; /* ߑ蠘蘱ای اطمینان */
}
.submenu {
  display: none;
  position: absolute;
  background: #cbdce4;
  top: 100%;
  right: 0;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  border-radius: 5px;
  min-width: 150px;
  z-index: 4700; /* ߑ蠘⛌رمنو همیشه بالاتر از همه */
}
.submenu li a {
  padding: 8px 15px;
}
.has-submenu:hover .submenu {
  display: block;
}

/* ======= منوی اسلایدی در موبایل ======= */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .menu {
    flex-direction: column;
    background: white;
    position: fixed;
    top: 0;
    left: -70%;
    width: 70%;
    height: 100vh;
    padding-top: 0;
    gap: 30px;
    transition: left 0.3s ease;
    z-index: 5000; /* ߑ蠘ᙈی همه چیز */
  }

  .menu.show {
    left: 0;
  }
 .menu.show li{
margin-right: 30px;
  }

  
  /* زیرمنو در موبایل */
  .submenu {
    position: static;
    background: #006fa6;
    z-index: 5100; /* ߑ蠘蘧ز هم بالاتر */
  }
  .has-submenu:hover .submenu {
    display: none;
  }
  .has-submenu.active .submenu {
    display: flex;
    flex-direction: column;
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
  }


  .overlay.show {
    display: block;
  }
}




/* استایل بخش گتاب */

  .sectionbookpart{

    margin-bottom:20px;
    
  }

  .headerbookpart{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    flex-wrap:wrap;
    margin-bottom:20px;
  }

  .titlebookpart{
    font-size: clamp(22px, 3vw, 30px);
    font-weight:800;
    margin:0;
  }
  .subtitlebookpart{
    margin:0;
    color:var(--muted);
    font-size:14px;
  }

  .filtersbookpart{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    background: none;
  }

  .filter-btn{
 border: none;
    cursor: pointer;
    padding: 4px 16px;
    border-radius: 10px;
    background: #e7e9ee;
    color: var(--text);
    font-weight: 600;
    transition: all .2s 
ease;
  }
  .filter-btn:hover{
    background:#d4d7dd;
  }
  .filter-btn.is-active{
  background: #142c69;
    color: WHITE;
  }

  .gridbookpart{
    display:grid;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
    gap:20px;
    margin-top:20px;
  }

  .cardbookpart{
    overflow:hidden;
       display:flex;
    flex-direction:column;
    transition:transform .2s ease;
   border: 1px solid #ddd;
    border-radius: 15px;
    box-shadow: 6px 3px 12px 3px #ddd;
  }
  .cardbookpart:hover{
    transform:translateY(-4px);
  }

  .thumbbookpart{
    position:relative;
    aspect-ratio:3/4;
    overflow:hidden;
   
  }

  .thumbbookpart img{
    width:100%;
    height:100%;
    object-fit:cover;
  }
h3.item-titlebookpart{
 font-size: 1.2rem;
font-weight: bold; 
}
  .tagbookpart{
position: absolute;
    bottom: 10px;
    right: 10px;
    background: #9B5DE0;
    color: WHITE;
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 8px;
}
  

  .contentbookpart{
    padding:12px 16px;
    margin-top: 10px;
  }

  .item-titlebookpart{
    margin:0;
    font-size:16px;
    font-weight:700;
  }
  .readmorebottinlast button{
        background: #cbdce4;
    color: black;
    display: block;
    margin: 50px auto;
    padding: 0.5% 9%;
    border-radius: 5px;
    border: navajowhite;
  }

  .metabookpart{
    margin:4px 0 4px 0;
    color:var(--muted);
    font-size:1rem
    
  }

  .actionsbookpart{
    margin-top:auto;
    display:flex;
    gap:8px;
    padding:12px 16px 16px;
  }

  .btn.bookpart{
    flex:1;
    text-align:center;
    text-decoration:none;
    padding:8px 10px;
    border-radius:8px;
    font-weight:700;
    font-size:13px;
    color:#333;
    background:#f2f3f5;
    transition:background .2s ease;
  }
  .btn.bookpart:hover{ 
    background:#05939a; 
  }
  .btn.bookpart.primary{
    background:#005a9c;
    color:#fff;
  }
  .btn.bookpart.primary:hover{
    background:#0786e3;
  }
  .btn.bookpart{
    background: #00747a;
    color: white;
  }

  .is-hidden{ display:none !important; }

  @media (max-width:480px){
    .actions{ flex-direction:column; }
  }
/* شروع استایل های بخش اخبار شورا */
.cardnewsshora{
    display: grid;
    flex-direction: row;
    /* gap:10px; */
    justify-content: space-around;
    grid-template-columns: 25% 75%;

    align-items: stretch;
    background: #fff;
    box-shadow: 0px 1px 13px -1px gray;
    border-radius: 15px;
    transition: 0.5s ease;
}
.picsnewsshora{
        position: relative;
}
.badgenewsshora{
        position: absolute;
    /* inset: 9px 0 auto auto; */
    /* background: rgba(255, 0, 0, .6); */
    border-radius: 999px;
    font-size: .85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    right:0;
    background: #9B5DE0;
    padding: 5px 6px;
    font-weight: normal;
    border-radius: 0 15px 0 15px;
}
.badgenewsshora i{
        font-size: 25px;
    color:white;
}

.cardnewsshora:hover{
     grid-template-columns: 35% 65%;
     cursor: pointer;
}

.shoranewxtextdiv{
    
    padding: 10px 15px;
}

.shoratitlenews i{
    font-size: 1.1rem;
    color: #9B5DE0 ;
    margin-left: 5px;
}
.meta.datacardshorapart{
color: #9B5DE0 ;
margin-top: 15px;
font-weight: bold;

}
.meta.datacardshorapart i{
    margin-right: 5px;
}
.cardnewsshora img{
    object-fit: cover;
    border-radius: 0 15px 15px 0;
        height: 100%;
}
.cardnewsshora{
    max-width: 100%;
}
  .newsshora-grid {
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
     grid-template-columns: 50% 50%;

    gap: 18px;
    margin-bottom: 20px;
  }

.shoratitlenews{
    margin: 10px 0 6px;
    font-size: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
    line-height: 1.5;
    text-align: justify;
}
.shoranewstext{
        margin: 10px 0 6px;
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
        text-align: justify;
}

  @media (max-width:1200px) {
    .newsshora-grid {
      grid-template-columns: repeat(4, 1fr)
    }
  }

  @media (max-width:992px) {
    .newsshora-grid {
      grid-template-columns: repeat(3, 1fr)
    }
}


  @media (max-width:768px) {
    .carousel-inner.fullimgright.col-md-9 {
    padding-left: 15px !important;
}

  .multimediaslider.carousel-indicators{
  flex-direction: row !important;
}
.multimediaslider.carousel-indicators{
  gap:5px !important;
  padding: 0.5em;
}
.carousel-inner.fullimgright img{
      min-height: 260px !important;
}

.readmoremultimedia{
  margin-bottom: 10px;
}
    .newsshora-grid {
      grid-template-columns: repeat(2, 1fr)
    }
}

  @media (max-width:520px) {
    .newsshora-grid {
      grid-template-columns: 1fr
    }
}

/* شروع استایل های اسلایدر چندرسانه ای */

.multimediapart{
    margin-bottom: 20px;
}


.multimediaslider.carousel-indicators{
  position: unset;
  flex-direction: column;
  width: 100%;
  margin: 0;
  justify-content: space-between;
    gap: 15px;

  /* padding: 1em; */
}

.shoranewspart{
        padding: 30px 0;
    margin-bottom: 20px;
    background-color: #cbdce4;
}

.readmoremultimedia{
  text-align: left;
}
.multimediaslidertext h1{
   font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.5;
}
.multimediaslidertext p{
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 11;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
    line-height: 1.55;
    margin-top: 20px;

}
.multimediaslidertext{
    padding: 0 0 0 5%
}
.carousel-inner.fullimgright.col-md-9{
    padding-left: 0;
}
.multimediaslider.carousel-indicators [data-bs-target]{
  text-indent: 0;
  width: 100%;
  height: 100px;
  opacity: 1;
  font-size: 1.3em;
  font-weight: bold;
  background-color: transparent;
 
  border-top:0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 140px;
}
.multimediaslider.carousel-indicators [data-bs-target]{
border-bottom:none;
}
.multimediasliderrow{
    background: #cbdce4;
    padding: 10px 0px;
    border-radius: 35px 0 55px 35px;
}
.mysliderbg{
  /* background-color: beige; */
}
.carousel-inner.fullimgright img{
height:100%;
border-radius: 50px 0 50px 0;
min-height: 420px;
/*
max-width: 100%;
padding: 1em;
width: 100%; */
}
.carousel-indicators.multimediaslider.col-md-2 {
padding: 0;
}
.multimediaslider.carousel-indicators [data-bs-target] img{
width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;

}
.myslideritems.carousel-item{
    height: 100%;
}

/* پایان استایل های اسلایدر چندرسانه ای */






.main-pusher {
    background: #fff
}

.main-pusher {
    -webkit-transition: .3s;
    transition: .3s
}

.main-pusher--pushed {
    -webkit-transform: translateX(280px);
    transform: translateX(280px)
}


.saramadan {
    position: relative;
    padding: 50px 0;
    overflow: hidden;
    background: linear-gradient(94.99deg, #59174b .24%, #0b1478 100%);
}

.saramadan .css-bg {
    opacity: .06
}

.photo__cell {
    padding: 0 15px;
    width: 20%
}

.allsaramadan {
    position: relative;
    margin: 0 -15px;
    -webkit-filter: drop-shadow(0 15px 30px rgba(0, 0, 0, .08));
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, .08))
}

.photo__item {
    position: relative;
    background: rgba(255, 255, 255, .05);
    -webkit-box-shadow: 0 15px 30px rgba(0, 0, 0, .08);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .08);
    border-radius: 15px;
    margin-bottom: 30px;
    -webkit-transition: .3s;
    transition: .3s
}

.photo__item:hover {
    background: rgba(255, 255, 255, .2)
}

.photo__item:hover img {
    -webkit-transform: translate(-50%, -50%) scale(1.1);
    transform: translate(-50%, -50%) scale(1.1)
}

.special__items .photo__item {
    background-color: #fff;
    -webkit-box-shadow: none;
    box-shadow: none
}

.photo__img {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 66.666666667%;
    border-radius: 15px
}

.photo__img img {
    -webkit-transition: .3s;
    transition: .3s
}

body{
        margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: 0 0
}
.css-img {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    min-width: 100%;
    min-height: 100%;
    -o-object-fit: cover;
    object-fit: cover
}

.photo__content {
    padding: 20px
}

.photo__title {
    font-weight: 700;
    font-size: 16px;
    line-height: 30px;
    min-height: 90px;
    margin: 0 0 7px 0
}
.photo__title a{
    text-decoration: none;
}

.css-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    min-width: 100%;
    min-height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    z-index: 0
}

.photo__link {
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.photo__link:hover {
    color: var(--yellow)
}


.special__items .photo__link {
    color: #002a50
}

.special__items .photo__link:hover {
    color: var(--red)
}


.flickity-button:focus {
    outline: 0;
    -webkit-box-shadow: 0 0 0 0 #19f;
    box-shadow: 0 0 0 0 #19f
}

.flickity-button {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-shadow: none;
    box-shadow: none;
    background-color: rgba(255, 199, 0, .5);
    -webkit-transition: .3s;
    transition: .3s
}

.flickity-rtl .flickity-prev-next-button.next {
    left: -40px;
    opacity: 0
}

.flickity-rtl .flickity-prev-next-button.next::before {
    content: "\e931";
    font-family: niafam-icons;
    color: #000;
    font-size: 20px;
    font-weight: 700
}

.flickity-rtl .flickity-prev-next-button.previous {
    opacity: 0;
    right: -40px
}

.flickity-rtl .flickity-prev-next-button.previous::before {
    content: "\e933";
    font-size: 20px;
    font-weight: 700;
    color: #000;
    font-family: niafam-icons
}

.flickity-rtl:hover .flickity-prev-next-button.next {
    left: -60px;
    opacity: 1
}

.flickity-rtl:hover .flickity-prev-next-button.previous {
    opacity: 1;
    right: -60px
}

.flickity-page-dots .dot {
    width: 15px;
    height: 15px;
    margin: 0 2.5px;
    background: 0 0;
    border-radius: 0;
    opacity: 1;
    background: #ebebeb;
    border-radius: 20px;
    -webkit-transition: .3s;
    transition: .3s
}

.flickity-page-dots .dot.is-selected {
    width: 45px;
    background-color: orange;

    .flickity-page-dots {
        bottom: -20px
    }

    .main__slider .flickity-page-dots {
        width: auto;
        bottom: 40px;
        left: 40px
    }

    .allbooks .flickity-rtl:hover .flickity-prev-next-button.next {
        left: -15px;
        top: 45%
    }

    .allbooks .flickity-rtl:hover .flickity-prev-next-button.previous {
        top: 45%;
        right: -15px
    }

    html[dir=ltr] .main__slider .flickity-page-dots {
        left: auto;
        right: 40px
    }




    @media (max-width:767.98px) {

        .allsaramadan .photo__item {
            margin-bottom: 5px
        }

        .photo__cell {
            width: 50%
        }

        .main__slider .flickity-page-dots {
            bottom: 15px
        }

    }

    @media (max-width:991.98px) {
        .main__slider .flickity-page-dots {
            bottom: 25px;
            left: 25px
        }

        .photo__item {
            margin-bottom: 25px
        }

        .photo__cell {
            width: 33.33333%;
            padding: 15px
        }
    }

    @media (max-width:575.98px) {

        .photo__cell {
            width: 100%
        }

    }

    @media (max-width:1449.98px) {


        .flickity-page-dots .dot {
            width: 10px;
            height: 10px
        }
    }

    @media (max-width:1199.98px) {
        .photo__title {
            font-size: 14px;
            line-height: 24px;
            min-height: 72px
        }
    }