.slider-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; 
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1; 
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 60, 114, 0.6); 
    z-index: 1;
}

.slide-content {
    position: relative;
    color: white;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
}

.slide-content h2 {
    font-size: 52px;
    margin-bottom: 15px;
    color: white; 
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 22px;
    margin-bottom: 40px;
    font-weight: 300;
}


.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    transform: translateY(-50%);
}

.control {
    font-size: 40px;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s, color 0.3s;
}

.control:hover {
    background: rgba(255, 107, 53, 0.8); 
}

.control.prev {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
.control.next {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active, .dot:hover {
    background-color: #ff6b35; 
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .slider-hero {
        height: 400px;
    }
    .slide-content h2 {
        font-size: 32px;
    }
    .slide-content p {
        font-size: 16px;
    }
    .control {
        font-size: 30px;
        padding: 8px 15px;
    }
}
