/* =========================================================
   BSK RESOURCES
   FULL FRONT CSS
   ========================================================= */

.bsk-resources-shortcode,
.bsk-resources-modern,
.bsk-resources-archive,
.bsk-resource-single {
	--bsk-res-bg: #f3f6fb;
	--bsk-res-card-bg: #ffffff;
	--bsk-res-border: #dfe5ef;
	--bsk-res-text: #1f2b57;
	--bsk-res-text-light: #5f6c8f;
	--bsk-res-accent: #19baa8;
	--bsk-res-accent-hover: #149688;
	--bsk-res-primary: #f4c533;
	--bsk-res-primary-hover: #e7b81f;
	--bsk-res-link: #2458d3;
	--bsk-res-shadow: 0 10px 24px rgba(22, 34, 66, 0.08);
	--bsk-res-radius-xl: 28px;
	--bsk-res-radius-lg: 22px;
	--bsk-res-radius-md: 18px;
	--bsk-res-radius-sm: 12px;
	--bsk-res-wrap: 1320px;
	--bsk-res-transition: .25s ease;
}

.bsk-resources-shortcode *,
.bsk-resources-modern *,
.bsk-resources-archive *,
.bsk-resource-single * {
	box-sizing: border-box;
}

.bsk-resources-shortcode,
.bsk-resources-modern,
.bsk-resources-archive {
	width: 100%;
}

.resources-section,
.bsk-resources-archive,
.bsk-resource-single {
	background: var(--bsk-res-bg);
}

.bsk-resources-wrap {
	width: min(var(--bsk-res-wrap), calc(100% - 32px));
	margin: 0 auto;
}

/* =========================================================
   FILTERS
   ========================================================= */

.resources-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	justify-content: flex-start;
	margin: 0 0 34px;
}

.resources-filter,
.bsk-resources-filter {
	appearance: none;
	border: 1px solid var(--bsk-res-border);
	background: #ffffff;
	color: var(--bsk-res-text-light);
	min-height: 64px;
	padding: 0 28px;
	border-radius: 16px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: var(--bsk-res-transition);
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(20, 32, 70, 0.04);
}

.resources-filter:hover,
.bsk-resources-filter:hover,
.resources-filter:focus-visible,
.bsk-resources-filter:focus-visible {
	border-color: var(--bsk-res-accent);
	color: var(--bsk-res-accent);
	outline: none;
}

.resources-filter.is-active,
.bsk-resources-filter.is-active {
	background: var(--bsk-res-accent);
	border-color: var(--bsk-res-accent);
	color: #ffffff;
}

/* =========================================================
   CLASSIC GRID
   ========================================================= */

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

.resource-card,
.bsk-resource-card {
	background: var(--bsk-res-card-bg);
	border: 1px solid var(--bsk-res-border);
	border-radius: 24px;
	padding: 28px 28px 24px;
	box-shadow: var(--bsk-res-shadow);
	display: flex;
	flex-direction: column;
	min-height: 100%;
	transition: transform var(--bsk-res-transition), box-shadow var(--bsk-res-transition);
}

.resource-card:hover,
.bsk-resource-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(22, 34, 66, 0.12);
}

.card-top {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 26px;
}

.card-icon {
	width: 120px;
	height: 120px;
	border-radius: 28px;
	background: #edf0fa;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 120px;
	overflow: hidden;
}

.card-icon img {
	width: 60px;
	height: 60px;
	object-fit: contain;
	display: block;
}

.card-meta {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding-top: 8px;
}

.badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.card-date {
	margin-left: auto;
	font-size: 16px;
	line-height: 1.4;
	color: var(--bsk-res-text-light);
	font-weight: 500;
}

.resource-card h3,
.bsk-resource-card h3 {
	margin: 0 0 18px;
	font-size: 28px;
	line-height: 1.16;
	font-weight: 700;
	letter-spacing: -.02em;
	color: #2c3f95;
}

.resource-card h3 a,
.bsk-resource-card h3 a {
	color: inherit;
	text-decoration: none !important;
}

.resource-card p,
.bsk-resource-card p {
	margin: 0 0 28px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--bsk-res-text-light);
}

.card-actions {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 22px;
}

.resource-primary-btn,
.card-actions .elementor-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 34px !important;
	border-radius: 10px !important;
	background: var(--bsk-res-primary) !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #000000 !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	transition: var(--bsk-res-transition);
}

