/**
 * Knowledge Library – frontend styles
 */

.oc-knowledge {
	--oc-kl-accent: #6b7a67;
	--oc-kl-text: #1a1a1a;
	--oc-kl-muted: #4a4a4a;
	--oc-kl-card-bg: transparent;
	position: relative;
	isolation: isolate;
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
	background-color: #f7f5f0;
	color: var(--oc-kl-text);
}

.oc-knowledge *,
.oc-knowledge *::before,
.oc-knowledge *::after {
	box-sizing: border-box;
}

.oc-knowledge__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	pointer-events: none;
}

.oc-knowledge__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
}

.oc-knowledge__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin: 0 auto 40px;
	max-width: 42em;
}

.oc-knowledge__heading {
	margin: 0 0 14px;
	color: var(--oc-kl-text);
	font-size: clamp(2rem, 3.2vw, 2.75rem);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.oc-knowledge__divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 160px;
	margin: 0 auto 16px;
}

.oc-knowledge__divider-line {
	flex: 1 1 auto;
	height: 1px;
	background: var(--oc-kl-accent);
	opacity: 0.7;
}

.oc-knowledge__diamond {
	display: inline-block;
	color: var(--oc-kl-accent);
	font-size: 9px;
	line-height: 1;
}

.oc-knowledge__intro {
	margin: 0;
	color: var(--oc-kl-muted);
	font-size: 15px;
	line-height: 1.55;
}

.oc-knowledge__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	margin: 0 0 40px;
}

.oc-knowledge__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 280px;
	padding: 28px 24px 24px;
	background: var(--oc-kl-card-bg);
	border: 1px solid var(--oc-kl-accent);
	text-decoration: none;
	color: inherit;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

a.oc-knowledge__card:hover {
	transform: translateY(-2px);
	text-decoration: none;
	color: inherit;
}

.oc-knowledge__corner {
	position: absolute;
	color: var(--oc-kl-accent);
	font-size: 7px;
	line-height: 1;
	pointer-events: none;
	z-index: 1;
}

.oc-knowledge__corner--tl { top: 8px; left: 8px; }
.oc-knowledge__corner--tr { top: 8px; right: 8px; }
.oc-knowledge__corner--bl { bottom: 8px; left: 8px; }
.oc-knowledge__corner--br { bottom: 8px; right: 8px; }

.oc-knowledge__card-title {
	position: relative;
	z-index: 2;
	margin: 0 0 14px;
	color: var(--oc-kl-text);
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1.25;
}

.oc-knowledge__card-text {
	position: relative;
	z-index: 2;
	margin: 0 0 28px;
	color: var(--oc-kl-muted);
	font-size: 14px;
	line-height: 1.55;
	flex: 1 1 auto;
}

.oc-knowledge__card-link {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: var(--oc-kl-accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.3;
	text-decoration: none;
}

.oc-knowledge__card-link:hover {
	color: var(--oc-kl-accent);
	text-decoration: none;
}

.oc-knowledge__card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25em;
	height: 1.25em;
	line-height: 1;
}

.oc-knowledge__card-icon i,
.oc-knowledge__card-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.oc-knowledge__card-icon img {
	display: block;
	width: 1.1em;
	height: 1.1em;
	object-fit: contain;
}

.oc-knowledge__card-label {
	display: inline-block;
}

.oc-knowledge__card-chevron {
	display: inline-block;
	font-weight: 400;
	transform: translateY(-0.05em);
}

.oc-knowledge__cta {
	display: flex;
	justify-content: center;
	width: 100%;
}

.oc-knowledge__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	background-color: #c5a46e;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.3;
	border: 0;
	border-radius: 0;
	box-shadow: 0 3px 0 #1a1a1a;
	padding: 14px 28px;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.oc-knowledge__btn:hover,
.oc-knowledge__btn:focus {
	background-color: #b08f55;
	color: #fff;
	text-decoration: none;
}

@media (max-width: 1100px) {
	.oc-knowledge__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.oc-knowledge__grid {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 36px;
	}

	.oc-knowledge__card {
		min-height: 0;
	}
}
