/* TME Hero Slider – Frontend Styles */

.tme-hs-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    font-family: inherit;
    border-radius: 12px;
}

/* ── Background layers ── */
.tme-hs-backgrounds {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tme-hs-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 32px;
}

.tme-hs-bg.active {
    opacity: 1;
}

.tme-hs-bg-placeholder {
    background-color: #1a2a4a;
    opacity: 1;
}

/* ── Dark gradient overlay ── */
.tme-hs-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* background: linear-gradient(to right,
            rgba(10, 25, 60, 0.82) 0%,
            rgba(10, 25, 60, 0.55) 55%,
            rgba(10, 25, 60, 0.15) 100%);*/
}

/* ── Fixed content ── */
.tme-hs-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 40px 5%;
    box-sizing: border-box;
}

.tme-hs-text-block {
    max-width: 520px;
    color: #ffffff;
}

/* Headline */
.tme-hs-headline {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 18px 0;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

/* Description */
.tme-hs-description {
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 24px 0;
    max-width: 420px;
}

/* CTA Button */
.tme-hs-btn {
    display: inline-block;
    background-color: #0c4da2;
    /* Corporate blue */
    color: #ffffff;
    text-decoration: none;
    padding: 12px 36px;
    border-radius: 100px;
    /* Pill shape */
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tme-hs-btn:hover {
    background-color: #0a3d82;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    text-decoration: none;
}

/* Stats row */
.tme-hs-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.tme-hs-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tme-hs-stat-number {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 400;
    color: #ffffff;
    line-height: 1;
}

.tme-hs-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
}

/* ── Dot navigation ── */
.tme-hs-dots {
    position: absolute;
    bottom: 82px;
    right: 24px;
    z-index: 3;
    display: flex;
    gap: 8px;
    align-items: center;
}

.tme-hs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.tme-hs-dot.active {
    background-color: #ffffff;
    border-color: #ffffff;
}

.tme-hs-dot:hover {
    border-color: #ffffff;
}

/* ── Per-slide corner titles ── */
.tme-hs-corner-title {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 4;
    background-color: #ffffff;
    color: #1a3a8f;
    font-size: clamp(0.9rem, 1.5vw, 1.15rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 20px 0;
    width: 320px;
    /* Fixed width */
    text-align: center;
    border-top-left-radius: 40px;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.tme-hs-corner-title.active {
    opacity: 1;
    pointer-events: auto;
}

/* Concave transition (top edge) */
.tme-hs-corner-title::before {
    content: "";
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border-bottom-right-radius: 40px;
    box-shadow: 20px 20px 0 20px #ffffff;
    pointer-events: none;
}

/* Concave transition (left edge) */
.tme-hs-corner-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -40px;
    width: 40px;
    height: 40px;
    background: transparent;
    border-bottom-right-radius: 40px;
    box-shadow: 20px 20px 0 20px #ffffff;
    pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .tme-hs-content {
        padding: 30px 5%;
        align-items: flex-end;
        padding-bottom: 80px;
    }

    .tme-hs-text-block {
        max-width: 100%;
    }

    .tme-hs-stats {
        gap: 20px;
    }

    .tme-hs-dots {
        bottom: 44px;
        right: 16px;
    }

    .tme-hs-corner-title {
        font-size: 0.85rem;
        padding: 12px 0;
        width: 200px;
        border-top-left-radius: 25px;
    }

    .tme-hs-corner-title::before,
    .tme-hs-corner-title::after {
        width: 25px;
        height: 25px;
        border-bottom-right-radius: 25px;
        box-shadow: 12px 12px 0 12px #ffffff;
    }

    .tme-hs-corner-title::before {
        top: -25px;
    }

    .tme-hs-corner-title::after {
        left: -25px;
    }

    .tme-hs-corner-title.active {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .tme-hs-wrapper {
        border-radius: 0;
    }
}