body,
html {

    background: linear-gradient(45deg, #3b82f6, #9333ea);
}

.cover {


    width: 140px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}




.cover:hover:hover {
    transform: scale(1.1);
}


.exam-cont {
    padding-right: 20px;
    display: flex;
    flex-wrap: wrap;

}

.chemistry {
    display: flex;
    flex-wrap: wrap;
    padding-left: 50px;
    padding-top: 20px;
    gap: 10px;
}


.space {
    padding: 20px;
}

@media (max-width: 826px) {

    .cover,
    .exam-cont {
        height: 180px;
        width: 126px;
        align-items: center;
    }
}


/* Grid container for all file cards */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 20px;
    margin-top: 100px;
}

/* Individual file card */
.file-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.file-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* File name as a clickable link */
.file-name {
    text-align: center;
    margin-bottom: 12px;
}

.file-name a {
    font-size: 1.1rem;
    font-weight: 600;
    color: #276fcd;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.file-name a:hover {
    color: #1a4ea8;
    text-decoration: underline;
}

/* Embedded PDF preview */
.pdf-preview {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 6px;
    margin-bottom: 16px;
    background-color: #f3f3f3;
}

/* Responsive layout fix for smaller screens */
@media (max-width: 810px) {
    .file-grid {
        margin-top: 350px;
    }
}