/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
}

.modal-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: 'Merriweather', serif;
    font-size: 1em;
}

.modal-content p:last-of-type {
    margin-bottom: 0;
}

.modal-content a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.modal-content a:hover {
    text-decoration: underline;
}

.modal-content strong {
    font-weight: 700;
    color: #222;
}

.modal-content em {
    font-style: italic;
    color: #666;
}

.close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover,
.close:focus {
    color: #333;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 25px;
    }
    
    .modal-content h2 {
        font-size: 1.5em;
    }
    
    .modal-content p {
        font-size: 0.95em;
    }
    
    .close {
        font-size: 28px;
        right: 15px;
        top: 10px;
    }
}

@media screen and (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 20px;
    }
    
    .modal-content h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }
    
    .modal-content p {
        font-size: 0.9em;
        margin-bottom: 12px;
    }
}
