#home-about .about-cards {
    background: rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

#home-about .about-btn {
    height: 0;
    transition: all 0.3s ease-in-out;
}

#home-about .about-cards.active {
    background: #000;
}

#home-about .about-cards.active .about-btn {
    height: 55px;
}

#home-about .about-content {
    background: rgba(255, 255, 255, 0.12);
    display: none;
    height: 100%;
    animation: fade .4s ease;
    position: relative;
}

#home-about .about-content.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/*#home-about .about-content {*/
/*    min-height: 400px;*/
/*}*/

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(10px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

#home-about .images {
    position: relative;
    height: 500px;
}

#home-about .images img {
    width: 75%;
    position: absolute;
    border-radius: 12px;
    transition: all .8s ease;
    height: 400px;
    object-fit: cover;
}

#home-about .img-left {
    left: 0;
    top: 0;
    transition: 1s;
    animation: fadeImageOne .6s ease;
}

#home-about .img-right {
    right: 0;
    top: 20%;
    transition: 1s;
    animation: fadeImageTwo .6s ease;
}

@keyframes fadeImageTwo {
    from {
        right: -30%;
        opacity: 0;
    }
    to {
        right: 0%;
        opacity: 1;
    }
}

@keyframes fadeImageOne {
    from {
        left: -30%;
        opacity: 0;
    }
    to {
        left: 0%;
        opacity: 1;
    }
}

#home-about .vertical-slider-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

#home-about .vertical-slider {
    height: 100%;
}

#home-about .vertical-slider img {
    height: 100%;
    object-fit: contain;
    padding: 10px;
    background: #000;
    border-radius: 12px;
    transition: all .3s ease;
}

#home-about .swiper-slide {
    opacity: .7;
}

#home-about .swiper-slide-active {
    opacity: 1;
}

#home-about .swiper-slide-active img {
    scale: 1.6;
}

@media (min-width: 1400px) and (max-width: 1700px) {
    .header-right .common-input {
        max-width: 100% !important;
    }
}

@media (min-width: 570px) and (max-width: 1399px) {
    .header-right .search-form {
        display: none !important;
    }
}

.student-dashbord-scrollbar li a.active {
    background-color: var(--main-600) !important;
    color: rgb(255, 255, 255) !important;
}

.student-dashbord-scrollbar li a.active span {
    color: rgb(255, 255, 255) !important;
}


/** video-style-two **/

.auto-container{
    position:static;
    max-width:80%;
    padding:0px 15px;
    margin:0 auto;
}
.video-style-two{
    position: relative;
    padding: 113px 0px;
}

