/* ===========================================
   History Mobile Section - Essential Styles
=========================================== */
.section-history.position-relative {
    position: relative;
}

.section-history .position-relative {
    position: relative;
}

@media (max-width: 991.99px) {
    .history-content-area.mobile .swiper-slide {
        width: 100%;
    }

    /* .history-content-item {
        opacity: 0;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        transition: all 0.5s ease;
    }

    .history-content-item.active {
        opacity: 1;
        visibility: visible;
        height: auto;
    } */

    .section-history .history-swipper-wrap {
        background-color: var(--color1);
        border-top-right-radius: 0.75rem;
        border-top-left-radius: 0.75rem;
        padding: 1.25rem 0.5rem 0.75rem;
    }

    .history-swipper-wrap .sw-navigation .swiper-nav-next .icon-single-arrow-right,
    .history-swipper-wrap .sw-navigation .swiper-nav-prev .icon-single-arrow-left {
        color: #fff !important;
        font-size: 1rem !important;
    }

    .history-swipper-wrap .year-tab {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .history-swipper-wrap .year-tab.active .year-number {
        color: #fff;
        font-variation-settings: "wght" 800, "wdth" 100;
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .history-swipper-wrap .year-tab .year-number {
        color: #fff;
        font-variation-settings: "wght" 700, "wdth" 100;
        font-size: 1.125rem;
        line-height: 1.2;
        transition: all 0.3s ease;
    }

    .section-history .history-swipper-wrap::after {
        content: '';
        background: linear-gradient(270deg, rgba(0, 51, 161, 0) 0%, #0033A1 85.66%);
        position: absolute;
        top: 0;
        left: 0;
        width: 20%;
        bottom: 0;
        z-index: 1;
        border-top-left-radius: 0.75rem;
    }

    .section-history .history-swipper-wrap::before {
        content: '';
        background: linear-gradient(90deg, rgba(0, 51, 161, 0) 0%, #0033A1 85.66%);
        position: absolute;
        top: 0;
        right: 0;
        width: 20%;
        bottom: 0;
        z-index: 2;
        border-top-right-radius: 0.75rem;
    }

    .section-history .history-title {
        background-color: #212121;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0.875rem 2.5rem;
    }

    .section-history .history-image img {
        border-bottom-left-radius: 0.75rem;
        border-bottom-right-radius: 0.75rem;
        width: 100%;
    }

    .section-history .history-description p {
        margin-top: 2rem;
        color: #212121;
        font-variation-settings: "wght" 600, "wdth" 100;
        font-size: 1.125rem;
    }

    .history-year-display {
        text-align: center;
        margin-bottom: -2.5rem;
    }

    .year-display-number {
        color: transparent;
        font-variation-settings: "wght" 900, "wdth" 100;
        font-size: 125px;
        line-height: 1;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-text-stroke: 2.25px #EDEDED;
        text-stroke: 2.25px #EDEDED;
        text-shadow: none;
    }
}

@media (min-width: 992px) {
    .history-content-area {
        max-width: 65%;
        margin: 0 auto;
        pointer-events: none;
    }


    .history-content-item {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .swiper-history-content .swiper-slide {
        width: 100% !important;
        height: auto;
    }

    .swiper-history-content .swiper-wrapper {
        --swiper-wrapper-transition-timing-function:
            cubic-bezier(0.46, 0.03, 0.52, 0.96);
    }

    .swiper-history-years .swiper-slide {
        width: 33.33% !important;
        height: auto;
    }

    .swiper-history-years .swiper-slide-next {
        justify-content: end;
    }

    .swiper-history-years .year-tab {
        padding: 0 18%;
    }

    /* .history-content-item {
        opacity: 0;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        transition: all 0.5s ease;
    } */

    .desktop-history-wrapper .history-image img {
        object-fit: cover;
    }

    .history-content-item.active {
        /* opacity: 1;
        visibility: visible;
        height: auto; */
        /* position: absolute; */
        /* top: -420px; */
        /* left: 50%;
        transform: translateX(-50%); */
        /* z-index: 5; */
    }

    .desktop-history-wrapper {
        position: relative;
        /* margin-top: 30rem; */
    }

    .sw.history-swipper-wrap .sw-navigation .swiper-nav-next .icon-single-arrow-right,
    .sw.history-swipper-wrap .sw-navigation .swiper-nav-prev .icon-single-arrow-left {
        color: #fff !important;
    }

    .sw.history-swipper-wrap .sw-navigation.sw-between .swiper-nav-prev {
        left: 15px;
        top: 50%;
    }

    .sw.history-swipper-wrap .sw-navigation.sw-between .swiper-nav-next {
        right: 15px;
        top: 50%;
    }

    .sw.history-swipper-wrap {
        background-color: var(--color1);
        height: 159px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    .sw.history-swipper-wrap .swiper-slide {
        display: flex;
        align-items: center;
        /* justify-content: center; */
    }

    .history-swipper-wrap .sw-navigation {
        margin: 0;
    }

    .sw.history-swipper-wrap .swiper-slide .year-tab .year-number {
        font-size: 2.5rem;
        font-variation-settings: "wght" 900, "wdth" 100;
        color: #fff;
    }

    .desktop-history-wrapper .history-image {
        /* align-items: center; */
        justify-content: center;
        display: flex;
        max-height: 320px;
        background: #212121;
    }

    .desktop-history-wrapper .history-image img {
        max-height: 320px;
    }

    .desktop-history-wrapper .history-desktop-titles {
        display: flex;
        /* align-items: center; */
        justify-content: center;
        flex: 1;
    }

    .desktop-history-wrapper .history-desktop-titles .history-year {
        background-color: var(--color1);
        width: 100%;
        max-width: 30%;
        border-top-right-radius: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        /* max-height: 149px; */

        min-height: 149px;
        color: #fff;
        font-size: 3rem;
        font-variation-settings: "wght" 900, "wdth" 100;
        position: relative;

    }

    .desktop-history-wrapper .history-year span {
        opacity: 0;
        transition: all .8s ease-out;
        transform: translateY(3rem);
    }

    .swiper-slide-active .history-year span {
        opacity: 1;
        transform: translateY(0);

    }

    .desktop-history-wrapper .history-desktop-titles .history-year::after {
        content: '';
        width: 0px;
        height: 0px;
        border-style: solid;
        border-width: 16px 32px 16px 0;
        border-color: transparent #0033A1 transparent transparent;
        transform: rotate(0deg);
        position: absolute;
        left: -31px;
        top: 50%;
        transform: translateY(-50%);
    }

    .desktop-history-wrapper .history-desktop-titles .history-title {
        background-color: #212121;
        width: 100%;
        height: 100%;
        min-height: 149px;
        /* max-height: 149px; */
        display: flex;
        color: #fff;
        align-items: center;
        padding: 10px 60px;
        font-size: clamp(0.875rem, 2vw, 1.5rem);
        line-height: 1.2;
        border-top-left-radius: 1.5rem;
    }

    .history-description-item {
        /* opacity: 0; */
        transition: all .8s .2s ease-out;
        /* transform: translateY(1rem); */
    }

    .desktop-history-wrapper .history-title span {
        /* opacity: 0; */
        transition: all .8s .3s ease-out;
        /* transform: translateY(1rem); */
    }

    .swiper-slide-active .history-description-item,
    .swiper-slide-active .history-title span {
        opacity: 1;
        transform: translateX(0);

    }

    .desktop-history-wrapper .history-year-top {
        color: transparent;
        font-variation-settings: "wght" 900, "wdth" 100;
        font-size: 10rem;
        line-height: 1;
        transition: all .8s ease-out;
        display: flex;
        -webkit-text-stroke: 2.25px #EDEDED;
        text-stroke: 2.25px #EDEDED;
        text-shadow: none;
        align-items: center;
        justify-content: center;
        margin-bottom: -3rem;
        opacity: 0;
        transform: translateY(4rem) scale(1.5);
        z-index: -1;
    }

    .swiper-slide-active .history-year-top {
        opacity: 1;
        transform: translateY(0);

    }

    /* .history-description-item {
        opacity: 0;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        transition: all 0.5s ease;
    } */

    .history-description-item p {
        margin-top: 2rem;
        color: #212121;
        font-variation-settings: "wght" 600, "wdth" 100;
        font-size: 1.125rem;
    }

    /* .history-description-item.active {
        opacity: 1;
        visibility: visible;
        height: auto;
    } */
}