/* =================================
   Resources/Courses Page Styles
   ================================= */

/* Filter Section */
.filter-section {
    background-color: var(--bg-white);
    padding: 30px 0;
    border-bottom: 2px solid var(--border-color);
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-title {
    flex-shrink: 0;
}

.filter-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.filter-title i {
    color: var(--primary-color);
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-dark);
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

/* Courses Section */
.courses-section {
    padding: 60px 0 80px;
    background-color: var(--bg-light);
}

.courses-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 1;
    transform: scale(1);
}

.course-card.hidden {
    display: none;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.course-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.course-content {
    padding: 25px;
}

.course-category {
    display: inline-block;
    background-color: rgba(29, 185, 84, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.course-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.course-content > p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 18px;
    font-size: 15px;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-gray);
}

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

.course-meta i {
    color: var(--primary-color);
    font-size: 14px;
}

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

.course-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #ffc107;
    font-size: 14px;
}

.course-rating span {
    color: var(--text-dark);
    font-weight: 600;
    margin-left: 8px;
    font-size: 15px;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 64px;
    color: var(--text-gray);
    opacity: 0.5;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.no-results p {
    font-size: 16px;
    color: var(--text-gray);
}

/* Responsive Design - Tablet */
@media (max-width: 992px) {
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .courses-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .filter-section {
        padding: 20px 0;
    }
    
    .filter-title h3 {
        font-size: 16px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .courses-section {
        padding: 40px 0 50px;
    }
    
    .courses-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .course-image {
        height: 200px;
    }
    
    .course-content h3 {
        font-size: 18px;
    }
    
    .course-content > p {
        font-size: 14px;
    }
}