/* =========================================================
   AudiencePoint Resources
   Featured cards + live search/filter + resource rows
   ========================================================= */

.resources-page {
	--ap-navy: #0b1f3a;
	--ap-blue: #0a66d8;
	--ap-orange: #ff6b00;
	--ap-text: #0b1f3a;
	--ap-muted: #7d8795;
	--ap-border: #e5e9ef;
	--ap-soft: #f4f6f9;
	--ap-radius: 12px;
}


/* =========================================================
   General
   ========================================================= */
.theme_breadcrumb__area {
	padding: 70px 0;
}

.resources-page .container {
	max-width: 1350px;
}

.resources-page h2,
.resources-page h3,
.resources-page p {
	margin-top: 0;
}

.resources-page a {
	text-decoration: none;
}

.resources-page .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}


/* =========================================================
   Featured / Start Here
   ========================================================= */

.resources-featured {
	padding: 50px 0 60px;
}

.resources-featured__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 24px;
}

.resources-featured__header::before {
	content: "01";
	flex: 0 0 auto;
	color: var(--ap-orange);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}

.resources-featured__header h2 {
	margin: 0;
	color: var(--ap-navy);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}

.resources-featured__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.resources-featured__card {
	position: relative;
	min-height: 325px;
	overflow: hidden;
	border-radius: var(--ap-radius);
	background: var(--ap-soft);
}

.resources-featured__image {
	position: absolute;
	inset: 0;
	display: block;
	background: #f0f2f5;
}

.resources-featured__image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom,
			rgba(7, 28, 54, 0) 25%,
			rgba(7, 28, 54, 0.08) 48%,
			rgba(7, 28, 54, 0.88) 100%);
	pointer-events: none;
}

.resources-featured__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.resources-featured__card:hover .resources-featured__image img {
	transform: scale(1.025);
}

.resources-featured__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 26px 24px 22px;
	color: #fff;
}

.resources-featured__type {
	margin-bottom: 6px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.2;
	text-transform: uppercase;
}

.resources-featured__title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.22;
}

.resources-featured__title a {
	color: #fff;
}

.resources-featured__meta {
	display: none;
}


/* =========================================================
   Search / Filter section
   ========================================================= */

.resources-search {
	padding: 0 0 24px;
}

.resources-search .container {
	padding-top: 38px;
	border-top: 1px solid var(--ap-border);
}

.resources-search__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 24px;
}

.resources-search__header::before {
	content: "02";
	flex: 0 0 auto;
	color: var(--ap-orange);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}

.resources-search__header h2 {
	margin: 0;
	color: var(--ap-navy);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}

.resources-search__form {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.resources-search__keyword {
	position: relative;
	flex: 1 1 380px;
	min-width: 280px;
}

.resources-search__keyword::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 50%;
	width: 15px;
	height: 15px;
	border: 1.7px solid #a2acb9;
	border-radius: 50%;
	transform: translateY(-55%);
	pointer-events: none;
}

.resources-search__keyword::after {
	content: "";
	position: absolute;
	left: 27px;
	top: 57%;
	width: 6px;
	height: 1.7px;
	background: #a2acb9;
	transform: rotate(45deg);
	transform-origin: left center;
	pointer-events: none;
}

.resources-search__keyword input {
	width: 100%;
	height: 48px;
	padding: 0 20px 0 45px;
	border: 1px solid #dce2e9;
	border-radius: 8px;
	background: #fff;
	color: var(--ap-text);
	font-size: 14px;
	box-shadow: none;
	outline: none;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.resources-search__keyword input::placeholder {
	color: #8a94a2;
}

.resources-search__keyword input:focus {
	border-color: #b8c6d6;
	box-shadow: 0 0 0 3px rgba(10, 102, 216, 0.08);
}

.resources-search__keyword input[type="search"]::-webkit-search-cancel-button {
	cursor: pointer;
	margin-right: 0;
}

.resources-search__filters {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.resources-search__filter {
	position: relative;
}

.resources-search__filter select {
	height: 48px;
	min-width: 145px;
	padding: 0 38px 0 15px;
	border: 1px solid #dce2e9;
	border-radius: 8px;
	background-color: #fff;
	color: var(--ap-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, #6f7b89 50%),
		linear-gradient(135deg, #6f7b89 50%, transparent 50%);
	background-position:
		calc(100% - 18px) 21px,
		calc(100% - 14px) 21px;
	background-size: 4px 4px, 4px 4px;
	background-repeat: no-repeat;
}

.resources-search__filter select:focus {
	border-color: #b8c6d6;
	box-shadow: 0 0 0 3px rgba(10, 102, 216, 0.08);
}

.resources-search__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.resources-search__clear {
	color: var(--ap-blue);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.resources-search__clear.is-hidden {
	display: none;
}


/* =========================================================
   Resource results
   ========================================================= */

.resources-results {
	padding: 0 0 80px;
}

.resources-results .container {
	padding-top: 8px;
}

.resources-results__header {
	display: none;
}

.resources-results__wrapper {
	position: relative;
	min-height: 160px;
}

.resources-results__grid {
	position: relative;
	z-index: 1;
	border-top: 1px solid var(--ap-border);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.resources-results__wrapper.is-loading .resources-results__grid {
	opacity: 0.35;
	transform: translateY(3px);
}


/* =========================================================
   Full-screen AJAX overlay
   ========================================================= */

.resources-results__wrapper::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 99990;
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(1px);
	-webkit-backdrop-filter: blur(1px);
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.2s ease,
		visibility 0.2s ease;
}

.resources-results__wrapper.is-loading::after {
	opacity: 1;
	visibility: visible;
}


/* =========================================================
   AJAX loader
   ========================================================= */

.resources-results__loader {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -50%);
	transition:
		opacity 0.2s ease,
		visibility 0.2s ease;
}

.resources-results__wrapper.is-loading .resources-results__loader {
	opacity: 1;
	visibility: visible;
}

.resources-results__loader-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 78px;
	height: 46px;
	padding: 0 20px;
	border: 1px solid rgba(11, 31, 58, 0.08);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 10px 35px rgba(11, 31, 58, 0.18);
}

.resources-results__loader-pill span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ap-blue);
	animation: ap-resource-loader 1s infinite ease-in-out;
}

.resources-results__loader-pill span:nth-child(2) {
	animation-delay: 0.15s;
}

.resources-results__loader-pill span:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes ap-resource-loader {

	0%,
	60%,
	100% {
		transform: translateY(0);
		opacity: 0.35;
	}

	30% {
		transform: translateY(-5px);
		opacity: 1;
	}
}


/* =========================================================
   Resource rows
   ========================================================= */

.resource-row {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) auto 135px;
	align-items: center;
	gap: 24px;
	min-height: 132px;
	padding: 16px 0;
	border-bottom: 1px solid var(--ap-border);
}

