.pdf-blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.pdf-blog-item {
    width: 100%;
    max-width: 300px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
}

.pdf-blog-item img {
    max-width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.pdf-blog-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}


#fullscreen-btn:hover {
    background: #555;
}


.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .pdf-viewer iframe {
        height: 400px; /* Adjust height for mobile devices */
    }
}


.pdf-blog-single {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}







@media (max-width: 768px) {
    #pdf-viewer-container {
        height: auto; /* Allow height to adjust for smaller screens */
    }

    #pdf-canvas {
        width: 100%; /* Ensure canvas width adapts to screen width */
        height: auto; /* Maintain aspect ratio */
    }

    #loading-indicator {
        font-size: 14px;
        padding: 8px 16px;
    }

    #fullscreen-btn {
        font-size: 14px;
        padding: 8px 16px;
        bottom: 10px;
        right: 10px;
    }
}



#loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    z-index: 1000; /* Ensure it is above other content */
}

#pdf-viewer-container {
    position: relative;
    width: 100%;
    overflow-x: auto; /* Enable horizontal scrolling if needed */
    overflow-y: hidden; /* Hide vertical overflow initially */
}

#pdf-canvas {
    display: block;
    margin: 0 auto; /* Center the canvas horizontally */
}

#fullscreen-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 1000; /* Ensure button is visible above content */
}
