@import '../variable.css';

/* Trending Courses Component Styles */
.tc-splide-container {
    padding: 0 0;
}

.tc-card {
    background-color: var(--white-clr);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    height: 100%;
}

.tc-card:hover {
    box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.1);
}

.tc-card-img-container {
    height: 150px;
    position: relative;
}

.tc-card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tc-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--ff-poppins);
    font-size: var(--fs-10);
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0px 6px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tc-badge-trending {
    background-color: var(--primary-clr);
    color: var(--white-clr);
}

.tc-card-title {
    font-size: var(--fs-18);
    line-height: 1.3;
    font-weight: 600;
    font-family: var(--ff-poppins);
}

.tc-category-text {
    color: var(--badge-new);
    font-size: var(--fs-12);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--ff-poppins);
}

.tc-duration-text {
    color: var(--black-offset-clr-2);
    font-size: var(--fs-14);
    line-height: 1.4;
    font-family: var(--ff-poppins);
}

.tc-text-on-surface {
    color: var(--black-clr);
}

.tc-text-on-surface-variant {
    color: var(--black-offset-clr-1);
}

.tc-btn-enroll {
    background-color: var(--primary-clr);
    color: var(--white-clr);
    border: none;
    font-size: var(--fs-14);
    font-weight: 600;
    line-height: 1.0;
    padding: 8px 12px;
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    font-family: var(--ff-poppins);
}

.tc-btn-enroll:hover {
    background-color: var(--accent-clr-2);
    color: var(--white-clr);
    transform: scale(0.95);
}

.tc-btn-enroll:active {
    background-color: var(--accent-clr-2) !important;
    color: var(--white-clr) !important;
    transform: scale(0.95) !important;
}

.tc-btn-enroll:focus-visible {
    background-color: var(--primary-clr);
    color: var(--white-clr);
    box-shadow: 0 0 0 0.25rem rgba(214, 39, 54, 0.25);
}

.tc-icon {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.tc-icon-filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.tc-star-rating {
    color: var(--accent-clr-1);
}

.tc-star-rating .tc-icon {
    font-size: 18px;
}

.tc-divider {
    border-top: 1px solid var(--gray-200);
}

.tc-active-learners-label {
    color: var(--black-offset-clr-2);
    font-size: var(--fs-12);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--ff-poppins);
}

.tc-active-learners-count {
    color: var(--black-clr);
    font-size: var(--fs-18);
    line-height: 1.6;
    font-weight: 700;
    font-family: var(--ff-poppins);
}

.tc-label-bold {
    font-size: var(--fs-12);
    line-height: 1.0;
    letter-spacing: 0.05em;
    font-weight: 700;
    font-family: var(--ff-poppins);
}

.tc-learner-area {
    cursor: pointer;
}

.tc-learner-area .material-symbols-outlined {
    color: var(--black-offset-clr-1);
    font-size: var(--fs-18);
}

.tc-learner-area .learner-number {
    color: var(--black-offset-clr-1);
    font-size: var(--fs-10);
    line-height: 1.4;
    font-weight: 600;
    font-family: var(--ff-poppins);
}

.tc-body-sm {
    font-size: var(--fs-14);
    line-height: 1.4;
    font-weight: 400;
    font-family: var(--ff-poppins);
}

.tc-slide {
    padding: 0 8px;
}

/* Splide Custom Styles */
/* .tc-splide-container .splide__slide {
    height: auto;
}

.tc-splide-container .splide__track {
    padding: 20px 0 40px 0;
}

.tc-splide-container .splide__list {
    align-items: stretch;
} */

/* Mouse wheel cursor indicator */
/* .tc-splide-container .splide.is-draggable {
    cursor: grab;
}

.tc-splide-container .splide.is-draggable:active {
    cursor: grabbing;
} */

@media (max-width: 768px) {
    .tc-splide-container {
        padding: 0 20px;
    }
}