/* Knowledge mega menu + hubs + article footer — SmartBill native tokens */

.sb-kmega {
	--sb-blue: #1a365d;
	--sb-blue-link: #0b5dbc;
	--sb-orange: #ff6a00;
	--sb-border: #e6ecf5;
	--sb-text: #0f172a;
	--sb-muted: #52657c;
	direction: rtl;
	font-family: Heebo, "Segoe UI", Arial, sans-serif;
	color: var(--sb-text);
	background: #fff;
	border-radius: 18px;
	padding: 20px 18px;
	max-width: 1120px;
}

.sb-kmega__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.sb-kmega__heading {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 800;
	color: #0b315f;
}

.sb-kmega__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.sb-kmega__list a {
	color: var(--sb-blue-link);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.45;
}

.sb-kmega__list a:hover {
	color: var(--sb-orange);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sb-kmega__list--compact a {
	font-size: 13px;
	font-weight: 500;
}

.sb-kmega__sub {
	margin: 14px 0 8px;
	font-size: 12px;
	font-weight: 700;
	color: var(--sb-muted);
}

.sb-kmega__foot {
	display: inline-block;
	margin-top: 14px;
	font-weight: 700;
	font-size: 13px;
	color: var(--sb-blue-link);
}

.sb-kmega__col--help {
	background: #fff7e9;
	border: 1px solid #ffe0b8;
	border-radius: 16px;
	padding: 14px;
}

.sb-kmega__help-text {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--sb-muted);
	line-height: 1.5;
}

.sb-kmega__cta {
	display: inline-flex;
	margin-top: 14px;
	padding: 11px 16px;
	background: var(--sb-orange);
	color: #fff !important;
	font-weight: 800;
	font-size: 13px;
	border-radius: 12px;
	text-decoration: none !important;
	box-shadow: 0 8px 20px rgba(255, 106, 0, 0.28);
}

.sb-kmega__cta:hover {
	transform: translateY(-1px);
}

@media (max-width: 1024px) {
	.sb-kmega__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.sb-kmega__col {
		border-bottom: 1px solid var(--sb-border);
		padding: 10px 0;
	}

	.sb-kmega__col--help {
		margin-top: 8px;
		border-bottom: 0;
	}

	.sb-kmega__list {
		display: none;
	}

	.sb-kmega__col.is-open .sb-kmega__list,
	.sb-kmega__col.is-open .sb-kmega__sub,
	.sb-kmega__col.is-open .sb-kmega__foot,
	.sb-kmega__col.is-open .sb-kmega__help-text,
	.sb-kmega__col.is-open .sb-kmega__cta {
		display: grid;
	}

	.sb-kmega__col.is-open .sb-kmega__help-text,
	.sb-kmega__col.is-open .sb-kmega__cta,
	.sb-kmega__col.is-open .sb-kmega__foot {
		display: block;
	}

	.sb-kmega__heading {
		cursor: pointer;
		position: relative;
		padding-left: 28px;
		margin-bottom: 0;
	}

	.sb-kmega__heading::after {
		content: "";
		position: absolute;
		left: 4px;
		top: 50%;
		width: 8px;
		height: 8px;
		border-right: 2px solid #0b315f;
		border-bottom: 2px solid #0b315f;
		transform: translateY(-70%) rotate(45deg);
	}

	.sb-kmega__col.is-open .sb-kmega__heading {
		margin-bottom: 12px;
	}

	.sb-kmega__col.is-open .sb-kmega__heading::after {
		transform: translateY(-30%) rotate(225deg);
	}

	.sb-kmega__sub,
	.sb-kmega__foot,
	.sb-kmega__help-text,
	.sb-kmega__cta {
		display: none;
	}
}

/* Hubs */
.sb-hub {
	--sb-blue: #1a365d;
	--sb-blue-link: #0b5dbc;
	--sb-orange: #ff6a00;
	--sb-border: #e6ecf5;
	--sb-muted: #52657c;
	--sb-card: #f7f9fc;
	direction: rtl;
	font-family: Heebo, "Segoe UI", Arial, sans-serif;
	color: #0f172a;
	max-width: 1080px;
	margin: 0 auto;
	padding: 28px 16px 48px;
}

.sb-hub__crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 13px;
	color: var(--sb-muted);
	margin-bottom: 14px;
}

.sb-hub__crumbs a {
	color: var(--sb-blue-link);
	text-decoration: none;
	font-weight: 600;
}

.sb-hub__title {
	margin: 0 0 10px;
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 800;
	color: #0b315f;
	line-height: 1.25;
}

.sb-hub__brief {
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--sb-muted);
	max-width: 40em;
}

.sb-hub__h2 {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 800;
	color: #0b315f;
}

.sb-hub__search {
	margin: 0 0 28px;
	max-width: 520px;
}

