/* GLOBAL FONT */
.courses-section,
.courses-section *:not(i),
.hero-section,
.hero-section *:not(i) {
    font-family: inherit !important;
}

/* BODY */
body {
    overflow-x: hidden;
    background: #fff;
}

/* HERO */
.hero-section {
    background: #f8f9fa;
}

.hero-title {
    font-size: 1.6rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: .95rem;
    color: #6c757d;
    max-width: 650px;
    margin: 0 auto;
}

@media (min-width:768px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* COURSES */
.courses-section {
    padding-top: 40px;
}

@media (min-width:768px) {
    .courses-section {
        padding-top: 80px;
    }
}

/* CARD */
.course-card {
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .05);
    transition: .3s;
}

@media (min-width:992px) {
    .course-card:hover {
        transform: translateY(-6px);
    }
}


.course-img-box {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}

/* hover image */
@media (hover:hover) {
    .course-card:hover .course-img {
        transform: scale(1.06);
    }
}

/* badge */
.course-level {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(13, 110, 253, .95);
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .75rem;
}

/* TITLE */
.course-title {
    line-height: 1.9;
}

/* SUMMARY */
.course-summary {
    color: #6b7280;
    line-height: 2;
    margin-bottom: 1rem;
}

/* INFO BOX */
.info-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    margin-bottom: 10px;
}

.label {
    font-size: .8rem;
    color: #6b7280;
}

.value {
    font-weight: 900;
    color: #111827;
    align-self: flex-end;
}

/* PRICE */
.course-price {
    font-size: 1.2rem;
    color: #0d6efd;
}

.free-price {
    background: #198754;
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 800;
}

/* BUTTON */
.course-footer {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid #eef1f4;
    margin-top: auto;
}

.course-btn {
    width: 100%;
    height: 52px;
    background: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-weight: 800;
}

.course-btn:active {
    transform: scale(0.98);
}

/* GRID */
.course-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width:768px) {
    .course-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width:576px) {

    .hero-title {
        font-size: 1.4rem;
    }


    .course-btn {
        height: 46px;
        font-size: .9rem;
    }

}

/* PAGINATION */
.pagination-wrapper {
    margin-top: 60px;
}