/* Course Card Standardization */
.custom-course-card {
    height: 500px !important;
    /* Force fixed height, overriding inline styles */
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    /* Slight spacing */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Add shadow for better definition */
}

.custom-course-card .down-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
    background: #fff;
}

/* Scrollbar for long description */
.course-description {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    margin-bottom: 15px !important;
    max-height: 200px;
    /* Explicit max height for inner content */
}

/* Custom Scrollbar Styling */
.course-description::-webkit-scrollbar {
    width: 6px;
}

.course-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.course-description::-webkit-scrollbar-thumb {
    background: #f5a425;
    border-radius: 3px;
}

.course-description::-webkit-scrollbar-thumb:hover {
    background: #e59415;
}

/* Owl Carousel Custom Navigation */
/* Ensure we target the specific theme/structure */
#courses-carousel-container .owl-nav {
    display: block !important;
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    /* Let clicks pass through container */
    z-index: 100;
}

#courses-carousel-container .owl-nav button.owl-prev,
#courses-carousel-container .owl-nav button.owl-next {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: rgba(23, 34, 56, 0.9) !important;
    /* Darker blue */
    color: #fff !important;
    border-radius: 50%;
    font-size: 24px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    /* Re-enable clicks on buttons */
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #fff !important;
    /* White border for contrast */
}

/* Position arrows slightly inside to ensure visibility on all screens */
#courses-carousel-container .owl-nav button.owl-prev {
    left: 10px !important;
}

#courses-carousel-container .owl-nav button.owl-next {
    right: 10px !important;
}

#courses-carousel-container .owl-nav button.owl-prev:hover,
#courses-carousel-container .owl-nav button.owl-next:hover {
    background-color: #f5a425 !important;
    transform: scale(1.1);
    border-color: #f5a425 !important;
}

#courses-carousel-container .owl-nav button span {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 4px;
}