.video-style-two .bg-layer{
    position: absolute;
    left: 0px;
    top: 0px;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.video-style-two .content-box{
    position: relative;
    display: block;
    padding-left: 100px;
    padding-right: 50px;
}

.video-style-two .video-btn{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
}

.video-style-two .video-btn button{
    position: relative;
    display: inline-block;
    width: 100px;
    height: 100px;
    line-height: 100px;
    text-align: center;
    font-size: 24px;
    color: #fff;
}

.video-style-two .content-box .quote-box{
    position: relative;
    display: inline-block;
    font-size: 58px;
    margin-bottom: 16px;
}

.video-style-two .content-box h2{
    position: relative;
    display: block;
    font-size: 48px;
    line-height: 58px;
    font-weight: 700;
    padding-bottom: 30px;
    margin-bottom: 32px;
}

.video-style-two .content-box h3{
    position: relative;
    display: block;
    font-size: 24px;
    line-height: 34px;
    font-weight: 700;
    margin-bottom: 5px;
}

.video-style-two .content-box .designation{
    position: relative;
    display: block;
}

.video-style-two .video-btn button{
    background: #f21c2e;
}

.video-style-two .content-box .quote-box{
    color: #f21c2e;
}

.video-style-two .content-box .designation{
    color: #f21c2e;
}
.fa-play{
    font-size:2rem;
}
.quote-box i{
    font-size:4rem;
    transform: rotate(180deg);
}

.video-style-two .icon-layer{
    position: absolute;
    top: 10%;
    right: 0;
    width: 30%;
    height: 100%;
    background-repeat: no-repeat;
    opacity: 0.04;
}

@media only screen and (max-width: 1200px) {
    .service-style-two .line-box,
    .video-style-two .icon-layer {
        display: none;
    }

    .video-style-two .content-box {
        padding-left: 50px;
        padding-right: 30px;
    }
}
@media only screen and (max-width: 991px) {
    .video-style-two .bg-layer{
        display: none;
    }
    .video-style-two .video-btn{
        position: relative;
        display: flex;
        justify-content: center;
        left: 0;
        transform: translateY(0%);
        margin-bottom: 25px;
    }
}
@media only screen and (max-width: 991px) {
    .video-style-two{
        padding: 70px 0 65px 0;
    }

    .video-style-two .content-box{
        padding: 0;
    }

    .video-style-two .content-box h2{
        font-size: 30px;
        line-height: 40px;
        padding-bottom: 0;
    }
}

@media only screen and (max-width: 767px) {
    .auto-container {
        max-width: 95%;
    }
}

@media only screen and (max-width: 576px) {
    .video-style-two {
        padding: 40px 0;
    }

    .video-style-two .content-box h2 {
        font-size: 22px;
        line-height: 30px;
    }

    .video-style-two .content-box h3 {
        font-size: 18px;
        line-height: 26px;
    }

    .video-style-two .content-box .quote-box {
        font-size: 40px;
    }
}

/*Learning Path*/

.history-section{
    position: relative;
    padding: 120px 0;
}

.history-section .container{
    position: relative;
}

.history-section .container:before{
    position: absolute;
    content: '';
    top: -20px;
    bottom: -20px;
    left: 50%;
    width: 3px;
    background: #f21c2e;
    opacity: 1;
    transform: translateX(-50%);
}

.history-section .inner-box{
    position: relative;
    display: block;
    margin-bottom: 60px;
    z-index: 1;
}

.history-section .inner-box:last-child{
    margin-bottom: 0;
}

.history-section .image-box{
    position: relative;
    display: block;
}

.history-section .inner-box:nth-child(even) .image-box{
    margin-left: 70px;
    padding-left: 30px;
}

.history-section .inner-box:nth-child(odd) .image-box{
    margin-right: 70px;
    padding-right: 30px;
}

.history-section .image-box .image{
    position: relative;
    display: block;
}

.history-section .image-box .image img{
    width: 100%;
}

.history-section .image-box .link-box{
    position: absolute;
    top: 50px;
}

.history-section .inner-box:nth-child(odd) .image-box .link-box{
    right: 0;
}

.history-section .inner-box:nth-child(even) .image-box .link-box{
    left: 0;
}

.history-section .image-box .link-box a{
    position: relative;
    display: inline-block;
    width: 70px;
    height: 70px;
    line-height: 76px;
    text-align: center;
    font-size: 30px;
    color: #fff;
}

.history-section .image-box .link-box a:hover{
    background: #1c1c1c;
}

.history-section .content-box{
    position: relative;
    display: block;
    margin-top: 5px;
    padding: 0 5%;
}

.history-section .content-box .text{
    position: relative;
    padding-bottom: 27px;
    padding-top: 41px;
}

.history-section .content-box .text:before{
    position: absolute;
    content: '';
    background: #f21c2e;
    width: 1px;
    height: calc(100% + 16px);
    top: -16px;
}

.history-section .inner-box:nth-child(even) .content-box .text:before{
    left: 50px;
}

.history-section .inner-box:nth-child(odd) .content-box .text:before{
    right: 50px;
}

.history-section .inner-box:nth-child(even) .content-box .text{
    padding-left: 15%;
}

.history-section .content-box h2{
    position: relative;
    font-weight: 700;
    padding-bottom: 18px;
    border-bottom: 1px solid #f21c2e;
}

.history-section .inner-box:nth-child(even) .content-box h2{
    text-align: right;
}
.history-section .content-box p{
    max-width: 440px;
}
@media only screen and (max-width: 1200px) {

    .history-section .content-box .text:before {
        display: none;
    }

    .history-section .inner-box:nth-child(even) .content-box .text {
        padding-left: 0;
    }
}
@media only screen and (max-width: 991px) {
    .history-section .inner-box:nth-child(odd) .image-box{
        margin-right: 0;
    }

    .history-section .inner-box:nth-child(even) .image-box{
        margin-left: 0;
    }
}
@media only screen and (max-width: 767px) {

    .history-section,
    .project-section,
    .project-page-four,
    .project-details,
    .contact-style-two,
    .shop-details{
        padding: 70px 0;
    }

    .history-section .container:before {
        display: none;
    }

    .history-section .inner-box{
        margin-bottom: 50px;
        padding: 20px;
        border: 1px solid rgba(242, 28, 46, 0.5);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.02);
    }

    .history-section .inner-box:before{
        position: absolute;
        content: '';
        top: 100%;
        height: 50px;
        left: 50%;
        width: 3px;
        background: #f21c2e;
        transform: translateX(-50%);
    }

    .history-section .inner-box:last-child:before{
        display: none;
    }

    .history-section .inner-box > .row{
        display: flex;
        margin-right: 0;
        margin-left: 0;
    }

    .history-section .image-column,
    .history-section .content-column{
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .history-section .image-column{
        order: 1 !important;
        margin-bottom: 20px;
    }

    .history-section .content-column{
        order: 2 !important;
        padding-left: 0;
    }

    .history-section .inner-box:nth-child(odd) .image-box,
    .history-section .inner-box:nth-child(even) .image-box{
        margin: 0;
        padding: 0;
    }

    .history-section .image-box .image img{
        width: 100%;
        min-height: 180px;
        object-fit: cover;
        border-radius: 12px;
    }

    .history-section .content-box{
        margin-top: 0;
        padding: 0;
    }

    .history-section .content-box .text{
        padding-top: 16px;
        padding-bottom: 0;
    }

    .history-section .content-box h2,
    .history-section .inner-box:nth-child(even) .content-box h2{
        text-align: left;
    }

    .history-section .content-box h2{
        font-size: 24px;
    }

    .history-section .content-box p{
        max-width: 100%;
        margin-bottom: 0;
    }

    .history-section .content-box .text > div{
        width: 100% !important;
        padding-top: 16px !important;
    }

    .history-section .content-box .btn{
        width: 100%;
        justify-content: center;
    }
}

@media only screen and (max-width: 900px) {
    .hero{
        align-items: start;
    }
    .about-section-mobile{
        height: 500px;
    }
}

[dir="rtl"] .history-section .inner-box:nth-child(odd) .content-box .text:before{
    right: auto;
    left: 50px;
}

[dir="rtl"] .history-section .inner-box:nth-child(even) .content-box .text:before{
    left: auto;
    right: 50px;
}

[dir="rtl"] .history-section .inner-box:nth-child(even) .content-box .text{
    padding-left: 0;
    padding-right: 15%;
}

[dir="rtl"] .mobile-menu {
    right: 0;
    left: auto;
    inset-inline-start: 0;
    inset-inline-end: auto;
    transform: translateX(100%);
}

[dir="rtl"] .mobile-menu.active {
    transform: translateX(0%);
}

.filters-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.filters-panel.is-open {
    max-height: 1400px;
    opacity: 1;
}

#coursesColumn {
    transition: max-width 0.35s ease, flex-basis 0.35s ease;
}

