:root {
	--color-primary: #0f766e;
	--color-primary-dark: #134e4a;
	--color-blue: #1e3a8a;
	--color-ink: #0f172a;
	--color-muted: #64748b;
	--color-soft: #f8fafc;
	--color-border: #e2e8f0;
	--shadow-soft: 0 24px 70px rgba(15, 23, 42, 0.12);
	--shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
	--radius: 24px;
	--header-height: 76px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	font-size: 14px !important;
}

p {
  text-align: justify;
}

body.simplebio-template {
	margin: 0;
	color: var(--color-ink);
	background: #ffffff;
	font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.8;
	font-size: 16px;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: #1b3a7a;
	text-decoration: none;
}

a:focus {
	color: inherit !important;
}

.button:focus {
	color: #FFFFFF !important;
	text-decoration: none;
}

.template-container {
	margin-inline: auto;
}

.skip-link {
	position: fixed;
	top: 12px;
	right: 12px;
	transform: translateY(-160%);
	z-index: 10000;
	background: var(--color-primary);
	color: #fff;
	padding: 10px 14px;
	border-radius: 10px;
}

.skip-link:focus {
	transform: translateY(0);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 4px solid #1b3a7a;
	backdrop-filter: blur(18px);
}

.header-inner {
	min-height: var(--header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 900;
	color: var(--color-blue);
	white-space: nowrap;
}

.brand-mark,
.author-avatar {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 5px;
	color: #fff;
	font-weight: 900;
	background: linear-gradient(135deg, #0f766e, #14b8a6 48%, #1e3a8a);
	box-shadow: 0 10px 24px rgba(20, 184, 166, 0.22);
	overflow: hidden;
}

.brand-title {
	font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.nav {
	display: flex;
	gap: 24px;
	font-weight: 700;
	color: #334155;
	flex-direction: row;
}

.nav a,
.site-footer a {
	transition: color 180ms ease;
}

.nav a:hover,
.site-footer a:hover {
	color: var(--color-primary);
}

.hero {
	position: relative;
	min-height: calc(100vh - var(--header-height));
	background: #020617;
	overflow: hidden;
}

.hero-slider,
.hero-slide {
	position: absolute;
	inset: 0;
}

.hero-slide {
	opacity: 0;
	transition: opacity 700ms ease;
	pointer-events: none;
}

.hero-slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.hero-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at center, rgba(15, 118, 110, 0.20), transparent 34%),
		linear-gradient(180deg, rgba(2, 6, 23, 0.26), rgba(11, 25, 81, 0.72));
}

.hero-caption {
	position: absolute;
	inset-inline: 24px;
	top: 45%;
	transform: translateY(-44%);
	margin-inline: auto;
	width: min(920px, calc(100% - 48px));
	color: #fff;
	text-align: center;
	text-shadow: 0 4px 20px rgba(0,0,0,0.32);
}

.hero-caption h1 {
	margin: 0 0 14px;
	font-size: clamp(2.4rem, 7vw, 5.2rem);
	font-weight: 900;
	letter-spacing: -0.04em;
}

.hero-caption p {
    text-align: center;
	margin: 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(1rem, 2.2vw, 1.6rem);
	font-weight: 500;
}

.slider-controls {
	position: absolute;
	z-index: 3;
	inset-inline: 0;
	bottom: 34px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
}

.slider-btn,
.slider-dot {
	border: 0;
	cursor: pointer;
}

.slider-btn {
	width: 44px;
	height: 44px;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 2rem;
	backdrop-filter: blur(8px);
	transition: background 180ms ease, transform 180ms ease;
}

.slider-btn:hover {
	background: rgba(255, 255, 255, 0.28);
	transform: translateY(-2px);
}

.slider-dots {
	display: flex;
	align-items: center;
	gap: 9px;
}

.slider-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.48);
	transition: width 180ms ease, background 180ms ease;
}

.slider-dot.is-active {
	width: 30px;
	background: #fff;
}

.section {
	padding: clamp(60px, 4vw, 80px) 0;
}

