* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    /* Base font size for rem calculations */
}

body {
    font-family: Arial, sans-serif;
    background-color: #e6f2ff;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Common elements */
h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    /* Responsive font size */
    margin-bottom: 0.625rem;
    border-bottom: 2px solid #4d94ff;
    padding-bottom: 0.625rem;
    display: inline-block;
}

h2 {
    color: #0066cc;
    margin-bottom: 0.9375rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #4d94ff;
    font-size: clamp(1.3rem, 4vw, 2rem);
}

h3 {
    color: #0066cc;
    margin-bottom: 0.625rem;
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
}

p {
    margin-bottom: 0.9375rem;
    line-height: 1.8;
}

a {
    color: #0066cc;
    text-decoration: none;
}

/* Page Specific Styles */
.page-header {
    border-bottom: 2px solid #4d94ff;
    color: #0066cc;
    text-align: center;
    padding: 1.5625rem 1.875rem;
    margin: 1.25rem auto;
    width: 100%;
}

.breadcrumb {
    font-size: 0.875rem;
    color: #0066cc;
}


.documents-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #99ccff;
}

.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.category-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-filter select {
    padding: 8px 12px;
    border: 1px solid #99ccff;
    border-radius: 4px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #99ccff;
    border-radius: 4px;
    width: 250px;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.document-card {
    border: 1px solid #99ccff;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.document-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #0066cc;
}

.document-category {
    display: inline-block;
    background-color: #e6f2ff;
    color: #0066cc;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.document-description {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.document-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
}

.document-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.btn-view {
    background-color: #4d94ff;
    color: white;
    flex: 1;
    justify-content: center;
}

.btn-view:hover {
    background-color: #0066cc;
}

.btn-download {
    background-color: #28a745;
    color: white;
    flex: 1;
    justify-content: center;
}

.btn-download:hover {
    background-color: #218838;
}

.btn-download-all {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    margin-top: 20px;
}

.btn-download-all:hover {
    background-color: #5a6268;
}

.no-documents {
    text-align: center;
    padding: 40px;
    color: #777;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.download-options {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: none;
}

.download-options h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.download-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.download-option-btn {
    background-color: #4d94ff;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
}

.download-option-btn:hover {
    background-color: #0066cc;
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .category-filter,
    .search-box {
        justify-content: center;
    }

    .search-box input {
        width: 100%;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .document-actions {
        flex-direction: column;
    }
}