.sb-hub__search input[type="search"],
.sb-hub__search input[type="text"] {
	width: 100%;
	border: 1px solid var(--sb-border);
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 15px;
}

.sb-hub__video {
	margin: 0 0 28px;
	background: #fff;
	border: 1px solid var(--sb-border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(26, 54, 93, 0.06);
}

.sb-hub__video iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

.sb-hub__video figcaption {
	padding: 10px 14px;
	font-size: 13px;
	color: var(--sb-muted);
}

.sb-hub__cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
	margin: 0 0 28px;
}

.sb-hub__card {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 14px 14px;
	background: #fff;
	border: 1px solid var(--sb-border);
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 4px 14px rgba(7, 51, 99, 0.04);
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	min-height: 84px;
}

.sb-hub__card:hover {
	border-color: #c9daf0;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(7, 51, 99, 0.08);
}

.sb-hub__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--sb-card);
	color: var(--sb-blue-link);
	flex-shrink: 0;
}

.sb-hub__card-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.sb-hub__card strong {
	color: #0b315f;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.35;
}

.sb-hub__card span {
	color: var(--sb-muted);
	font-size: 13px;
	line-height: 1.4;
}

.sb-hub__card-go {
	color: #9bb0c9;
	font-size: 16px;
	font-weight: 700;
}

.sb-hub__card:hover .sb-hub__card-go {
	color: var(--sb-orange);
}

.sb-hub__vcard {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid var(--sb-border);
	border-radius: 16px;
	overflow: hidden;
}

.sb-hub__vcard img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.sb-hub__vcard-topic {
	padding: 0 14px;
	font-size: 12px;
	font-weight: 700;
	color: var(--sb-blue-link);
}

.sb-hub__vcard strong {
	padding: 0 14px;
	color: #0b315f;
}

.sb-hub__vcard em {
	padding: 0 14px 14px;
	font-style: normal;
	font-size: 13px;
	font-weight: 700;
	color: var(--sb-orange);
}

.sb-hub__section {
	margin: 0;
}

.sb-hub__help-banner {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	padding: 16px 18px;
	background: #fff7e9;
	border: 1px solid #ffe0b8;
	border-radius: 16px;
	margin-bottom: 28px;
}

.sb-hub__help-banner a {
	margin-inline-start: auto;
	color: #fff;
	background: var(--sb-orange);
	padding: 10px 14px;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 800;
	font-size: 13px;
}

.sb-hub__footer {
	margin-top: 8px;
	padding-top: 20px;
	border-top: 1px solid var(--sb-border);
}

.sb-hub__btn {
	display: inline-flex;
	margin: 8px 0 0;
	padding: 12px 18px;
	background: var(--sb-orange);
	color: #fff !important;
	border-radius: 12px;
	font-weight: 800;
	text-decoration: none !important;
}

.sb-hub__help {
	display: inline-block;
	margin: 12px 14px 0 0;
	color: var(--sb-blue-link);
	font-weight: 700;
}

@media (max-width: 640px) {
	.sb-hub__cards {
		grid-template-columns: 1fr;
	}
}

/* Article footer */
.sb-article-footer {
	margin-top: 36px;
	padding: 24px 0 8px;
	border-top: 1px solid #e6ecf5;
	font-family: Heebo, "Segoe UI", Arial, sans-serif;
	direction: rtl;
}

.sb-article-footer__title {
	margin: 0 0 8px;
	font-size: 22px;
	color: #0b315f;
}

.sb-article-footer__lead {
	margin: 0 0 12px;
	color: #52657c;
}

.sb-article-footer__list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: grid;
	gap: 8px;
}

.sb-article-footer__list a {
	color: #0b5dbc;
	font-weight: 600;
	text-decoration: none;
}

.sb-article-footer__list a:hover {
	text-decoration: underline;
}

.sb-article-footer__cta,
.sb-article-footer__help {
	padding: 16px;
	border-radius: 16px;
	border: 1px solid #e6ecf5;
	margin-bottom: 14px;
	background: #fff;
}

.sb-article-footer__btn {
	display: inline-flex;
	margin: 8px 12px 0 0;
	padding: 11px 16px;
	background: #ff6a00;
	color: #fff !important;
	border-radius: 12px;
	font-weight: 800;
	text-decoration: none !important;
}

.sb-article-footer__link,
.sb-article-footer__help a {
	color: #0b5dbc;
	font-weight: 700;
}

/* Desktop mega panel: ensure 4-col mega fits */
@media (min-width: 1025px) {
	.elementor-373 .menu-item-3303 > .elementskit-megamenu-panel {
		width: min(1180px, calc(100vw - 48px)) !important;
	}

	.elementor-373 .menu-item-3303 .sb-kmega {
		width: 100%;
	}
}