.section-kicker {
	display: inline-flex;
	width: fit-content;
	color: var(--color-primary);
	background: rgba(20, 184, 166, 0.10);
	border: 1px solid rgba(20, 184, 166, 0.20);
	border-radius: 5px;
	padding: 6px 16px;
	font-size: 0.95rem;
	font-weight: 800;
}

section video, section iframe {
	width: 100%;
	height: 100%;
	min-height: 200px;
}

.two-column {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: 42px;
	align-items: center;
}

.about-copy h2,
.section-heading h2,
.author-card h2 {
	margin: 16px 0 16px;
	color: var(--color-blue);
	font-size: clamp(2rem, 4vw, 3.4rem);
	font-weight: 900;
}

.about-intro {
	font-size: 1.25rem;
	color: #334155;
	font-weight: 700;
}

.muted {
	color: var(--color-muted);
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
	padding: 12px 24px;
	border-radius: 5px;
	color: #ffffff;
	background: #1b3a7a;
	font-weight: 800;
	box-shadow: 0 16px 30px rgba(20, 184, 166, 0.22);
	transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
	transform: translateY(-2px);
	box-shadow: 0 22px 40px rgba(20, 184, 166, 0.28);
	background: #2a4f9a;
	color: #ffffff;
	text-decoration: none;
}

.button.small {
	padding: 8px;
	margin: 24px 0 12px 0;
	font-size: 0.8em;
}

.button.secondary {
	background: #00967A;
}

.stats-card,
.section-card,
.author-card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
}

.stats-card {
	padding: 26px;
	display: grid;
	gap: 22px;
}

.stats-card div {
	padding: 18px;
	border-radius: 5px;
	background: linear-gradient(180deg, #f8fafc, #eefdfb);
}

.stats-card strong {
	display: block;
	color: var(--color-primary-dark);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 900;
	line-height: 1.5;
}

.stats-card span {
	color: var(--color-muted);
	font-weight: 700;
}

.gallery-section,
.author-section {
	background: linear-gradient(180deg, #ffffff, var(--color-soft));
}

.gallery-section article {
  cursor: pointer;
}

.section-heading {
	margin-bottom: 42px;
}

.section-heading.centered {
	text-align: center;
	max-width: 760px;
	margin-inline: auto;
}

.section-heading.centered .section-kicker {
	margin-inline: auto;
}

.section-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.section-grid>div {
	display: flex;
}

.section-card {
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
}

.section-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-soft);
}

.section-card>div, .section-content>div {
	height: 100%;
}

