/* ============================================================
   Resources Section — resources.css
   Prefix: res-
   ============================================================ */

/* ── Container ─────────────────────────────────────────────── */
.gfMain {
	padding-top: 104px;
}

.res-section {
	padding: 80px 0 80px;
}

.res-container {
	max-width: 1280px;
	margin: 0 auto;
}
@media(max-width:1320px){
    .res-container{
        padding-left: 16px;
        padding-right: 16px;
    }
}
/* ── Header row ─────────────────────────────────────────────── */

.res-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 60px;
	flex-wrap: wrap;
}

.res-title {
	font-family: var(--second-family);
	font-weight: 550;
	font-size: 74px;
	line-height: 110%;
	letter-spacing: -0.03em;
background: linear-gradient(169deg, rgba(0, 5, 25, 0.7) 0%, #000519 50%, rgba(0, 5, 25, 0.7) 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
	margin: 0;
	max-width: 450px;
	padding-bottom: 0.08em;
}

/* ── Tab navigation ─────────────────────────────────────────── */

.res-nav {
	flex-shrink: 0;
}

.res-nav__list {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;

	background: var(--base-white);
	border: 1px solid var(--base-border-black);
	border-radius: 8px;
	padding: 4px;
}

.res-nav__item {
	margin: 0;
}

.res-nav__btn {
	display: inline-flex;
	align-items: center;
	padding: 9px 18px;
	border-radius: 100px;
	border: 1.5px solid transparent;
	background: transparent;
	font-family: var(--font-family);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--gray-700);
	cursor: pointer;
	transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
	white-space: nowrap;
	font-family: var(--second-family);
	font-weight: 600;
	font-size: 16px;
	line-height: 150%;
	letter-spacing: 0.01em;
	color: var(--text-base);
	padding: 17px 20px;
	border-radius: 2px;
	background: var(--base-white);
	text-decoration: none;
}

.res-nav__btn:hover {
	background: var(--gray-100);
	color: var(--base-black);
}

.res-nav__btn.is-active {
	color: var(--brand-blue-500);
	background: var(--brand-blue-50);
}

.res-nav__btn:disabled {
	pointer-events: none;
}

/* ── Body: loading state ────────────────────────────────────── */

.res-body {
	position: relative;
	min-height: 300px;
}

.res-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(254, 255, 255, 0.8);
	z-index: 10;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	border-radius: 16px;
}

.res-body.is-loading .res-loading {
	opacity: 1;
	pointer-events: auto;
}

.res-loading__spinner {
	width: 28px;
	height: 28px;
	border: 3px solid var(--brand-blue-50);
	border-top-color: var(--brand-blue-500);
	border-radius: 50%;
	animation: res-spin 0.7s linear infinite;
}

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

/* ── Taxonomy filter nav ────────────────────────────────────── */

.res-tax-nav {
	display: flex;
	justify-content: center;
	margin: 40px 0;
	  /* IE and Edge */
  -ms-overflow-style: none;
  
  /* Firefox */
  scrollbar-width: none;
}

.res-tax-nav__list {
	display: flex;
	align-items: center;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	justify-content: center;
}

.res-tax-nav__item {
	margin: 0;
}

.res-tax-nav__btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 20px;
	border-radius: 100px;
	border: 1.5px solid var(--gray-300);
	background: transparent;
	font-family: var(--font-family);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--gray-700);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;

	font-family: var(--second-family);
	font-weight: 600;
	font-size: 14px;
	line-height: 129%;
	letter-spacing: 0.01em;
	color: var(--v2-black-transparent--80);
	box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.01), 0 6px 17px 0 rgba(0, 0, 0, 0.01), 0 15px 40px 0 rgba(0, 0, 0, 0.02);
	background: var(--base-white);
	border: 1px solid var(--base-border-black);
	border-radius: 100px;
	padding: 16px 24px;
}

.res-tax-nav__btn:hover {
	border-color: var(--brand-blue-200);
	color: var(--base-black);
}

.res-tax-nav__btn.is-active {
	border: 1px solid var(--base-border-blue);
	background: var(--brand-blue-50);
	color: var(--brand-blue-500);
	cursor: default;
}

.res-tax-nav__btn:disabled {
	pointer-events: none;
	opacity: 0.5;
}

/* ── Grid transition (accent card stays, only grid animates) ── */

