.categories-container-title {
    color: white;
    font-size: 18px;
}

.category-title-for-sub-categories {
    color: white;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.categories-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin-top: 5px;
}

.categories-container-with-title {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 10px;
    background-color: #3a3a3a54;
    border: 1px solid #7e7e7e54;
    border-radius: 10px;
}

.category-item {
    cursor: pointer;
    padding: 5px 25px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin: 5px;
    color: white;
    transition: background-color 0.3s ease;
    flex: 0 0 auto;
    max-width: 90%;
}

.category-item:hover {
    border: 2px solid #FFAA00;
    color: white;
}

.category-item.active {
    background-color: #FFAA00;
    border: 2px solid #FFAA00;
    color: white;
}

.course-item {
    width: 15%;
    height: auto;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: 0.3s ease;
}

.course-item:hover {
    transform: scale(1.05);
}

.course-item img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    border: 2px solid #bbbbbb;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.course-title {
    font-size: 14px;
    margin-top: 8px;
    color: #FFFFFF;
}

.sub-category-title {
    font-size: 15px;
    margin-bottom: 10px;
    color: #FFAA00;
}

.sub-category-content {
    display: flex;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-top: 10px;
    padding-left: 10px;
    background-color: #3a3a3a54;
    border: 1px solid #7e7e7e54;
    border-radius: 10px;
}

.sub-category:not(:last-child) {
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.courses-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
}

.courses-loader .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #FFAA00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.courses-loader-text {
    color: #aaa;
    margin-left: 10px;
    font-size: 14px;
}
