/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #c41b1b;
}

.modal-header {
    background-color: #c41b1b;
    color: white;
    padding: 20px 30px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.modal-body {
    padding: 20px 30px 30px;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h3 {
    color: #c41b1b;
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.modal-section p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.modal-section ul {
    list-style-type: none;
    padding-left: 0;
}

.modal-section li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.modal-section li:before {
    content: "•";
    color: #c41b1b;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Citation section */
.citation-section {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-section h3 {
        font-size: 1.2rem;
    }
}