.resource-primary-btn:hover,
.card-actions .elementor-button:hover,
.resource-primary-btn:focus-visible,
.card-actions .elementor-button:focus-visible {
	background: var(--bsk-res-primary-hover) !important;
	color: #000000 !important;
	outline: none;
	transform: translateY(-1px);
}

.resource-primary-btn .elementor-button-content-wrapper,
.card-actions .elementor-button .elementor-button-content-wrapper {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-link,
.resource-download-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #4a62e0 !important;
	text-decoration: none !important;
	transition: var(--bsk-res-transition);
}

.btn-link::before,
.resource-download-link::before {
	content: "↓";
	font-size: 18px;
	line-height: 1;
	font-weight: 700;
}

.btn-link:hover,
.resource-download-link:hover,
.btn-link:focus-visible,
.resource-download-link:focus-visible {
	color: #2f49d1 !important;
	outline: none;
}

/* =========================================================
   VIEW ALL
   ========================================================= */

.resources-view-all-wrap,
.bsk-resources-shortcode__footer,
.bsk-resources-modern__footer {
	display: flex;
	justify-content: center;
	margin-top: 42px;
}

.bsk-resources-view-all,
.resources-view-all {
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 28px;
	min-height: 46px;
	line-height: 1;
	text-align: center;
	text-decoration: none !important;
	box-sizing: border-box;
	transition: all .3s;
	font-family: 'Source Sans Pro', sans-serif !important;
	box-shadow: none;
	width: auto;
	background-color: transparent;
	font-size: 18px;
	font-weight: 500;
	color: #003399 !important;
	fill: #003399;
	border: 1px solid #003399;
	border-radius: 10px;
}

.bsk-resources-view-all:hover,
.bsk-resources-view-all:focus,
.resources-view-all:hover,
.resources-view-all:focus {
	background-color: #003399;
	color: #ffffff !important;
	fill: #ffffff;
	border-color: #003399;
	text-decoration: none !important;
	outline: none;
}

.bsk-resources-view-all:active,
.resources-view-all:active {
	transform: translateY(1px);
}

/* =========================================================
   MODERN SHORTCODE
   ========================================================= */

.bsk-resources-modern {
	width: 100%;
}

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

.bsk-resource-modern-card {
	background: #ffffff;
	border: 1px solid #d9dfe9;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	transition: transform .25s ease, box-shadow .25s ease;
}

.bsk-resource-modern-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.bsk-resource-modern-card__image-link {
	display: block;
	aspect-ratio: 16 / 9;
	background: #e9edf5;
	overflow: hidden;
}

.bsk-resource-modern-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bsk-resource-modern-card__body {
	padding: 26px 26px 28px;
}

.bsk-resource-modern-card__title {
	margin: 0 0 18px;
	font-size: 34px;
	line-height: 1.08;
	font-weight: 500;
	letter-spacing: -.03em;
	color: #2f45a2;
}

.bsk-resource-modern-card__title a {
	color: inherit;
	text-decoration: none !important;
}

.bsk-resource-modern-card__excerpt {
	margin: 0;
	font-size: 18px;
	line-height: 1.55;
	color: #6a7285;
}

/* =========================================================
   ARCHIVE
   ========================================================= */

.bsk-resources-archive {
	padding: 48px 0 80px;
}

.bsk-resources-archive__header {
	background: #ffffff;
	border: 1px solid var(--bsk-res-border);
	border-radius: 30px;
	padding: 42px;
	margin-bottom: 34px;
	box-shadow: var(--bsk-res-shadow);
}

.bsk-resources-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 18px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--bsk-res-text-light);
}

.bsk-resources-breadcrumbs a {
	color: var(--bsk-res-text-light);
	text-decoration: none !important;
}

.bsk-resources-archive__title {
	margin: 0 0 14px;
	font-size: clamp(42px, 5vw, 72px);
	line-height: 1.02;
	font-weight: 500;
	letter-spacing: -.04em;
	color: var(--bsk-res-text);
}

.bsk-resources-archive__desc {
	font-size: 22px;
	line-height: 1.6;
	color: var(--bsk-res-text-light);
	max-width: 900px;
}

.newsroom-pagination,
.bsk-resources-pagination {
	display: flex;
	justify-content: center;
	margin-top: 42px;
}

.newsroom-pagination .page-numbers,
.bsk-resources-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.newsroom-pagination .page-numbers li,
.bsk-resources-pagination .page-numbers li {
	margin: 0;
}

