/* =====================================================
   UG PG COURSE Filter button css
   ===================================================== */
.course-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9e9e9;
    border-radius: 40px;
    overflow: hidden;
    max-width: 900px;   /* 🔥 increased width */
    width: 100%;        /* responsive */
    margin: 0 auto 20px auto;
    border: 1.5px solid #d0d5dd;
}

/* =====================================================
   BUTTON BASE
   ===================================================== */
.filter-btn {
    flex: 1;                     
    padding: 16px 12px;          /* 🔥 balanced spacing */
    border: none;
    background: transparent;
    color: #222;
    font-weight: 600;
    font-size: 15px;             /* 🔥 slightly reduced for fit */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    text-align: center;
}

/* Divider */
.filter-btn:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: #d0d5dd;
}

/* Active */
.filter-btn.active {
    background: #1f3f8b;
    color: #fff;
}

/* 🔥 FIX: remove divider overlap on active */
.filter-btn.active::after {
    display: none;
}

/* Hover */
.filter-btn:hover:not(.active) {
    background: #dcdcdc;
}

/* =====================================================
   📱 MOBILE TAB STYLE (ALL VISIBLE – NO SCROLL)
   ===================================================== */
@media (max-width: 576px) {

    .course-tabs {
        border-radius: 30px;
        margin: 0 10px 15px 10px;
    }

    .filter-btn {
        flex: 1;
        font-size: 12px;        /* 🔥 smaller for 4 buttons */
        padding: 12px 5px;
        white-space: normal;   /* allow wrap */
        line-height: 1.2;
    }

    /* Smaller divider */
    .filter-btn:not(:last-child)::after {
        top: 30%;
        height: 40%;
    }
}

/* Extra small devices (optional improvement) */
@media (max-width: 400px) {
    .filter-btn {
        font-size: 11px;
        padding: 10px 4px;
    }
}

/* =====================================================
   COURSE CARD FIX (unchanged)
   ===================================================== */
.back__course__area .course__item .back-course-title a {
    color: #183985;
}

.back__course__area .course__item {
    border-radius: 44px !important;
    overflow: hidden;
}

/* ===== Discover our accredited Apply Button section ===== */

 .apply-now-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 7px 25px;
    background: #f36c21;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

/*  Hover effect */
.apply-now-btn:hover {
    background: #d9540f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}