/* Knowledge Center (views/pages/knowledge-center.ejs). The site's own language: Poppins,
   dark #222328 headings, soft #8C94B0 greys, the #467EFE -> #61CAFD gradient and rounded
   white cards with a light blue shadow. */

.kc-hero-sub {
	margin: 12px auto 0;
	max-width: 620px;
	text-align: center;
	font-size: 18px;
	line-height: 28px;
	color: rgba(255, 255, 255, .9);
}

.kc {
	--kc-ink: #222328;
	--kc-text: #646b86;
	--kc-muted: #8c94b0;
	--kc-line: #e9edf7;
	--kc-soft: #f4f7ff;
	--kc-blue: #467efe;
	--kc-grad: linear-gradient(260deg, #61cafd 0%, #467efe 100%);
	position: relative;
	padding: 0 0 40px;
	font-family: 'Poppins', sans-serif;
}

/* ── Search (overlaps the hero's wave) ─────────────────────────────────────── */
.kc-search {
	position: relative;
	z-index: 2;
	max-width: 760px;
	margin: -60px auto 0;
	display: flex;
	align-items: center;
	background: #fff;
	border-radius: 50px;
	box-shadow: 0 18px 50px rgba(70, 126, 254, .18);
	padding: 8px 10px 8px 26px;
}
.kc-search__icon { color: var(--kc-blue); font-size: 18px; }
.kc-search__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	outline: 0;
	height: 52px;
	padding: 0 14px;
	font-size: 16px;
	color: var(--kc-ink);
	background: transparent;
}
.kc-search__input::placeholder { color: #a7aec6; }
.kc-search__input::-webkit-search-cancel-button { display: none; }
.kc-search__clear {
	flex: none;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--kc-soft);
	color: var(--kc-muted);
	font-size: 22px;
	line-height: 1;
}
.kc-search__clear:hover { color: var(--kc-blue); }

/* Search results */
.kc-results { max-width: 760px; margin: 28px auto 10px; }
.kc-results__title { margin: 0 0 12px; font-size: 15px; color: var(--kc-muted); }
.kc-results__list { margin: 0; padding: 0; list-style: none; }
.kc-results__list li + li { margin-top: 10px; }
.kc-results__list a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	border: 1px solid var(--kc-line);
	border-radius: 14px;
	background: #fff;
	color: var(--kc-ink);
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}
.kc-results__list a:hover { border-color: #c9d8ff; box-shadow: 0 10px 26px rgba(70, 126, 254, .1); }
.kc-results__tag {
	flex: none;
	padding: 4px 10px;
	border-radius: 50px;
	background: #eaf1ff;
	color: var(--kc-blue);
	font-size: 12px;
	font-weight: 600;
}
.kc-results__empty { padding: 26px; text-align: center; border-radius: 16px; background: var(--kc-soft); color: var(--kc-text); }
.kc-results__empty p { margin: 0; }

/* ── Section blocks ────────────────────────────────────────────────────────── */
.kc-block { padding-top: 70px; }
.kc-block--tint {
	margin-top: 70px;
	padding: 56px 40px;
	border-radius: 28px;
	background: linear-gradient(135deg, #eef4ff 0%, #e6f6ff 100%);
}
.kc-head { text-align: center; margin-bottom: 34px; }
.kc-head__title { margin: 0 0 10px; font-size: 38px; line-height: 48px; font-weight: 700; color: var(--kc-ink); }
.kc-head__sub { margin: 0; font-size: 17px; line-height: 27px; color: var(--kc-muted); }
.kc-center { text-align: center; margin-top: 28px; }

.kc-icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 15px;
	background: var(--kc-grad);
	color: #fff;
	font-size: 20px;
	box-shadow: 0 10px 22px rgba(70, 126, 254, .28);
}
.kc-icon--sm { width: 46px; height: 46px; border-radius: 13px; font-size: 18px; }

/* Topic cards */
.kc-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kc-topic {
	display: flex;
	flex-direction: column;
	padding: 28px;
	border: 1px solid var(--kc-line);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(70, 126, 254, .07);
	transition: transform .2s ease, box-shadow .2s ease;
}
.kc-topic:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(70, 126, 254, .14); }
.kc-topic__top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.kc-topic__title { margin: 2px 0 6px; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--kc-ink); }
.kc-topic__text { margin: 0; font-size: 14px; line-height: 22px; color: var(--kc-text); }
.kc-topic__links { margin: 0 0 18px; padding: 0; list-style: none; flex: 1 1 auto; }
.kc-topic__links li { border-top: 1px solid var(--kc-line); }
.kc-topic__links a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 2px;
	font-size: 15px;
	color: var(--kc-ink);
	text-decoration: none;
	transition: color .15s, padding .15s;
}
.kc-topic__links a i { font-size: 10px; color: var(--kc-blue); }
.kc-topic__links a:hover { color: var(--kc-blue); padding-left: 6px; }
.kc-topic__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--kc-blue);
	text-decoration: none;
}
.kc-topic__more i { font-size: 12px; transition: transform .2s; }
.kc-topic__more:hover i { transform: translateX(4px); }

