﻿body {
    margin: 0;
    padding: 0;
    background-color: #f7f8fc;
    color: #404040;
}

.container {
    display: flex;
    padding: 20px;
}

.filter-section {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .filter-section h2 {
        font-weight: bold;
        margin-bottom: 15px;
    }

    .filter-section label {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        color: #575757;
    }

    .filter-section input[type="checkbox"] {
        margin-left: 10px;
    }

.price-filter {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

    .price-filter .range {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }

        .price-filter .range span {
            font-weight: bold;
        }

    .price-filter .slider {
        height: 3px;
        background-color: #d3d4d8;
        position: relative;
        margin-bottom: 20px;
    }

        .price-filter .slider .active {
            height: 3px;
            background-color: #30d5c8;
            position: absolute;
            left: 0;
            width: 50%;
        }

        .price-filter .slider .circle {
            width: 15px;
            height: 15px;
            background-color: #30d5c8;
            border-radius: 50%;
            position: absolute;
            top: -6px;
            border: 2px solid #f7f8fc;
        }

            .price-filter .slider .circle.left {
                left: 0;
            }

            .price-filter .slider .circle.right {
                left: 50%;
            }

.apply-button {
    background-color: #80b022;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.courses-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content:end;
}

.course-card {
    background-color: #fff;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}


@media(max-width:450px) {
    .course-card {
        background-color: #fff;
        border-radius: 22px;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        flex: 1 1 calc(100%);
        max-width: calc(100%);
    }
}
@media(min-width:451px) and (max-width:750px) {
    .course-card {
        background-color: #fff;
        border-radius: 22px;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

    .course-card h3 {
        color: #3c3c3c;
        margin-bottom: 10px;
    }

    .course-card .price {
        color: #71c100;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .course-card .instructor {
        color: #6f6d6d;
        margin-bottom: 10px;
    }

    .course-card .duration {
        display: flex;
        align-items: center;
        color: #3a3a3a;
        font-weight: bold;
    }

        .course-card .duration img {
            margin-left: 10px;
        }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.pagination-button-container {
    display: flex;
    gap: 5px;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    background-color: #fff;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a.active {
    background-color: #4CAF50;
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #f1f1f1;
}

.prev-button, .next-button {
    margin: 0 10px;
}

.education-search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 20px 0 0;
    box-sizing: border-box;
}

.education-search-main {
    width: 100%;
    height: 60px;
    background-color: #fff;
    border: 1px solid rgba(210, 210, 210, 0.57);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    margin: 0 0 20px 0;
}

.education-search-box {
    width: 20%;
    height: 32px;
    background-color: #fff;
    border: 1px solid rgba(210, 210, 210, 0.57);
    border-radius: 8px;
}

.education-search-box-left {
    margin-right: auto;
}

.education-search-box-right {
    margin-left: auto;
}

.education-search-select {
    position: absolute;
    right: 20px;
    padding: 5px;
    border: 1px solid rgba(210, 210, 210, 0.57);
    border-radius: 8px;
    color: #9f9d9d;
    font-size: 16px;
    font-family: 'Segoe UI', sans-serif;
    background-color: #fff;
}

.education-search-input {
    position: absolute;
    left: 20px;
    padding: 5px;
    border: 1px solid rgba(210, 210, 210, 0.57);
    border-radius: 8px;
    color: #9f9d9d;
    font-size: 16px;
    font-family: 'Segoe UI', sans-serif;
    background-color: #fff;
    width: 150px;
}

.education-search-icon {
    width: 20px;
    height: 20px;
    background-color: #9f9d9d;
    position: absolute;
}

.education-search-arrow {
    right: 50px;
    transform: rotate(180deg);
}

.education-search-menu {
    left: 50px;
}

.education-search-magnifier {
    left: 100px;
}

.fs-7{
    font-size:0.7rem;
}

/* Styles for noUiSlider handles */
.noUi-handle {
    border-radius: 50% !important;  /* اطمینان از دایره‌ای بودن */
    width: 15px !important;
    height: 15px !important;
    background-color: #30d5c8 !important;
    border: none !important;
    box-shadow: none !important;  /* برای جلوگیری از هرگونه حاشیه مربعی */
    cursor: grab;
}

/* Enhanced overrides for noUiSlider to remove unwanted height and padding */
.noUi-target {
    margin-top: 40px !important;  /* افزایش مارجین بالا برای فاصله بیشتر */
    height: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.noUi-base {
    height: auto !important;  /* برای جلوگیری از height ثابت */
    padding: 0 !important;   /* برای جلوگیری از padding */
}