@media (min-width: 992px) {
    .filter-column {
        display: block;
        overflow: hidden;
        flex: 0 0 0;
        width: 0;
        min-width: 0;
        max-width: 0;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-10px);
        transition: flex-basis 0.35s ease, max-width 0.35s ease, width 0.35s ease,
        padding-left 0.35s ease, padding-right 0.35s ease, opacity 0.25s ease,
        transform 0.35s ease, visibility 0s linear 0.35s;
    }

    .filter-column.is-open {
        flex: 0 0 25%;
        width: 25%;
        max-width: 25%;
        padding-left: calc(var(--bs-gutter-x) * 0.5);
        padding-right: calc(var(--bs-gutter-x) * 0.5);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
        transition: flex-basis 0.35s ease, max-width 0.35s ease, width 0.35s ease,
        padding-left 0.35s ease, padding-right 0.35s ease, opacity 0.25s ease,
        transform 0.35s ease, visibility 0s;
    }
}

@media (max-width: 991.98px) {
    .filter-column {
        display: none;
    }

    .filter-column.is-open {
        display: block;
    }
}

.filters-toggle-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #2e3137;
    color: #fff;
    border-radius: 50%;
    padding: 0;
    margin-bottom: 16px;
    cursor: pointer;
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.filters-search-wrap {
    position: relative;
    flex: 1;
}

.filters-search-input {
    width: 100%;
    height: 40px;
    border: 1px solid #2e3137;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    padding: 0 44px 0 14px;
}