/* Popular questions */
.kc-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.kc-faq details {
	border: 1px solid var(--kc-line);
	border-radius: 16px;
	background: #fff;
	transition: box-shadow .2s;
}
.kc-faq details[open] { border-color: #d4e1ff; box-shadow: 0 12px 30px rgba(70, 126, 254, .1); }
.kc-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	color: var(--kc-ink);
	cursor: pointer;
	list-style: none;
}
.kc-faq summary::-webkit-details-marker { display: none; }
.kc-faq summary i { flex: none; font-size: 13px; color: var(--kc-blue); transition: transform .2s; }
.kc-faq details[open] summary i { transform: rotate(180deg); }
.kc-faq__body { padding: 0 22px 20px; }
.kc-faq__body p { margin: 0 0 12px; font-size: 15px; line-height: 25px; color: var(--kc-text); }
.kc-faq__body a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--kc-blue); text-decoration: none; }
.kc-faq__body a i { font-size: 11px; }

.kc-btn {
	display: inline-block;
	padding: 13px 30px;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: transform .2s, box-shadow .2s;
}
.kc-btn--ghost { background: #fff; color: var(--kc-blue); border: 1px solid #c9d8ff; }
.kc-btn--ghost:hover { color: var(--kc-blue); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(70, 126, 254, .15); }

/* Tools */
.kc-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kc-tool {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 22px;
	border: 1px solid var(--kc-line);
	border-radius: 18px;
	background: #fff;
	text-decoration: none;
	transition: border-color .15s, box-shadow .2s, transform .2s;
}
.kc-tool:hover { border-color: #c9d8ff; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(70, 126, 254, .12); }
.kc-tool__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kc-tool__text strong { font-size: 16px; font-weight: 600; color: var(--kc-ink); }
.kc-tool__text span { font-size: 13.5px; line-height: 20px; color: var(--kc-text); }
.kc-tool__arrow { flex: none; font-size: 13px; color: #b6c6f5; transition: color .15s, transform .2s; }
.kc-tool:hover .kc-tool__arrow { color: var(--kc-blue); transform: translateX(4px); }

/* Guides */
.kc-guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.kc-guide {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	border: 1px solid var(--kc-line);
	border-radius: 20px;
	background: #fff;
	text-decoration: none;
	transition: transform .2s, box-shadow .2s;
}
.kc-guide:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(70, 126, 254, .14); }
.kc-guide__img {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 130px;
	margin-bottom: 10px;
	border-radius: 16px;
	background: linear-gradient(135deg, #eef4ff 0%, #e3f4ff 100%);
}
.kc-guide__img img { width: 88px; height: 88px; object-fit: contain; }
.kc-guide strong { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--kc-ink); }
.kc-guide > span:not(.kc-guide__img):not(.kc-guide__more) { font-size: 14px; line-height: 22px; color: var(--kc-text); flex: 1 1 auto; }
.kc-guide__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--kc-blue); }
.kc-guide__more i { font-size: 11px; transition: transform .2s; }
.kc-guide:hover .kc-guide__more i { transform: translateX(4px); }

