/* Forms & Downloads hub — scoped; uses --thm-* from layout */

.ac-download-hub {
	--ac-dh-radius: var(--thm-radius, 8px);
	--ac-dh-card-bg: #fff;
	--ac-dh-muted: var(--thm-secondary-text, #6c757d);
}

.ac-download-hub .ac-dh-hero {
	background: linear-gradient(135deg, var(--thm-primary, #1e3a5f) 0%, var(--thm-hover, #2a5080) 100%);
	color: #fff;
	padding: 2.5rem 0;
	margin-bottom: 0;
	border-radius: 0 0 2rem 2rem;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.ac-download-hub .ac-dh-hero h2 {
	margin: 0;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.ac-download-hub .ac-dh-hero p {
	margin: 0.5rem 0 0;
	opacity: 0.92;
	font-size: 1.05rem;
}

.ac-download-hub .ac-dh-sidebar {
	position: sticky;
	top: 100px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	padding: 1rem;
	background: var(--ac-dh-card-bg);
	border-radius: var(--ac-dh-radius);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.ac-download-hub .ac-dh-sidebar strong {
	display: block;
	margin-bottom: 0.75rem;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ac-dh-muted);
}

.ac-download-hub .ac-dh-sidebar a {
	display: block;
	padding: 0.45rem 0.6rem;
	border-radius: 6px;
	color: var(--thm-text, #333);
	text-decoration: none;
	font-size: 0.95rem;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ac-download-hub .ac-dh-sidebar a:hover {
	background: rgba(0, 0, 0, 0.04);
	color: var(--thm-primary, #1e3a5f);
	transform: translateX(4px);
}

.ac-download-hub .ac-dh-intro {
	margin: 1.5rem 0 2rem;
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--thm-text, #333);
}

.ac-download-hub .ac-dh-section {
	margin-bottom: 2rem;
	scroll-margin-top: 100px;
}

.ac-download-hub .ac-dh-card {
	background: var(--ac-dh-card-bg);
	border-radius: var(--ac-dh-radius);
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.ac-download-hub .ac-dh-card:hover {
	box-shadow: 0 14px 48px rgba(0, 0, 0, 0.12);
}

.ac-download-hub .ac-dh-card-head {
	background: linear-gradient(120deg, var(--thm-primary, #1e3a5f), var(--thm-hover, #2a5080));
	color: #fff;
	padding: 1.25rem 1.5rem;
}

.ac-download-hub .ac-dh-card-head h3 {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 600;
}

.ac-download-hub .ac-dh-card-head .ac-dh-sub {
	margin: 0.35rem 0 0;
	opacity: 0.9;
	font-size: 0.9rem;
}

.ac-download-hub .ac-dh-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	transition: background 0.25s ease;
}

.ac-download-hub .ac-dh-row:last-child {
	border-bottom: none;
}

.ac-download-hub .ac-dh-row:hover {
	background: rgba(0, 0, 0, 0.02);
}

.ac-download-hub .ac-dh-label {
	flex: 1;
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--thm-text, #333);
}

/* Animation presets — initial state */
.ac-download-hub.ac-dh-preset-fade_up .ac-dh-animate {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.ac-download-hub.ac-dh-preset-slide_in .ac-dh-animate {
	opacity: 0;
	transform: translateX(-36px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.ac-download-hub.ac-dh-preset-stagger .ac-dh-animate {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.ac-download-hub.ac-dh-preset-minimal .ac-dh-animate {
	opacity: 1;
	transform: none;
}

.ac-download-hub .ac-dh-animate.ac-dh-in-view {
	opacity: 1;
	transform: translate(0, 0);
}

.ac-download-hub.ac-dh-preset-stagger .ac-dh-card .ac-dh-row.ac-dh-animate:nth-child(1) { transition-delay: 0.05s; }
.ac-download-hub.ac-dh-preset-stagger .ac-dh-card .ac-dh-row.ac-dh-animate:nth-child(2) { transition-delay: 0.1s; }
.ac-download-hub.ac-dh-preset-stagger .ac-dh-card .ac-dh-row.ac-dh-animate:nth-child(3) { transition-delay: 0.15s; }
.ac-download-hub.ac-dh-preset-stagger .ac-dh-card .ac-dh-row.ac-dh-animate:nth-child(4) { transition-delay: 0.2s; }
.ac-download-hub.ac-dh-preset-stagger .ac-dh-card .ac-dh-row.ac-dh-animate:nth-child(5) { transition-delay: 0.25s; }
.ac-download-hub.ac-dh-preset-stagger .ac-dh-card .ac-dh-row.ac-dh-animate:nth-child(6) { transition-delay: 0.3s; }
.ac-download-hub.ac-dh-preset-stagger .ac-dh-card .ac-dh-row.ac-dh-animate:nth-child(7) { transition-delay: 0.35s; }
.ac-download-hub.ac-dh-preset-stagger .ac-dh-card .ac-dh-row.ac-dh-animate:nth-child(8) { transition-delay: 0.4s; }

.ac-download-hub .ac-dh-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 1.15rem;
	border-radius: 999px;
	background: var(--thm-primary, #1e3a5f);
	color: #fff !important;
	font-weight: 600;
	font-size: 0.85rem;
	text-decoration: none !important;
	border: 2px solid var(--thm-primary, #1e3a5f);
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
	white-space: nowrap;
}

.ac-download-hub .ac-dh-btn:hover {
	background: var(--thm-hover, #2a5080);
	border-color: var(--thm-hover, #2a5080);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
	color: #fff !important;
}

.ac-download-hub .ac-dh-btn .ac-dh-ico-spin {
	animation: ac-dh-spin 0.8s linear infinite;
}

@keyframes ac-dh-spin {
	to { transform: rotate(360deg); }
}

.ac-download-hub .ac-dh-empty {
	text-align: center;
	padding: 3rem 1.5rem;
	color: var(--ac-dh-muted);
	background: rgba(0, 0, 0, 0.02);
	border-radius: var(--ac-dh-radius);
}

@media (max-width: 991px) {
	.ac-download-hub .ac-dh-row {
		flex-direction: column;
		align-items: flex-start;
	}
	.ac-download-hub .ac-dh-btn {
		width: 100%;
		justify-content: center;
	}
}
