.hero-carousel {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    height: 100vh;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide .slide-content {
    opacity: 0;
    visibility: hidden;
}

.hero-slide.active .slide-content {
    animation: showContent 0.8s ease-out forwards;
    animation-delay: 1.5s;
}

@keyframes showContent {
    0% {
        opacity: 0;
        visibility: visible;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transition: transform 0.8s ease-out;
    transform: scale(1.05);
}

.hero-slide.active .slide-bg {
    transform: scale(1);
    animation: zoomInBg 1.5s ease-out forwards;
}

@keyframes zoomInBg {
    0% {
        transform: scale(1.2);
        filter: blur(10px);
    }
    100% {
        transform: scale(1);
        filter: blur(0);
    }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.hero-slide.active .slide-overlay {
    opacity: 1;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-content {
    position: absolute;
    bottom: 15%;
    left: 0;
    width: 100%;
    padding: 0 10%;
    color: #fff;
    z-index: 2;
    text-align: left;
    max-width: 1400px;
    margin: 0 auto;
}

/* Horizontal Layout */
.slide-content.horizontal {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.slide-content.horizontal .slide-title {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

.slide-content.horizontal .slide-subtitle {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

.slide-content.horizontal .slide-button {
    flex-shrink: 0;
    margin-top: 0;
}

/* Individual Element Layouts */
.slide-content.horizontal .slide-title.inline,
.slide-content.horizontal .slide-title.inline-block {
    margin-right: 1rem;
}

.slide-content.horizontal .slide-subtitle.inline,
.slide-content.horizontal .slide-subtitle.inline-block {
    margin-right: 1rem;
}

.slide-content.horizontal .slide-button.inline,
.slide-content.horizontal .slide-button.inline-block {
    margin-right: 1rem;
}

/* Block elements in horizontal layout */
.slide-content.horizontal .slide-title.block,
.slide-content.horizontal .slide-subtitle.block,
.slide-content.horizontal .slide-button.block {
    width: 100%;
    margin-bottom: 1rem;
}

.slide-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
    max-width: 800px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.hero-slide.active .slide-title {
    opacity: 1;
    transform: translateY(0);
}

.slide-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0 0 30px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.hero-slide.active .slide-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.slide-button {
    display: inline-block;
    padding: 15px 35px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease-out;
}

.hero-slide.active .slide-button {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideIn {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-slide.active .slide-button {
    opacity: 1;
    transform: translateY(0);
}

.slide-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #ffffff;
}

/* Navigation */
.hero-nav {
    position: absolute;
    bottom: 50%;
    transform: translateY(50%);
    width: 100%;
    z-index: 3;
    pointer-events: none;
    padding: 0 30px;
}

.hero-prev,
.hero-next {
    position: absolute;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.hero-prev {
    left: 30px;
}

.hero-next {
    right: 30px;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 8%;
    left: 10%;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 1200px) {
    .slide-content {
        padding: 0 8%;
    }

    .slide-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 992px) {
    .slide-content {
        padding: 0 6%;
    }

    .slide-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .slide-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    /* Tablet: Adjust horizontal layout */
    .slide-content.horizontal {
        gap: 1.5rem;
    }

    .slide-content.horizontal .slide-title {
        font-size: 1.8rem;
        min-width: 180px;
    }

    .slide-content.horizontal .slide-subtitle {
        font-size: 1rem;
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 60vh;
        min-height: 400px;
    }

    .slide-content {
        padding: 0 1.5rem;
        bottom: 45%;
        transform: translateY(50%);
        text-align: center;
    }

    /* Mobile: Force vertical layout */
    .slide-content.horizontal {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .slide-content.horizontal .slide-title,
    .slide-content.horizontal .slide-subtitle {
        flex: none;
        min-width: auto;
        margin-bottom: 0.8rem;
    }

    .slide-title {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        max-width: 300px;
    }

    .slide-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        max-width: 280px;
    }

    .slide-button {
        padding: 0.7rem 1.3rem;
        font-size: 0.85rem;
    }

    .hero-dots {
        left: 50%;
        transform: translateX(-50%);
        bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-carousel {
        height: 50vh;
        min-height: 320px;
    }

    .slide-content {
        padding: 0 1rem;
        bottom: 40%;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }

    .slide-title {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }

    .slide-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        max-width: 240px;
        margin-left: auto;
        margin-right: auto;
    }

    .slide-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    /* Elementor specific styles */
    .elementor-37 .elementor-element.elementor-element-79671b2 .elementor-repeater-item-dca0cc0 .slide-content,
    [class*="elementor-"] .slide-content {
        left: 50%;
        text-align: center;
        
    }
}

@media (max-width: 375px) {
    .hero-carousel {
        height: 45vh;
        min-height: 280px;
    }

    .slide-content {
        padding: 0 0.8rem;
        bottom: 35%;
    }

    .slide-title {
        font-size: 1rem;
        max-width: 220px;
        margin-bottom: 0.5rem;
    }

    .slide-subtitle {
        font-size: 0.75rem;
        max-width: 200px;
        margin-bottom: 0.8rem;
    }

    .slide-button {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .hero-nav {
        display: none;
    }

    .hero-dots {
        bottom: 1rem;
    }
}