/* Contact */
.kc-contact {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin-top: 80px;
	padding: 40px 44px;
	border-radius: 28px;
	background: var(--kc-grad);
	overflow: hidden;
}
.kc-contact::before {
	content: '';
	position: absolute;
	width: 300px;
	height: 300px;
	right: -80px;
	bottom: -170px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
}
.kc-contact > * { position: relative; }
.kc-contact__intro { max-width: 420px; }
.kc-contact__intro h2 { margin: 0 0 8px; font-size: 30px; line-height: 40px; font-weight: 700; color: #fff; }
.kc-contact__intro p { margin: 0; font-size: 15px; line-height: 25px; color: rgba(255, 255, 255, .92); }
.kc-contact__ways { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.kc-contact__way {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px 14px 14px;
	border-radius: 18px;
	background: #fff;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(20, 60, 160, .18);
	transition: transform .2s;
}
.kc-contact__way:hover { transform: translateY(-3px); }
.kc-contact__way span:last-child { display: flex; flex-direction: column; font-size: 14px; color: var(--kc-text); }
.kc-contact__way strong { font-size: 15px; color: var(--kc-ink); }
.kc-contact__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #eaf1ff;
	color: var(--kc-blue);
	font-size: 17px;
}

/* ── Tablet ────────────────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
	.kc-topics, .kc-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kc-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kc-contact { flex-direction: column; align-items: flex-start; }
	.kc-contact__ways { justify-content: flex-start; }
}
@media (max-width: 991.98px) {
	.kc-head__title { font-size: 32px; line-height: 42px; }
	.kc-faq { grid-template-columns: minmax(0, 1fr); }
	.kc-block--tint { padding: 44px 26px; }
}

/* ── Phone ─────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
	.kc-hero-sub { font-size: 15px; line-height: 23px; padding: 0 10px; }
	.kc-search { margin-top: -40px; padding: 6px 6px 6px 18px; }
	.kc-search__input { height: 46px; font-size: 15px; padding: 0 10px; }
	.kc-block { padding-top: 50px; }
	.kc-block--tint { margin-top: 50px; padding: 34px 16px; border-radius: 22px; }
	.kc-head { margin-bottom: 24px; }
	.kc-head__title { font-size: 26px; line-height: 35px; }
	.kc-head__sub { font-size: 15px; line-height: 24px; }
	.kc-topics, .kc-tools, .kc-guides { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.kc-topic { padding: 22px 20px; border-radius: 20px; }
	.kc-topic__title { font-size: 18px; }
	.kc-icon { width: 46px; height: 46px; font-size: 18px; border-radius: 13px; }
	.kc-faq summary { padding: 16px 18px; font-size: 15px; }
	.kc-faq__body { padding: 0 18px 18px; }
	.kc-tool { padding: 16px 18px; }
	.kc-guide { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 16px; }
	.kc-guide__img { width: 72px; height: 72px; margin: 0; border-radius: 14px; }
	.kc-guide__img img { width: 48px; height: 48px; }
	.kc-guide strong { flex: 1 1 calc(100% - 90px); }
	.kc-guide > span:not(.kc-guide__img):not(.kc-guide__more) { flex: 1 1 100%; }
	.kc-contact { margin-top: 56px; padding: 30px 22px; border-radius: 22px; }
	.kc-contact__intro h2 { font-size: 24px; line-height: 33px; }
	.kc-contact__ways { flex-direction: column; width: 100%; }
	.kc-contact__way { width: 100%; }
	.kc-results__list a { padding: 14px 16px; font-size: 15px; }
}
