.hero {
    position: relative;
    height: 75vh;
    min-height: 480px;
    max-height: 720px;
    width: 100%;
    overflow: hidden;
    margin-top: 100px !important;
}

.hero-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    
    transform: scale(1.05);
    transition: transform 8s ease-out, opacity 0.5s ease;
    opacity: 0;
}

.hero-slide.active .slide-image {
    transform: scale(1);
    opacity: 1;
}

.slide-image.loaded {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.25) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 8%;
}

.hero-text {
    max-width: 600px;
}

.hero-subtitle {
    color: #16a34a;
    font-size: 35px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title {
    color: #0f172a;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hero-description {
    color: #f1f5f9;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-btn {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    padding: 12px 26px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 12px 26px;
    border: 2px solid white;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: white;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

@media (max-width: 992px) {
    .hero {
        height: 65vh;
        min-height: 420px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .hero {
        height: 60vh;
        min-height: 380px;
    }

    .hero-content {
        padding: 0 20px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .hero-description {
        font-size: 14px;
    }

    .cta-btn {
        justify-content: center;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (orientation: portrait) {
    .slide-image {
        object-position: center 30%;
    }
}

@media (min-width: 1600px) {
    .hero {
        max-height: 800px;
    }
}

