/**
 * Clean Modern Course Card Design
 * Simple, elegant, and user-friendly
 */

/* Main Card Container */
.fc-course-card.courses__item {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.fc-course-card.courses__item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
    transform: translateY(-2px);
}

/* Thumbnail Section */
.fc-course-card .courses__item-thumb {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16/9;
    background: #f5f5f5;
}

.fc-course-card .courses__item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.fc-course-card:hover .courses__item-thumb img {
    transform: scale(1.03);
}

/* Category Badge */
.fc-course-card .fc-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(26, 115, 232, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.4;
    display: inline-block;
    width: auto;
    white-space: nowrap;
}

.fc-course-card .fc-category-badge:hover {
    background: rgba(21, 87, 176, 0.95);
    color: #ffffff;
    transform: scale(1.05);
}

/* RTL Support */
[dir="rtl"] .fc-course-card .fc-category-badge {
    left: auto;
    right: 12px;
}

/* Wishlist Button - Hidden */
.fc-course-card .courses__wishlist-two {
    display: none;
}

/* Content Section */
.fc-course-card .courses__item-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Hide original meta */
.fc-course-card .courses__item-meta {
    display: none;
}

/* Course Title */
.fc-course-card .courses__item-content .title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px;
}

.fc-course-card .courses__item-content .title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fc-course-card .courses__item-content .title a:hover {
    color: #1a73e8;
}

/* Instructor Name */
.fc-course-card .courses__item-content .author {
    margin: 0;
    font-size: 13px;
    color: #666666;
    font-weight: 400;
    line-height: 1.4;
}

.fc-course-card .courses__item-content .author a {
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fc-course-card .courses__item-content .author a:hover {
    color: #1a73e8;
}

/* Price & Rating Row */
.fc-course-card .fc-price-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.fc-course-card .fc-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a73e8;
    margin: 0;
    line-height: 1;
}

.fc-course-card .fc-price.free {
    color: #34a853;
}

.fc-course-card .fc-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.fc-course-card .fc-rating i {
    color: #fbbc04;
    font-size: 14px;
}

/* Hide original bottom section */
.fc-course-card .courses__item-bottom {
    display: none;
}

/* Add to Cart Button Wrapper */
.fc-course-card .fc-add-to-cart-wrapper {
    padding: 0 16px 16px;
    width: 100%;
}

.fc-course-card .fc-add-to-cart-btn {
    display: block;
    width: 100%;
    background: #1a73e8;
    color: #ffffff;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    line-height: 1.4;
}

.fc-course-card .fc-add-to-cart-btn:hover {
    background: #1557b0;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.fc-course-card .fc-add-to-cart-btn:active {
    transform: translateY(0);
}

/* Enrolled Button */
.fc-course-card .fc-add-to-cart-btn.enrolled {
    background: #34a853;
}

.fc-course-card .fc-add-to-cart-btn.enrolled:hover {
    background: #2d8f47;
    box-shadow: 0 2px 8px rgba(52, 168, 83, 0.3);
}

/* Booked Button */
.fc-course-card .fc-add-to-cart-btn.booked {
    background: #9e9e9e;
    cursor: not-allowed;
    opacity: 0.7;
}

.fc-course-card .fc-add-to-cart-btn.booked:hover {
    background: #9e9e9e;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .fc-course-card .courses__item-content .title {
        font-size: 15px;
        min-height: 45px;
    }

    .fc-course-card .fc-price {
        font-size: 18px;
    }
}

@media (max-width: 991px) {
    .fc-course-card .courses__item-content {
        padding: 14px;
    }

    .fc-course-card .fc-add-to-cart-wrapper {
        padding: 0 14px 14px;
    }

    .fc-course-card .courses__item-content .title {
        font-size: 15px;
        min-height: 45px;
    }

    .fc-course-card .fc-price {
        font-size: 18px;
    }

    .fc-course-card .fc-add-to-cart-btn {
        padding: 11px 18px;
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .fc-course-card .courses__item-content {
        padding: 12px;
    }

    .fc-course-card .fc-add-to-cart-wrapper {
        padding: 0 12px 12px;
    }

    .fc-course-card .courses__item-content .title {
        font-size: 14px;
        min-height: 42px;
    }

    .fc-course-card .fc-price {
        font-size: 17px;
    }

    .fc-course-card .fc-rating {
        font-size: 13px;
    }

    .fc-course-card .fc-add-to-cart-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .fc-course-card .fc-category-badge {
        font-size: 10px;
        padding: 3px 10px;
    }
}

/* Swiper Slide Adjustments */
.courses-swiper-active .swiper-slide {
    height: auto;
}

.courses-swiper-active .swiper-slide .fc-course-card {
    height: 100%;
}

/* Grid Layout Adjustments */
.courses__grid-wrap .fc-course-card {
    margin-bottom: 0;
}

/* Add spacing between course cards */
.courses__grid-wrap > div {
    margin-bottom: 30px;
}

.courses__grid-wrap > div:last-child {
    margin-bottom: 0;
}
