/* Styles for Course List Page */
.banner-frame {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 1rem !important;
    background: #f5f5f5 !important;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.08), 0 1px 2px -1px rgba(0,0,0,0.06) !important;
    height: 400px !important; /* Fixed height for desktop */
    width: 100% !important;
    margin-top: 1.5rem !important;
    margin-bottom: 2rem !important;
    isolation: isolate !important;
}

.banner-frame__inner,
.banner-frame__skeleton,
.banner-swiper,
.banner-swiper .swiper-wrapper,
.banner-slide,
.banner-slide-link,
.banner-image,
.banner-fallback {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.banner-frame__inner,
.banner-swiper,
.banner-slide,
.banner-slide-link {
    position: relative !important;
    overflow: hidden !important;
}

.banner-image {
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
}

@media (max-width: 1024px) {
    .banner-frame {
        height: 300px !important; /* Fixed height for tablet */
    }
}

@media (max-width: 640px) {
    .banner-frame {
        height: 240px !important; /* Fixed height for mobile */
        border-radius: 0.875rem !important;
    }
}

.BD_TL {
    border-top: 1px solid #000000;
    border-left: 1px solid #000000;
}

.BD_BR {
    border-bottom: 1px solid #000000;
    border-right: 1px solid #000000;
}

.free-badge-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 18px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    border: 1px solid #34d399;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.free-badge-index:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #34d399 0%, #047857 100%);
    color: white;
}

.discount-badge {
    background: #DD030E;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    display: inline-block;
    margin-top: 2px;
}

.strikethrough-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
}

.discounted-price {
    color: #DD030E;
    font-size: 1.1em;
}

/* Fix for dynamic table alignment */
#main-course-table td {
    padding: 5px;
    line-height: 1.4;
}
#main-course-table thead td {
    font-weight: bold;
}
