@charset "UTF-8";
/* CSS Document */

.doc-library-container {
    max-width: 1500px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: Arial, sans-serif;
}

.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.filter-select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    align-items: stretch; /* ensures all items take the same height */
}

.doc-card {
    padding: 20px;
    border-radius: 14px;
    background: #f8f8f8;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    transition: transform 0.2s;
	display: flex;
    flex-direction: column; /* stack icon, title, text, button vertically */
    justify-content: space-between; /* push download button to bottom */
    height: 100%; /* allows grid to stretch them */
}

.doc-card:hover {
    transform: translateY(-4px);
}

.doc-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.doc-card h4 {
    margin: 5px 0;
    font-size: 1.1rem;
}

.doc-card p {
    font-size: 0.9rem;
    color: #555;
}

.doc-card.hidden { 
	display: none !important; visibility: hidden !important; 
}

.download-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #005bbb;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.download-btn:hover {
    background: #003f7f;
	color: #fff;
}

.doc-search {
	border-color: var(--rp-blue-dark);
	display: flex; /* Use flexbox for layout */
    width: 100%; /* Full width of the container */
	margin-right: 15px
}

/* Make search bar and dropdown align nicely */
#searchKeyword {
  min-width: 150px; /* optional minimum width */
}

/* Style the "Clear Filters" link */
#clearFilters {
  cursor: pointer;
  color: var(--rp-blue-dark);
}

#clearFilters:hover {
  color: var(--rp-blue); /* optional hover effect */
}

