/* ==========================================================================
   XBTech – redesigned inner pages (courses, branches, blog, about, topics)
   ========================================================================== */

:root {
	--xb-blue: #0945d5;
	--xb-blue-dark: #0a3cb8;
	--xb-navy: #0d1d45;
	--xb-text: #4a5875;
	--xb-soft: #f3f7fd;
	--xb-line: #e4e9f4;
	--xb-radius: 18px;
	--xb-shadow: 0 12px 32px rgba(13, 29, 69, .07);
	--xb-shadow-hover: 0 18px 40px rgba(9, 69, 213, .14);
}

/* ---------- generic ---------- */
.xb-section { padding: 100px 0; }
.xb-section--tight { padding: 60px 0; }
.xb-section--soft { background: var(--xb-soft); }
.xb-section .section-title { margin-bottom: 44px; }
.xb-section__lead { max-width: 680px; margin: 14px auto 0; color: var(--xb-text); font-size: 17px; line-height: 1.7; }
.xb-section__lead--left { margin: -26px 0 30px; max-width: none; }

.xb-prose { color: var(--xb-text); font-size: 16px; line-height: 1.8; }
.xb-prose p { margin-bottom: 1em; }
.xb-prose ul { padding-left: 1.2em; }

.xb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 28px;
	border: 2px solid transparent;
	border-radius: 50px;
	background: linear-gradient(180deg, #1657e8 0%, var(--xb-blue-dark) 100%);
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	line-height: 1;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.xb-btn svg { width: 18px; height: 18px; flex: none; }
.xb-btn:hover, .xb-btn:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(9, 69, 213, .28); }
.xb-btn--outline { background: #fff; border-color: var(--xb-blue); color: var(--xb-blue); }
.xb-btn--outline:hover, .xb-btn--outline:focus { color: #fff; background: var(--xb-blue); }
.xb-btn--white { background: #fff; color: var(--xb-blue); }
.xb-btn--white:hover, .xb-btn--white:focus { color: var(--xb-blue); }
.xb-btn--light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; }
.xb-btn--light:hover, .xb-btn--light:focus { background: rgba(255, 255, 255, .22); }
.xb-btn--sm { padding: 11px 20px; font-size: 14px; }

.xb-link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--xb-blue); font-weight: 700; }
.xb-link-arrow svg { width: 18px; height: 18px; transition: transform .2s ease; }
.xb-link-arrow:hover { color: var(--xb-blue-dark); }
.xb-link-arrow:hover svg { transform: translateX(4px); }

/* ---------- call to action band ---------- */
.xb-cta-wrap { padding: 0 0 100px; }
.xb-section--soft + .xb-cta-wrap, .xb-section + .xb-cta-wrap { padding-top: 0; }
.xb-section--soft + .xb-cta-wrap { padding-top: 100px; }
.xb-cta {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	flex-wrap: wrap;
	padding: 48px 56px;
	border-radius: 24px;
	overflow: hidden;
	background: linear-gradient(120deg, var(--xb-navy) 0%, var(--xb-blue) 100%);
	color: #fff;
}
.xb-cta::after {
	content: '';
	position: absolute;
	right: -60px;
	top: -60px;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .07);
}
.xb-cta__text { position: relative; z-index: 1; max-width: 620px; }
.xb-cta h3 { margin: 0 0 8px; color: #fff; font-size: 30px; font-weight: 800; }
.xb-cta p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 16px; }
.xb-cta__actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- topics (home, static grid) ---------- */
.xb-topics { padding: 100px 0; background: var(--xb-soft); background-size: cover; }
.xb-topics__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.xb-topic {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 30px 18px;
	border: 1px solid var(--xb-line);
	border-radius: var(--xb-radius);
	background: #fff;
	text-align: center;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.xb-topic:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--xb-shadow-hover); }
