body {
    font-family: Arial;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Enhanced Product Section Styling */
.category-header1 {
    text-align: center;
    margin: 1rem 0 0.5rem;
    position: relative;
    color: white;
}
.category-header1 h2{
    font-size: 30px;
    color: #324b97;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

.card {
    color: white;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    width: 200px; /* Set a consistent width */
    height: 300px; /* Set a consistent height */
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    text-align: center;
    position: relative; /* Required for absolute positioning inside */
    overflow: hidden;
    background-color: #324b97;
}
.pdf-thumbnail {
    width: 90%;
    height: auto;
}

.card img {
    width: 100%;
    cursor: pointer;
    border-radius: 5px;
}

.popup {
    display: none;
    position: fixed;
    z-index: 9999; /* Ensure it's always on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85); /* Transparent dark overlay */
}

.popup-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* No background, just the PDF */
    padding: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.popup iframe {
    flex: 1; /* Fill available height */
    width: 100%;
    height: 100%;
    border: none;
}

.popup-footer {
    background: rgba(0, 0, 0, 0.7); /* Transparent footer background */
    padding: 10px 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.popup-footer button,
.popup-footer a {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    font-size: 14px;
}

.btn-close {
    background-color: #888;
}

.btn-download {
    background-color: #4CAF50;
}
.card h3 {
    font-size: 16px;
    margin: 0;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

.redirect-section {
    text-align: center;
    margin: 40px 0;
}

.redirect-btn {
    display: inline-block;
    background: linear-gradient(135deg, #007bff, #00d4ff);
    color: #fff;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease-in-out;
}

.redirect-btn:hover {
    background: linear-gradient(135deg, #0056b3, #00a6d6);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.5);
    transform: translateY(-2px);
}
