.hero-section {
    position: relative;
    height: 85vh;
    max-height: 800px;
    overflow: visible;
}

.hero-spacer {
    display: none;
    height: 0;
    transition: height 0.3s ease;
}

@media (max-width: 999px) {
    .hero-spacer {
        display: block;
    }
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: absolute;
    color: white;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    max-width: 90%;
    width: 800px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    padding: 2rem;
}

.hero-content.active {
    opacity: 1;
}

.hero-content.pos-center { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.hero-content.pos-top { top: 15%; left: 50%; transform: translateX(-50%); }
.hero-content.pos-bottom { bottom: 15%; left: 50%; transform: translateX(-50%); }
.hero-content.pos-left { top: 50%; left: 10%; transform: translateY(-50%); }
.hero-content.pos-right { top: 50%; right: 10%; transform: translateY(-50%); }
.hero-content.pos-top-left { top: 10%; left: 10%; transform: none; }
.hero-content.pos-top-right { top: 10%; right: 10%; transform: none; }
.hero-content.pos-bottom-left { bottom: 10%; left: 10%; transform: none; }
.hero-content.pos-bottom-right { bottom: 10%; right: 10%; transform: none; }

.hero-content.align-left { text-align: left; }
.hero-content.align-center { text-align: center; }
.hero-content.align-right { text-align: right; }

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-content .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-overlay.active {
    opacity: 1;
}

.hero-controls {
    display: none !important;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-nav:hover {
    background: rgba(255,255,255,0.5);
}

.hero-nav.prev {
    left: 20px;
}

.hero-nav.next {
    right: 20px;
}

@media (max-width: 999px) {
    .hero-section {
        height: 70vh;
        max-height: none;
    }

    .hero-content {
        max-width: 100%;
        width: 100%;
        background: transparent !important;
        text-shadow: none;
    }

    .hero-section.mobile-top .hero-content::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        z-index: -1;
        top: 0;
        height: 200%;
        background: var(--gradient-bg, linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%));
    }

    .hero-section.mobile-top .hero-content {
        bottom: auto;
        left: 0;
        right: 0;
        transform: none;
        padding: 2rem 1.5rem;
        position: absolute;
    }

    .hero-section.mobile-bottom .hero-content::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        z-index: -1;
        bottom: 0;
        height: 200%;
        background: var(--gradient-bg, linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%));
    }

    .hero-section.mobile-bottom .hero-content {
        top: auto;
        left: 0;
        right: 0;
        transform: none;
        padding: 2rem 1.5rem;
        position: absolute;
    }

    .hero-content .btn-container {
        display: flex;
    }

    .hero-content .btn-container.align-left {
        justify-content: flex-start;
    }

    .hero-content .btn-container.align-center {
        justify-content: center;
    }

    .hero-content .btn-container.align-right {
        justify-content: flex-end;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-content .btn {
        display: inline-block;
    }

    .hero-nav {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .hero-nav.prev {
        left: 10px;
    }

    .hero-nav.next {
        right: 10px;
    }

    .hero-controls {
        bottom: 15px;
    }
}
