/*
 Theme Name:   Edumoon Child Theme
 Theme URI:    https://getmasum.com/themes-wp/edumoon/
 Description:  This is Edumoon Child Theme
 Author:       themesvila
 Author URI:   https://themeforest.net/user/themesvila
 Template:     edumoon
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:  two-columns, right-sidebar
 Text Domain:  edumoon-child
*/

/* Course Archive Header */
.tutor-course-archive-header {
    background-color: #f8f9fa;
    margin-bottom: 30px;
}

.archive-title {
    font-size: 32px;
    margin-bottom: 10px;
}

/* Course Card Styles */
.course-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.course-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-content {
    padding: 20px;
}

.course-category {
    margin-bottom: 10px;
}

.course-category a {
    color: #666;
    font-size: 14px;
    text-decoration: none;
}

.course-title {
    font-size: 18px;
    margin-bottom: 15px;
}

.course-title a {
    color: #333;
    text-decoration: none;
}

.course-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-footer {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Filter Styles */
.course-filters-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.filter-item {
    margin-bottom: 10px;
}

/* Custom Checkbox */
.custom-checkbox {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: #2196F3;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #2196F3;
    border-color: #2196F3;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Pagination */
.course-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.course-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.course-pagination .current,
.course-pagination .page-numbers:hover {
    background: #2196F3;
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .course-filters-wrapper {
        margin-bottom: 30px;
    }
}