@property --heritage-bg-from {
    syntax: "<color>";
    inherits: true;
    initial-value: #166a45;
}

@property --heritage-bg-to {
    syntax: "<color>";
    inherits: true;
    initial-value: #1b8354;
}

.national-day-hero .heritage-hero {
    --heritage-bg-from: #166a45;
    --heritage-bg-to: #1b8354;
    --heritage-bg-angle: 90deg;
    --heritage-accent: #fff;
    --nd-deck-mobile: 360px;
    display: grid;
    height: 100%;
    min-height: 491px;
    overflow: hidden;
    position: relative;
    z-index: 0;
    background-color: var(--heritage-bg-to);
    background-image: linear-gradient(var(--heritage-bg-angle), var(--heritage-bg-from), var(--heritage-bg-to));
    transition: --heritage-bg-from 0.6s cubic-bezier(0.4, 0, 0.2, 1), --heritage-bg-to 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] .national-day-hero .heritage-hero {
    --heritage-bg-angle: 270deg;
}

.national-day-hero .heritage-hero::before {
    background-image: url(../images/slider-pattern.svg);
    background-repeat: repeat;
    content: "";
    inset: 0;
    opacity: 0.4;
    pointer-events: none;
    position: absolute;
}

.national-day-hero .heritage-hero--heritage {
    --heritage-bg-from: #01572b;
    --heritage-bg-to: #5aba1c;
    --heritage-accent: #ebffe6;
}

.national-day-hero .heritage-hero--courage {
    --heritage-bg-from: #1b2613;
    --heritage-bg-to: #607c4f;
    --heritage-accent: #c9e0bb;
}

.national-day-hero .heritage-hero--ambition {
    --heritage-bg-from: #340117;
    --heritage-bg-to: #971a4d;
    --heritage-accent: #ff85c7;
}

.national-day-hero .heritage-hero--generosity {
    --heritage-bg-from: #312d6e;
    --heritage-bg-to: #6565e0;
    --heritage-accent: #ded8f7;
}

.national-day-hero .heritage-hero--kindness {
    --heritage-bg-from: #011d3a;
    --heritage-bg-to: #0050af;
    --heritage-accent: #07b9ff;
}

.national-day-hero .heritage-hero--vision {
    --heritage-bg-from: #211501;
    --heritage-bg-to: #7c5d21;
    --heritage-accent: #d8b67a;
}

.national-day-hero .heritage-hero__stage {
    grid-area: 1 / 1;
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.5s;
}