.filters-search-submit-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #b8b8b8;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    cursor: pointer;
    line-height: 1;
}

.filters-close-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2e3137;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    padding: 0;
    cursor: pointer;
}

@media (min-width: 992px) {
    #coursesGrid.filters-open > .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    #coursesGrid.filters-closed > .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}
#home-about .col-md-5 {
    display: flex;
}

#home-about .about-content {
    width: 100%;
    height: 100%;
}
#home-about .about-content {
    display: none;
    height: 100%;
}

#home-about .about-content.active {
    display: flex;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-images-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#home-about .images {
    position: relative;
    height: 100%;
}

#home-about .images img {
    height: 60%;
    object-fit: cover;
}

#home-about .vertical-slider-container {
    height: 100%;
    padding: 0; /* مهم */
}

#home-about .vertical-slider {
    height: 100%;
}
#home-about .row {
    align-items: stretch;
}
.tags:hover{
    color: #f21c2e !important;
}
/* ===== Floating Scroll Navigation ===== */
.scroll-nav {
    position: fixed;
    inset-inline-end: 20px;
    inset-block-end: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.scroll-nav.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-nav__btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background-color: rgba(229, 57, 53, 0.12);
    color: #ffffffab;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 10px black;
    outline: none;
    border: 1.5px solid #0000002e;
}
.scroll-nav__btn:hover {
    background-color: var(--main-600);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.4);
    border-color: var(--main-600);
}
.scroll-nav__btn:active {
    transform: scale(0.95);
}
.scroll-nav__track {
    width: 3px;
    height: 50px;
    background-color: rgba(255,255,255,0.12);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.scroll-nav__thumb {
    width: 100%;
    background-color: var(--main-600);
    border-radius: 4px;
    position: absolute;
    top: 0;
    transition: height 0.1s linear;
    min-height: 6px;
}
@media (max-width: 767px) {
    .scroll-nav {
        inset-inline-end: 10px;
        inset-block-end: 20px;
        gap: 4px;
    }
    .scroll-nav__btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .scroll-nav__track {
        height: 36px;
    }
}

body.modal-open .scroll-nav {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.select2-container .select2-selection--single {
    background-color: #000 !important;
    border: 1px solid #2b2b2b !important;
    color: white !important;
}

.select2-dropdown {
    background-color: #000 !important;
    border: 1px solid #2b2b2b !important;
    color: white !important;
}

.js-country-select + .select2 {
    width: 100% !important;
}

.js-phone-code-select + .select2 {
    width: auto !important;
    min-width: 120px !important;
}

.js-phone-code-select + .select2 .select2-selection {
    border: none !important;
    border-radius: 0 !important;
    background-color: #000 !important;
}

.js-phone-code-select {
    appearance: none;
}

.js-phone-code-select option {
    background-color: #000;
    color: white;
}
html[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    left: auto;
    right: 1rem;
}

html[dir="ltr"] .select2-container--default .select2-selection--single .select2-selection__arrow  {
    left: 1rem;
    right: auto;
}

.js-profile-select2-form .select2-container,
.profile-select2-selection.select2-container .select2-selection,
.profile-select2-selection.select2-container--default .select2-selection--single,
.profile-select2-selection.select2-container--default .select2-selection--multiple {
    min-width: 100% !important;
    width: 100% !important;
}
.profile-select2-dropdown.select2-dropdown,
.profile-select2-dropdown .select2-results,
.profile-select2-dropdown .select2-results__option,
.profile-select2-dropdown .select2-search__field {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #2b2b2b !important;
}
.selection{
    width: 100%;
}

div:where(.swal2-container).swal2-center>.swal2-popup {
    background-color: black !important;
    color: white !important;
}
.swal2-html-container a{
    background-color: #e8192c !important;
    border-color: #e8192c !important;
    margin-top: 2%;
}
.site-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.site-popup-overlay.is-open {
    display: flex;
}
.site-popup-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: transparent;
    animation: sitePopupIn 0.25s ease-out;
}
@keyframes sitePopupIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
.site-popup-image {
    display: block;
    max-width: 100%;
    max-height: 50vh;
    height: auto;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.site-popup-link {
    display: block;
}
.site-popup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #000;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
[dir="rtl"] .site-popup-close {
    right: auto;
    left: -14px;
}
