body{
    background: #F5F5F5;
}

.explore-card{
    border-radius: 16px;
    padding: 24px 39px;
    border: none;
}

.explore-section {
    margin: 20px 20px 40px 20px;
}

.explore-title {
    color: #0F1866;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 48px;
}

.explore-description {
    color: #516778;
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 20px;
    max-width: 648px;
    font-weight: 400;
}

.explore-search-container {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.explore-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.explore-search-input {
    width: 447px;
    height: 40px;
    padding: 20px 40px;
    padding-right: 70px;
    border: #EDF3FF;
    border-radius: 40px;
    font-size: 16px;
    background-color: #EDF3FF;
    color: #859BAB;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.explore-search-input:focus {
    border-color: #292984;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(41, 41, 132, 0.1);
}

.explore-search-input::placeholder {
    color: #9ca3af;
}

.explore-illustration {
    max-width: 100%;
    height: auto;
}

/* Filters Dropdown */
.explore-filters-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 24px;
    width: 280px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.explore-filters-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-dropdown {
    position: sticky;
    top: 70px;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    z-index: 1000;
}

.explore-filters-title {
    color: #292984;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.explore-filter-group {
    margin-bottom: 20px;
}

.explore-filter-label {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.explore-filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background-color: #f9fafb;
    color: #374151;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.explore-filter-select:focus {
    outline: none;
    border-color: #292984;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(41, 41, 132, 0.1);
}

.explore-search-btn {
    width: 100%;
    background-color: #292984;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 8px;
}

.explore-search-btn:hover {
    background-color: #1e1f6b;
}

/* Backdrop */
.explore-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.explore-backdrop.show {
    opacity: 1;
    visibility: visible;
}


.course-card-final {
    box-shadow: unset;
    max-width: 280px;
}

.swiper-slide {
     opacity: 1;
}

.course-image{
    height: 200px;
    object-fit: fill;
}

.course-card-final {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-content-final {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-title-final {
    min-height: 48px;
    line-height: 1.4;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.course-instructor-final {
    min-height: 24px;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.course-footer-final {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price-final .old-price::after {
    top: 50%;
    right: 73%;
}

.bg-orange{
    background-color: #4CB23C !important;
}

.course-price-final .free-price {
    color: red;
    line-height: 17px;
    font-size: 16px;
    font-weight: 500;
}

.course-price-final .free-price::after {
    content: "";
    position: absolute;
    top: 45%;
    right: 10%;
    width: 35px;
    height: 1px;
    background: red;
    transform: rotate(-45deg);
}

.course_details:not(:last-child):after {
    content: "●";
    font-size: .6rem;
    margin: 0 .4rem;
}

.block-27 ul {
    padding: 0;
    margin: 0;

}
.block-27 ul li {
    display: inline-block;
    margin-bottom: 4px;
    font-weight: 400;
}

.block-27 ul li a, .block-27 ul li span {
    color: gray;
    text-align: center;
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    border: 1px solid #e6e6e6;
    text-decoration: none;
    background-color: #fff;
}

.block-27 ul li.active a, .block-27 ul li.active span {
    background: #4ba1fa;
    color: #fff;
    border: 1px solid transparent;
}

.filter-icon{
    display: none;
}

@media (max-width: 767px) {

    .explore-section{
        margin: 10px 0 40px 0;
    }

    .explore-card {
        padding: 20px 15px;
    }

    .explore-title {
        font-size: 16px;
    }

    .explore-description {
        font-size: 10px;
    }

    .explore-search-input {
        width: 240px;
        height: 40px;
        padding: 2px 2px 2px 35px;
        padding-right: 0;
        font-size: 10px;
    }

    .explore-card .card-body .row{
        flex-direction: column-reverse;
    }

    .course-card-final, .scroll-row svg {
         display: flex !important;
    }

    .rho-pad {
        padding: 10px 15px 10px 15px;
    }

    .scroll-row {
        display: block;
        overflow-x: hidden;
        gap: 0;
        padding: 0;
    }

    .course-rates{
        margin-bottom: 25px;
    }

    .course-content .col-md-4 {
        text-align: center;
    }

    .course-content .rho-pad {
        padding: 10px 0;
    }

    .block-27{
        margin-bottom: 15px;
    }

    .filter-title-section{
        display: flex;
        justify-content: space-between;
    }

    .filter-icon{
        display: inline-block;
    }

    .explore-filters-title {
        margin: 20px 0;
    }

    .filter-dropdown {
        padding: 10px 25px 10px 25px;
    }

    .filter-form{
        display: none;
        opacity: 0;
        transition: all 0.4s ease;
    }

    .filter-form.show {
        display: block;
        opacity: 1;
    }
}


@media (min-width: 768px) and (max-width: 1366px) {
    .course-image-overlay {
        padding: 10px;
    }

    .course-stats-final {
        gap: 7px;
    }

    .courses-section .stat-item {
        gap: 2px;
        font-size: 12px;
    }

    .course-paid-tag-final {
        font-size: 12px;
    }

    .courses-section{
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .course-content{
        flex-flow: row-reverse;
    }

    .course-filter-card .row .col-md-4 img{
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        object-fit: fill !important;
    }
}
