/*--------------------------------------------------------------
# Course List Page Styles - Similar to Blog List
--------------------------------------------------------------*/

/* Course List Page Container */
.course-list-page {
    position: relative;
    display: block;
    padding: 60px 0;
    background: #fff;
}

/* Course List Container */
.course-list-container {
    position: relative;
    display: block;
}

/* Course List Header */
.course-list-header {
    position: relative;
    display: block;
    margin-bottom: 40px;
    text-align: center;
}

.course-list-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    color: #212529;
    margin-bottom: 15px;
    font-family: "Mitr", sans-serif;
}

.course-list-subtitle {
    font-size: 16px;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    font-family: "Mitr", sans-serif;
}

/* Course Grid Layout */
.course-grid {
    position: relative;
    display: block;
}

.course-grid__left {
    position: relative;
    display: block;
}

/* Course Sidebar */
.course-grid__sidebar {
    position: relative;
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.course-grid__sidebar:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Course Categories */
.course-grid__title-box {
    position: relative;
    display: block;
    margin-bottom: 25px;
}

.course-grid__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: #212529;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    font-family: "Mitr", sans-serif;
}

.course-grid__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #50bfda;
    border-radius: 2px;
}

/* Course Categories List */
.course-grid__list-item {
    position: relative;
    display: block;
}

.course-grid__list-item li {
    position: relative;
    display: block;
    margin-bottom: 8px;
}

.course-grid__list-item li a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #212529;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-family: "Mitr", sans-serif;
}

.course-grid__list-item li a:hover,
.course-grid__list-item li a.active {
    background: #50bfda;
    color: #fff;
    border-color: #50bfda;
    transform: translateX(5px);
}

