/* Base Styles */
body { 
    background-color: #f8f9fa; 
    font-family: 'Bahnschrift', 'Segoe UI', sans-serif; 
    font-weight: 300;
	 font-size:17px; 
}



/* Header and Search Section */
.header-section {
    margin: 0;
    background: linear-gradient(rgba(26, 58, 82, 0.85), rgba(26, 58, 82, 0.7)), url('../images/ny1.jpg');
    background-size: cover; 
    background-position: center;
    color: white; 
    padding: 2rem 0;
}

.search-container { 
    background: rgba(255,255,255,0.1); 
    padding: 20px; 
    border-radius: 5px; 
    backdrop-filter: blur(5px); 
}

.filter-label { 
    font-size: 1rem; 
    color: #fff; 
    margin-bottom: 2px; 
    display: block; 
}

/* Archive Items (Cards) */
.archive-item { 
    background: white; 
    border-radius: 8px; 
    padding: 20px 20px 10px 20px; 
    margin-bottom: 10px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.archive-item:hover { 
    transform: translateX(5px); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    border-left-color: #308099;
}

.archive-item h5 { 
    font-size: 1.15rem; 
    color: #1a3a52; 
    margin-bottom: 0.5rem; 
}

/* PDF Preview and Modal */


.pdf-container { 
    height: 75vh; 
    background: #525659; 
    border-radius: 4px; 
    overflow: hidden; 
}

iframe { 
    width: 100%; 
    height: 100%; 
    border: none; 
}

.meta-label { 
    font-weight: bold; 
    color: #6c757d; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

/* Pagination */
.pagination .page-link { 
    color: #308099; 
    border-radius: 5px; 
    margin: 0 3px; 
    border: none; 
    background: #fff; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
}

.pagination .page-item.active .page-link { 
    background-color: #308099; 
    color: white; 
}

    .gallery-content {
        flex: 0 0 75%;
        padding: 1rem;
        /* FIX: Changed 'scroll' to 'auto' for cleaner behavior and ensured height is inherited */
        overflow-y: auto; 
        background-color: #fff;
        height: 100%; 
    }

    /* Gallery Grid */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.5rem;
    }

    .gallery-item {
        position: relative;
        overflow: hidden;
        aspect-ratio: 4/3;
        background: #f0f0f0;
        cursor: pointer;
        border-radius: 6px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
    .gallery-item:hover img { transform: scale(1.05); }

    /* MODAL LAYOUT: Image Left, Text Right */
   
    /* Custom Scrollbar for Gallery */
    .gallery-content::-webkit-scrollbar { width: 8px; }
    .gallery-content::-webkit-scrollbar-track { background: #f1f1f1; }
    .gallery-content::-webkit-scrollbar-thumb { background: #356; border-radius: 10px; }

    /* Responsive adjustments */
    @media (max-width: 992px) {
        .main-wrapper { flex-direction: column; height: auto; overflow: visible; }
        .sidebar, .gallery-content { max-width: 100%; flex: 0 0 100%; overflow: visible; }
        .modal-body { flex-direction: column; }
        .modal-image-container { max-width: 100%; }
    }
#detailModal .modal-body {
margin:10px;
    min-height: 75vh;
}

#modalPdfView {
    height: 75vh;
    background-color: #1f2d3a;
}

#modalPdfView iframe {

    width: 100%;
    height: 100%;
    border: none;
}

 .cite{
	margin: 15px 0 30px 0;
	border-left:4px #068 solid;
	color:#068;
	padding-left:0.8rem;
	font-size:17px;
}