/* =====================================================================
 * Faragiri — About page (page 16368) redesign.
 * Enqueued by mu-plugin faragiri-about.php only on the about-us page.
 * Dark / glass brand aesthetic, RTL, JS-free. Scoped under .fab.
 * ===================================================================== */

.fab {
	--fg-grad: linear-gradient(90deg, #8D65E9 0%, #5391E4 47%, #6BCD94 100%);
	--fg-accent: #24baef;
	--fg-ink: #eef1f7;
	--fg-muted: #9aa3b8;
	--fg-surface: rgba(31, 38, 56, .55);
	--fg-surface-2: rgba(22, 27, 39, .6);
	--fg-line: rgba(124, 138, 170, .18);
	--fg-radius: 18px;
	color: var(--fg-ink);
	font-family: inherit;
	line-height: 1.9;
	text-align: start;
	direction: rtl;
}

/* normalize core/theme block styles inside the module */
.fab * { box-sizing: border-box; }
.fab h1, .fab h2, .fab h3, .fab h4, .fab p, .fab ul, .fab li { margin: 0; }
.fab ul { list-style: none; padding: 0; }
.fab a { text-decoration: none; }
.fab strong { color: #fff; font-weight: 800; }

.fab__wrap { max-inline-size: 1160px; margin-inline: auto; }

/* shared section rhythm */
.fab__section { margin-block-start: clamp(2.2rem, 5vw, 3.8rem); }

/* shared panel */
.fab__panel {
	position: relative;
	padding: clamp(1.4rem, 3vw, 2.4rem);
	border: 1px solid var(--fg-line);
	border-radius: var(--fg-radius);
	background: var(--fg-surface-2);
	backdrop-filter: blur(6px);
}

/* eyebrow chip */
.fab__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .02em;
	color: #cdd5e8;
	padding: .34rem .9rem;
	border: 1px solid var(--fg-line);
	border-radius: 999px;
	background: var(--fg-surface);
	backdrop-filter: blur(6px);
}
.fab__eyebrow::before {
	content: "";
	inline-size: .55rem;
	block-size: .55rem;
	border-radius: 50%;
	background: var(--fg-grad);
	box-shadow: 0 0 0 4px rgba(83, 145, 228, .18);
}

/* shared section heading */
.fab__h2 {
	display: flex;
	align-items: center;
	gap: .7rem;
	font-size: clamp(1.35rem, 3vw, 1.9rem);
	font-weight: 800;
	line-height: 1.5;
	color: var(--fg-ink);
	margin-block-end: 1.3rem;
}
.fab__h2::before {
	content: "";
	flex: 0 0 auto;
	inline-size: .34rem;
	block-size: 1.4rem;
	border-radius: 999px;
	background: var(--fg-grad);
}
.fab__lead { max-inline-size: 74ch; color: #c7cedd; }
.fab__lead p { margin-block-end: 1rem; }
.fab__lead p:last-child { margin-block-end: 0; }

/* ============================ HERO ============================ */
.fab__hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(2.2rem, 6vw, 4.2rem) clamp(1.3rem, 4vw, 3rem);
	border: 1px solid var(--fg-line);
	border-radius: 22px;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(141, 101, 233, .16) 0%, transparent 48%),
		radial-gradient(120% 140% at 0% 0%, rgba(36, 186, 239, .14) 0%, transparent 48%),
		linear-gradient(180deg, #141926 0%, #0e121b 100%);
}
.fab__hero::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	block-size: 3px;
	background: var(--fg-grad);
}
.fab__title {
	margin: 1rem 0 0;
	font-size: clamp(1.7rem, 4.6vw, 2.9rem);
	font-weight: 900;
	line-height: 1.45;
	letter-spacing: -.01em;
	background: linear-gradient(92deg, #ffffff 0%, #cfe2ff 55%, #b9f0d2 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #fff;
}
.fab__title strong { -webkit-text-fill-color: initial; color: inherit; }
.fab__hero-lead {
	margin-block-start: 1.1rem;
	max-inline-size: 70ch;
	color: #cdd5e6;
	font-size: clamp(1rem, 1.7vw, 1.12rem);
}
.fab__cta-row {
	margin-block-start: 1.7rem;
	display: flex;
	flex-wrap: wrap;
	gap: .8rem;
}
.fab__btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .8rem 1.5rem;
	border-radius: 999px;
	font-weight: 800;
	font-size: 1rem;
	border: 1px solid transparent;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.fab__btn--primary {
	background: var(--fg-grad);
	color: #0c1018;
	box-shadow: 0 14px 32px -16px rgba(83, 145, 228, .9);
}
.fab__btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(107, 205, 148, .85); }
.fab__btn--ghost {
	background: var(--fg-surface);
	border-color: var(--fg-line);
	color: #e6ebf6;
	backdrop-filter: blur(6px);
}
.fab__btn--ghost:hover { transform: translateY(-2px); border-color: rgba(83, 145, 228, .55); color: #fff; }

/* ============================ STATS ============================ */
.fab__stats {
	margin-block-start: clamp(1.4rem, 3vw, 2rem);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: .8rem;
}
.fab__stat {
	padding: 1.2rem 1rem;
	border: 1px solid var(--fg-line);
	border-radius: 16px;
	background: var(--fg-surface-2);
	text-align: center;
	transition: transform .18s ease, border-color .18s ease;
}
.fab__stat:hover { transform: translateY(-3px); border-color: rgba(83, 145, 228, .5); }
.fab__stat-num {
	display: block;
	font-size: clamp(1.5rem, 3.4vw, 2.1rem);
	font-weight: 900;
	line-height: 1.2;
	background: var(--fg-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.fab__stat-label { display: block; margin-block-start: .35rem; color: var(--fg-muted); font-size: .9rem; font-weight: 600; }

/* ============================ VALUE / WHY CARDS ============================ */
.fab__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: .9rem;
	margin-block-start: 1.3rem;
}
.fab__card {
	padding: 1.3rem;
	border: 1px solid var(--fg-line);
	border-radius: 16px;
	background: var(--fg-surface-2);
	transition: transform .18s ease, border-color .18s ease;
}
.fab__card:hover { transform: translateY(-3px); border-color: rgba(107, 205, 148, .5); }
.fab__card-ic {
	inline-size: 2.6rem;
	block-size: 2.6rem;
	border-radius: 12px;
	display: grid;
	place-items: center;
	font-size: 1.3rem;
	background: linear-gradient(135deg, rgba(141, 101, 233, .26), rgba(36, 186, 239, .2));
	border: 1px solid rgba(83, 145, 228, .35);
	margin-block-end: .8rem;
}
.fab__card-title { font-size: 1.08rem; font-weight: 800; color: var(--fg-ink); margin-block-end: .4rem; }
.fab__card-text { color: #b9c2d4; font-size: .96rem; }

/* ============================ CATEGORY HUB ============================ */
.fab__hub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1rem;
}
.fab__hub-card {
	padding: 1.4rem;
	border: 1px solid var(--fg-line);
	border-radius: 16px;
	background: var(--fg-surface-2);
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.fab__hub-card:hover {
	transform: translateY(-3px);
	border-color: rgba(83, 145, 228, .5);
	box-shadow: 0 18px 40px -22px rgba(83, 145, 228, .8);
}
.fab__hub-head {
	display: flex;
	align-items: center;
	gap: .65rem;
	margin-block-end: .9rem;
	padding-block-end: .8rem;
	border-block-end: 1px solid var(--fg-line);
}
.fab__hub-ic {
	flex: 0 0 auto;
	inline-size: 2.4rem;
	block-size: 2.4rem;
	border-radius: 11px;
	display: grid;
	place-items: center;
	font-size: 1.2rem;
	background: linear-gradient(135deg, rgba(141, 101, 233, .26), rgba(36, 186, 239, .2));
	border: 1px solid rgba(83, 145, 228, .35);
}
.fab__hub-title { font-size: 1.12rem; font-weight: 800; color: #fff; }
.fab__hub-title a { color: #fff; }
.fab__hub-title a:hover { color: var(--fg-accent); }
.fab__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.fab__chip {
	display: inline-flex;
	align-items: center;
	padding: .42rem .85rem;
	border-radius: 999px;
	border: 1px solid var(--fg-line);
	background: var(--fg-surface);
	color: #dbe2f0;
	font-size: .9rem;
	font-weight: 600;
	transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
.fab__chip:hover {
	transform: translateY(-2px);
	border-color: rgba(83, 145, 228, .55);
	background: linear-gradient(135deg, rgba(141, 101, 233, .2), rgba(36, 186, 239, .16));
	color: #fff;
}

/* ============================ TIMELINE ============================ */
.fab__timeline {
	position: relative;
	margin-block-start: 1.2rem;
	padding-inline-start: 1.4rem;
	border-inline-start: 2px solid var(--fg-line);
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}
.fab__tl-item { position: relative; }
.fab__tl-item::before {
	content: "";
	position: absolute;
	inset-inline-start: calc(-1.4rem - 7px);
	inset-block-start: .35rem;
	inline-size: 12px;
	block-size: 12px;
	border-radius: 50%;
	background: var(--fg-grad);
	box-shadow: 0 0 0 4px rgba(14, 18, 27, 1), 0 0 0 6px rgba(83, 145, 228, .25);
}
.fab__tl-year { font-weight: 800; color: var(--fg-accent); font-size: .95rem; }
.fab__tl-text { color: #c1c9d9; font-size: .98rem; }

/* ============================ TEACHERS ============================ */
.fab__teacher-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-block-start: 1.1rem; }
.fab__teacher {
	padding: .42rem .85rem;
	border-radius: 10px;
	border: 1px solid var(--fg-line);
	background: var(--fg-surface);
	color: #cdd5e6;
	font-size: .88rem;
	font-weight: 600;
}

/* ============================ FAQ ============================ */
.fab__faq-list { display: flex; flex-direction: column; gap: .7rem; max-inline-size: 900px; }
.fab__qa {
	border: 1px solid var(--fg-line);
	border-radius: 14px;
	background: var(--fg-surface-2);
	overflow: hidden;
	transition: border-color .18s ease, background .18s ease;
}
.fab__qa[open] { border-color: rgba(83, 145, 228, .45); }
.fab__q {
	display: flex;
	align-items: center;
	gap: .8rem;
	padding: 1rem 1.15rem;
	cursor: pointer;
	font-weight: 700;
	font-size: 1.02rem;
	color: var(--fg-ink);
	list-style: none;
	user-select: none;
}
.fab__q::-webkit-details-marker { display: none; }
.fab__q::before {
	content: "+";
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	inline-size: 1.7rem;
	block-size: 1.7rem;
	border-radius: 8px;
	background: rgba(36, 186, 239, .14);
	color: var(--fg-accent);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
	transition: transform .2s ease, background .2s ease, color .2s ease;
}
.fab__qa[open] .fab__q::before {
	content: "\2212";
	background: var(--fg-grad);
	color: #0e121b;
}
.fab__a { padding: 0 calc(1.15rem + 2.5rem) 1.1rem 1.15rem; color: #c1c9d9; font-size: .98rem; }

/* ============================ FINAL CTA ============================ */
.fab__final {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding: clamp(2rem, 5vw, 3.4rem) 1.3rem;
	border: 1px solid var(--fg-line);
	border-radius: 22px;
	background:
		radial-gradient(110% 140% at 50% 0%, rgba(141, 101, 233, .18) 0%, transparent 55%),
		linear-gradient(180deg, #141926 0%, #0e121b 100%);
}
.fab__final::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	block-size: 3px;
	background: var(--fg-grad);
}
.fab__final h2 {
	font-size: clamp(1.4rem, 3.4vw, 2.1rem);
	font-weight: 900;
	color: #fff;
	margin-block-end: .8rem;
}
.fab__final p { max-inline-size: 60ch; margin-inline: auto; color: #c7cedd; }
.fab__final .fab__cta-row { justify-content: center; }
.fab__social { margin-block-start: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.fab__social a {
	padding: .45rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--fg-line);
	background: var(--fg-surface);
	color: #cdd5e6;
	font-size: .88rem;
	font-weight: 700;
	transition: transform .16s ease, color .16s ease, border-color .16s ease;
}
.fab__social a:hover { transform: translateY(-2px); color: #fff; border-color: rgba(83, 145, 228, .55); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 640px) {
	.fab__a { padding-inline-start: 1.15rem; }
	.fab__hub-grid, .fab__cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.fab *, .fab *::before, .fab *::after { transition: none !important; animation: none !important; }
}
