.courses-sec {
    padding: 100px 0 60px;
    background: #e4cfb5;
}

.common-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 60px;
}

.common-heading p {
    font-size: 20px;
    margin-top: 10px;
}

/* Optional: page bg */
.course-sec {
    background: #f4f1ea;
    padding: 28px 18px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.course-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* Card */
.course-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    border: 1px solid rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.course-media {
    height: 240px;
    background: #e9eef3;
    position: relative;
}

.course-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Body */
.course-body {
    padding: 16px 16px 10px;
    flex: 1;
}

.course-badges {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.badge-ghost {
    background: #f3f5f7;
    border: 1px solid rgba(0, 0, 0, .08);
    color: #38424a;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #11a37f;
    /* small green indicator */
    display: inline-block;
}

.clock {
    font-size: 13px;
    opacity: .9;
}

.course-title {
    font-size: 20px;
    margin: 10px 0;
    font-weight: 700;
    color: #1f2a33;
}

.course-desc {
    font-size: 15px;
    color: #5c6b76;
    line-height: 1.45;
    margin: 0 0 12px;
    min-height: 38px;
}

/* Price row */
.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    flex-wrap: wrap;
}

.price {
    font-weight: 800;
    color: #217ebb;
    font-size: 20px;
}

.price-strike {
    color: #8d9aa3;
    text-decoration: line-through;
    font-size: 13px;
}

.discount {
    background: #1bbf6b;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 5px 9px;
    border-radius: 999px;
}

/* Bullet points */
.course-points {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 8px;
}

.course-points li {
    font-size: 15px;
    color: #41515c;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.course-points li::before {
    content: "•";
    color: #0b78a6;
    font-size: 18px;
    line-height: 1;
    margin-top: -1px;
}

/* Footer button */
.course-footer {
    padding: 14px 16px 16px;
}

.btn-primary {
    display: block;
    text-align: center;
    background: #fb9308;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 14px;
    transition: transform .12s ease, filter .12s ease;
}

.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1024px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 30px;
    }

    .common-heading {
        margin-bottom: 40px;
    }

    .common-heading p {
        font-size: 18px;
    }

    .courses-sec {
        padding: 50px 0;
    }

    .cta-section h2 {
        font-size: 30px;
    }
}

@media (max-width: 640px) {
    .course-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        min-height: auto;
    }


}