﻿button:focus {
    outline: 0;
}

/* ===================
   SLIDER CONTAINER
   =================== */
.outer-container {
    width: 100%;
    background: #d8002e;
    height: 80vh;
    min-height: 400px;
    max-height: 800px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-container {
    padding: 0;
    height: 85vh;
    min-height: 350px;
    max-height: 750px;
    width: min(90%, 2000px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    position: absolute;
    top: 45px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #d8002e;
}

.swiper-slide {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

    .swiper-slide:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        bottom: 0;
        z-index: 1;
        opacity: 0.3;
    }

    .swiper-slide:before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        bottom: 0;
        z-index: 1;
    }

/* ===================
   SLIDER NAVIGATION - BOTTOM RIGHT
   =================== */
.swiper-button-prev,
.swiper-button-next {
    width: clamp(40px, 5vw, 50px);
    height: clamp(40px, 5vw, 50px);
    background-image: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: auto;
    bottom: clamp(15px, 3vh, 25px);
    transform: none;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.swiper-button-prev {
    right: clamp(65px, 8vw, 90px) !important;
    left: unset !important;
}

.swiper-button-next {
    right: clamp(15px, 3vw, 25px);
}

    .swiper-button-prev:hover,
    .swiper-button-next:hover {
        background-color: rgba(255, 255, 255, 0.25);
        transform: scale(1.1);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .swiper-button-prev span,
    .swiper-button-next span {
        width: clamp(8px, 1.5vw, 10px);
        height: clamp(8px, 1.5vw, 10px);
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: transparent;
        position: absolute;
        border: solid 2px white;
        border-left: 0;
        border-bottom: 0;
        transition: all 0.3s ease;
    }

.swiper-button-prev span {
    transform: rotate(-135deg);
}

.swiper-button-next span {
    transform: rotate(45deg);
}

    .swiper-button-prev span:after,
    .swiper-button-next span:after {
        content: '';
        position: absolute;
        background-color: white;
        width: 0px;
        height: 2px;
        transition: all 0.3s ease;
        transform: rotate(-45deg);
    }

.swiper-button-prev:hover span:after,
.swiper-button-next:hover span:after {
    width: calc(clamp(16px, 3vw, 20px) - 4px);
}

.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after,
.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
    content: '';
    display: none;
}

/* ===================
   SLIDER PAGINATION
   =================== */
.swiper-pagination {
    height: 40px;
    z-index: 10 !important;
    bottom: clamp(10px, 2vh, 20px) !important;
}

.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.6);
    border: solid 1px rgba(255, 255, 255, 0.8);
    opacity: 1;
    transition: all 0.3s ease-in-out;
    width: clamp(8px, 1.5vw, 12px);
    height: clamp(8px, 1.5vw, 12px);
    margin: 0 clamp(2px, 0.5vw, 4px);
}

    .swiper-pagination-bullet:hover {
        background-color: white;
        transform: scale(1.2);
    }

.swiper-pagination-bullet-active {
    width: clamp(16px, 3vw, 20px);
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    background-color: #d8002e;
    border: solid 1px #d8002e;
}

/* ===================
   SLIDE TEXT CONTENT
   =================== */
.slide-text {
    text-align: center;
    color: white;
    opacity: 1;
    z-index: 2;
    font-family: 'IBM Plex Sans', sans-serif;
    width: min(80%, 500px);
    padding: clamp(10px, 2vw, 20px);
}

    .slide-text h1 {
        font-family: 'IBM Plex Sans', sans-serif;
        font-size: clamp(20px, 4vw, 30px);
        letter-spacing: 0.03em;
        margin-bottom: clamp(10px, 2vw, 15px);
        line-height: 1.2;
    }

    .slide-text p {
        font-size: clamp(14px, 2.5vw, 16px);
        font-family: 'IBM Plex Mono', monospace;
        line-height: 1.4;
        margin-bottom: clamp(15px, 3vw, 20px);
    }

    .slide-text .btn {
        font-family: 'IBM Plex Mono', monospace;
        background-color: transparent;
        border: solid 1px white;
        padding: clamp(12px, 2vw, 15px) clamp(20px, 4vw, 30px);
        min-width: 100px;
        width: fit-content;
        font-size: clamp(12px, 2vw, 14px);
        letter-spacing: 2px;
        color: white;
        position: relative;
        border-radius: 80px;
        transition: all 0.3s ease-in-out;
        cursor: pointer;
        margin-top: clamp(15px, 3vw, 20px);
        display: inline-block;
    }

        .slide-text .btn:after {
            content: '';
            background-color: rgba(255, 255, 255, 0.1);
            width: 100%;
            height: 100%;
            display: block;
            position: absolute;
            z-index: 2;
            left: 0px;
            top: 0px;
            border-radius: inherit;
            transition: all 0.3s ease-in-out;
        }

        .slide-text .btn:hover::after {
            left: 4px;
            top: 5px;
            background-color: rgba(255, 255, 255, 0.3);
        }

        .slide-text .btn:hover {
            font-weight: 800;
            transform: translateY(-2px);
        }

