/* ================= COURSES SECTION ================= */

.courses-section {
    padding: 10px 0 40px;
    background: #f8fafc;
}

/* ================= HEADING ================= */

.courses-section h2 {
    text-align: center;
    color: #0d6efd;
    margin: 0 0 25px;
    font-weight: 600;
    font-size: 26px;
}

/* Arrow + underline heading */
.heading-style{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d6efd;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 600;
}

.heading-style::before{
    content: "▶";
    font-size: 14px;
    text-shadow: 1px 1px 0 #999;
}

.heading-style::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background:
      linear-gradient(#dcdcdc,#dcdcdc) top,
      linear-gradient(#dcdcdc,#dcdcdc) bottom;
    background-size: 100% 1px;
    background-repeat: no-repeat;
}

/* ================= TABS ================= */

.course-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    border: 1px solid black;
    background: #fff;
    color: #555;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    background: #0d6efd;
    color: #fff;
}

/* ================= TAB CONTENT ================= */

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* ================= COURSE CARD ================= */

.course-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.course-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.course-card h5 {
    font-size: 16px;
    margin-bottom: 6px;
}

.course-card p {
    font-size: 13px;
    color: #666;
}

/* ================= ENROLL BUTTON ================= */

.enroll-btn{
    display: block;
    width: 70%;
    margin: 12px auto 0;
    padding: 10px 0;
    background: #0d6efd;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    transition: 0.3s;
}

.enroll-btn:hover {
    background: #084298;
}

/* ================= MISC ================= */

.coming-soon {
    color: #777;
    font-size: 14px;
    text-align: center;
}

/* ================= RESPONSIVE ================= */

/* -------- Tablet -------- */
@media (max-width: 991px) {

    .courses-section h2 {
        font-size: 24px;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .course-card img {
        height: 130px;
    }
}

/* -------- Mobile -------- */
@media (max-width: 768px) {

    /* 🔥 CARD WIDTH + GAP FIX */
    .courses-section .col-md-6,
    .courses-section .col-lg-3 {
        flex: 0 0 90%;
        max-width: 90%;
        margin: 0 auto 20px;   /* 🔥 vertical gap */
    }
	 .courses-section .container {
        padding-left: 2px;
        padding-right: 2px;

    .courses-section h2 {
        font-size: 22px;
    }

    .course-card {
        padding: 10px;
    }

    .course-card img {
        height: 120px;
    }

    .course-card h5 {
        font-size: 15px;
    }

    .course-card p {
        font-size: 12px;
    }

    .enroll-btn {
        width: 80%;
        font-size: 13px;
        padding: 9px 0;
    }
}

/* -------- Small Mobile -------- */
@media (max-width: 480px) {

    .course-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0 10px;
    }

    .tab-btn {
        padding: 8px 4px;
        font-size: 12px;
        white-space: nowrap;
    }

    .courses-section h2 {
        font-size: 20px;
    }
}
