/* Documents Page Styles */

/* Add scroll padding to account for fixed navbar */
html {
	scroll-padding-top: 80px;
}

/* Hero Section */
.documents-hero {
	background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
		url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1800&q=80');
	background-size: cover;
	background-position: center;
	height: 300px;
	display: flex;
	align-items: center;
	text-align: center;
	color: white;
}

.documents-hero h1 {
	font-size: 2.8rem;
	font-weight: 800;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	animation: fadeInDown 1s ease;
}

.documents-hero p {
	font-size: 1.3rem;
	animation: fadeInUp 1s ease;
}

/* Document Sections */
.document-section {
	padding: 60px 0;
}

.documents-container {
	background-color: white;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	padding: 30px;
	margin-bottom: 30px;
}

/* Enhanced Category Styling */
.document-category {
	margin-bottom: 40px;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	padding: 25px;
	background: linear-gradient(to right, #f9f9f9, #ffffff);
	border-left: 5px solid var(--primary-gold);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}

.document-category:hover {
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
	transform: translateY(-3px);
}

.category-title {
	color: var(--dark-red);
	margin-bottom: 20px;
	padding-bottom: 10px;
	position: relative;
	font-weight: 700;
	display: flex;
	align-items: center;
	border-bottom: 2px solid var(--primary-gold);
}

.category-title i {
	margin-right: 10px;
	color: var(--primary-red);
	font-size: 1.5rem;
}

.category-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: var(--primary-gold);
	color: white;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
}

/* Document Cards */
.document-card {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 20px;
	transition: var(--transition);
	background-color: #fff;
	height: 100%;
}

.document-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	border-color: var(--primary-gold);
}

.document-icon {
	font-size: 2rem;
	color: var(--primary-red);
	margin-bottom: 15px;
}

.document-title {
	font-weight: 700;
	color: var(--dark-red);
	margin-bottom: 10px;
	font-size: 1.2rem;
}

.document-meta {
	display: flex;
	justify-content: space-between;
	margin-bottom: 15px;
	font-size: 0.9rem;
	color: #666;
}

.document-meta span {
	display: flex;
	align-items: center;
}

.document-actions {
	display: flex;
	gap: 10px;
}

/* Button Styles */
.btn-preview {
	background-color: var(--primary-gold);
	color: white;
	border: none;
	transition: var(--transition);
}

.btn-preview:hover {
	background-color: var(--dark-gold);
	color: white;
}

/* Archive Section */
.archive-section {
	background-color: #f8f9fa;
	border-radius: 10px;
	padding: 20px;
	margin-top: 30px;
	border-left: 4px solid var(--primary-gold);
}

.archive-title {
	color: var(--dark-red);
	margin-bottom: 20px;
	display: flex;
	align-items: center;
}

.archive-title i {
	margin-right: 10px;
	color: var(--primary-gold);
}

/* Archive Item Styling */
.archive-section .d-flex {
	padding: 10px;
	border-radius: 5px;
	transition: background-color 0.3s ease;
}

.archive-section .d-flex:hover {
	background-color: #f8f9fa;
}

.archive-section .text-muted {
	font-size: 0.8rem;
}

/* Filter Section */
.document-filter {
	background-color: white;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 30px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-title {
	color: var(--dark-red);
	font-weight: 600;
	margin-bottom: 15px;
}

.document-filter .form-select {
	border: 1px solid #dee2e6;
	transition: all 0.3s ease;
}

.document-filter .form-select:focus {
	border-color: var(--primary-gold);
	box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
	.documents-hero {
		height: 250px;
	}

	.documents-hero h1 {
		font-size: 2rem;
	}

	.documents-hero p {
		font-size: 1rem;
	}

	.document-actions {
		flex-direction: column;
	}

	.category-badge {
		position: relative;
		top: 0;
		right: 0;
		margin-top: 10px;
		display: inline-block;
	}

	.document-category {
		padding: 15px;
	}

	.category-title {
		font-size: 1.1rem;
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.category-title i {
		margin-bottom: 5px;
	}

	.document-filter {
		padding: 15px;
	}

	.filter-title {
		font-size: 1rem;
	}
}

@media (max-width: 992px) {
	.document-section {
		padding: 40px 0;
	}

	.documents-container {
		padding: 20px;
	}

	.document-card {
		padding: 15px;
	}

	.document-title {
		font-size: 1.1rem;
	}
}

.download-btn {
	background-color: #b22222;
	color: white;
	border-color: #b22222;
}

.download-btn:hover {
	background-color: #8b0000;
	border-color: #8b0000;
}