.resource-row__image {
	display: block;
	width: 220px;
	height: 100px;
	overflow: hidden;
	border-radius: 7px;
	background: #f0f2f5;
}

.resource-row__thumbnail,
.resource-row__image-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #f0f2f5;
}

.resource-row__content {
	min-width: 0;
}

.resource-row__title {
	margin: 0 0 4px;
	color: var(--ap-navy);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.resource-row__title a {
	color: inherit;
	transition: color 0.2s ease;
}

.resource-row__title a:hover {
	color: var(--ap-blue);
}

.resource-row__type {
	color: #8b95a3;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
}

.resource-row__meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	color: #98a1ad;
	font-size: 12px;
	line-height: 1.3;
	white-space: nowrap;
}

.resource-row__separator {
	color: #bcc3cc;
}

.resource-row__action {
	text-align: right;
}

.resource-row__link {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	color: var(--ap-blue);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.resource-row__arrow {
	position: relative;
	top: -1px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	transition: transform 0.2s ease;
}

.resource-row__link:hover .resource-row__arrow {
	transform: translateX(3px);
}

.resources-results__empty {
	padding: 50px 0;
	text-align: center;
}

.resources-results__empty h3 {
	margin-bottom: 8px;
	color: var(--ap-navy);
}

.resources-results__empty p {
	margin-bottom: 0;
	color: var(--ap-muted);
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1100px) {

	.resources-search__form {
		align-items: stretch;
	}

	.resources-search__keyword {
		flex-basis: 100%;
	}

	.resources-search__filters {
		width: 100%;
	}

	.resource-row {
		grid-template-columns: 180px minmax(0, 1fr) auto;
		gap: 18px;
	}

	.resource-row__image {
		width: 180px;
		height: 95px;
	}

	.resource-row__meta {
		grid-column: 2;
		justify-content: flex-start;
	}

	.resource-row__action {
		grid-column: 3;
		grid-row: 1 / span 2;
	}
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

	.resources-featured {
		padding-bottom: 42px;
	}

	.resources-featured__header h2,
	.resources-search__header h2 {
		font-size: 22px;
	}

	.resources-featured__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.resources-featured__card {
		min-height: 270px;
	}

	.resources-featured__content {
		padding: 22px 20px 20px;
	}

	.resources-featured__title {
		font-size: 20px;
	}

	.resources-search .container {
		padding-top: 30px;
	}

	.resources-search__form,
	.resources-search__filters {
		display: block;
	}

	.resources-search__keyword {
		min-width: 0;
		margin-bottom: 10px;
	}

	.resources-search__filter {
		margin-bottom: 10px;
	}

	.resources-search__filter select {
		width: 100%;
		min-width: 0;
	}

	.resources-search__actions {
		display: flex;
		width: 100%;
		margin-top: 10px;
	}

	.resource-row {
		display: grid;
		grid-template-columns: 110px minmax(0, 1fr);
		gap: 14px;
		min-height: 0;
		padding: 16px 0;
	}

	.resource-row__image {
		width: 110px;
		height: 88px;
		grid-row: 1 / span 2;
	}

	.resource-row__title {
		font-size: 14px;
	}

	.resource-row__meta {
		grid-column: 2;
		grid-row: auto;
		flex-wrap: wrap;
		justify-content: flex-start;
		font-size: 11px;
		white-space: normal;
	}

	.resource-row__action {
		grid-column: 2;
		grid-row: auto;
		text-align: left;
	}

	.resource-row__link {
		justify-content: flex-start;
		font-size: 12px;
	}
}


/* =========================================================
   Small phones
   ========================================================= */

@media (max-width: 480px) {

	.resource-row {
		grid-template-columns: 90px minmax(0, 1fr);
		gap: 12px;
	}

	.resource-row__image {
		width: 90px;
		height: 76px;
	}

	.resource-row__meta {
		display: none;
	}
}








/* =========================================================
   Full Width Post Template
   ========================================================= */

.single-post-full-width .container {
	max-width: 1350px;
	width: calc(100% - 40px);
	margin-left: auto;
	margin-right: auto;
}

.single-post-full-width .theme_blog_details-left {
	width: 100%;
	max-width: none;
}

.single-post-full-width .alignwide {
	width: 100%;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.single-post-full-width .alignfull {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

@media (max-width: 767px) {

	.single-post-full-width .container {
		width: calc(100% - 30px);
	}
}