/**
 * PHASE 2D-1 - Daily Quiz Archive section styles.
 * Card + grid styling stays in jqc-quiz-cards.css; this sheet only adds the
 * archive section header, the daily-date label and pagination.
 * All selectors are .jqc-* scoped.
 */

.jqc-quiz-archive {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.jqc-quiz-archive__header {
	margin: 0 0 1.5rem;
	text-align: center;
}

.jqc-quiz-archive__title {
	margin: 0 0 0.35em;
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
	line-height: 1.2;
}

.jqc-quiz-archive__subtitle {
	margin: 0;
	opacity: 0.75;
	font-size: 1rem;
}

.jqc-quiz-archive__empty {
	padding: 2rem 1rem;
	text-align: center;
	border: 1px dashed currentColor;
	border-radius: 12px;
	opacity: 0.8;
}

.jqc-quiz-archive__empty-title {
	margin: 0;
	font-weight: 600;
}

/* Daily date label on archive cards. */
.jqc-quiz-card__daily-date {
	display: inline-block;
	margin: 0 0 0.5rem;
	padding: 0.2em 0.7em;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.06);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
}

/* Pagination. */
.jqc-quiz-archive__pagination {
	margin-top: 2rem;
	text-align: center;
}

.jqc-quiz-archive__pagination .page-numbers {
	display: inline-block;
	min-width: 44px;
	min-height: 44px;
	padding: 0.6em 0.9em;
	margin: 0.2em;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 10px;
	text-decoration: none;
	line-height: 1.4;
	box-sizing: border-box;
}

.jqc-quiz-archive__pagination .page-numbers.current {
	font-weight: 700;
	border-color: currentColor;
}

.jqc-quiz-archive__pagination .page-numbers.dots {
	border-color: transparent;
}

.jqc-quiz-archive__pagination a.page-numbers:hover,
.jqc-quiz-archive__pagination a.page-numbers:focus-visible {
	border-color: currentColor;
}

/* PHASE 2G-9 - All Quizzes filter panel (mode="all" only). Responsive UI refresh. */
.jqc-quiz-archive__filters-card {
	position: relative;
	background: #FFFFFF;
	border: 1px solid #E3E9F1;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(8, 32, 63, 0.04), 0 6px 18px rgba(8, 32, 63, 0.05);
	margin: 0 auto 1.5rem auto;
	max-width: 1240px;
	width: 100%;
	padding: 20px 24px;
	box-sizing: border-box;
	overflow: hidden;
}

.jqc-quiz-archive__filters-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, #14417C 0%, #14417C 62%, #C9A227 62%, #C9A227 100%);
}

.jqc-quiz-archive__filters-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin: 2px 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #F1F5F9;
}

.jqc-quiz-archive__filters-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #0D2B59;
	line-height: 1.25;
}

.jqc-quiz-archive__filters-title::before {
	content: "";
	flex: 0 0 auto;
	width: 3px;
	height: 15px;
	border-radius: 2px;
	background: #C9A227;
}

.jqc-quiz-archive__reset-mobile {
	display: none;
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 600;
	color: #14417C;
	text-decoration: none;
	transition: color 0.2s ease;
}

.jqc-quiz-archive__reset-mobile:hover,
.jqc-quiz-archive__reset-mobile:focus-visible {
	color: #08203F;
	text-decoration: underline;
}

.jqc-quiz-archive__filters {
	display: block;
	margin: 0;
}

.jqc-quiz-archive__fields-grid {
	display: grid;
	grid-template-columns: minmax(210px, 1.9fr) repeat(4, minmax(120px, 1fr)) minmax(150px, auto);
	align-items: end;
	gap: 14px 12px;
	width: 100%;
}

.jqc-quiz-archive__field {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
	font-size: 0.875rem;
}

.jqc-quiz-archive__label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #5A6B80;
	margin-bottom: 6px;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jqc-quiz-archive__input-wrap {
	position: relative;
	width: 100%;
	min-width: 0;
}

.jqc-quiz-archive__search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #94A3B8;
	pointer-events: none;
	width: 15px;
	height: 15px;
}

.jqc-quiz-archive__field input[type="search"] {
	padding-left: 36px;
}

.jqc-quiz-archive__field select,
.jqc-quiz-archive__field input {
	width: 100%;
	max-width: 100%;
	height: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid #D5DEEA;
	border-radius: 10px;
	box-sizing: border-box;
	background: #FFFFFF;
	color: #16283D;
	font: inherit;
	font-size: 14px;
	line-height: 1.3;
	text-overflow: ellipsis;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jqc-quiz-archive__field select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314417C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 14px;
	padding-right: 34px;
	cursor: pointer;
}

.jqc-quiz-archive__field select:hover,
.jqc-quiz-archive__field input:hover {
	border-color: #B9C7D9;
}