.res-grid-wrap {
	transition: opacity 0.26s ease, transform 0.26s ease;
}

.res-grid-wrap.is-leaving {
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
}

.res-grid-wrap.is-entering {
	opacity: 0;
	transform: translateY(-10px);
}

/* ── Accent (featured) card ─────────────────────────────────── */

.res-accent {
	margin-bottom: 60px;
}

.res-accent__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	border-radius: 20px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.25s ease;
	border: 1px solid var(--base-border-black);
	border-radius: 8px;
	box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.01), 0 6px 17px 0 rgba(0, 0, 0, 0.01), 0 15px 40px 0 rgba(0, 0, 0, 0.02);
	background: var(--base-white);
	padding: 16px;
}

.res-accent__inner:hover {
	box-shadow: 0 8px 32px rgba(18, 23, 51, 0.1);
}

.res-accent__image {
	overflow: hidden;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	min-height: 326px;
	height: 100%;
}

.res-accent__image img,
.res-accent__image-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.res-accent__inner:hover .res-accent__image img {
	transform: scale(1.03);
}

.res-accent__image-placeholder {
	background: var(--gray-200);
}

.res-accent__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	padding: 0px 32px;
}

.res-accent__title {
	font-family: var(--second-family);
	font-weight: 550;
	font-size: 26px;
	line-height: 131%;
	letter-spacing: -0.01em;
	color: var(--base-black);
	margin: 0 0 16px 0;
}

.res-accent__excerpt {
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 16px;
	line-height: 150%;
	letter-spacing: 0.01em;
	color: var(--text-subtlest);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Grid ───────────────────────────────────────────────────── */

.res-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	margin-bottom: 48px;
}

/* ── Post card ──────────────────────────────────────────────── */

.res-card {
	display: flex;
}

.res-card__inner {
	display: flex;
	flex-direction: column;
	gap: 0;
	text-decoration: none;
	color: inherit;
	flex: 1;
	box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.01), 0 6px 17px 0 rgba(0, 0, 0, 0.01), 0 15px 40px 0 rgba(0, 0, 0, 0.02);
	background: var(--base-white);
	border: 1px solid var(--base-border-black);
	border-radius: 8px;
	padding: 16px;
}

.res-card__image {
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 16px;
	background: linear-gradient(180deg, #f3f5fd 0%, #e6efff 100%);
	height: 326px;
}

.res-card__image img,
.res-card__image-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.res-card__inner:hover .res-card__image img {
	transform: scale(1.04);
}

.res-card__image-placeholder {
	background: var(--gray-200);
}

.res-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px;
}

/* ── Shared card elements ───────────────────────────────────── */

.res-card__cat {
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 15px;
	line-height: 160%;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--text-base);
	margin: 0 0 24px 0;
}

.res-card__title {
	font-family: var(--font-family);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--base-black);
	margin: 0 0 16px 0;
	transition: color 0.2s ease;
	font-family: var(--second-family);
	font-weight: 550;
	font-size: 26px;
	line-height: 131%;
	letter-spacing: -0.01em;
	color: var(--base-black);
}

.res-card__inner:hover .res-card__title {
	color: var(--brand-blue-500);
}

.res-card__excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-base);
	margin: 0 0 32px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 16px;
	line-height: 150%;
	letter-spacing: 0.01em;
	color: var(--text-subtlest);

}

.res-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.res-card__date,
.res-card__read {
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 14px;
	line-height: 157%;
	letter-spacing: 0.02em;
	color: var(--text-subtle);
}

.res-card__sep {
	color: var(--gray-700);
	font-size: 14px;
}

/* ── Empty state ────────────────────────────────────────────── */

.res-empty {
	padding: 48px 0;
	text-align: center;
	color: var(--text-subtlest);
	font-size: 15px;
}

/* ── Pagination ─────────────────────────────────────────────── */

.res-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding-top: 16px;
}

.res-pager__numbers {
	display: flex;
	align-items: center;
	gap: 16px;
}

