.hero-slider-container {
    position: relative;
    width: 100%;
    height: 90vh; /* robust fallback default height to prevent collapsing to 0px */
    overflow: hidden;
}

.hero-slide-item {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Animations & Transitions for content elements */
/* Default elements to visible so if Swiper isn't loaded they are fully visible */
.hero-slide-subtitle,
.hero-slide-title,
.hero-slide-button {
    opacity: 1;
    transform: none;
}

/* If swiper is successfully initialized, apply the transitions */
.swiper-container-initialized .hero-slide-subtitle,
.swiper-container-initialized .hero-slide-title,
.swiper-container-initialized .hero-slide-button,
.swiper-initialized .hero-slide-subtitle,
.swiper-initialized .hero-slide-title,
.swiper-initialized .hero-slide-button {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active slide trigger state */
.swiper-slide-active .hero-slide-subtitle {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.3s;
}

.swiper-slide-active .hero-slide-title {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.5s;
}

.swiper-slide-active .hero-slide-button {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.7s;
}

.hero-slide-subtitle {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-slide-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 35px;
    letter-spacing: -0.01em;
}

.hero-slide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.hero-slide-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-button-icon i {
    font-size: inherit;
}

.hero-slide-button-icon svg {
    fill: currentColor;
    width: 1em;
    height: 1em;
}

.hero-slide-button:hover {
    transform: translateY(-2px) scale(1.02);
    opacity: 0.95;
    transition: all 0.2s ease;
}

/* Custom Arrows */
.hero-slider-prev, .hero-slider-next {
    width: 50px;
    height: 50px;
    transition: background-color 0.3s ease;
}

.hero-slider-prev::after, .hero-slider-next::after {
    font-size: 18px;
    font-weight: bold;
}
