/* CSS for slider container and its contents */
.slider-container {
    position: relative;
    width: 100%;
    height: 90vh; /* Set initial height for larger screens */
    overflow: hidden;
    background-color: #f8f9fa;
    margin: 0 auto;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.fixed-image {
    width: 100%;
    height: 100%; /* Ensure image fills the height of its container */
    object-fit: cover; /* Scale the image while preserving aspect ratio and covering the container */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Ensure overlay covers the entire slider container */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5); /* Transparent dark overlay */
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

.slogan {
    font-size: 6rem;
    margin-bottom: 30px;
    text-align: center;
}

.centered-button {
    padding: 15px 30px;
    font-size: 1.5rem;
    background-color: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.centered-button:hover {
    background-color: #0a58ca;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slider-container {
        height: 70vh; /* Adjust height for smaller screens */
    }
    
    .fixed-image {
        height: 100%; /* Ensure image fills the height of its container */
    }
    
    .overlay {
        height: 100%; /* Ensure overlay covers the entire slider container */
    }
    
    .slogan {
        font-size: 4rem; /* Adjust font size for smaller screens */
    }
    
    .centered-button {
        font-size: 1.2rem; /* Adjust font size of button for smaller screens */
        padding: 12px 24px; /* Adjust button padding for smaller screens */
    }
}

@media (max-width: 576px) {
    .slider-container {
        height: 60vh; /* Further adjust height for mobile screens */
    }
    
    .slogan {
        font-size: 3rem; /* Further adjust font size of slogan for mobile screens */
    }
    
    .centered-button {
        font-size: 1rem; /* Further adjust font size of button for mobile screens */
        padding: 10px 20px; /* Further adjust button padding for mobile screens */
    }
}


/* End of Slider on Main Page */

.button-link {
    display: inline-block;
    padding: 20px 40px; /* Ajustați padding-ul pentru a face butonul de două ori mai mare */
    font-size: 12px; /* Ajustați dimensiunea textului */
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 10px; /* Modifică radius-ul border-ului */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Adaugă transform pentru animația la hover */
}

.button-link:hover {
    background-color: #fff; /* Schimbă culoarea de fundal la hover */
    color: #007bff; /* Schimbă culoarea textului la hover */
    transform: scale(1.1); /* Face butonul să crească ușor la hover */
}