@import url('color.css');
@import url('fonts.css');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "vazir";
   
}

body {
    background-color:#EDE8F5!important;
}

.item_course {
    border-radius: 1rem;
    background-color: var(--wight_syte);
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1); /* سایه باکس */
    padding: 0rem;
    position: relative;
    height: 370px;
    margin-bottom: 1.5rem;
    transition: all 1000ms;
    
}
.swiper-wrapper{
    padding-top: 60px;

}
.swiper-slide .item_course:hover{
    margin-top: -20px;
    
 }

.swiper-container {
    padding: 0.5rem;
    padding-bottom: 60px;
  
}

.item_course img{
    width: 100%;
    height: 200px;
    position: relative;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.item_course .category-content{
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #329AFA;
    padding: 0rem;
    padding-bottom: 0.15rem;
    border-radius: 0.3rem;
    padding-left: 0.3rem;
    padding-right: 0.3rem;
}
.item_course .category-content label{
    font-size: 0.8rem;
    color: var(--wight_syte);
    margin: 0px!important;
    
}





/* content_item */
.item_course .content_item{
    padding: 0.5rem;
    border-bottom-right-radius: 1rem;
    border-bottom-left-radius: 1rem;
    
}

.item_course .content_item h5{
    font-size: 1rem;
    font-family: 'vazir-bold';
    margin-top: 0.3rem;
    margin-bottom: 0.5rem;
    height: 40px;
    line-height: 1.6;
    color: #00154C;
    transition: all 0.5ms;

}
.item_course .content_item h5:hover{
    color: #00164ccc;


}


.item_course .content_item a{
    text-decoration: none;
}
.item-teacher{
    display: flex;
    justify-content: start;
    align-items: center;

    margin-bottom: 0.7rem;

}
.item-teacher .icon_teacher{
    width: 18px;
    height: 18px;
    margin-left: 0.4rem;
    color: var(--dark_gray);
}
.item-teacher label{
    font-size: 0.88rem;
    color: var(--dark_gray);
    font-family:  'vazir-bold';
}

.item-time{
    display: flex;
    justify-content: start;
    align-items: center;

    margin-bottom: 0.7rem;

}
.item-time .icon_time{
    width: 17px;
    height: 17px;
    margin-left: 0.4rem;
    color:var(--dark_gray);
}
.item-time label{
    font-size: 0.88rem;
    color: var(--dark_gray);
    font-family:  'vazir-bold';
}


/* ====== */
.price{
    font-size: 0.88rem;
    color: #1047b6;
    display: flex;
    margin-left: 0.4rem;
    justify-content: end;
    align-items: center;
    font-family:  'vazir-bold';
}

del {
    color: #aaa;  /* رنگ خاکستری برای قیمت قدیم */
    text-decoration: line-through;  /* خط خورده روی قیمت قدیم */
    margin-left: 15px;  /* فاصله برای جدا کردن قیمت قدیم از جدید */
}

ins {
    color: #e74c3c;  /* رنگ قرمز برای قیمت جدید */
    font-weight: bold;  /* ضخیم بودن متن قیمت جدید */
}





/* استایل‌های pagination */
.swiper-pagination {
    position: absolute;
    bottom: 10px; /* پایین‌تر از اسلایدر */
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
  
    
}

.swiper-pagination-bullet {
    background-color: var(--light_gray);
    width: 15px;
    height: 15px;
    margin: 30px 5px;
    border-radius: 50%;
    opacity: 0.5;
    
}

.swiper-pagination-bullet-active {
    background-color: #0042C3;
   
    opacity: 1;
}





/* ============================================== */


@media screen and (max-width: 992px) {



    .item_course {
        border-radius: 1rem;
        background-color: var(--wight_syte);
        box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1); /* سایه باکس */
        padding: 0rem;
        position: relative;
        height: 320px;
        margin-bottom: 1.5rem;
        transition: all 1000ms;
        
    }
    .item_course img{
        width: 100%;
        height: 165px;
      
    }
    
    .item_course .category-content{
       
        top: 10px;
        right: 10px;
        padding: 0.2rem;
        padding-top: 0rem;
        border-radius: 0.2rem;
       
    }
    .item_course .category-content label{
        font-size: 0.7rem;
       
    }

    
    .item_course .content_item h5{
        font-size: 0.85rem;
        margin-top: 0.2rem;
        margin-bottom: 0.25rem;
        height: 35px;
       

    }

    .item-teacher .icon_teacher{
        width: 15px;
        height: 15px;
    
    }
    .item-teacher label{
        font-size: 0.8rem;
      
    }
    
 
    .item-time .icon_time{
        width: 14px;
        height: 14px;
       
    }
    .item-time label{
        font-size: 0.8rem;
      
    }
    



    .swiper-pagination-bullet {
      
        width: 10px;
        height: 10px;
      
        
    }

    
    
    
    

 
}
@media screen and (max-width: 768px) {
    .item_course {
    
        height: 330px;
       
        
    }
    .item_course .content_item h5{
        font-size: 0.9rem;
        height: 40px;
       

    }

    .item-teacher label{
        font-size: 0.85rem;
      
    }
    

    .item-time label{
        font-size: 0.85rem;
      
    }
    .pagination-controls .next_b:hover{
        opacity: 60%;
    }
    @media screen and (max-width: 400px) {
        .item_course {
    
            margin-left: 1.5rem;
            margin-right: 1.5rem;
           
            
        } 
    }


 
    

}
