/* FEB UNAIR Inspired Document Download Center CSS Architecture */

.iai-download-center-wrap {
	max-width: 1200px;
	margin: 2rem auto;
	font-family: inherit;
	color: #0f172a;
}

/* VIEW A: MAIN CATEGORIES VIEW STYLES */
.iai-download-header-heading {
	text-align: center;
	margin-bottom: 2rem;
}

.iai-download-main-title {
	font-size: 2.25rem;
	font-weight: 800;
	color: #1e3a8a;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	margin: 0;
}

/* Global Search Form */
.iai-download-search-form,
.iai-download-search-form-detail {
	max-width: 680px;
	margin: 0 auto 3rem auto;
}

.iai-download-search-input-group {
	display: flex;
	align-items: center;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 6px 12px;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.iai-download-search-input-group:focus-within {
	border-color: #6b21a8;
	box-shadow: 0 4px 16px rgba(107, 33, 168, 0.15);
}

.iai-download-search-input-group .search-icon {
	font-size: 1.1rem;
	color: #94a3b8;
	margin-right: 10px;
}

.iai-download-search-input {
	flex-grow: 1;
	border: none !important;
	outline: none !important;
	font-size: 1rem;
	color: #1e293b;
	background: transparent;
	padding: 10px 0;
}

.iai-download-search-btn {
	background: transparent;
	border: 1px solid #db2777;
	color: #be185d;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 10px 24px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.iai-download-search-btn:hover {
	background: #be185d;
	color: #ffffff;
}

/* Section Eyebrow Title */
.iai-download-section-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 1.75rem;
}

.iai-download-section-eyebrow .eyebrow-accent {
	width: 4px;
	height: 24px;
	background-color: #f59e0b; /* Gold Accent */
	border-radius: 2px;
}

.iai-download-section-eyebrow h2 {
	font-size: 1.25rem;
	font-weight: 800;
	color: #1e3a8a;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0;
}

/* Category Cards Grid (4 Columns FEB UNAIR Inspired) */
.iai-download-categories-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

@media (max-width: 1024px) {
	.iai-download-categories-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.iai-download-categories-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (max-width: 480px) {
	.iai-download-categories-grid {
		grid-template-columns: 1fr;
	}
}

.iai-download-cat-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #f59e0b; /* FEB UNAIR Gold Left Border Accent */
	border-radius: 4px;
	padding: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-decoration: none;
	transition: all 0.22s ease;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.iai-download-cat-card:hover {
	transform: translateY(-3px);
	border-color: #cbd5e1;
	border-left-color: #d97706;
	box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.1);
}

.cat-card-title {
	font-size: 1.15rem;
	font-weight: 800;
	color: #1e3a8a;
	line-height: 1.25;
	margin: 0 0 6px 0;
	letter-spacing: 0.02em;
}

.cat-card-count {
	font-size: 0.85rem;
	color: #64748b;
	font-weight: 500;
}

.cat-arrow-icon {
	font-size: 1.25rem;
	color: #1e3a8a;
	transition: transform 0.2s ease;
}

.iai-download-cat-card:hover .cat-arrow-icon {
	transform: translateX(4px);
	color: #d97706;
}

/* VIEW B: CATEGORY FILE DETAIL VIEW STYLES */
.iai-download-back-wrap {
	margin-bottom: 2rem;
}

.iai-download-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	font-weight: 800;
	color: #64748b;
	text-decoration: none;
	letter-spacing: 0.04em;
	transition: color 0.18s ease;
}

.iai-download-back-btn:hover {
	color: #1e3a8a;
}

.iai-download-detail-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 36px;
}

@media (max-width: 860px) {
	.iai-download-detail-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* Left Sidebar Navigation */
.iai-download-sidebar {
	background: #ffffff;
}

.sidebar-cat-title {
	font-size: 1.1rem;
	font-weight: 800;
	color: #1e3a8a;
	letter-spacing: 0.03em;
	margin: 0 0 16px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid #e2e8f0;
}

.sidebar-sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sub-menu-item a {
	display: block;
	padding: 10px 16px;
	font-size: 0.925rem;
	font-weight: 600;
	color: #475569;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.18s ease;
}

.sub-menu-item a:hover {
	background: #f1f5f9;
	color: #1e3a8a;
}

/* FEB UNAIR Active Sub-menu Item Style (Light blue highlight) */
.sub-menu-item.active a {
	background: #e0f2fe;
	color: #0369a1;
	font-weight: 700;
	border-left: 4px solid #0284c7;
	border-radius: 0 6px 6px 0;
}

/* Right Main Content */
.iai-download-main-content {
	flex-grow: 1;
}

.iai-download-search-form-detail {
	max-width: 100%;
	margin-bottom: 2rem;
}

/* Group Section Header (e.g. BUKU PEDOMAN) */
.iai-download-group-section {
	margin-bottom: 2.5rem;
}

.group-section-header {
	font-size: 1.2rem;
	font-weight: 800;
	color: #1e3a8a;
	letter-spacing: 0.04em;
	margin: 0 0 16px 0;
	padding: 10px 16px;
	background: #f8fafc;
	border-left: 4px solid #1e3a8a;
	border-radius: 0 6px 6px 0;
}

/* File Cards List */
.iai-download-files-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.iai-download-file-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	transition: all 0.18s ease;
}

.iai-download-file-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.file-card-badge-wrap {
	flex-shrink: 0;
}

.file-type-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 48px;
	background: #1e3a8a; /* Dark Blue FEB UNAIR Badge */
	color: #ffffff;
	font-weight: 800;
	font-size: 0.85rem;
	border-radius: 6px;
	letter-spacing: 0.04em;
	box-shadow: 0 2px 6px rgba(30, 58, 138, 0.2);
}

.file-type-badge.type-pdf { background: #1e3a8a; }
.file-type-badge.type-docx, .file-type-badge.type-doc { background: #0284c7; }
.file-type-badge.type-xlsx, .file-type-badge.type-xls { background: #16a34a; }
.file-type-badge.type-zip, .file-type-badge.type-rar { background: #d97706; }

.file-card-info {
	flex-grow: 1;
}

.file-card-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #1e3a8a;
	margin: 0 0 6px 0;
	line-height: 1.35;
}

.file-card-meta {
	font-size: 0.825rem;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 8px;
}

.meta-separator {
	color: #cbd5e1;
}

/* Gold Download Action Button (FEB UNAIR Inspired) */
.file-card-action {
	flex-shrink: 0;
}

.btn-download-gold {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background-color: #f59e0b; /* Bright Yellow/Gold FEB UNAIR Button */
	color: #0f172a;
	border-radius: 6px;
	text-decoration: none;
	font-size: 1.25rem;
	font-weight: 800;
	transition: all 0.2s ease;
	box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.btn-download-gold:hover {
	background-color: #d97706;
	color: #ffffff;
	transform: scale(1.05);
	box-shadow: 0 6px 14px rgba(217, 119, 6, 0.4);
}

.iai-download-empty-msg,
.iai-download-empty-state {
	text-align: center;
	padding: 40px 20px;
	color: #64748b;
	font-size: 1rem;
	background: #f8fafc;
	border-radius: 8px;
	border: 1px dashed #cbd5e1;
}