.res-pager__num,
.res-pager__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 4px;
	border: none;
	background: transparent;
	font-family: var(--font-family);
	font-size: 14px;
	font-weight: 500;
	color: var(--text-bold);
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
	border: 1px solid var(--base-border-black);
	border-radius: 6px;
	padding: 14px 24px;
	width: 56px;
	height: 56px;
	box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.01), 0 6px 17px 0 rgba(0, 0, 0, 0.01), 0 15px 40px 0 rgba(0, 0, 0, 0.02);
	background: var(--base-white);
	font-family: var(--second-family);
	font-weight: 600;
	font-size: 16px;
	line-height: 125%;
	letter-spacing: 0.01em;
	text-align: center;
	color: var(--text-base);
}

.res-pager__num:hover,
.res-pager__arrow:hover {
	background: var(--gray-100);
}

/* ── Breadcrumbs (shared styles, same as single post) ───────────────────── */

.res-breadcrumbs-wrap {
	/* padding: 0; */
}

.sp__breadcrumbs ol {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sp__crumb {
	display: flex;
	align-items: center;
}

.sp__crumb a {
	font-family: var(--second-family);
	font-weight: 600;
	font-size: 14px;
	line-height: 129%;
	letter-spacing: 0.01em;
	color: var(--base-black);
	text-decoration: none;
	transition: opacity 0.15s;
}

.sp__crumb a:hover {
	opacity: 0.7;
}

.sp__crumb--current span {
	font-family: var(--second-family);
	font-weight: 600;
	font-size: 14px;
	line-height: 129%;
	letter-spacing: 0.01em;
	color: var(--gray-500);
}

.sp__crumb-sep {
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 14px;
	line-height: 129%;
	color: var(--gray-300);
	margin: 0 6px;
}

.res-pager__num.is-active {
	border: 1px solid var(--base-border-blue);
	background: var(--brand-blue-50);
	color: var(--brand-blue-500);
	cursor: default;
}

.res-pager__arrow {
	color: var(--text-bold);
}

.res-pager__arrow.is-disabled {
	opacity: 0.6;
	pointer-events: none;
}

.res-pager__ellipsis {
	font-size: 14px;
	color: var(--text-subtlest);
	padding: 0 4px;
	user-select: none;
}

/* ── Case cards (post_type = cases) ─────────────────────────── */

.res-case__cats {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.res-case__cat,
.res-case__company {
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-subtle);
}

.res-case__cats-sep {
	color: var(--gray-400);
	font-size: 13px;
	font-weight: 400;
}

.res-case__quote {
	margin: 0 0 24px 0;
	padding: 0;
	border: none;
	font-family: var(--second-family);
	font-weight: 550;
	font-size: 22px;
	line-height: 132%;
	letter-spacing: -0.01em;
	color: var(--base-black);
}

.res-case__quote-mark {
display: inline;
    flex-shrink: 0;
    position: relative;
    top: -3px;
    margin-right: 6px;
}
.res-accent__content .res-case__quote-mark{
	top: -6px;
}
.res-case__stats {
	display: flex;
	gap: 40px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--base-border-black);
}

.res-case__stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.res-case__stat-value {
	font-family: var(--second-family);
	font-weight: 600;
	font-size: 22px;
	line-height: 1.2;
	color: var(--base-black);
}

.res-case__stat-label {
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 13px;
	line-height: 1.5;
	color: var(--text-subtle);
}

.res-case__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
}

.res-case__author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.res-case__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.res-accent--case .res-case__avatar {
	width: 48px;
	height: 48px;
}

.res-case__author-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.res-case__author-name {
	font-family: var(--font-family);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	color: var(--base-black);
}

.res-case__author-role {
	font-family: var(--font-family);
	font-weight: 400;
	font-size: 13px;
	line-height: 1.4;
	color: var(--text-subtle);
}

.res-case__logo {
	max-height: 32px;
	max-width: 100px;
	width: auto;
	object-fit: contain;
	flex-shrink: 0;
}

/* Accent case — content flex layout */
.res-accent--case .res-accent__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.res-accent--case .res-case__quote {
	font-size: 26px;
	flex: 1;
	display: inline-block;
}

/* Grid case card — make body a flex column so footer sticks to bottom */
.res-card--case .res-card__body {
	display: flex;
	flex-direction: column;
}

.res-card--case .res-case__quote {
	flex: 1;
	font-size: 18px;
	margin-bottom: 20px;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 960px) {
	.res-accent__inner {
		grid-template-columns: 1fr;
	}

	.res-accent__image {
		/* aspect-ratio: 16 / 9; */
	}

	.res-accent__content {
		padding: 28px 28px 32px;
	}

	.gfMain {
		margin-left: 16px;
		margin-right: 16px;
	}
}

