/* Maleri Custom Modal Styles */
.maleri-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maleri-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.maleri-modal-container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.maleri-modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.maleri-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

.maleri-modal-close:hover {
    color: #000;
    transform: rotate(90deg);
}

.maleri-modal-close:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.maleri-modal-title {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    padding-right: 40px;
}

.maleri-modal-body {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.maleri-modal-body p {
    margin: 0 0 15px 0;
}

.maleri-modal-body p:last-child {
    margin-bottom: 0;
}

.maleri-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.maleri-modal-body a {
    color: #0073aa;
    text-decoration: underline;
}

.maleri-modal-body a:hover {
    color: #005177;
}

.maleri-modal-body ul,
.maleri-modal-body ol {
    margin: 15px 0;
    padding-left: 30px;
}

.maleri-modal-body li {
    margin-bottom: 8px;
}

/* Prevent body scroll when modal is open */
body.maleri-modal-open {
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .maleri-modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .maleri-modal-content {
        padding: 30px 25px;
    }
    
    .maleri-modal-title {
        font-size: 24px;
        padding-right: 35px;
    }
    
    .maleri-modal-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .maleri-modal-content {
        padding: 25px 20px;
    }
    
    .maleri-modal-title {
        font-size: 20px;
        padding-right: 30px;
    }
}

