/*==========================================
        Math Courses Section
==========================================*/

.math-courses {
    padding: 90px 0;
    background: #f8fafc;
}

/*=========================
        Slider
=========================*/

.math-course-slider {
    margin: 0;
    overflow: visible !important;  /* ← فقط همین تغییر */
    padding: 0 30px;  /* ← اضافه کن */
}

.math-course-slider .slick-slide {
    padding: 12px;
}

/*=========================
        Card
=========================*/

.math-course-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    transition: 0.35s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.math-course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.16);
}

/*=========================
        Image
=========================*/

.math-course-image {
    position: relative;
    overflow: hidden;
}

.math-course-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.45s;
}

.math-course-card:hover img {
    transform: scale(1.08);
}

/*=========================
      Status Badge
=========================*/

.course-status {
    position: absolute;
    top: 18px;
    right: 18px;
    color: #fff;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

.course-status.new {
    background: #0d6efd;
}

.course-status.bestseller {
    background: #ff9800;
}

.course-status.special {
    background: #e91e63;
}

/*=========================
        Body
=========================*/

.math-course-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/*=========================
      Rating
=========================*/

.course-rating {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
    font-size: 13px;
}

.course-rating i {
    color: #ffc107;
}

/*=========================
        Title
=========================*/

.math-course-body h4 {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 18px;
}

/*=========================
      Course Info
=========================*/

.course-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.course-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-info i {
    color: #0d6efd;
}

/*=========================
        Price
=========================*/

.math-course-body .course-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 20px;
}

.math-course-body .course-price .price {
    color: #0d6efd;
    font-size: 20px;
    font-weight: 800;
}

.math-course-body .course-price .old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
}

/*=========================
        Button
=========================*/

.math-course-body .btn-course {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: #0d6efd;
    color: #fff;
    border-radius: 12px;
    padding: 13px;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 600;
}

.math-course-body .btn-course:hover {
    background: #084298;
    color: #fff;
}

/*=========================
     Slick Arrows
=========================*/

.math-course-slider .slick-prev,
.math-course-slider .slick-next {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 5;
}

.math-course-slider .slick-prev:before,
.math-course-slider .slick-next:before {
    color: #0d6efd;
    font-size: 22px;
}

.math-course-slider .slick-prev:hover,
.math-course-slider .slick-next:hover {
    background: #0d6efd;
}

.math-course-slider .slick-prev:hover:before,
.math-course-slider .slick-next:hover:before {
    color: #fff;
}

/*=========================
      Slick Dots
=========================*/

.math-course-slider .slick-dots li button:before {
    color: #0d6efd;
    font-size: 12px;
}

/*=========================
      Responsive
=========================*/

@media (max-width: 992px) {
    .math-course-image img {
        height: 200px;
    }

    .math-course-body h4 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .math-course-image img {
        height: 180px;
    }

    .math-course-body {
        padding: 18px;
    }

    .course-info {
        font-size: 13px;
    }

    .math-course-body .course-price .price {
        font-size: 18px;
    }

    .math-course-slider {
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .math-course-image img {
        height: 170px;
    }

    .math-course-body h4 {
        font-size: 17px;
    }

    .course-rating {
        font-size: 12px;
    }

    .math-course-body .course-price {
        flex-direction: column;
        gap: 8px;
    }
}