/*-----------------------------------------------------------------
--------------------------- Course Section --------------------------
------------------------------------------------------------------*/

/* ==================== BASE SECTION STYLES ==================== */
.courses1-area {
    background: radial-gradient(circle at 0% 20%, #ffffff, #f5faff);
    padding: 80px 0px;
}

.courses1-area .swiper-grid>.swiper-wrapper {
    padding: 10px 0px;
}

/* ==================== TYPOGRAPHY & TITLES ==================== */
.three h1 {
    font-size: clamp(1.5625rem, 3vw, 1.75rem);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.5em;
    padding-bottom: 15px;
    position: relative;
    color: #021E40;
}

.three h1:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5px;
    width: 55px;
    background-color: #111;
}

.three h1:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    height: 1px;
    width: 95%;
    max-width: 255px;
    background-color: #333;
}

.title-area-mobile {
    display: none;
}

.title-area-desktop {
    display: block;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==================== COURSE IMAGE WRAPPER ==================== */
.courses-img-wrapper {
    position: relative;
}

.courses-img-wrapper>.course-name {
    position: absolute;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.courses-img-wrapper>.course-name>span {
    position: relative;
    z-index: 2;
    background: var(--global-yellow);
    color: #021E40;
    padding: 10px;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    font-size: clamp(0.75rem, 0.7095rem + 0.2027vw, 0.9375rem);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 2px 5px rgb(0 0 0 / 20%);
    cursor: pointer;
    width: 90%;
}

/* ==================== SIDEBAR / CATEGORIES ==================== */
.rts-single-wized {
   /* background: rgba(255, 255, 255, 0.85);*/
    backdrop-filter: blur(4px);
   /* border-radius: 2rem;*/
    padding: 1rem 0.5rem;
   /* box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);*/
    border: 1px solid rgba(255, 255, 245, 0.9);
    overflow: scroll;
    overflow-x: hidden;
    min-height: 550px;
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
}

.rts-single-wized::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome/Safari */
}

.rts-single-wized:last-child {
    margin-bottom: 0;
}

.rts-single-wized .single-categories {
    margin-bottom: 15px;
    padding: 0;
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rts-single-wized .single-categories:last-child {
    margin-bottom: 0;
}

.rts-single-wized .single-categories li {
    list-style: none;
    font-size: 18px;
    line-height: 26px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #333;
}

.rts-single-wized .single-categories li:first-child {
    margin-top: 0;
}

.rts-single-wized .single-categories li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    border-radius: 0.375rem;
    background: transparent;
    color: #1f3b4c;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    border: 1px solid var(--global-yellow);
    text-decoration: none;
}

.rts-single-wized .single-categories li a i {
    color: var(--global-yellow);
    transition: 0.3s;
    margin-left: 5px;
}

.rts-single-wized .single-categories li a:hover {
    background: var(--global-yellow);
    transform: translateY(-5px) scale(1.03);
    color: #fff;
}

.rts-single-wized .single-categories li a:hover i {
    color: #fff;
}

/* ==================== COURSE CARDS ==================== */
.courses-box1 {
    border: 1px solid #e9e9e9;
    border-radius: 0.5rem;
    background: white;
    transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 12px 28px -8px rgba(0, 32, 64, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
}

.courses-box1:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 38px -16px rgba(0, 0, 0, 0.18);
    border-color: var(--global-yellow);
}

.courses-box1 .single-item-wrapper {
    margin-bottom: 0;
    position: relative;
}

.courses-box1 .single-item-wrapper .courses-img-wrapper {
    min-height: 140px;
    display: block;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    border-radius: 5px;
    background-position: center !important;
}

.courses-box1 .single-item-wrapper .courses-img-wrapper:before {
    z-index: -1;
}

.courses-box1 .single-item-wrapper .courses-img-wrapper img {
    border-radius: 5px;
}

.courses-box1 .single-item-wrapper .courses-img-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgb(7 41 77 / 15%) 50%, rgb(7 41 77 / 20%) 80%, rgb(7 41 77 / 35%));
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Course Content */
.courses-content-wrapper {
    padding: 30px 10px !important;
    min-height: 215px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.courses-content-wrapper h6 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px !important;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 600;
}

