 .course-description {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.course-meta {
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}
.course-card {
    border-radius: 10px;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.course-card:hover {
    background: linear-gradient(to right, #c8e6f0, #fefefe);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Nhẹ nhàng */
}
.thumbnail-wrapper {
    position: relative;
}

.percent-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: var(--main-color);
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

.text-truncate-2 {
    display: -webkit-box;

    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-original {
    color: #888;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.price-discount,
.price-normal {
    font-weight: bold;
    font-size: 1rem;
}

    .main-thumbnail {
        width: 100%;
        aspect-ratio: 16 / 9; 
        object-fit: cover;
    }

    .course-thumbnail {
        width: 100%;
        aspect-ratio: 16 / 9; 
        object-fit: cover;
    }

    .small-thumbnail {
        width: 100%;
        aspect-ratio: 16 / 9; 
        object-fit: cover;
    }

    .discount-badge {
        position: absolute;
        top: 1px;
        left: 10px;
        background-color: var(--main-color);
        color: white;
        font-weight: bold;
        font-size: 0.8rem;
        padding: 3px 7px;
        border-radius: 5px;
        z-index: 1;
    }
    .percent-badge {
        position: absolute;
        bottom: 30px;
        right: 20px;
        background-color: var(--main-color);
        color: white;
        font-weight: bold;
        font-size: 0.8rem;
        padding: 3px 7px;
        border-radius: 5px;
        z-index: 1;
    }

    .course-card {
        position: relative;
    }
    .price-original {
        color: #6c757d;
        text-decoration: line-through;
        font-size: 0.9rem;
    }
    .price-discount {
   
        font-weight: bold;
        font-size: 1rem;
    }
    .price-normal {
        font-weight: bold;
        font-size: 1rem;
    }


    .category-header {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .category-thumbnail {
        width: 100%;
        max-height: 300px;
        object-fit: cover;
        border-radius: 10px;
    }

    .category-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        text-align: center;
        background: rgba(0, 0, 0, 0.5);
        padding: 20px;
        border-radius: 8px;
        width: 80%;
    }

    .category-title {
        font-size: 32px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .category-description {
        font-size: 16px;
    }
 


    .small-thumbnail {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        border-radius: 5px;
    }

    .btn-category {
        border: 1px solid var(--gray-300);
        background-color: white;
        color: var(--text-color);
        padding: 8px 16px;
        border-radius: var(--border-radius);
        font-size: 14px;
        transition: all 0.2s ease-in-out;
      }
      
      .btn-category:hover,
      .btn-category.active {
        background-color: var(--main-hover);
        color: white;
        border-color: var(--main-hover);
      }
      