/* ============================================================
   Download Center — Frontend Styles
   ============================================================ */

/* ── Reset Blocksy main-content containers only (not header/footer `.ct-container`) ── */
body.page-template-template-download-center main .entry-content,
body.page-template-template-download-center main .ct-container,
body.page-template-template-download-center main .ct-container-full,
body.page-template-template-download-center main .ct-container-narrow {
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Hero must overflow any article/entry wrapper */
body.page-template-template-download-center article,
body.page-template-template-download-center .hentry {
	overflow: visible !important;
}
body.page-template-template-download-center .rc-hero {
	/* Break out of any padded wrapper */
	margin-left: calc(-50vw + 50%) !important;
	margin-right: calc(-50vw + 50%) !important;
	width: 100vw !important;
	max-width: 100vw !important;
}

/* ── Hero Banner ──────────────────────────────────────────────────────────── */
.rc-hero {
	width: 100%;
	background-color: #1a2a3a;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	position: relative;
}
.rc-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(10,20,40,0.62) 0%, rgba(10,20,40,0.42) 100%);
	pointer-events: none;
}
.rc-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 1280px;
	margin: 0 auto;
	padding: 250px 24px 50px;
	box-sizing: border-box;
}
.rc-hero-title {
	font-size: clamp(30px,1.875rem + ((1vw - 3.2px)*1.563),50px);
	font-weight: 700;
	color: #fff;
	margin: 0 0 25px;
	line-height: 1.5em;
}
.rc-hero-desc, .rc-hero-inner p {
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.05rem;
	margin: 0;
	line-height: 1.6;
	max-width: 560px;
}
.rc-hero-desc p {
	margin: 0;
}

/* ── Page wrapper ─────────────────────────────────────────────────────────── */
.rc-page-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 44px 24px 72px;
	box-sizing: border-box;
}

/* ── Two-column layout ───────────────────────────────────────────────────── */
.rc-layout {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.rc-sidebar {
	width: 256px;
	flex-shrink: 0;
	position: sticky;
	top: 90px;
}

.rc-filter-block {
	padding-bottom: 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid #e8ecf0;
}
.rc-filter-block:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.rc-filter-title {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 14px;
	font-weight: 600;
	color: #2d3748;
	margin: 0 0 14px;
	letter-spacing: 0.01em;
}

.rc-filter-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1.5px solid #2563eb;
	color: #2563eb;
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
}

/* Category list */
.rc-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rc-cat-list li + li {
	margin-top: 2px;
}

/* Category checkbox rows — same layout as file-type rows */
.rc-cat-label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	font-size: 14px;
	color: #4a5568;
	cursor: pointer;
	user-select: none;
	border-radius: 6px;
	transition: background 0.13s, color 0.13s;
}
.rc-cat-label:hover {
	background: #eff6ff;
	color: #2563eb;
}
.rc-cat-label:has(.rc-cat-cb:checked) {
	color: #2563eb;
}

.rc-cat-icon-wrap {
	display: inline-flex;
	flex-shrink: 0;
}

/* Default SVG icon */
.rc-cat-icon {
	color: #718096;
	transition: color 0.13s;
}
.rc-cat-label:hover .rc-cat-icon,
.rc-cat-label:has(.rc-cat-cb:checked) .rc-cat-icon {
	color: #2563eb;
}

/* Custom uploaded icon image */
.rc-cat-icon-img {
	display: block;
	width: 18px;
	height: 18px;
	object-fit: contain;
	border-radius: 2px;
}

.rc-cat-text {
	flex: 1;
	line-height: 1.4;
}

.rc-cat-cb {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	accent-color: #2563eb;
	cursor: pointer;
	margin-left: auto;
}

/* File-type checklist */
.rc-type-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rc-type-list li + li {
	margin-top: 2px;
}

/* icon + text on left, checkbox pushed to right */
.rc-type-label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	font-size: 14px;
	color: #4a5568;
	cursor: pointer;
	user-select: none;
	border-radius: 6px;
	transition: background 0.13s, color 0.13s;
}
.rc-type-label:hover {
	background: #eff6ff;
	color: #2563eb;
}
.rc-type-label:has(.rc-type-cb:checked) {
	color: #2563eb;
}

.rc-type-icon {
	display: inline-flex;
	flex-shrink: 0;
	color: #718096;
	transition: color 0.13s;
}
.rc-type-label:hover .rc-type-icon,
.rc-type-label:has(.rc-type-cb:checked) .rc-type-icon {
	color: #2563eb;
}

.rc-type-text {
	flex: 1;
	line-height: 1.4;
}

.rc-type-cb {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	accent-color: #2563eb;
	cursor: pointer;
	margin-left: auto;
}

/* Reset All Filters */
.rc-reset-wrap {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #e8ecf0;
}