.courses-box1 .single-item-wrapper .courses-content-wrapper .item-title {
    margin-bottom: 0;
    line-height: 20px;
}

.courses-box1 .single-item-wrapper .courses-content-wrapper .item-title a {
    text-decoration: none;
    font-size: clamp(0.8125rem, 1.5vw, 1.09rem);
    font-weight: 600;
}

/* ==================== MODE TAGS ==================== */
.mode {
    position: absolute;
    top: 25%;
    left: 5px;
    max-width: 85%;
}

.mode .tag {
    font-size: clamp(0.75rem, 0.7095rem + 0.2027vw, 0.9375rem) !important;
    font-weight: 600;
    border-radius: 3px;
    padding: 0 11px;
    line-height: 1.5;
    display: inline-block;
    background: #ffc600;
    color: #021E40;
    padding: 5px 3px;
}

/* ==================== COURSE GRID ==================== */
.course-grid {
    gap: 15px;
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.course-tab-content {
    padding: 0 30px;
}

.course-mode-card {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    text-align: center;
}

.course-title .title-after {
    border-bottom: solid 1px #333;
    background: #FDC800;
    background: linear-gradient(0deg, rgba(253, 200, 0, 1) 10%, #f5f5f5 10%);
}

/* ==================== EXPLORE BUTTON ==================== */
.explore-btn {
    text-align: center;
    color: #002147 !important;
    padding: 3px 5px;
    background: #fdc800 !important;
    text-transform: uppercase;
    font-size: 9px !important;
    font-weight: 600 !important;
    display: inline-block;
    border: 2px solid #fdc800;
    transition: all 0.3s ease-out;
    line-height: 1.2;
}

/* ==================== NAVIGATION PILLS ==================== */
.nav-pills .nav-link {
    border: 1px solid var(--global-yellow);
}

.nav-pills .nav-link.active {
    background-color: var(--global-yellow);
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 0.375rem;
}

.nav-pills .nav-link.active i {
    color: #333;
}

/* ==================== CUSTOM SWIPER NAVIGATION ==================== */
.nav-custom {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.nav-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f8fafd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #1e4663;
    font-size: 1.3rem;
    border: 1px solid #e2edf7;
}

.nav-circle:hover {
    background: #0e223f;
    color: white;
    border-color: #0e223f;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgb(14 34 63 / 0.25);
}

.swiper-button-disabled-custom {
    opacity: 0.4;
    pointer-events: none;
}

/* Hide default Swiper navigation */
.swiper-button-prev,
.swiper-button-next {
    display: none !important;
}

/* ==================== SWIPER & PAGINATION ==================== */
.swiper {
    width: 100%;
    padding-bottom: 70px !important;
}

.swiper-wrapper {
    transition-timing-function: cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.swiper-slide {
    height: auto !important;
    transition: transform 0.3s ease, opacity 0.2s;
    opacity: 1;
}

.swiper-pagination {
    bottom: -45px !important;
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px;
    margin-top: 12px;
}

.swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: #bdd4e8 !important;
    opacity: 0.7 !important;
    border-radius: 20px !important;
    transition: all 0.2s ease !important;
    margin: 0 4px !important;
}

.swiper-pagination-bullet-active {
    background: var(--global-yellow) !important;
    width: 28px !important;
    border-radius: 20px !important;
    opacity: 1 !important;
}



/* ==================== RESEARCH / SIDEBAR BOXES ==================== */
.research-box1 {
    margin-bottom: 0px;
    min-height: 150px;
    background-size: cover !important;
    border-radius: 10px;
}

.research-box1 img {
    max-height: 127px;
    position: relative;
    display: block;
    border-radius: 10px;
}

.sidebar-box {
    background: none;
    padding: 20px;
}

/* ==================== RESPONSIVE MEDIA QUERIES ==================== */


@media (max-width: 1199px) {
    .nav-custom {
        gap: 0.5rem;
        padding: 0.3rem 0.8rem;
    }

    .nav-circle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .course-tab-content {
        padding: 0 15px;
    }
}

@media (min-width: 300px) and (max-width: 1199px) {

    /*---------------------------------------------------
    -------------------Section Padding General-----------
    -----------------------------------------------------*/

    .courses1-area,
    .video-area,
    .news-event-area,
    .students-say-area,
    .about-page1-area,
    .brand-area,
    .counter-area {
        padding: 70px 15px;
    }

    .footer-area-top {
        padding: 62px 35px;
    }

    /*--------------------------------------------------
    -------------------Course Section-------------------
    --------------------------------------------------*/


    .rts-single-wized:last-child {
        margin-bottom: 0;
    }

    .rts-single-wized {
        min-height: auto;
        overflow: scroll;
        padding-right: 10px;
        overflow-x: hidden;
        background: none;
        box-shadow: none;
    }

    .nav-pills .nav-link {
        border: 1px solid var(--global-yellow) !important;
        padding: 10px 15px;
    }

    .rts-single-wized .single-categories {
        margin-bottom: 15px;
        padding: 0;
    }

    .rts-single-wized .single-categories:last-child {
        margin-bottom: 0;
    }

    .rts-single-wized .single-categories li:first-child {
        margin-top: 0;
    }

    .rts-single-wized .single-categories li {
        list-style: none;
        font-size: 18px;
        line-height: 26px;
        margin-top: 10px;
        margin-bottom: 10px;
        color: #333;
    }

    .rts-single-wized .single-categories li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 25px;
        background: #fff;
        color: #666666;
        font-weight: 400;
        transition: 0.3s;
        border-radius: 4px;
        font-size: clamp(13px, 1.2vw, 16px);
        line-height: 1.5;

    }

    .rts-single-wized .single-categories li a i {
        color: var(--global-yellow);
        transition: 0.3s;
        margin-left: 5px;
    }

    .rts-single-wized .single-categories li a:hover {
        background: var(--global-yellow);
        transform: translateY(-5px) scale(1.03);
        color: #fff;
    }

    .rts-single-wized .single-categories li a:hover i {
        color: #fff;
    }


    .nav-pills .nav-link.active {
        background-color: var(--global-yellow);
        color: #333;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .nav-pills .nav-link.active i {
        color: #333;
    }

    .nav-pills .nav-link {
        border: 1px solid var(--global-yellow);
    }


    .tab-category ul {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        margin: 0;
        list-style: none;
        white-space: nowrap;
    }

    .tab-category ul li {
        flex: 0 0 auto;
        display: inline-block;
    }

    .tab-category ul::-webkit-scrollbar {
        display: none;
    }

    .rts-single-wized.Categories .single-categories {
        display: flex;
        flex-wrap: wrap;
        padding: 0;
        margin: 0;
    }

    .rts-single-wized.Categories .single-categories li {
        margin: 5px;
        margin-left: 0px;
    }


    .rts-single-wized.Categories .nav.flex-column {
        overflow-x: auto;
        white-space: nowrap;
    }

    .rts-single-wized.Categories .single-categories {
        flex-wrap: nowrap;
        padding-bottom: 10px;
        flex-direction: row;
    }

    .rts-single-wized.Categories .single-categories li {
        flex: 0 0 auto;
    }

    .rts-single-wized.Categories .single-categories li a {
        padding: 10px 15px;
    }

    .rts-single-wized {
        overflow: auto;
        height: auto !important;
    }

    .title-area-mobile {
        display: block;
    }

    .title-area-desktop {
        display: none;
    }


}