/* ==== Slider Outer Wrapper ==== */
.slider-main {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* ==== Swiper Container ==== */
.swiper-main {
    width: 100%;
    height: 100vh; /* Full screen by default */
    position: relative;
}

/* ==== Swiper Slide ==== */
.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ==== Background Image ==== */
.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Overlay layer */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* semi-transparent black */
  z-index: 2;
}

/* ==== Slide Caption Wrapper ==== */
.slide-caption {
    position: relative;
    z-index: 8;
    max-width: 800px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical center */
    padding: 20px;
    color: #fff;
}

/* ==== Text Alignment Based on Class ==== */
.caption-text-left {
    text-align: left;
}

.caption-text-center {
    text-align: center;
}

.caption-text-right {
    text-align: right;
}

/* ==== Caption Elements ==== */
.slide-caption h2 {
    font: 700 84px/1.2 'Merienda';
    margin: 10px 0;
}

.slide-caption h2 a{
    color: #ffffff;
    text-decoration: none;
}

.slide-caption h4 {
    font: 500 16px/1 'Open Sans';
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.slide-caption h4 span {
    background-color: #DA2847;
    display: inline-block;
    -webkit-mask-image: url(../images/slider-stroke.png);
    mask-image: url(../images/slider-stroke.png);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    position: relative;
    padding: 0 66px;
    height: 40px; /* Fixed height */
    line-height: 40px; /* vertically center text */
    vertical-align: middle;
    overflow: hidden;
}

.slide-caption p {
    font-size: 18px;
    margin: 10px 0;
    color: #ddd;
    max-width: 800px;
}

/* ==== Slider Button ==== */
.slider-button-wrapper {
    margin-top: 20px;
}

.sliderbtn {
    display: inline-block;
    background-color: #fff;
    color: #333;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sliderbtn:hover {
    background-color: #333;
    color: #fff;
}

/* ==== Swiper Navigation Buttons ==== */
.swiper-button-prev,
.swiper-button-next {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-color: #571420; /* Optional background */
    transition: all 200ms ease-in-out;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
}

/* Positioning */
.swiper-button-prev {
    left: 15px;
}

.swiper-button-next {
    right: 15px;
}

/* Default Swiper arrows */
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 24px;
    color: #fff;
}

/* Optional: Hover effect */
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: #DA2847; /* Change background on hover */
}

/* ==== Swiper Pagination ==== */
.swiper-main .swiper-pagination{
    bottom: 80px;
}

.swiper-pagination-bullet {
    background: #571420;
    opacity: 0.8;
    width:32px;
    height:16px;
    border-radius: 20px;
}

.swiper-pagination-bullet-active {
    background: #DA2847;
    opacity: 1;
}

/* ==== Responsive Adjustments ==== */
@media (max-width: 1024px) {
    .slide-caption h2 {
        font-size: 36px;
    }

    .slide-caption p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .slide-caption h2 {
        font-size: 28px;
    }

    .slide-caption h4 {
        font-size: 16px;
    }

    .sliderbtn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .slide-caption {
        text-align: center !important;
        padding: 10px;
    }

    .caption-text-left,
    .caption-text-right {
        text-align: center; /* Force center on mobile */
    }
}