.course-grid__list-check {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.course-grid__list-item li a:hover .course-grid__list-check,
.course-grid__list-item li a.active .course-grid__list-check {
    background: rgba(255, 255, 255, 0.3);
}

.course-grid__list-text {
    position: relative;
    display: block;
    flex: 1;
    margin-left: 12px;
    font-weight: 500;
}

/* Course Search */
.course-grid__search {
    position: relative;
    display: block;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}
    
.course-grid__search:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.filter-course {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.filter-course input[type="search"] {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: "Mitr", sans-serif;
}

.filter-course input[type="search"]:focus {
    outline: none;
    border-color: #50bfda;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(80, 191, 218, 0.1);
}

.filter-course button {
    background: #50bfda;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Mitr", sans-serif;
}

.filter-course button:hover {
    background: #3da8c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(80, 191, 218, 0.3);
}

.filter-course button i {
    font-size: 16px;
}

/* Course Grid Right */
.course-grid__right {
    position: relative;
    display: block;
}

/* Course List Header */
.course-list__right-table-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.course-list__right-top-text {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin: 0;
    font-family: "Mitr", sans-serif;
}

.course-list__showing-sort {
    position: relative;
    display: block;
}

.select-box {
    position: relative;
}

.select-box select {
    appearance: none;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 35px 8px 15px;
    font-size: 16px;
    font-weight: 500;
    color: #212529;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    font-family: "Mitr", sans-serif;
}

.select-box select:focus {
    outline: none;
    border-color: #50bfda;
    box-shadow: 0 0 0 3px rgba(80, 191, 218, 0.1);
}

.select-box::after {
    content: '\f107';
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #50bfda;
    pointer-events: none;
    font-size: 16px;
}

/* Course Grid Items */
.course-grid__items {
    position: relative;
    display: block;
}

.course-grid__single {
    position: relative;
    display: block;
    margin-bottom: 30px;
}

/* Course Card */
.courses-two__single {
    position: relative;
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.courses-two__single:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Course Image */
.courses-two__img-box {
    position: relative;
    display: block;
    overflow: hidden;
}

.courses-two__img {
    position: relative;
    display: block;
    overflow: hidden;
}

.courses-two__img img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.courses-two__single:hover .courses-two__img img {
    transform: scale(1.05);
}

/* Course Content */
.courses-two__content {
    position: relative;
    display: block;
    padding: 25px 20px;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

/* Course Categories Tags */
.courses-two__categories {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.courses-two__category {
    position: relative;
    display: inline-block;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: "Mitr", sans-serif;
}

.courses-two__category:hover {
    background: #1976d2;
    color: #fff;
}

/* Course Title */
.courses-two__title {
    min-height: 60px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
    font-family: "Mitr", sans-serif;
}

.courses-two__title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.courses-two__title a:hover {
    color: #e21111;
}

/* Course Meta */
.courses-two__meta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 12px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.courses-two__meta li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.courses-two__meta .icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #f8f9fa;
    border-radius: 50%;
    color: #6c757d;
    font-size: 12px;
}

.courses-two__meta p {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    margin: 0;
    font-family: "Mitr", sans-serif;
}

/* Simple Instructor Section Styles */
.courses-two__instructor {
    display: flex;
    align-items: start;
    gap: 8px;
    font-size: 13px;
    color: #6c757d;
    z-index: 2;
    font-family: "Mitr", sans-serif;
}

.instructor-label {
    font-weight: 600;
    color: #495057;
    min-width: 40px;
}

.instructor-names {
    color: #6c757d;
    font-weight: 500;
}

/* Course Share */
.courses-two__share {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.courses-two__share-box {
    position: relative;
    display: block;
}

.courses-two__share-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    color: #6c757d;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.courses-two__share-toggle:hover {
    background: #50bfda;
    color: #fff;
    border-color: #50bfda;
}

.courses-two__share-options {
    position: absolute;
    top: 100%;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10;
    min-width: 120px;
}

.courses-two__share-box:hover .courses-two__share-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.courses-two__share-options a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    color: #495057;
    text-decoration: none;
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.courses-two__share-options a:hover {
    background: #f8f9fa;
    color: #50bfda;
}

.courses-two__share-options a i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.courses-two__share-options a:nth-child(1) {
    color: #1877f2;
}

.courses-two__share-options a:nth-child(2) {
    color: #1da1f2;
}

.courses-two__share-options a:nth-child(3) {
    color: #00b900;
}

.courses-two__share-options a:nth-child(4) {
    color: #6c757d;
}

/* Mobile Category Dropdown */
.mobile-category-dropdown {
    position: relative;
    display: none;
    margin-bottom: 20px;
}

.mobile-category-dropdown select {
    position: relative;
    display: block;
    width: 100%;
    height: 45px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 16px;
    color: #495057;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
    font-family: "Mitr", sans-serif;
}

.mobile-category-dropdown select:focus {
    outline: none;
    border-color: #50bfda;
    box-shadow: 0 0 0 3px rgba(80, 191, 218, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .course-grid__left {
        margin-bottom: 30px;
    }
    
    .course-grid__sidebar {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .course-list-page {
        padding: 40px 0;
    }
    
    .course-list-title {
        font-size: 28px;
    }
    
    .course-list__right-table-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .mobile-category-dropdown {
        display: block;
    }
    
    .course-grid__left {
        display: none;
    }
    
    .courses-two__content {
        padding: 20px 15px;
    }
    
    .courses-two__title {
        font-size: 16px;
    }
    
    .courses-two__meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .courses-two__share-options {
        min-width: 100px;
    }
    
    .courses-two__instructor {
        bottom: 12px;
        left: 15px;
        font-size: 12px;
        gap: 6px;
    }
}

@media (max-width: 576px) {
    .course-list-title {
        font-size: 24px;
    }
    
    .course-grid__title {
        font-size: 18px;
    }
    
    .filter-course {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-course button {
        width: 100%;
    }
    
    .courses-two__img {
        height: 160px;
    }
    
    .courses-two__content {
        padding: 15px 12px 40px 12px;
    }
    
    .courses-two__title {
        font-size: 15px;
    }
    
    .courses-two__share-options {
        min-width: 90px;
    }
    
    .courses-two__share-options a {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .courses-two__instructor {
        bottom: 10px;
        left: 12px;
        font-size: 11px;
        gap: 5px;
    }
}