.xb-topic__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: var(--xb-soft);
	color: var(--xb-blue);
	font-size: 34px;
	transition: background .25s ease, color .25s ease;
}
a.xb-topic:hover .xb-topic__icon { background: var(--xb-blue); color: #fff; }
.xb-topic__title { color: var(--xb-navy); font-size: 18px; font-weight: 700; line-height: 1.3; }

/* ---------- course card ---------- */
.xb-course-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--xb-line);
	border-radius: var(--xb-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--xb-shadow);
	transition: transform .25s ease, box-shadow .25s ease;
}
.xb-course-card:hover { transform: translateY(-6px); box-shadow: var(--xb-shadow-hover); }
.xb-course-card__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--xb-soft); }
.xb-course-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.xb-course-card:hover .xb-course-card__img img { transform: scale(1.05); }
.xb-course-card__icon {
	position: absolute;
	z-index: 2;
	left: 22px;
	bottom: -24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 4px solid #fff;
	border-radius: 50%;
	background: var(--xb-blue);
	color: #fff;
	font-size: 24px;
}
.xb-course-card__img:has(.xb-course-card__icon) { overflow: visible; }
.xb-course-card__img:has(.xb-course-card__icon) img { border-radius: var(--xb-radius) var(--xb-radius) 0 0; }
.xb-course-card__body { display: flex; flex-direction: column; flex: 1; padding: 38px 24px 24px; }
.xb-course-card__title { margin: 0 0 10px; font-size: 21px; font-weight: 800; line-height: 1.3; }
.xb-course-card__title a { color: var(--xb-navy); }
.xb-course-card__title a:hover { color: var(--xb-blue); }
.xb-course-card__text { margin: 0 0 16px; color: var(--xb-text); font-size: 15px; line-height: 1.6; }
.xb-course-card__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: auto 0 18px; color: var(--xb-text); font-size: 14px; }
.xb-course-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.xb-course-card__meta svg { width: 18px; height: 18px; color: var(--xb-blue); }

/* ---------- course page ---------- */
.xb-block { margin-top: 40px; }
.xb-block__title { margin: 0 0 18px; color: var(--xb-navy); font-size: 24px; font-weight: 800; }
.xb-checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin: 0; padding: 0; list-style: none; }
.xb-checklist li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--xb-line); border-radius: 12px; background: #fff; color: var(--xb-navy); font-weight: 600; line-height: 1.4; }
.xb-checklist__tick { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--xb-blue); color: #fff; }
.xb-checklist__tick svg { width: 14px; height: 14px; }
.xb-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.xb-pills li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 40px; background: var(--xb-soft); color: var(--xb-navy); font-weight: 600; }
.xb-pills svg { width: 18px; height: 18px; color: var(--xb-blue); }

.xb-side-card { position: sticky; top: 120px; border: 1px solid var(--xb-line); border-radius: var(--xb-radius); overflow: hidden; background: #fff; box-shadow: var(--xb-shadow); }
.xb-side-card--static { position: static; }
.xb-side-card__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.xb-side-card__body { padding: 26px; }
.xb-side-card__body h4 { margin: 0 0 16px; color: var(--xb-navy); font-size: 20px; font-weight: 800; }
.xb-side-card__actions { display: grid; gap: 10px; margin-top: 22px; }
.xb-facts { margin: 0; padding: 0; list-style: none; }
.xb-facts li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px dashed var(--xb-line); }
.xb-facts li:last-child { border-bottom: 0; }
.xb-facts__icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--xb-soft); color: var(--xb-blue); }
.xb-facts__icon svg { width: 22px; height: 22px; }
.xb-facts em { display: block; color: var(--xb-text); font-size: 13px; font-style: normal; }
.xb-facts strong { display: block; color: var(--xb-navy); font-size: 15px; line-height: 1.45; }
.xb-facts strong a { color: inherit; }
.xb-facts strong a:hover { color: var(--xb-blue); }

