/**
 * Uniform Course Cards Design for Koursio
 * Ensures all course cards have consistent sizing and appearance
 */

/* Course section improvements */
.our-courses {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.our-courses .section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.our-courses .section-heading h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
}

.our-courses .section-heading h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #f6f3e5 0%, #d5daf1 100%);
    border-radius: 2px;
}

/* Uniform course card styling */
.owl-courses-item .item {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 15px;
    transition: all 0.3s ease;
    height: 420px; /* Fixed height for uniformity */
    display: flex;
    flex-direction: column;
}

.owl-courses-item .item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Course image container */
.owl-courses-item .item .course-image {
    height: 150px; /* Fixed height */
    overflow: hidden;
    position: relative;
}

.owl-courses-item .item img {
    width: 100%;
    height: 150px; /* Fixed height */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.owl-courses-item .item:hover img {
    transform: scale(1.05);
}

/* Course content area */
.owl-courses-item .item .down-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.owl-courses-item .item .down-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.89);
    margin-bottom: 15px;
    line-height: 1.4;
    height: auto; /* Auto height for title */
    overflow: visible;
    background: #fefcf8;
    padding: 10px;
    border-radius: 5px;
}

/* Course info section */
.owl-courses-item .item .info {
    margin-top: auto;
}

.owl-courses-item .item .info .row {
    align-items: center;
}

.owl-courses-item .item .info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.owl-courses-item .item .info ul li {
    margin-right: 5px;
}

.owl-courses-item .item .info ul li i {
    color: #ffc107;
    font-size: 14px;
}

/* Course badge/tag */
.owl-courses-item .item .course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f1eee5 0%, #bcc5ef 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Course enrollment button */
.owl-courses-item .item .enroll-btn {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.owl-courses-item .item .enroll-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .owl-courses-item .item {
        height: auto;
        margin: 10px 5px;
    }

    .owl-courses-item .item .course-image,
    .owl-courses-item .item img {
        height: 180px;
    }

    .owl-courses-item .item .down-content h4 {
        height: auto;
        font-size: 16px;
    }
}

/* Owl carousel customization for courses */
.owl-courses-item.owl-carousel .owl-nav {
    margin-top: 30px;
    text-align: center;
}

.owl-courses-item.owl-carousel .owl-nav button {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 10px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.owl-courses-item.owl-carousel .owl-nav button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.1);
}

.owl-courses-item.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.owl-courses-item.owl-carousel .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.owl-courses-item.owl-carousel .owl-dots .owl-dot.active {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