.jqc-quiz-archive__field select:focus,
.jqc-quiz-archive__field input:focus {
	border-color: #14417C;
	outline: none;
	box-shadow: 0 0 0 3px rgba(20, 65, 124, 0.14);
}

.jqc-quiz-archive__field-action {
	display: flex;
	align-items: flex-end;
	min-width: 0;
}

.jqc-quiz-archive__submit {
	height: 44px;
	min-height: 44px;
	padding: 0 24px;
	border: 1px solid #14417C;
	border-radius: 10px;
	background: #14417C;
	color: #FFFFFF;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	white-space: nowrap;
	box-sizing: border-box;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.jqc-quiz-archive__submit:hover,
.jqc-quiz-archive__submit:focus-visible {
	background: #0D2B59;
	border-color: #0D2B59;
	color: #FFFFFF;
	box-shadow: 0 2px 10px rgba(8, 32, 63, 0.22);
}

.jqc-quiz-archive__submit:focus-visible {
	outline: 2px solid rgba(201, 162, 39, 0.55);
	outline-offset: 2px;
}

.jqc-quiz-archive__filters-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid #F1F5F9;
	flex-wrap: wrap;
	gap: 10px;
}

.jqc-quiz-archive__footer-hint {
	font-size: 13px;
	color: #64748B;
	margin: 0;
	line-height: 1.45;
}

.jqc-quiz-archive__reset-desktop {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 16px;
	border: 1px solid #D5DEEA;
	border-radius: 10px;
	background: #FFFFFF;
	font-size: 13px;
	font-weight: 600;
	color: #14417C;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.jqc-quiz-archive__reset-desktop:hover,
.jqc-quiz-archive__reset-desktop:focus-visible {
	color: #08203F;
	border-color: #14417C;
	background: #F6F9FD;
	text-decoration: none;
}

.jqc-quiz-archive__count {
	margin: 1.25rem 0 1.5rem;
	text-align: center;
	color: #64748B;
	font-size: 0.9375rem;
	font-weight: 500;
}

/* Large desktop / small desktop reflow. */
@media (max-width: 1180px) {
	.jqc-quiz-archive__fields-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.jqc-quiz-archive__field--search {
		grid-column: span 2;
	}
	.jqc-quiz-archive__field-action {
		grid-column: span 2;
	}
	.jqc-quiz-archive__submit {
		width: 100%;
		min-width: 0;
	}
}

/* Tablet: balanced two-column grid. */
@media (max-width: 1024px) {
	.jqc-quiz-archive__filters-card {
		padding: 18px 20px;
	}
	.jqc-quiz-archive__fields-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px 12px;
	}
	.jqc-quiz-archive__field--search {
		grid-column: 1 / -1;
	}
	.jqc-quiz-archive__field-action {
		grid-column: 1 / -1;
	}
	.jqc-quiz-archive__submit {
		width: 100%;
		min-width: 0;
	}
}

/* Mobile: deliberate stacked panel. */
@media (max-width: 680px) {
	.jqc-quiz-archive__filters-card {
		padding: 16px 16px 18px;
		border-radius: 14px;
	}
	.jqc-quiz-archive__filters-header {
		margin-bottom: 14px;
	}
	.jqc-quiz-archive__filters-title {
		font-size: 16px;
	}
	.jqc-quiz-archive__reset-mobile {
		display: none;
	}
	.jqc-quiz-archive__fields-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}
	.jqc-quiz-archive__field,
	.jqc-quiz-archive__field--search,
	.jqc-quiz-archive__field-action {
		grid-column: 1 / -1;
	}
	.jqc-quiz-archive__label {
		font-size: 12px;
		margin-bottom: 6px;
	}
	.jqc-quiz-archive__field select,
	.jqc-quiz-archive__field input {
		height: 46px;
		min-height: 46px;
		font-size: 15px;
		border-radius: 10px;
	}
	.jqc-quiz-archive__submit {
		width: 100%;
		height: 48px;
		min-height: 48px;
		font-size: 15px;
	}
	.jqc-quiz-archive__filters-footer {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		margin-top: 14px;
	}
	.jqc-quiz-archive__footer-hint {
		order: 2;
		font-size: 12.5px;
		text-align: center;
	}
	.jqc-quiz-archive__reset-desktop {
		order: 1;
		width: 100%;
		height: 44px;
		font-size: 14px;
	}
}

