.locked_title {
    text-transform: capitalize;
}
.courses_wrap {
    display: flex;
    gap: 32px;
}

.courses_aside {
    min-width: 282px;
}

.courses_menu-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 28px;
    color: var(--black);
    margin-bottom: 16px;
}

.courses_menu a {
    display: flex;
    align-items: center;
    height: 50px;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 0.25px;
    color: var(--black);
    transition: var(--transition);
    padding: 12px 20px;
}

.courses_menu a:hover {
    text-decoration: none;
    color: var(--primary);
    border-radius: 8px;
    background: var(--primary-soft);
}

.courses_menu.mobile {
    display: none;
    position: relative;
    user-select: none;
    width: 100%;
    padding: 0;
}

.custom-select {
    position: relative;
    display: block;
    width: 100%;
    cursor: pointer;
}

.custom-select-trigger {
    position: relative;
    display: block;
    padding: 12px 48px 12px 20px;
    border-radius: 8px;
    background: var(--primary-soft);
}

.custom-select .ion-ios-arrow-down:before {
    position: absolute;
    top: 18px;
    right: 22px;
    font-weight: 800;
    transition: var(--transition);
}

.custom-select.open .ion-ios-arrow-down:before {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    display: none;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    border: 1px solid var(--neutrals-100);
    border-radius: 12px;
    background-color: var(--white);
    padding: 8px;
    z-index: 1;
}

.custom-option {
    padding: 7px 16px;
    color: var(--black);
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.custom-option:hover {
    color: var(--white);
    background-color: var(--primary);
}

.custom-select.open .custom-options {
    display: block;
}

.courses_main {
    width: 100%;
}

.courses_main>div {
    max-width: 690px;
    margin: auto;
}

.tabs {
    /*width: 100%;*/
    /*max-width: 1440px;*/
    /*margin-right: auto;*/
    /*margin-left: auto;*/
    /*overflow-x: scroll;*/
    /*padding-right: 120px;*/
    /*padding-left: 120px;*/
    margin-bottom: 65px!important;
}

.tabs-wrap {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    /*width: fit-content;*/
    min-height: 32px;
}

.tab-link {
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    letter-spacing: 0.16px;
    color: var(--black);
    white-space: nowrap;
    background-color: var(--transparent);
    border: 1px solid var(--primary-soft);
    border-radius: 20px;
    padding: 7.5px 12px;
    transition: var(--transition);
    cursor: pointer;
}

.tab-link:hover {
    color: var(--primary);
    border: 1px solid var(--primary);
}

.tab-link.active {
    color: var(--white);
    background-color: var(--primary);
    border: 1px solid var(--primary);
    position: relative;
}

.tab-item {
    display: none;
}

.tab-item.active {
    display: block;
}

.tab-header .video-thumbnail {
    max-height: 450px;
    min-height: 450px;
    border-radius: 32px;
    margin-bottom: 24px;
}

.tab-header h2 {
    margin-bottom: 16px;
}

.video-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 24px;
    position: relative;
    margin-top: 48px;
    margin-bottom: 48px;
}

.video-wrapper:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 296px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
    z-index: 1;
}

.video-item {
    width: 100%;
    max-width: 333px;
    overflow: hidden;
    position: relative;
}

.video-link {
    position: relative;
}

.video-item .video-link {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
}

.video-thumbnail {
    width: 100%;
    max-height: 240px;
    min-height: 240px;
    object-fit: cover;
    background: var(--neutrals-300);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    line-height: 0;
    padding: 0;
    margin: 0;
    z-index: 2;
}

.video-item.locked .play-button {
    display: none;
}

.play-button svg path {
    transition: var(--transition);
}

.video-link:hover .play-button svg path {
    fill: var(--primary);
}

.video-title {
    margin-bottom: 16px;
}

.btn-wrap {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.btn-load {
    min-width: 110px;
    min-height: 40px;
    font-size: 14px;
    line-height: 24px;
    background: var(--transparent);
    border: 1.5px solid #00000033;
}

.btn-load:hover {
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.video-item.locked:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 64%;
    z-index: 3;
}

.btn-unlock {
    display: none;
    position: absolute;
    top: 95px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.video-item.locked .btn-unlock {
    display: block;
}

.btn-unlock:hover {
    background: var(--white);
}

.btn-unlock svg path {
    transition: var(--transition);
}

.btn-unlock:hover svg path {
    fill: var(--primary);
}

#video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000080;
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.overlay-content {
    position: relative;
    width: 80%;
    max-width: 800px;
}

#overlay-video {
    width: 100%;
    height: auto;
}

.close-overlay {
    position: absolute;
    top: 4px;
    right: 4px;
    background: none;
    border: none;
    line-height: 0;
    padding: 0;;
    cursor: pointer;
}

.close-overlay svg path {
    transition: var(--transition);
}

.close-overlay:hover svg path {
    fill: var(--primary);
}

#modal-unlock {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000080;
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 380px;
    background: var(--white);
    border-radius: 8px;
}

.modal-content>div {
    border-bottom: 1px solid var(--neutrals-100);
    padding: 24px;
}

.modal-content img {
    margin: 16px auto 8px auto;
}

.modal-content h2 {
    font-size: 20px;
    font-weight: 800;
    line-height: 32px;
    text-align: center;
    color: var(--black);
    margin-bottom: 12px;
}

.modal-content p {
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.25px;
    text-align: center;
}

.modal-content .btn {
    width: auto;
    margin: 24px;
}

.modal-content .btn svg {
    margin-left: 8px;
}

.modal-content .btn svg path {
    transition: var(--transition);
}

.modal-content .btn:hover svg path {
    fill: var(--primary);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    line-height: 0;
    padding: 0;;
    cursor: pointer;
}

.modal-close svg path {
    transition: var(--transition);
}

.modal-close:hover svg path {
    fill: var(--black);
}

@media (min-width: 1025px) {
    .section-courses{
        padding: 0;
    }
}
@media (max-width: 1024px) {
    .courses_wrap {
        flex-direction: column;
    }

    .courses_menu-title,
    .courses_menu.desktop {
        display: none;
    }

    .courses_menu.mobile {
        display: block;
    }

    .courses_main>div {
        margin: inherit;
    }
}

@media (max-width: 640px) {
    .tab-header .video-thumbnail {
        max-height: 240px;
        min-height: 240px;
        border-radius: 20px;
    }

    .overlay-content,
    .modal-content {
        width: 95%;
    }
}

