/**
 * Custom Swiper Styles for HC Home Services Theme
 */

/* Basic container styles */
.hero-slider-section {
    position: relative;
    height: 600px;
    width: 100%;
    overflow: hidden;
}

/* Swiper container */
.hero-swiper {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Fix slide visibility issues */
.hero-swiper .swiper-wrapper {
    height: 100%;
}

.hero-swiper .swiper-slide {
    height: 100%;
    position: relative;
    visibility: visible !important;
}

/* Fix for images */
.hero-swiper .swiper-slide .absolute.inset-0.z-0 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ensure all slides are visible */
.hero-swiper .swiper-slide {
    opacity: 1;
    visibility: visible;
}

/* Fix transform issues */
.hero-swiper .swiper-wrapper {
    will-change: transform;
}

/* Make navigation arrows more visible */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20; /* Ensure buttons are above slides */
    opacity: 0.8;
    filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, 0.7));
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    opacity: 1;
}

.hero-swiper .swiper-button-next:after,
.hero-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.hero-swiper .swiper-button-next {
    right: 20px;
}

.hero-swiper .swiper-button-prev {
    left: 20px;
}

/* Pagination bullets */
.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ffffff !important;
    opacity: 0.8;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #ffffff !important;
    opacity: 1;
}

.hero-swiper .swiper-pagination {
    bottom: 20px;
    z-index: 20; /* Ensure pagination is above slides */
}

/* Fix overlay z-index */
.hero-swiper .swiper-slide .absolute.inset-0.z-10 {
    z-index: 10;
}

/* Fix content z-index */
.hero-swiper .container {
    z-index: 20;
    position: relative;
}

/* Ensure tagline overlay is visible in static hero mode */
.hero-section {
    position: relative;
}

/* Position the tagline absolutely in the center of the hero */
.absolute-center-tagline {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 99 !important;
    width: auto !important;
    max-width: 80% !important;
    text-align: center !important;
}

/* Additional styling for tagline overlay */
.hero-section .rounded-lg {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Make sure the container and content are properly positioned */
.hero-section .container {
    z-index: 20 !important;
    position: relative;
}

/* Move the title and description down to make room for centered tagline */
.hero-section .max-w-3xl h1,
.hero-section .max-w-3xl .text-xl {
    margin-top: 80px;
}
