/* skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite linear;
}



@keyframes loading {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

/* skeleton */

/* zoom-effect */
.zoom-effect img {
    transition: transform 0.3s ease-in-out;
}

.zoom-effect:hover img {
    transform: scale(1.1);
}

/* zoom-effect */

#pdfViewer {
    display: none;
    /* Start में PDF Hidden रहेगा */
    width: 100%;
    height: 500px;
    border: none;
}

.pdf-object {
    width: 100%;
    height: 100%;
}

#pdfModal {
    display: flex;
    align-items: center;
    justify-content: center;
}

#pdfViewer {
    width: 100%;
    height: 100%;
}

.hidden {
    display: none;
}

.pdf-box {
    width: 180px;
    height: 200px;
    background-color: gray;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
}

.pdf-box:hover {
    background-color: darkgray;
}

@media print {
    #print {
        display: none;
    }
}
/* Popup Styling */
#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    text-align: center;
    display: none;
    z-index: 10000;
}

/* Close Button */
#closePopup {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: bold;
}

/* Overlay Background */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9999;
}

/* Disable Scrolling */
body.noscroll {
    overflow: hidden;
}

/* index navbar */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: black;
    min-width: 160px;
    z-index: 1;
    bottom: 100%;
    /* Position above instead of below */
    left: 0;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;

}

.dropdown-content a:hover {
    background-color: #333;
}

.dropdown:hover .dropdown-content {
    display: block;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .navbar-menu.active {
        display: flex;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        /* Reset bottom positioning for mobile */
        bottom: auto;
    }
}