.section-card .section-content .chat-container-client {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.section-card .section-content .chat-container-client .chat-messages {
	flex-grow: 1;
}

.section-card>img {
	width: 100%;
	height: 250px;
	object-fit: cover;
}

.section-card>div:not(.section-content) {
	padding: 24px;
}

.section-card .section-content {
	padding: 0;
}

.section-grid h3 {
	margin: 8px 0;
	color: var(--color-blue);
	font-size: 1.35rem;
	font-weight: 900;
}

.section-grid h3.center {
	margin: 8px;
	text-align: center;
}

.section-card p,
.chapter-card p {
	margin: 0;
}

.chapters-section {
	background: #fff;
}


.chapter-card {
	position: relative;
	min-height: 252px;
	padding: 32px 28px;
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.section-card>span {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 18px;
	border-radius: 5px;
	color: #fff;
	background: linear-gradient(135deg, var(--color-blue), var(--color-primary));
	font-size: 1.5rem;
	font-weight: 900;
}

.section-card small {
	position: absolute;
	inset-inline-start: 28px;
	bottom: 24px;
	color: var(--color-primary);
	font-weight: 900;
}

.author-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 28px;
	align-items: start;
	padding: clamp(28px, 5vw, 48px);
	position: relative;
}

.author-avatar {
	width: 23%;
	max-width: 150px;
	height: auto;
	font-size: 2rem;
	border: 1px solid #CBCBCB;
	background: transparent;
	position: absolute;
	left: 0;
	margin: 16px;
}

.role {
	color: var(--color-primary-dark) !important;
	font-weight: 800;
}

.component-container {
	padding: 0 0 60px;
}

.component-container:empty {
	display: none;
}

.site-footer {
	background: #1b3a7a;
	padding: 32px 0;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
}

.site-footer, .site-footer a {
	color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.footer-inner p {
	margin: 0;
}

.scroll-to-top {
	display: none;
	position: fixed;
	bottom: 20px;
	right: 30px;
	z-index: 99;
	cursor: pointer;
	padding: 10px 8px;
	border-radius: 6px;
	background: #1b3a7a;
	color: #FFFFFF;
	font-size: 28px;
}

.scroll-to-top:hover {
	background: #3c5fa7;
}

.sidebar {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: 35vw;
	background: rgba(16, 34, 73, 0.85);
	backdrop-filter: blur(12px);
	border-right: 1px solid rgba(27, 58, 122, 0.12);
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

html[dir="rtl"] .sidebar {
	left: unset;
	transform: translateX(100%);
	right: 0;
}

html .sidebar.active {
	transform: translateX(0);
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(2px);
	z-index: 999;
	display: none;
}

.overlay.active {
	display: block;
}

.sidebar-trigger {
	position: fixed;
	top: calc(var(--header-height) / 4);
	padding: 4px 2px;
	background: #1a3f7c;
	margin: 0 26px;
	cursor: pointer;
	color: #FFFFFF;
	z-index: 999;
	line-height: 1;
	font-size: 30px;
	border-radius: 5px;
	display: flex;
}

.sidebar-close-trigger {
	position: fixed;
	top: 0;
	padding: 4px 2px;
	background: #bacbf1;
	margin: 6px 10px;
	cursor: pointer;
	color: #102249;
	z-index: 999;
	line-height: 1;
	font-size: 30px;
	border-radius: 5px;
	display: flex;
	left: 0;
	opacity: 0.8;
}

.sidebar-close-trigger:hover {
	opacity: 1;
}

.sidebar .nav {
	flex-direction: column;
	gap: 1px;
}

.sidebar .nav .nav-item a {
	color: #ECECEC;
	padding: 8px;
	display: block;
	transition: all 0.1s;
}

.sidebar h3 {
	color: #FFFFFF;
	padding: 16px 8px;
	font-size: 1.5rem;
	border-bottom: 2px dotted #CECECE;
	line-height: 1;
	margin-bottom: 8px;
	margin-top: 0;
}

.sidebar .nav .nav-item a:hover, .sidebar .nav .nav-item.active a {
	background: var(--color-primary);
}

hr {
	margin: 8px 0;
}

@media (max-width: 1024px) {
	header ul.nav {
		display: none;
	}

	.sidebar-trigger {
		top: calc(var(--header-height) / 4 - 5px);
		margin: 0 16px;
	}
}

@media (max-width: 980px) {
	.two-column,
	.section-grid,
	.author-card {
		grid-template-columns: 1fr;
	}

	.hero {
		min-height: 560px;
	}
}

@media (max-width: 720px) {
	.template-container {
		width: min(100% - 28px, 1120px);
	}

	.header-inner {
		min-height: auto;
		padding: 4px 0;
		flex-wrap: wrap;
		justify-content: center;
	}

	.nav {
		width: 100%;
		justify-content: center;
		gap: 18px;
		font-size: 0.95rem;
	}

	.hero {
		min-height: 500px;
	}

	.section {
		padding: 64px 0;
	}

	.section-card>img {
		height: 220px;
	}

	.footer-inner {
		justify-content: center;
		text-align: center;
	}

	.sidebar {
		width: 75vw !important;
	}
  :root {
		--header-height: 45px;
	}
}

.chat-container-client .assistant-trigger-icon {
	background: transparent !important;
	border-radius: 9px !important;
	padding: 0px !important;
	border: 0px !important;
}

.chat-container-client .init-content img {
	margin: 0px auto;
}

.chat-container-client .chat-messages .motd {
	font-size: 14px !important;
}

.chat-container-client .init-content .prompts {
	max-height: 300px !important;
}

.chat-container-client .chat-messages .icon {
	float: left;
}

.article-info-term, .article-info dd {
	color: #000000
}

footer .nav {
	flex-wrap: wrap;
}

ul, menu {
	list-style: unset !important;
}

ol {
	list-style-type: arabic;
	list-style-position: inside;
	padding-right: 20px;
}