/* Stilul fundalului întunecat al modalului */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.6); /* Fundal negru transparent */
    backdrop-filter: blur(5px); /* Efect de blur pe fundal */
}

/* Cutia cu conținutul pop-up-ului */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 25px;
    border-radius: 12px;
    width: 80%; 
    max-width: 800px;
    max-height: 80vh; /* Limită de înălțime */
    overflow-y: auto; /* Scroll bar dacă textul e prea lung */
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease-out;
}

/* Animație pentru apariție */
@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Butonul de închidere (X) */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover { color: #000; }

/* Corpul textului */
.modal-body h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 0;
}

.modal-body p {
    line-height: 1.6;
    color: #444;
    text-align: justify;
}

/* Butonul de închidere de jos */
.btn-inchide {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.btn-inchide:hover { background-color: #2980b9; }