
/******************************************************************************
 * HERO CAROUSEL 輪播區塊
 ******************************************************************************/
.hero-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #000000;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Caption */
.carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.carousel-caption h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.btn-carousel {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: #ffffff;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-carousel:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.4);
}

/* Navigation Arrows */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
    z-index: 3;
}

.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 3;
	margin: 0;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.indicator.active {
    background: #ffffff;
    width: 30px;
    border-radius: 6px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Carousel Responsive */
@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .btn-carousel {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: 1rem;
    }
    
    .carousel-next {
        right: 1rem;
    }
}

/******************************************************************************
 * COURSES SECTION 課程區塊
 ******************************************************************************/

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #d1d5db;
    max-width: 600px;
    margin: 0 auto;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Course Card */
.course-card {
    background: #202226;
	border: 1px solid #40444D;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: rgba(140, 152, 164, 0.1) 0px 12px 15px;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Course Image */
.course-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #e5e7eb;
}

.course-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ef4444;
    color: #ffffff;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.course-badge.new {
    background: var(--primary);
}

/* Course Content */
.course-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Course Instructor */
.course-instructor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.course-instructor img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e7eb;
}

.course-instructor span {
    font-size: 0.875rem;
    color: #d1d5db;
}

/* Course Footer */
.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #333333;
}

.course-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-label {
    font-size: 0.75rem;
    color: #9ca3af;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ef4444;
}

.price-original {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.btn-detail {
    padding: 0.625rem 1.25rem;
    background: var(--primary);
    color: #ffffff;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.btn-detail:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* View All Button */
.view-all {
    text-align: center;
}

.btn-view-all {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.btn-view-all:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Courses Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .btn-detail {
        width: 100%;
        text-align: center;
    }
}

