/* Fonts: Using site-wide definitions */

:root {
    --primary-red: #cc0000;
    --card-bg: #000;
    --text-white: #ffffff;
}

body {
    background-color: #111;
    font-family: sans-serif;
    margin: 0;
}

.hero-slider-section {
    /* Full width background/context */
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.slider-alignment-wrapper {
    /* Mimic the behavior of #navigation .container */
    width: 100%;
    /* User logic: 1700px content width + padding */
    max-width: 1800px;
    margin: 0 auto;
    /* Center the wrapper */

    /* Padding to match site (50px to reach 1700 content in 1800 wrapper) */
    padding-left: 60px;
    padding-right: 60px;
    /* Bleed right means unconstrained right */
    box-sizing: border-box;
}


@media (min-width: 1740px) {
    .slider-alignment-wrapper {
        padding-left: 40px;
    }
}

@media (min-width: 1740px) and (max-width: 1800px) {
    .slider-alignment-wrapper {
        padding-left: calc(40px + (1800px - 100vw) / 2);
    }
}


/* On mobile, small padding */
@media (max-width: 1199px) {
    .slider-alignment-wrapper {
        padding-left: 20px;
        padding-right: 20px;
        margin-top: 35px;
    }
}

.swiper {
    /* Bleed Right Logic */
    /* Start at left edge of wrapper, extend to right screen edge + more */
    width: 100vw;
    margin-left: 0;
    overflow: visible !important;
}

/* Swiper Container */
.swiper {
    width: 100%;
    height: 100%;
    overflow: visible !important;
    /* Allow slides to bleed */
}

.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.swiper-slide {
    display: flex;
    height: auto;
    flex-shrink: 0;
}

/* --- Card Styling (Overlay Design) --- */
.banner-card {
    background: var(--card-bg);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    /* Anchor for absolute children */
    width: 100%;
    aspect-ratio: 2 / 3;
    /* Maintain vertical poster ratio */
    cursor: default;
    /* No hover transition/transform */

    /* Fix for mobile flickering/disappearing content */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Image acts as full-size background */
.card-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    /* Lazy Load Red Background */
    background-color: #ff2200;
}

.card-image picture,
.card-image img,
.card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* No hover transform */
}

/* Content sits ON TOP of image */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    /* Dark gradient fade for readability */
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 100%);
    min-height: 50%;
    /* Ensure gradient covers enough text area */

    /* Fix for mobile flickering/disappearing content */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Badge (White Box) */
.cards-badge {
    background-color: #fff;
    color: #000;
    padding: 4px 8px;
    font-family: 'ABCROMMono-Book', 'Courier New', monospace;
    /* Updated to Mono Book */
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: inline-block;
}

/* Main Headline */
.card-content h2 {
    font-family: 'ABCROMCompressed-Black', 'Arial Narrow', sans-serif;
    font-size: 72px;
    /* Big impact */
    font-weight: 400;
    line-height: 0.925;
    text-transform: uppercase;
    color: var(--text-white);
    margin: 0 0 10px 0;
    /* Ensure red text is handled via inline styles usually, but default valid white */
}

/* Subtext / Description */
.card-content p {
    font-family: 'ABCROMMono-Book', 'Courier New', monospace;
    font-size: 1.05em;
    color: var(--text-white);
    margin: 0 0 20px 0;
    line-height: 1.4;
    max-width: 80%;
    letter-spacing: 1px;
}

/* CTA Button - White */
.card-btn {
    display: inline-block;
    background-color: #fff;
    color: #000;
    padding: 10px 25px;
    text-decoration: none;
    font-family: sans-serif;
    /* Keep simple or match mono */
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    /* Reference shows "Zjistit více" normal case or capitalize */
    border-radius: 0;
    border: none;
    transition: opacity 0.2s;
}

.card-btn:hover {
    background-color: #ff2200;
    color: #fff;
    opacity: 1;
}

/* --- Responsive Sizing --- */

/* Desktop (>1400px) */
.swiper-slide {
    width: 25%;
    /* Show 4 full cards or stick to previous logic? User ref shows 4 large cards. */
    /* Let's stick to the "peek" logic but adjusted for new aspect ratio if needed */
    width: 28%;
    max-width: 450px;
}

@media (max-width: 1400px) {
    .swiper-slide {
        width: 35%;
    }
}

@media (max-width: 1024px) {
    .swiper-slide {
        width: 45%;
    }

    .card-content h2 {
        font-size: 64px;
    }
}

@media (max-width: 768px) {
    .swiper-slide {
        width: 85%;
        /* Bigger on tablet */
    }
}

@media (max-width: 480px) {
    .swiper-slide {
        width: 92%;
        /* Bigger on mobile */
    }

    .card-content h2 {
        font-size: 56px;
    }
}