/**
 * Slider Block Styles
 */

.block-slider {
    padding: 5em 0;
    background-color: var(--color-1, #F8F2E5);
    overflow: hidden;
}

@media screen and (max-width: 1024px) {
    .block-slider {
        padding: 3em 0;
    }
}

.block-slider__container {
    padding: 0 1.25em;
}

@media screen and (max-width: 1024px) {
    .block-slider__container {
        padding: 0 0.5em;
    }
}

/* ===== Layout option ===== */

.block-slider--full {}

.block-slider--container .block-slider__container {
    max-width: 83.125em; /* 1330px */
    margin: 0 auto;
}

/* Se você quiser que o título também siga o container */
.block-slider--container .block-slider-title {
    max-width: 83.125em; /* 1330px */
    margin-left: auto;
    margin-right: auto;
}

/* Swiper Configuration */
.block-slider__swiper {
    overflow: visible;
}

.block-slider-title {
    display: flex;
    flex-direction: column;
    gap: 3.9375em;
    padding: 0 1.25em;
    margin-bottom: 1.5625em;
    max-width: 420px;
    width: 100%;
}

.block-slider__slide {
    width: auto;
    height: auto;
}

/* Card */
.block-slider__card {
    position: relative;
    width: 100%;
    aspect-ratio: 560/700;
    border-radius: 0.5em;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Figure / Image */
.block-slider__figure {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 1;
}

.block-slider__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content Overlay */
.block-slider__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1.25em;
    color: var(--color-1, #F8F2E5);
}

/* Title */
.block-slider__title {
    margin: 0;
    text-align: center;
    color: var(--color-1, #F8F2E5);
}

/* Bottom Content */
.block-slider__bottom {
    display: flex;
    flex-direction: column;
    gap: 1.5625em;
}

/* Description */
.block-slider__description {
    margin: 0;
    text-align: center;
    max-width: 50%;
    margin: 0 auto;
}

/* Link */
.block-slider__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    text-decoration: none;
    color: var(--color-1, #F8F2E5);
    font-size: 0.875em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.block-slider__link:hover {
    opacity: 0.8;
}

.block-slider__link svg {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

.block-slider__link svg circle {
    fill: var(--color-1, #F8F2E5);
}

.block-slider__link svg path {
    fill: var(--color-2, #03090D);
}

/* Navigation */
.block-slider__navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    border: 1px solid #00000020;
    border-radius: 100px;
    width: 15em;
    margin: 2.5em auto 0;
}

@media screen and (max-width: 1024px) {
    .block-slider__navigation {
        margin-top: 2em;
        gap: 1em;
    }
}

.block-slider__nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5em;
    height: 2.5em;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-2, #03090D);
    transition: opacity 0.3s ease;
    padding: 0;
}

.block-slider__nav-btn:hover {
    opacity: 0.6;
}

.block-slider__nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.block-slider__nav-btn svg {
    width: 1.25em;
    height: auto;
}

/* Progress Bar */
.block-slider__progress {
    width: 6em;
    height: 1px;
    background-color: rgba(3, 9, 13, 0.2);
    position: relative;
    overflow: hidden;
}

@media screen and (max-width: 1024px) {
    .block-slider__progress {
        width: 4em;
    }
}

.block-slider__progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: var(--color-2, #03090D);
    transition: width 0.3s ease;
}

/* Gradient overlay on cards for better text readability */
.block-slider__card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Top gradient for title */
.block-slider__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}