/* ===================
   RESPONSIVE BREAKPOINTS
   =================== */

/* Large Desktop */
@media screen and (min-width: 1441px) {
    .outer-container {
        height: 85vh;
        max-height: 900px;
    }

    .swiper-container {
        height: 85vh;
        max-height: 850px;
    }
}

/* Desktop */
@media screen and (max-width: 1440px) and (min-width: 1025px) {
    .outer-container {
        height: 80vh;
    }

    .swiper-container {
        height: 85vh;
        width: 85%;
    }

    .swiper-button-prev {
        right: 85px;
    }

    .swiper-button-next {
        right: 25px;
    }
}

/* Tablet */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .outer-container {
        height: 70vh;
        min-height: 400px;
    }

    .swiper-container {
        height: 85vh;
        width: 95%;
        min-height: 350px;
        max-height: 800px;
    }

    .swiper-button-prev {
        right: 75px;
        width: 45px;
        height: 45px;
    }

    .swiper-button-next {
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Mobile Large */
@media screen and (max-width: 768px) and (min-width: 481px) {
    .outer-container {
        height: 60vh;
        min-height: 350px;
    }

    .swiper-container {
        height: 60vh;
        width: 98%;
        min-height: 300px;
        border-radius: 4px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
        bottom: 15px;
    }

    .swiper-button-prev {
        right: 65px;
    }

    .swiper-button-next {
        right: 15px;
    }

    .slide-text {
        width: 90%;
    }
}

/* Mobile Small */
@media screen and (max-width: 480px) {
    .outer-container {
        height: 50vh;
        min-height: 300px;
    }

    .swiper-container {
        height: 60vh;
        width: 100%;
        min-height: 250px;
        top: 10px;
        border-radius: 0;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 35px;
        height: 35px;
        bottom: 12px;
    }

    .swiper-button-prev {
        right: 55px;
    }

    .swiper-button-next {
        right: 12px;
    }

        .swiper-button-prev span,
        .swiper-button-next span {
            width: 7px;
            height: 7px;
            border-width: 1.5px;
        }

    .slide-text {
        width: 95%;
        padding: 10px;
    }

        .slide-text .btn {
            padding: 10px 20px;
            font-size: 12px;
            letter-spacing: 1px;
        }

            .slide-text .btn:hover::after {
                left: 0px;
                top: 0px;
                background-color: rgba(255, 255, 255, 0.1);
            }
}

/* Mobile Tiny */
@media screen and (max-width: 320px) {
    .outer-container {
        height: 45vh;
        min-height: 250px;
    }

    .swiper-container {
        height: 55vh;
        min-height: 200px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 30px;
        height: 30px;
        bottom: 10px;
    }

    .swiper-button-prev {
        right: 45px;
    }

    .swiper-button-next {
        right: 10px;
    }

        .swiper-button-prev span,
        .swiper-button-next span {
            width: 6px;
            height: 6px;
        }

    .slide-text h1 {
        font-size: 18px;
    }

    .slide-text p {
        font-size: 12px;
    }
}

/* Landscape Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .outer-container {
        height: 90vh;
        min-height: 300px;
    }

    .swiper-container {
        height: 100vh;
        min-height: 250px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        bottom: 20px;
    }
}

/* High DPI / Retina */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .swiper-slide {
        background-size: cover;
    }
}

/* Extra small devices for very tight spacing */
@media screen and (max-width: 280px) {
    .swiper-button-prev {
        right: 40px;
    }

    .swiper-button-next {
        right: 8px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 28px;
        height: 28px;
    }
}
