/* Popular Medical Training Courses Section Styling */
.popular-courses-section {
    background-color: #ffffff;
    padding-top: 100px;
    padding-bottom: 100px;
}

.courses-section-title {
    color: #78a865;
    font-family: 'Open Sans', sans-serif;
    font-size: 50px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.courses-section-subtitle {
    color: #000;
    font-family: 'DM Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 1.9px;
    line-height: 1.4;
}

.course-card {
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'DM Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
    width: 100%;
    max-width: 100%;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.course-img-wrapper {
    height: 285px;
    width: 100%;
    overflow: hidden;
    background-color: #f8f9fa;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.course-card-body {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-start;
}

.course-badge {
    color: #78A865;
    font-family: 'DM Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background-color: #78A865;
    border-radius: 50%;
    display: inline-block;
    margin-right: 7px;
}

.course-title {
    color: #000000;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 6px;
    margin-bottom: 12px;
}

.course-desc {
    color: #525252;
    font-family: 'DM Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 12px;
}

.course-skills-list {
    padding-left: 20px;
    margin-top: 0;
    margin-bottom: 16px;
    color: #525252;
    font-family: 'DM Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.course-skills-list li {
    margin-bottom: 6px;
}

.course-extra-text {
    color: #525252;
    font-family: 'DM Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.admission-box {
    margin-top: 18px;
    padding-top: 0;
    border-top: none;
}

.admission-title {
    color: #333333;
    font-family: 'DM Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.admission-text {
    color: #666666;
    font-family: 'DM Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
}

/* View All Button */
.btn-view-all {
    background-color: #603891;
    color: #ffffff !important;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(96, 56, 145, 0.35);
}

.btn-view-all:hover {
    background-color: #4d2b77;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(96, 56, 145, 0.5);
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
    .popular-courses-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .courses-section-title {
        font-size: 38px;
    }

    .courses-section-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 767.98px) {
    .popular-courses-section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .courses-section-title {
        font-size: 28px;
    }

    .courses-section-subtitle {
        font-size: 15px;
    }

    .course-card-body {
        padding: 24px 20px;
    }
}
