/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: var(--white);
    margin: 50px auto;
    padding: 30px;
    width: 80%;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--dark);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--red);
}

.modal-title {
    color: var(--blue);
    margin-bottom: 20px;
    padding-right: 30px; /* Space for close button */
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 30px auto;
        padding: 20px;
    }
    
    .modal-body {
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 15px auto;
        padding: 15px;
    }
    
    .close-modal {
        top: 10px;
        right: 15px;
    }
}