.newsroom-pagination .page-numbers a,
.newsroom-pagination .page-numbers span,
.bsk-resources-pagination .page-numbers a,
.bsk-resources-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 16px;
	border-radius: 999px;
	background: #ffffff;
	border: 1px solid var(--bsk-res-border);
	color: var(--bsk-res-text);
	font-weight: 700;
	text-decoration: none !important;
}

.newsroom-pagination .page-numbers .current,
.newsroom-pagination .page-numbers a:hover,
.bsk-resources-pagination .page-numbers .current,
.bsk-resources-pagination .page-numbers a:hover {
	background: var(--bsk-res-accent);
	border-color: var(--bsk-res-accent);
	color: #ffffff;
}

.bsk-resources-empty {
	padding: 24px 0;
	font-size: 18px;
	color: var(--bsk-res-text-light);
}

/* =========================================================
   SINGLE RESOURCE
   ========================================================= */

.bsk-resource-single {
	padding: 0 0 80px;
}

.bsk-resource-single__hero {
	background: #ffffff;
	border: 1px solid var(--bsk-res-border);
	border-radius: 0 0 30px 30px;
	padding: 48px 42px 34px;
	margin-bottom: 26px;
}

.bsk-resource-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	align-items: center;
	margin: 14px 0 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--bsk-res-text-light);
}

.bsk-resource-single__meta span + span::before {
	content: "•";
	margin-right: 18px;
}

.bsk-resource-single__title {
	margin: 18px 0 0;
	font-size: clamp(46px, 5vw, 74px);
	line-height: 1.03;
	font-weight: 500;
	letter-spacing: -.04em;
	color: var(--bsk-res-text);
}

.bsk-resource-single__excerpt {
	margin-top: 18px;
	font-size: 20px;
	line-height: 1.7;
	color: var(--bsk-res-text-light);
	max-width: 960px;
}

.bsk-resource-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 28px;
	align-items: start;
}

.bsk-resource-single__card,
.bsk-resource-single__side-panel,
.bsk-resource-single__related {
	background: #ffffff;
	border: 1px solid var(--bsk-res-border);
	border-radius: 28px;
	box-shadow: var(--bsk-res-shadow);
}

.bsk-resource-single__card {
	padding: 34px;
	overflow: hidden;
}

.bsk-resource-single__thumb {
	margin-bottom: 28px;
	border-radius: 20px;
	overflow: hidden;
}

.bsk-resource-single__thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.bsk-resource-single__content {
	font-size: 18px;
	line-height: 1.85;
	color: var(--bsk-res-text);
}

.bsk-resource-single__content > *:first-child {
	margin-top: 0;
}

.bsk-resource-single__content h2,
.bsk-resource-single__content h3,
.bsk-resource-single__content h4 {
	color: var(--bsk-res-text);
	line-height: 1.2;
	letter-spacing: -.02em;
	margin: 1.3em 0 .6em;
}

.bsk-resource-single__content h2 {
	font-size: 36px;
}

.bsk-resource-single__content h3 {
	font-size: 30px;
}

.bsk-resource-single__content h4 {
	font-size: 24px;
}

.bsk-resource-single__content p,
.bsk-resource-single__content ul,
.bsk-resource-single__content ol,
.bsk-resource-single__content blockquote,
.bsk-resource-single__content table {
	margin: 0 0 1.2em;
}

.bsk-resource-single__content img {
	max-width: 100%;
	height: auto;
	border-radius: 18px;
}

.bsk-resource-single__content a {
	color: var(--bsk-res-link);
}

.bsk-resource-single__content blockquote {
	padding: 18px 22px;
	border-left: 4px solid var(--bsk-res-accent);
	background: #f7fbfb;
	border-radius: 14px;
}

.bsk-resource-single__side {
	display: grid;
	gap: 20px;
	align-content: start;
	position: sticky;
	top: 24px;
}

.bsk-resource-single__side-panel {
	padding: 28px;
}

.bsk-resource-single__side-icon {
	width: 100px;
	height: 100px;
	border-radius: 24px;
	background: #eef1fb;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.bsk-resource-single__side-icon img {
	width: 52px;
	height: 52px;
	object-fit: contain;
	display: block;
}

.bsk-resource-single__side-title {
	margin: 0 0 24px;
	font-size: 28px;
	line-height: 1.15;
	font-weight: 500;
	color: var(--bsk-res-text);
}

