/* General Fonts & Layout */
body {
    margin: 0;
    background: #f7f9fb;
    color: #01185E;
}

/* Header */
.library-header {
    position: relative;
    height: 45vh;
    background-image: url('/images/library/header.png'); /* Replace with your own image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.library-text {
    position: relative;
    text-align: center;
    color: #fff;
}

.library-title {
    font-size: 3rem;
    margin: 0;
}

.library-desc {
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

/* Main Layout */
.library-main {
    padding: 3rem 2rem;
    max-width: 1100px;
    margin: auto;
}

/* Section Titles */
.category-title {
    font-size: 2rem;
    border-left: 5px solid #E2A52A;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

/* Document Cards */
.document-card {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.document-card:hover {
    transform: translateY(-5px);
}

.document-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
}

.document-card p {
    margin: 0.5rem 0 1rem;
    color: #333;
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
}

.download-btn,
.view-btn {
    background-color: #01185E;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    cursor: pointer;
}

.download-btn:hover,
.view-btn:hover {
    background-color: #E2A52A;
    color: #01185E;
}

/* Modal */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-content {
    width: 90%;
    max-width: 900px;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    height: 80vh;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    z-index: 1000;
}

.pdf-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 900px;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 30px;
    color: #000000;
    cursor: pointer;
}