.xb-sub-card { height: 100%; border: 1px solid var(--xb-line); border-radius: var(--xb-radius); overflow: hidden; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.xb-sub-card:hover { transform: translateY(-5px); box-shadow: var(--xb-shadow-hover); }
.xb-sub-card__img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.xb-sub-card__body { padding: 22px 24px 24px; }
.xb-sub-card__body h3 { margin: 0 0 10px; color: var(--xb-navy); font-size: 19px; font-weight: 800; }
.xb-sub-card__body p { margin: 0 0 16px; color: var(--xb-text); font-size: 15px; line-height: 1.6; }

/* ---------- branches ---------- */
.xb-branch-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--xb-line); border-radius: var(--xb-radius); overflow: hidden; background: #fff; box-shadow: var(--xb-shadow); transition: box-shadow .25s ease; }
.xb-branch-card:hover { box-shadow: var(--xb-shadow-hover); }
.xb-branch-card__media { height: 240px; background: var(--xb-soft); }
.xb-branch-card__media iframe, .xb-branch-card__media img { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.xb-branch-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.xb-branch-card__title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 22px; font-weight: 800; }
.xb-branch-card__title a { color: var(--xb-navy); }
.xb-branch-card__title a:hover { color: var(--xb-blue); }
.xb-branch-card__pin { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--xb-blue); color: #fff; }
.xb-branch-card__pin svg { width: 22px; height: 22px; }
.xb-branch-card__info { margin: 0 0 22px; padding: 0; list-style: none; }
.xb-branch-card__info li { display: flex; gap: 12px; padding: 7px 0; color: var(--xb-text); line-height: 1.5; }
.xb-branch-card__info li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--xb-blue); }
.xb-branch-card__info a { color: var(--xb-navy); font-weight: 600; }
.xb-branch-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: auto; }
.xb-branch-card__actions .xb-link-arrow { margin-left: auto; }
.xb-map { height: 100%; min-height: 420px; border-radius: var(--xb-radius); overflow: hidden; box-shadow: var(--xb-shadow); }
.xb-map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ---------- blog ---------- */
.xb-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -14px 0 40px; }
.xb-filter a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid var(--xb-line); border-radius: 40px; background: #fff; color: var(--xb-navy); font-weight: 600; font-size: 15px; }
.xb-filter a span { padding: 1px 8px; border-radius: 20px; background: var(--xb-soft); color: var(--xb-text); font-size: 12px; }
.xb-filter a:hover, .xb-filter a.is-active { border-color: var(--xb-blue); background: var(--xb-blue); color: #fff; }
.xb-filter a.is-active span, .xb-filter a:hover span { background: rgba(255, 255, 255, .2); color: #fff; }

.xb-post-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--xb-line); border-radius: var(--xb-radius); overflow: hidden; background: #fff; box-shadow: var(--xb-shadow); transition: transform .25s ease, box-shadow .25s ease; }
.xb-post-card:hover { transform: translateY(-5px); box-shadow: var(--xb-shadow-hover); }
.xb-post-card__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--xb-soft); }
.xb-post-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.xb-post-card:hover .xb-post-card__img img { transform: scale(1.05); }
.xb-post-card__cat { position: absolute; left: 16px; top: 16px; padding: 6px 14px; border-radius: 30px; background: var(--xb-blue); color: #fff; font-size: 13px; font-weight: 700; }
.xb-post-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.xb-post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; color: var(--xb-text); font-size: 13px; }
.xb-post-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.xb-post-card__meta svg { width: 16px; height: 16px; color: var(--xb-blue); }
.xb-post-card__title { margin: 0 0 12px; font-size: 21px; font-weight: 800; line-height: 1.35; }
.xb-post-card__title a { color: var(--xb-navy); }
.xb-post-card__title a:hover { color: var(--xb-blue); }
.xb-post-card__excerpt { margin: 0 0 20px; color: var(--xb-text); font-size: 15px; line-height: 1.65; }
.xb-post-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--xb-line); }
.xb-post-card__author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.xb-post-card__author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.xb-post-card__author strong { display: block; color: var(--xb-navy); font-size: 14px; line-height: 1.2; }
.xb-post-card__author em { display: block; color: var(--xb-text); font-size: 12px; font-style: normal; }

@media (min-width: 992px) {
	.xb-post-card--featured { flex-direction: row; }
	.xb-post-card--featured .xb-post-card__img { flex: 0 0 55%; aspect-ratio: auto; min-height: 380px; }
	.xb-post-card--featured .xb-post-card__body { padding: 40px; justify-content: center; }
	.xb-post-card--featured .xb-post-card__title { font-size: 30px; }
	.xb-post-card--featured .xb-post-card__excerpt { font-size: 17px; }
	.xb-post-card--featured .xb-post-card__foot { margin-top: 10px; }
}

/* blog details polish */
.blog-details__img img { border-radius: var(--xb-radius); }
.blog-details__meta__cats a { display: inline-block; padding: 4px 12px; margin-right: 6px; border-radius: 20px; background: var(--xb-blue); color: #fff; font-size: 13px; }

/* ---------- about page ---------- */
.fact-one { padding-top: 90px; padding-bottom: 90px; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
	.xb-section { padding: 70px 0; }
	.xb-cta { padding: 36px 30px; }
	.xb-cta h3 { font-size: 24px; }
	.xb-cta-wrap { padding-bottom: 70px; }
	.xb-section--soft + .xb-cta-wrap { padding-top: 70px; }
	.xb-side-card { position: static; }
	.xb-topics { padding: 70px 0; }
}

@media (max-width: 575px) {
	.xb-checklist { grid-template-columns: 1fr; }
	.xb-topics__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.xb-topic { padding: 22px 10px; }
	.xb-topic__title { font-size: 15px; }
	.xb-branch-card__actions .xb-link-arrow { margin-left: 0; }
	.xb-map, .xb-map iframe { min-height: 300px; }
}

/* ---------- mobile header: the menu panel already has the social icons ---------- */
@media (max-width: 575px) {
	.main-header-two .main-menu .main-footer-two__social { display: none; }
	.xbh__bar .container { line-height: 1.9; }
}