.bsk-resource-single__facts {
	display: grid;
	gap: 20px;
}

.bsk-resource-single__fact-label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--bsk-res-text-light);
}

.bsk-resource-single__fact-value {
	font-size: 18px;
	line-height: 1.5;
	color: var(--bsk-res-text);
}

.bsk-resource-single__video-wrap {
	margin-bottom: 28px;
}

.bsk-resource-single__video-embed,
.bsk-resource-single__video-embed iframe,
.bsk-resource-single__video-embed video,
.bsk-resource-single__video-embed embed,
.bsk-resource-single__video-embed object {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
	border-radius: 24px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.bsk-resource-single__video-embed iframe {
	height: auto;
	min-height: 0;
}

.bsk-resource-single__related {
	margin-top: 28px;
	padding: 28px;
}

.bsk-resource-single__related-title {
	margin: 0 0 24px;
	font-size: 36px;
	line-height: 1.08;
	font-weight: 500;
	letter-spacing: -.03em;
	color: var(--bsk-res-text);
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.bsk-resources-shortcode a:focus-visible,
.bsk-resources-shortcode button:focus-visible,
.bsk-resources-modern a:focus-visible,
.bsk-resources-modern button:focus-visible,
.bsk-resources-archive a:focus-visible,
.bsk-resources-archive button:focus-visible,
.bsk-resource-single a:focus-visible,
.bsk-resource-single button:focus-visible {
	outline: 3px solid #0f62fe;
	outline-offset: 3px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
	.resources-grid,
	.bsk-resources-grid,
	.bsk-resources-modern__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bsk-resource-single__layout {
		grid-template-columns: 1fr;
	}

	.bsk-resource-single__side {
		position: static;
	}
}

@media (max-width: 767px) {
	.bsk-resources-wrap {
		width: min(var(--bsk-res-wrap), calc(100% - 20px));
	}

	.resources-grid,
	.bsk-resources-grid,
	.bsk-resources-modern__grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.resources-filters {
		gap: 10px;
		margin-bottom: 24px;
	}

	.resources-filter,
	.bsk-resources-filter {
		min-height: 54px;
		padding: 0 20px;
		font-size: 16px;
		border-radius: 14px;
	}

	.resource-card,
	.bsk-resource-card {
		padding: 20px 20px 18px;
		border-radius: 20px;
	}

	.card-top {
		gap: 16px;
		margin-bottom: 18px;
	}

	.card-icon {
		width: 88px;
		height: 88px;
		flex-basis: 88px;
		border-radius: 20px;
	}

	.card-icon img {
		width: 44px;
		height: 44px;
	}

	.resource-card h3,
	.bsk-resource-card h3 {
		font-size: 22px;
	}

	.resource-card p,
	.bsk-resource-card p {
		font-size: 16px;
		margin-bottom: 20px;
	}

	.card-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.resource-primary-btn,
	.card-actions .elementor-button,
	.btn-link,
	.resource-download-link {
		width: 100%;
		justify-content: center;
	}

	.bsk-resource-modern-card__body {
		padding: 18px 18px 20px;
	}

	.bsk-resource-modern-card__title {
		font-size: 24px;
	}

	.bsk-resource-modern-card__excerpt {
		font-size: 16px;
	}

	.bsk-resources-archive {
		padding: 24px 0 48px;
	}

	.bsk-resources-archive__header {
		padding: 24px 20px;
		border-radius: 22px;
		margin-bottom: 24px;
	}

	.bsk-resources-archive__title {
		font-size: 40px;
	}

	.bsk-resources-archive__desc {
		font-size: 17px;
	}

	.bsk-resource-single {
		padding: 0 0 48px;
	}

	.bsk-resource-single__hero {
		padding: 30px 20px 24px;
		border-radius: 0 0 22px 22px;
		margin-bottom: 20px;
	}

	.bsk-resource-single__title {
		font-size: 40px;
	}

	.bsk-resource-single__excerpt {
		font-size: 17px;
	}

	.bsk-resource-single__card,
	.bsk-resource-single__side-panel,
	.bsk-resource-single__related {
		border-radius: 22px;
	}

	.bsk-resource-single__card,
	.bsk-resource-single__side-panel,
	.bsk-resource-single__related {
		padding: 20px;
	}

	.bsk-resource-single__related-title {
		font-size: 28px;
	}
}