.national-day-hero .heritage-hero.is-regular .heritage-hero__stage {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.national-day-hero .heritage-hero.is-heritage .heritage-hero__stage {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.national-day-hero .heritage-hero__stage > .container {
    max-width: 1320px;
    padding: 40px 12px;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.national-day-hero .heritage-hero__content {
    color: #fff;
    max-width: 640px;
    pointer-events: auto;
    text-align: start;
}

.national-day-hero .heritage-hero__deck {
    height: 491px;
    max-width: 100%;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 720px;
    z-index: 0;
}

[dir="rtl"] .national-day-hero .heritage-hero__deck {
    left: 0;
    right: auto;
}

.national-day-hero .heritage-hero__slide {
    background-color: transparent;
    background-position: 0;
    background-repeat: no-repeat;
    background-size: auto 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    height: 100%;
    left: var(--heritage-x, 0);
    padding: 0;
    position: absolute;
    top: 0;
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1), right 0.6s cubic-bezier(0.4, 0, 0.2, 1), width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-position 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 45.8px;
    z-index: 2;
}

[dir="rtl"] .national-day-hero .heritage-hero__slide {
    background-position: 100%;
    left: auto;
    right: var(--heritage-x, 0);
    transition: right 0.6s cubic-bezier(0.4, 0, 0.2, 1), left 0.6s cubic-bezier(0.4, 0, 0.2, 1), width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-position 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.national-day-hero .heritage-hero__slide.is-active {
    background-position: 50%;
    cursor: default;
    width: 491px;
    z-index: 3;
}

.national-day-hero .heritage-hero__slide.is-leaving {
    z-index: 1;
}

.national-day-hero .heritage-hero__slide--heritage {
    background-image: url(../images/Heritage.webp);
}

.national-day-hero .heritage-hero__slide--courage {
    background-image: url(../images/Support.webp);
}

.national-day-hero .heritage-hero__slide--ambition {
    background-image: url(../images/Ambition.webp);
}

.national-day-hero .heritage-hero__slide--generosity {
    background-image: url(../images/Kindness.webp);
}

.national-day-hero .heritage-hero__slide--kindness {
    background-image: url(../images/Generosity.webp);
}

.national-day-hero .heritage-hero__slide--vision {
    background-image: url(../images/Vision.webp);
}

.national-day-hero .heritage-hero__logo {
    width: 175px;
    margin-bottom: 40px;
}

.national-day-hero .heritage-hero__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.national-day-hero .heritage-hero__title {
    color: #fff;
    font-family: "Neo Sans Arabic", NeoSansArabic, "IBM Plex Sans Arabic", sans-serif;
    font-size: 74px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 0.973;
    margin: 0 0 24px;
    min-height: 0.973em;
    text-align: start;
    white-space: nowrap;
}

.national-day-hero .heritage-hero__title:lang(en) {
    font-size: min(74px, 11.4vw - 88px);
    text-transform: capitalize;
}

.national-day-hero .heritage-hero__title-typed {
    color: var(--heritage-accent);
}

.national-day-hero .heritage-hero__caret {
    animation: heritage-caret 0.9s step-end infinite;
    background-color: currentColor;
    display: inline-block;
    height: 0.72em;
    margin-left: 2px;
    width: 2px;
}

[dir="rtl"] .national-day-hero .heritage-hero__caret {
    margin-left: 0;
    margin-right: 2px;
}

.national-day-hero .heritage-hero__body {
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    margin: 0;
    opacity: 0;
    text-align: start;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.national-day-hero .heritage-hero__body.is-in {
    opacity: 1;
    transform: none;
}

@keyframes heritage-caret {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    to {
        opacity: 0;
    }
}

.header__main.national-day-hero {
    min-height: 491px;
    overflow: hidden;
}

.national-day-hero .heritage-hero__regular {
    grid-area: 1 / 1;
    position: relative;
    z-index: 1;
    display: grid;
}

.national-day-hero .nd-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    z-index: 5;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.national-day-hero .nd-nav__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: #0c483f;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.national-day-hero .nd-nav__arrow i {
    color: #fff;
    font-size: 20px;
    line-height: 1;
}

.national-day-hero .nd-nav__arrow:hover {
    background-color: #48a035;
}

.national-day-hero .nd-nav__bullets {
    display: flex;
    align-items: center;
}

.national-day-hero .nd-nav__bullet {
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.national-day-hero.is-heritage .nd-nav__arrow {
    background-color: #fff;
}

.national-day-hero.is-heritage .nd-nav__arrow i {
    color: #0c483f;
}

.national-day-hero.is-heritage .nd-nav__arrow:hover {
    background-color: #dcfae9;
}

.national-day-hero.is-heritage .nd-nav__bullet {
    background-color: #fff;
    opacity: 0.45;
}

.national-day-hero.is-heritage .nd-nav__bullet.swiper-pagination-bullet-active {
    opacity: 1;
}

@media (max-width: 991.98px) {
    .national-day-hero .nd-nav {
        justify-content: center;
        bottom: 24px;
    }
}

.national-day-hero .heritage-hero__regular-slide {
    grid-area: 1 / 1;
    position: relative;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.national-day-hero .heritage-hero__regular-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1310px) {
    .header__main.national-day-hero {
        height: auto;
    }

    .national-day-hero .heritage-hero {
        --heritage-bg-angle: 180deg;
        height: auto;
    }

    .national-day-hero .heritage-hero__regular {
        min-height: calc(100vh - 300px);
    }

    [dir="rtl"] .national-day-hero .heritage-hero {
        --heritage-bg-angle: 180deg;
    }

    .national-day-hero .heritage-hero__stage {
        position: relative;
        inset: auto;
        align-items: center;
        flex-direction: column;
        gap: 32px;
        justify-content: flex-start;
        min-height: 0;
        padding: 40px 24px 110px;
        text-align: start;
    }

    .national-day-hero .heritage-hero__stage > .container,
    .national-day-hero .heritage-hero__content {
        display: contents;
    }

    .national-day-hero .heritage-hero__title {
        order: 3;
    }

    .national-day-hero .heritage-hero__body {
        order: 4;
    }

    .national-day-hero .heritage-hero__deck {
        aspect-ratio: 1;
        height: auto;
        max-width: var(--nd-deck-mobile);
        order: 2;
        position: relative;
        top: auto;
        transform: none;
        width: 100%;
    }

    .national-day-hero .heritage-hero__slide {
        --heritage-x: 0;
        background-position: 50%;
        background-size: cover;
        opacity: 0;
        transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        width: 100%;
    }

    .national-day-hero .heritage-hero__slide.is-active {
        opacity: 1;
        width: 100%;
    }

    .national-day-hero .heritage-hero__title,
    .national-day-hero .heritage-hero__title:lang(en) {
        font-size: 40px;
        letter-spacing: -0.02em;
        line-height: 1;
        margin-bottom: 0;
        min-height: 1em;
        white-space: normal;
    }

    .national-day-hero .heritage-hero__body {
        font-size: 16px;
        line-height: 26px;
        margin-bottom: 0;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .national-day-hero .heritage-hero,
    .national-day-hero .heritage-hero__slide,
    .national-day-hero .heritage-hero__stage,
    .national-day-hero .heritage-hero__regular-slide {
        transition: none;
    }

    .national-day-hero .heritage-hero__caret {
        animation: none;
    }

    .national-day-hero .heritage-hero__body {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
