body {
    font-family: 'Barlow', sans-serif;
}

.blog-container {
    margin-top: 5%;
    height: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.blog-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 30%;
    text-align: center;
}

.blog-card img {
    height: auto;
    width: 100%;
}

.blog-card h3 {
    font-size: 1.5em;
    margin: 15px 0;
}

.blog-card p {
    padding: 0 15px;
    font-size: 1em;
    color: #666;
}

.blog-meta {
    font-size: 0.9em;
    color: #999;
    padding: 15px;
    border-top: 1px solid #eee;
}

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

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0; /* Remove padding to allow iframe to fill */
    border-radius: 10px;
    width: 80%;
    height: 80%;
    text-align: center;
    position: relative;
    align-content: center;
    overflow: hidden; /* Ensure content stays within modal */
}

#modal-body iframe {
    border: none; /* Remove iframe border */
}

.modal-content img {
    max-width: 100%;
    height: auto;
}

.modal-content h3 {
    margin: 15px 0;
    font-size: 1.8em;
}

.modal-content p {
    font-size: 1.2em;
    color: #333;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.loader {
    position: fixed;
    z-index: 1100;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (max-width: 768px) {
    .blog-container {
        flex-direction: column;
        align-items: center;
        height: fit-content;
    }

    .blog-card {
        width: 90%;
        height: auto;
    }
    

    .modal-content {
        width: 30%;
        top:5%;
        height: 30%;
        left: 5%;
        margin: auto;
        position: fixed;
    }
}
