/* Carousel Styles */
.carousel-wrapper {
    position: relative;
    max-width: 100%; /* Full screen width */
    margin: 0 auto 50px;
    padding: 0 60px; /* Space for buttons */
}

.carousel-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%; /* It will hold all items */
}

.carousel-track .course-card {
    min-width: 25%; /* 4 columns -> 25% each on desktop */
    flex: 0 0 25%;
    padding: 10px 5px; /* Gap simulation: 5px left/right = 10px gap? No, 2.5px each side gives 5px gap between siblings */
    padding: 15px 5px; /* Top/bottom padding for shadow to breathe, Left/right small padding for gap */
    box-sizing: border-box;
    background: transparent; /* Remove bg from wrapper */
    box-shadow: none; /* Remove shadow from wrapper */
    border: none;
}

/* New inner card styling for "professional look" */
.card-inner {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.course-image {
    width: 100%;
    height: 200px; /* Force consistent height */
    object-fit: cover;
}

.course-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-title {
    margin-bottom: 10px;
    text-align: left;
}

.course-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.course-title h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    line-height: 1.2;
    margin: 0; 
}

.course-title a {
    text-decoration: none;
    color: inherit;
    display: block; 
}

.course-meta {
    display: none !important;
}


@media (max-width: 768px) {
    .carousel-track .course-card {
        min-width: 100%;
        flex: 0 0 100%;
        padding: 10px 20px; /* Logic for single card */
    }
    
    .carousel-wrapper {
        padding: 0 40px; /* Slightly less padding on mobile */
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background-color: #a01724;
}

.prev-btn {
    left: 5px;
}

.next-btn {
    right: 5px;
}

/* Responsiveness for Carousel */
@media (max-width: 1024px) {
    .carousel-track .course-card {
        min-width: 50%; /* 2 items on tablet */
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 35px;
    }
    
    .carousel-track .course-card {
        min-width: 100%; /* 1 item on mobile */
        flex: 0 0 100%;
    }
}