/* Small phones (320-390px). */
@media (max-width: 390px) {
	.jqc-quiz-archive__filters-card {
		padding: 14px 13px 16px;
		border-radius: 12px;
	}
	.jqc-quiz-archive__filters-title {
		font-size: 15px;
	}
	.jqc-quiz-archive__fields-grid {
		gap: 12px;
	}
	.jqc-quiz-archive__field select,
	.jqc-quiz-archive__field input {
		height: 44px;
		min-height: 44px;
		font-size: 14.5px;
	}
	.jqc-quiz-archive__label {
		font-size: 11.5px;
		letter-spacing: 0.04em;
	}
}
/* PHASE 2P3 FEATURE 2B: archive AJAX loading / error / a11y states only. */
.jqc-quiz-archive .jqc-is-loading,
.jqc-shortcode.jqc-quiz-archive.jqc-is-loading,
[data-jqc-shortcode="jqc_quiz_archive"].jqc-is-loading {
	opacity: .55;
	pointer-events: none;
	transition: opacity .15s ease-in-out;
}

.jqc-quiz-archive__ajax-error {
	margin: 0 0 1em;
}

.jqc-quiz-archive__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.jqc-quiz-archive:focus {
	outline: none;
}


/* JQC Jamia brand blue refinement — archive controls only. */
.jqc-quiz-archive .jqc-quiz-card__daily-date {
	background: rgba(20, 65, 124, .055);
	border: 1px solid rgba(20, 65, 124, .20);
	color: #14417C;
}

.jqc-quiz-archive .jqc-quiz-archive__field select,
.jqc-quiz-archive .jqc-quiz-archive__field input {
	background: #FFFFFF;
	border-color: rgba(20, 65, 124, .20);
}

.jqc-quiz-archive .jqc-quiz-archive__field select:focus,
.jqc-quiz-archive .jqc-quiz-archive__field input:focus {
	border-color: #14417C;
	outline: 2px solid rgba(20, 65, 124, .14);
	outline-offset: 1px;
}

.jqc-quiz-archive .jqc-quiz-archive__submit {
	border-color: #14417C;
	background: #14417C;
	color: #FFFFFF;
	font-weight: 700;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.jqc-quiz-archive .jqc-quiz-archive__submit:hover,
.jqc-quiz-archive .jqc-quiz-archive__submit:focus-visible {
	background: #0D2B59;
	border-color: #0D2B59;
	color: #FFFFFF;
	opacity: 1;
}

.jqc-quiz-archive .jqc-quiz-archive__pagination .page-numbers.current {
	background: #14417C;
	border-color: #14417C;
	color: #FFFFFF;
}

.jqc-quiz-archive .jqc-quiz-archive__pagination a.page-numbers:hover,
.jqc-quiz-archive .jqc-quiz-archive__pagination a.page-numbers:focus-visible {
	border-color: #14417C;
	color: #14417C;
}


/* Archive-rendered card branding: cards are direct children of the archive wrapper. */
.jqc-quiz-archive .jqc-quiz-card__term,
.jqc-quiz-archive .jqc-quiz-card__flag {
	background: rgba(20, 65, 124, .055);
	border-color: rgba(20, 65, 124, .20);
	color: #14417C;
}

.jqc-quiz-archive .jqc-quiz-card__flag--featured {
	background: #14417C;
	border-color: #14417C;
	color: #FFFFFF;
}

.jqc-quiz-archive .jqc-quiz-card__title a:hover,
.jqc-quiz-archive .jqc-quiz-card__title a:focus {
	color: #14417C;
}

.jqc-quiz-archive .jqc-quiz-card__meta-item::before {
	background: rgba(20, 65, 124, .48);
}

.jqc-quiz-archive .jqc-quiz-card .jqc-quiz-card__actions a.jqc-quiz-card__button,
.jqc-quiz-archive .jqc-quiz-card .jqc-quiz-card__actions a.jqc-quiz-card__button:link,
.jqc-quiz-archive .jqc-quiz-card .jqc-quiz-card__actions a.jqc-quiz-card__button:visited {
	border: 0;
	background: #14417C;
	color: #FFFFFF;
	font-weight: 700;
	box-shadow: none;
	transform: none;
	transition: background-color .25s ease, color .25s ease;
}

.jqc-quiz-archive .jqc-quiz-card .jqc-quiz-card__actions a.jqc-quiz-card__button:hover,
.jqc-quiz-archive .jqc-quiz-card .jqc-quiz-card__actions a.jqc-quiz-card__button:focus,
.jqc-quiz-archive .jqc-quiz-card .jqc-quiz-card__actions a.jqc-quiz-card__button:active {
	background: #0D2B59;
	color: #FFFFFF;
	box-shadow: none;
	transform: none;
}

.jqc-quiz-archive .jqc-quiz-card .jqc-quiz-card__actions a.jqc-quiz-card__button:focus-visible {
	outline: 2px solid rgba(20, 65, 124, .32);
	outline-offset: 3px;
}


/* Scoped Page Background - /quizzes/ */
body.page-id-438,
body.page-id-438 #page,
body.page-id-438 .site,
body.page-id-438 .site-content {
	background-color: #f7f4ec !important;
}