.rc-reset-btn {
	display: flex;
	align-items: center;
	gap: 7px;
	width: 100%;
	padding: 9px 12px;
	border: 1.5px solid #dbeafe;
	background: #eff6ff;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 600;
	color: #2563eb;
	cursor: pointer;
	line-height: 1;
	transition: background 0.13s, border-color 0.13s, box-shadow 0.13s;
}
.rc-reset-btn:hover {
	background: #dbeafe;
	border-color: #93c5fd;
	box-shadow: 0 1px 4px rgba(37,99,235,0.10);
}
.rc-reset-btn svg {
	flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN RESULTS AREA
   ═══════════════════════════════════════════════════════════════════════════ */
.rc-main {
	flex: 1;
	min-width: 0;
	transition: opacity 0.18s;
}
.rc-main.rc-loading {
	opacity: 0.45;
	pointer-events: none;
}

/* Results bar */
.rc-results-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 18px;
	background: #f7f8fa;
	border: 1px solid #e2e8f0;
	border-radius: 8px 8px 0 0;
	font-size: 14px;
	color: #4a5568;
	gap: 12px;
	flex-wrap: wrap;
}

.rc-found {
	font-weight: 500;
}

.rc-per-page {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #718096;
}

.rc-per-select {
	padding: 4px 10px;
	border: 1px solid #cbd5e0;
	border-radius: 5px;
	font-size: 13px;
	background: #fff;
	cursor: pointer;
	color: #2d3748;
}
.rc-per-select:focus {
	outline: 2px solid #2563eb;
	outline-offset: 1px;
}

/* Cards container */
.rc-cards {
	border: 1px solid #e2e8f0;
	border-top: none;
	border-radius: 0 0 8px 8px;
	overflow: hidden;
}

/* ── Single resource card ─────────────────────────────────────────────────── */
.rc-card {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px 24px;
	background: #fff;
	border-bottom: 1px solid #f0f2f5;
	transition: background 0.12s;
}
.rc-card:last-child {
	border-bottom: none;
}
.rc-card:hover {
	background: #fafbff;
}

/* File icon */
.rc-card-icon {
	flex-shrink: 0;
	width: 50px;
}
.rc-file-svg {
	display: block;
	width: 50px;
	height: auto;
}

/* Body */
.rc-card-body {
	flex: 1;
	min-width: 0;
}

.rc-card-type {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: #2563eb;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 5px;
}

.rc-card-title {
	font-size: 16px;
	font-weight: 600;
	color: #1a202c;
	margin: 0 0 6px;
	line-height: 1.4;
}

.rc-card-desc {
	font-size: 13px;
	color: #718096;
	margin: 0;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/* Meta column */
.rc-card-meta {
	flex-shrink: 0;
	width: 120px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 12px;
	color: #718096;
	text-align: right;
}

/* Action button */
.rc-card-action {
	flex-shrink: 0;
	margin-left: 8px;
}

.rc-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	transition: filter 0.13s, transform 0.1s;
	cursor: pointer;
	border: none;
	line-height: 1;
}
.rc-btn:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}
.rc-btn-download,
.rc-btn-watch {
	background: #2563eb;
	color: #fff !important;
}
.rc-btn-na {
	font-size: 13px;
	color: #a0aec0;
	padding: 9px 16px;
	display: inline-block;
	cursor: not-allowed;
}

/* No-results state */
.rc-no-results {
	padding: 48px 24px;
	text-align: center;
	color: #a0aec0;
	font-size: 15px;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.rc-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 28px;
	flex-wrap: wrap;
}

.rc-pager-btn {
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border: 1px solid #e2e8f0;
	background: #fff;
	border-radius: 6px;
	font-size: 14px;
	color: #4a5568;
	cursor: pointer;
	transition: background 0.13s, border-color 0.13s, color 0.13s;
	line-height: 1;
}
.rc-pager-btn:hover {
	border-color: #2563eb;
	color: #2563eb;
}
.rc-pager-btn.is-active {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
	font-weight: 600;
}
.rc-pager-prev,
.rc-pager-next {
	font-size: 18px;
	line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
	.rc-hero-inner {
		padding-top: 140px;
		padding-bottom: 40px;
	}
	.rc-hero-title {
		font-size: 2rem;
	}
}

@media (max-width: 640px) {
	.rc-hero-inner {
		padding-top: 100px;
		padding-bottom: 32px;
	}
	.rc-hero-title {
		font-size: 1.6rem;
	}
}

@media (max-width: 900px) {
	.rc-layout {
		flex-direction: column;
	}
	.rc-sidebar {
		width: 100%;
		position: static;
		display: flex;
		gap: 0;
		flex-wrap: wrap;
	}
	.rc-filter-block {
		flex: 1 1 200px;
		border-bottom: none;
		padding-bottom: 12px;
		margin-bottom: 12px;
		padding-right: 24px;
		border-right: 1px solid #e8ecf0;
	}
	.rc-filter-block:last-child {
		padding-right: 0;
		border-right: none;
	}
}

@media (max-width: 640px) {
	.rc-page-wrap {
		padding: 28px 16px 48px;
	}
	.rc-sidebar {
		flex-direction: column;
	}
	.rc-filter-block {
		border-right: none;
		border-bottom: 1px solid #e8ecf0;
		padding-right: 0;
	}
	.rc-card {
		flex-wrap: wrap;
		gap: 14px;
		padding: 16px;
	}
	.rc-card-meta {
		width: auto;
		flex-direction: row;
		flex-wrap: wrap;
		text-align: left;
		gap: 8px 14px;
	}
	.rc-card-action {
		width: 100%;
		margin-left: 0;
	}
	.rc-btn {
		width: 100%;
		justify-content: center;
	}
}
