/* Custom CSS for Estagio VAF Home */

.home-container {
    position: relative;
    width: 100%;
    min-height: 500px;
    height: 90vh;
    /* Responsive height */
    background-image: url('capa.png');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

.home-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    transition: all 1s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.home-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.overlay-left {
    left: 0;
}

.overlay-right {
    right: 0;
}

.overlay-content {
    color: white;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
    padding: 20px;
}

.home-overlay:hover .overlay-content {
    opacity: 1;
    transform: translateY(0);
}

.overlay-title {
    font-family: 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 6px 2px 20px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.btn-group-horizontal {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.home-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #28a745;
    color: white !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    width: 180px;
    text-align: center;
    border: 2px solid transparent;
}

.home-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    background-color: #218838;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .overlay-title {
        font-size: 2rem;
    }

    .home-btn {
        width: 150px;
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .home-container {
        flex-direction: column;
        height: auto;
        min-height: 800px;
    }

    .home-overlay {
        position: relative;
        width: 100%;
        height: 400px;
        /* Split height on mobile */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .overlay-content {
        opacity: 1;
        transform: translateY(0);
    }

    .btn-group-horizontal {
        flex-direction: column;
        gap: 10px;
    }

    .home-btn {
        width: 80%;
        max-width: 300px;
    }

    .overlay-title {
        font-size: 1.8rem;
    }

    /* Ensure other cards and rows stack correctly */
    .row {
        margin-right: 0px;
        margin-left: 0px;
    }
}

/* Optimization for info boxes on small screens */
@media (max-width: 576px) {
    .info-box-number {
        font-size: 1.5rem !important;
    }

    .overlay-title {
        font-size: 1.5rem;
    }
}
