/* COURSES SECTION */
.courses-section {
    padding: 20px 0;
}

.courses-wrapper {
    max-width: 1050px;
    margin: auto;
    background: linear-gradient(135deg, #0f172a, #111827);
    border-radius: 6px;
    padding: 32px;
    color: #fff;
}

/* TOP PILLS */
.courses-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.pill {
    background: #bfbfbf;
    color: #000;
    padding: 6px 22px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
}

.pill.ghost {
    width: 120px;
    height: 28px;
}

/* TITLE */
.courses-title {
    background: #0b0b0b;
    display: inline-block;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 22px;
    margin-bottom: 28px;
}

/* GRID */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* CARD */
.course-card {
    background: #0b1220;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* CONTENT */
.course-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-content h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.course-content p {
    font-size: 13px;
    line-height: 1.5;
    color: #d1d5db;
    flex-grow: 1;
}

/* JOIN LINK */
.course-content a {
    align-self: flex-end;
    color: #ff3b3b;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.course-content a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media(max-width:900px) {
    .course-grid {
        grid-template-columns: 1fr;
    }
}

.course-heading-wrap {
    margin-bottom: 26px;
}

.course-heading {
    display: inline-block;
    background: linear-gradient(135deg, #0b0b0b, #1f1f1f);
    color: #ffffff;
    padding: 14px 26px;
    border-radius: 14px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .2px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, 0.281);
    margin: 20px auto;
    display: flex;
    align-content: center;
    justify-content: center;
    max-width: 225px;
    margin-top: 50px;
    margin-bottom: 0px;
    color: #f72826;
}