/* =========================================
   BANNER
========================================= */

#banner {
    position: relative;
    overflow: hidden;
    padding: 120px 0 50px;
    background: #fcf8f4;
    background-size: 28px 28px;
    position: relative;
}
.grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .2;
}
.banner_content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}


/* =========================================
   LEFT
========================================= */

.banner_left {
    padding-right: 35px;
}
.banner_left .caption {
    margin: 0;
    font-size: 50px;
    line-height: 56px;
    font-weight: 700;
    color: #000000;
    font-family: "Manuale", serif;
    width: 450px;
}


.header_description {
    max-width: 360px;
    margin: 22px 0 0;
    color: #555555;
    font-size: 17px;
    line-height: 24px;
}


/* =========================================
   BUTTONS
========================================= */

.header_button_wrap {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 35px;
}

.common_btn,
.border_btn {
    min-height: 49px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 20px;

    border-radius: 11px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 500;

    transition: all .3s ease;
}

.common_btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(237, 28, 36, .18);
}

.common_btn svg {
    transition: .3s ease;
}

.common_btn:hover svg {
    transform: translate(3px, -3px);
}

.border_btn {
    background: #25396f;

    border: 1px solid #25396f;

    color: #fff;
}

.border_btn:hover {
    background: #1c2d5c;

    border-color: #1c2d5c;

    color: #fff;

    transform: translateY(-3px);
}


/* =========================================
   RIGHT IMAGE AREA
========================================= */

.banner_right {
    position: relative;

    width: 100%;

    height: 430px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   SLIDER
========================================= */

.banner_slider {
    position: relative;

    width: 100%;
    max-width: 560px;

    height: 380px;

    z-index: 2;
}


/* =========================================
   SLIDE
========================================= */

.banner_slide {
    height: 380px;
}


/* =========================================
   IMAGE
========================================= */

.banner_slide img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.banner_slider .owl-item.active .banner_slide img {
    animation: bannerZoom 4.5s ease-out both;
}

@keyframes bannerZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }
}


/* =========================================
   DOTS
========================================= */

.banner_slider .owl-dots {
    position: absolute;

    left: 50%;
    bottom: 10px;

    transform: translateX(-50%);

    display: flex;

    align-items: center;

    z-index: 5;
}

.banner_slider .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    margin: 5px 4px;
    background: #d0d0d0;
    transition: all .35s ease;
}

.banner_slider .owl-dots .owl-dot.active span {
    width: 27px;
    border-radius: 10px;
    background: #ed1c24;
}

/* =================================
   LATEST NEWS TICKER
================================= */

.latest_news {
    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;

    background: #192557;

    overflow: hidden;
}


/* LEFT LABEL */

.news_title {
    position: relative;

    flex: 0 0 130px;

    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ed1c24;

    color: #fff;

    font-size: 13px;
    font-weight: 600;

    z-index: 5;
}


/* Small arrow shape */

.news_title::after {
    content: "";

    position: absolute;

    right: -12px;
    top: 0;

    width: 0;
    height: 0;

    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;

    border-left: 12px solid #ed1c24;
}
/* Initially hide all content */
#banner .banner_main_slide .caption,
#banner .banner_main_slide .header_description,
#banner .banner_main_slide .header_button_wrap a {
    opacity: 0;
    transform: translateY(35px);
}

/* Heading reveal */
#banner .banner_main_slider .owl-item.active .caption {
    animation: textRevealUp 0.7s ease forwards;
    animation-delay: 0.1s;
}

/* Paragraph reveal */
#banner .banner_main_slider .owl-item.active .header_description {
    animation: textRevealUp 0.7s ease forwards;
    animation-delay: 0.3s;
}

/* First button reveal */
#banner .banner_main_slider .owl-item.active .header_button_wrap .common_btn {
    animation: textRevealUp 0.7s ease forwards;
    animation-delay: 0.5s;
}

/* Second button reveal */
#banner .banner_main_slider .owl-item.active .header_button_wrap .border_btn {
    animation: textRevealUp 0.7s ease forwards;
    animation-delay: 0.7s;
}

/* Bottom-to-top animation */
@keyframes textRevealUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOVING AREA */

.news_marquee {
    flex: 1;

    height: 100%;

    overflow: hidden;

    display: flex;
    align-items: center;

    position: relative;
}


/* MOVING TRACK */

.news_track {
    display: flex;

    width: max-content;

    animation: newsMove 28s linear infinite;

    will-change: transform;
}


/* TEXT */

.news_content {
    display: flex;
    align-items: center;

    white-space: nowrap;

    color: #c9cde0;

    font-size: 15px;
    font-weight: 400;

    line-height: 1;
}


/* Separator */

.news_content span {
    display: inline-block;

    margin: 0 15px;

    color: #ffffff;

    opacity: .8;
}


/* =================================
   ANIMATION
================================= */

@keyframes newsMove {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

}


/* =================================
   HOVER PAUSE
================================= */

.latest_news:hover .news_track {
    animation-play-state: paused;
}


/* =================================
   MOBILE
================================= */

@media (max-width: 575px) {

    .latest_news {
        height: 44px;
    }

    .news_title {
        flex: 0 0 105px;

        height: 44px;

        font-size: 11px;
    }

    .news_title::after {
        right: -8px;

        border-top-width: 22px;
        border-bottom-width: 22px;

        border-left-width: 10px;
    }

    .news_content {
        font-size: 12px;
    }

    .news_content span {
        margin: 0 10px;
    }

    .news_track {
        animation-duration: 22s;
    }

}