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

.dt-hero-slider {
    position: relative;
    width: 95%;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
    aspect-ratio: 16 / 7;

    margin: 0;
    overflow: hidden;

    background: #f5f7fa;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 20px;
    margin-top: 20px;
    border-radius: 4px;
}
/* =========================================================
   SLIDES
   ========================================================= */

.dt-hero-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}

.dt-hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

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

.dt-hero-slide-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

/* Tablet */
@media (max-width: 768px) {
    .dt-hero-slider {
        aspect-ratio: 16 / 10;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .dt-hero-slider {
        aspect-ratio: 16 / 10;
    }
}

/* =========================================================
   OVERLAY
   ========================================================= */

/*
 * Your promotional banners already contain their own design.
 * Keep the overlay very subtle so we don't destroy the artwork.
 */

.dt-hero-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;

    pointer-events: none;


    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.82) 0%,
        rgba(255, 255, 255, 0.62) 30%,
        rgba(255, 255, 255, 0.25) 55%,
        rgba(255, 255, 255, 0) 75%
    );
}

@media (max-width: 768px) {
    .dt-hero-overlay {
        background: linear-gradient(
            to right,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.8) 60%,
            rgba(255, 255, 255, 0.55) 75%,
            rgba(255, 255, 255, 0) 85%
        );
    }
}

/* =========================================================
   CONTENT
   ========================================================= */

.dt-hero-content {
    position: absolute;
    inset: 0;

    z-index: 2;

    display: flex;
    flex-direction: column;

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

    padding: 48px;
    text-align: left;

    pointer-events: none;
}

/*
 * Enable interaction only for the button.
 */

.dt-hero-content a {
    pointer-events: auto;
}

/* =========================================================
   TITLE
   ========================================================= */

.dt-hero-content h1 {
    margin: 0 0 12px;

    max-width: 550px;

    font-size: clamp(28px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.05;
}

/* =========================================================
   SUBTITLE
   ========================================================= */

.dt-hero-content p {
    margin: 0 0 24px;

    max-width: 500px;

    font-size: clamp(15px, 1.5vw, 20px);
    line-height: 1.5;
}

/* =========================================================
   CTA
   ========================================================= */

.dt-hero-content a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 0 28px;

    border-radius: 6px;

    background: var(--surface-inverse);
    color: white;

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

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.dt-hero-content a:hover {
    transform: translateY(-2px);
}

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

.dt-hero-prev,
.dt-hero-next {
    position: absolute;
    top: 50%;

    z-index: 5;

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

    width: 42px;
    height: 42px;

    transform: translateY(-50%);

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);
    color: #0d2348;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    opacity: 0;

    transition:
        opacity 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.dt-hero-prev {
    left: 18px;
}

.dt-hero-next {
    right: 18px;
}

.dt-hero-slider:hover .dt-hero-prev,
.dt-hero-slider:hover .dt-hero-next {
    opacity: 1;
}

.dt-hero-prev:hover,
.dt-hero-next:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

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

@media (max-width: 768px) {

    .dt-hero-content {
        padding: 24px;
        justify-content: flex-end;
        padding-bottom: 36px;
    }

    .dt-hero-content h1 {
        font-size: 30px;
    }

    .dt-hero-content p {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .dt-hero-content a {
        min-height: 42px;
        padding: 0 22px;
    }

    .dt-hero-prev,
    .dt-hero-next {
        width: 36px;
        height: 36px;
        font-size: 22px;
        opacity: 1;
    }
}