@media (max-width: 768px) {
	.res-section {
		padding: 24px 0 64px;
	}

	.res-accent__image {
		height: 190px;
	}

	.res-header {
		flex-direction: column;
		gap: 20px;
		margin-bottom: 32px;
	}

	.res-nav,
	.res-nav__item,
	.res-nav__btn {
		width: 100%;
		text-align: center;
	}

	.res-grid {
		margin-bottom: 24px;
	}

	.res-nav__btn {
		justify-content: center;
	}

	.res-header {
		display: flex;
		align-items: flex-start;
		gap: 26px;
		margin-bottom: 24px;
		flex-wrap: wrap;
	}

	.res-accent__title {
		font-size: 18px;
		line-height: 133%;
		letter-spacing: 0.01em;
		margin-bottom: 0;
	}

	.res-nav__list {
		flex-direction: column;
	}

	.res-card__excerpt {
		font-size: 14px;
		line-height: 157%;
		letter-spacing: 0.02em;
		margin-bottom: 16px;
	}

	.res-card__title {
		font-size: 18px;
		line-height: 133%;
		letter-spacing: 0.01em;
		margin: 12px 0;
	}

	.res-card__inner {
		padding: 8px;
	}

	.res-card__image {
		height: 190px;
	}

	.res-accent__content {
		padding: 24px;
	}

	.res-accent__inner {
		padding: 8px;
	}

	.res-card__cat {
		margin-bottom: 0;
		font-size: 12px;
		line-height: 133%;
		letter-spacing: 0.05em;
	}

	.res-card__image {
		margin-bottom: 2px;
	}

	.res-accent__excerpt {
		display: none;
	}

	.res-title {
		max-width: 100%;
		font-weight: 550;
		font-size: 40px;
		line-height: 110%;
		letter-spacing: -0.03em;
	}

	.res-nav__list {
		flex-wrap: wrap;
	}

	.res-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.res-accent {
		margin-bottom: 36px;
	}

	.res-pager__num,
	.res-pager__arrow {
		min-width: 32px;
		height: 32px;
		font-size: 13px;
	}

	.res-pager__num,
	.res-pager__arrow {
		border-radius: 5px;
		width: 48px;
		height: 48px;
		padding: 5px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.res-pager__numbers,
	.res-pager {
		gap: 12px;
	}

	.res-tax-nav__btn {
		font-weight: 600;
		font-size: 14px;
		line-height: 129%;
		letter-spacing: 0.01em;
		padding: 12px 16px;
	}

	.res-tax-nav__list {
		gap: 6px;
	}

	.res-tax-nav {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		justify-content: flex-start;
		margin-left: -16px;
		margin-right: -16px;
		padding: 0 16px 6px;
		scrollbar-width: thin;
		scrollbar-color: var(--base-border-black) transparent;
		  -ms-overflow-style: none;
  
  /* Firefox */
  scrollbar-width: none;
	}
	.res-tax-nav::-webkit-scrollbar {
  display: none;
}
	.res-tax-nav::-webkit-scrollbar {
		height: 3px;
	}

	.res-tax-nav::-webkit-scrollbar-track {
		background: transparent;
	}

	.res-tax-nav::-webkit-scrollbar-thumb {
		background: var(--base-border-black);
		border-radius: 100px;
	}

	.res-tax-nav__list {
		flex-wrap: nowrap;
		justify-content: flex-start;
	}
	.res-tax-nav{
		margin-top: 60px;
		margin-bottom: 24px;
	}
	.res-nav__btn{
		font-size: 14px;
line-height: 129%;
letter-spacing: 0.01em;
padding: 15px;
	}
	.res-tax-nav{
		margin: 24px 0 40px 0;
	}
	.res-accent__image{
		height: 198px;
		min-height: 198px;
	}
	.res-case__quote{
		font-family: var(--second-family);
		font-weight: 600;
		font-size: 18px !important;
		line-height: 133%;
		letter-spacing: 0.01em;
		color: var(--base-black);
	}
	.res-accent__content .res-case__quote-mark {
    top: -2px;
}
.res-case__stats{
	display: none;
}
.res-case__logo{
	display:none;
}
.res-accent__content{
	padding: 24px 16px 16px 16px;
}
}

@media (max-width: 480px) {

}