/* Blog Modal Styles */
#postModal {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.85); /* semi-transparent overlay */
    backdrop-filter: blur(8px); /* blur background */
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

.post-modal-content {
    background-color: #ffffff; /* changed from dark to white */
    margin: 60px auto;
    padding: 24px;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2); /* softer shadow for light bg */
    color: #000000; /* changed text to black */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-modal-content::before {
    content: "";
    position: absolute;
    top: -3px; 
    left: -3px;
    right: -3px; 
    bottom: -3px;
    border-radius: 19px; /* slightly larger than modal */
    background: linear-gradient(270deg, #00f0ff, #3f8efc, #0fffc1, #5f5fff, #00f0ff);
    z-index: -1;
    filter: blur(3px); /* thin, neat glow for white background */
    opacity: 0.9;
}

.post-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    font-weight: bold;
    color: #000000; /* changed close button color */
    cursor: pointer;
    transition: color 0.2s ease;
}

.post-modal-close:hover {
    color: #3f8efc; /* subtle hover highlight */
}

.post-modal-body h2 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 16px;
    color: #000000; /* heading black */
    font-weight: 700;
}

.post-modal-body p {
    line-height: 1.6;
    color: #333333; /* paragraph text darker grey for readability */
    margin-bottom: 16px;
}

.post-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 12px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-modal-content {
        margin: 40px 12px;
        padding: 18px;
    }

    .post-modal-body h2 {
        font-size: 22px;
    }
}
