.page-header {
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #2a5298;
    text-decoration: none;
}

.content-wrapper {
    padding: 40px 0;
}

.search-filter {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e3c72;
}

.form-control {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.btn {
    padding: 12px 30px;
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background: #1e3c72;
}

.category-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.category-info h3 {
    margin-bottom: 8px;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.document-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.doc-header {
    display: flex;
    align-items: start;
    gap: 15px;
    margin-bottom: 15px;
}

.doc-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.doc-title {
    flex: 1;
}

.doc-title h3 {
    color: #1e3c72;
    font-size: 18px;
    margin-bottom: 5px;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.doc-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 15px 0;
    font-size: 13px;
    color: #666;
}

.doc-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.doc-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.doc-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    cursor: pointer;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-2px);
}

.btn-primary {
    background: #2a5298;
    color: white;
}

.btn-primary:hover {
    background: #1e3c72;
    transform: translateY(-2px);
}

.btn-success {
    background: #4caf50;
    color: white;
}

.btn-success:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background: #2a5298;
    color: white;
}

.pagination .active {
    background: #2a5298;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* PDF Preview Modal */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    padding: 20px;
}

.pdf-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-modal-content {
    background: #2d2d2d;
    border-radius: 10px;
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.pdf-modal-header {
    background: #1e1e1e;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.pdf-modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.pdf-close-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.pdf-close-btn:hover {
    background: #d32f2f;
}

.pdf-modal-body {
    flex: 1;
    overflow: hidden;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .search-form {
        grid-template-columns: 1fr;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .doc-footer {
        grid-template-columns: 1fr;
    }

    .pdf-modal-content {
        height: 95vh;
    }
}

/* Show */
.page-header {
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    color: white;
    padding: 40px 20px;
}

.breadcrumb {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.doc-title {
    font-size: 38px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.doc-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
}

.content-wrapper {
    padding: 60px 0;
}

.doc-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.doc-main {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* PDF PREVIEW SECTION */
.pdf-preview-section {
    margin: 30px 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.pdf-preview-header {
    background: #f5f7fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e0e0e0;
}

.pdf-preview-header h3 {
    color: #1e3c72;
    margin: 0;
    font-size: 18px;
}

.pdf-controls {
    display: flex;
    gap: 10px;
}

.pdf-controls button {
    padding: 8px 15px;
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.pdf-controls button:hover {
    background: #1e3c72;
}

#pdf-viewer {
    width: 100%;
    height: 600px;
    border: none;
    background: #525659;
}

.pdf-fallback {
    padding: 60px 20px;
    text-align: center;
    background: #f9f9f9;
}

.pdf-fallback-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.doc-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    background: #f5f7fa;
    border-radius: 10px;
}

.info-item label {
    display: block;
    color: #999;
    font-size: 13px;
    margin-bottom: 5px;
}

.info-item p {
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.download-section {
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 30px 0;
}

.download-section h3 {
    margin-bottom: 15px;
}

.btn-download {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #4caf50;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    position: sticky;
    top: 100px;
}

.sidebar-widget h3 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ffd700;
}

.related-doc {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.related-doc:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-doc:hover {
    transform: translateX(5px);
}

.related-icon {
    width: 50px;
    height: 50px;
    background: #2a5298;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.related-content h4 {
    color: #1e3c72;
    font-size: 15px;
    margin-bottom: 5px;
}

.related-content p {
    color: #999;
    font-size: 12px;
}

@media (max-width: 992px) {
    .doc-container {
        grid-template-columns: 1fr;
    }

    .doc-info-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-widget {
        position: static;
    }
}
