/* ==========================================================================
   Pages: «من نحن» + landing with registration form
   ========================================================================== */

.yf-about, .yf-landing { background: var(--yf-paper); }
.yf-section { padding: clamp(64px, 9vw, 104px) 0; }

/* ---------- About hero ---------- */
.yf-ahero { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 88px); background: radial-gradient(50% 60% at 12% 42%, rgba(253, 207, 54, .10), transparent 70%), var(--yf-ink); }
.yf-ahero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.yf-ahero__title { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.25; margin-bottom: 18px; }
.yf-ahero__quote { position: relative; margin: 0 0 18px; padding: 16px 20px; border-inline-start: 4px solid var(--yf-yellow); background: rgba(255, 255, 255, .04); border-radius: 12px; display: flex; gap: 12px; }
.yf-ahero__quote .yf-icon { flex: none; color: var(--yf-yellow); margin-top: 4px; }
.yf-ahero__quote p { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.7; color: var(--yf-on-dark); }
.yf-ahero__lead { color: var(--yf-muted-dark); font-size: 18px; max-width: 600px; margin-bottom: 28px; }
.yf-ahero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.yf-ahero .yf-crumbs { margin-bottom: 18px; }
.yf-ahero__media { position: relative; justify-self: center; width: min(400px, 100%); aspect-ratio: 1 / 1.1; }
.yf-ahero__disc { position: absolute; inset: auto 0 0 0; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 30%, var(--yf-yellow-2), var(--yf-yellow) 45%, #C99A10 100%); box-shadow: 0 30px 80px rgba(253, 207, 54, .22); }
.yf-ahero__photo { position: absolute; inset-inline: 5%; bottom: 0; width: 90%; height: auto; max-height: 112%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35)); }
.yf-ahero__years { position: absolute; inset-inline-start: -6%; bottom: 10%; margin: 0; display: grid; padding: 14px 18px; border-radius: 18px; background: var(--yf-ink-2); border: 1px solid var(--yf-ink-3); box-shadow: var(--yf-shadow-dark); text-align: center; }
.yf-ahero__years b { font-size: 34px; line-height: 1.1; color: var(--yf-yellow); }
.yf-ahero__years span { font-size: 13px; color: var(--yf-muted-dark); }
@media (max-width: 900px) {
	.yf-ahero__grid { grid-template-columns: 1fr; }
	.yf-ahero__media { order: -1; width: min(300px, 78%); }
	.yf-ahero__years { inset-inline-start: -10%; }
}

/* ---------- Specialties ---------- */
.yf-spec { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.yf-spec__item { padding: 28px 24px; border-radius: var(--yf-radius); background: var(--yf-white); border: 1px solid var(--yf-line); box-shadow: var(--yf-shadow); }
.yf-spec__icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--yf-ink); color: var(--yf-yellow); margin-bottom: 16px; }
.yf-spec__title { font-size: 20px; margin-bottom: 8px; }
.yf-spec__item p { color: var(--yf-muted); font-size: 16px; margin: 0; }
@media (max-width: 1000px) { .yf-spec { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .yf-spec { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.yf-timeline { list-style: none; position: relative; padding-inline-start: 28px; }
.yf-timeline::before { content: ""; position: absolute; inset-inline-start: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--yf-yellow), rgba(253, 207, 54, .1)); }
.yf-timeline__item { position: relative; padding-bottom: 28px; }
.yf-timeline__item::before { content: ""; position: absolute; inset-inline-start: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--yf-ink); border: 3px solid var(--yf-yellow); }
.yf-timeline__years { display: inline-block; font-weight: 800; color: var(--yf-yellow); margin-bottom: 8px; }
.yf-timeline__card { padding: 22px 24px; border-radius: var(--yf-radius); background: var(--yf-ink-2); border: 1px solid var(--yf-ink-3); }
.yf-timeline__role { font-size: 20px; margin-bottom: 2px; text-align: start; }
.yf-timeline__company { color: var(--yf-muted-dark); margin-bottom: 12px; text-align: start; }
.yf-timeline__tasks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.yf-timeline__tasks li { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 14px; color: var(--yf-on-dark); }

/* ---------- Education + skills ---------- */
.yf-edu { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.yf-skills { list-style: none; display: grid; gap: 16px; margin-top: 28px; }
.yf-skill { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.yf-skill__name { font-weight: 700; text-align: start; }
.yf-skill__val { font-weight: 800; color: var(--yf-yellow-ink); }
.yf-skill__bar { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: #ECE8E0; overflow: hidden; }
.yf-skill__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--yf-yellow), #E9B40F); }
.yf-edu__stats { list-style: none; display: grid; gap: 14px; }
.yf-edu__stats li { padding: 22px 24px; border-radius: var(--yf-radius); background: var(--yf-ink); color: var(--yf-on-dark); }
.yf-edu__stats b { display: block; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; color: var(--yf-yellow); text-align: start; }
.yf-edu__stats span { color: var(--yf-muted-dark); }
@media (max-width: 900px) { .yf-edu { grid-template-columns: 1fr; } .yf-edu__stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .yf-edu__stats { grid-template-columns: 1fr; } }

/* ---------- Results ---------- */
.yf-results { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.yf-result { grid-column: span 2; position: relative; overflow: hidden; min-height: 300px; border-radius: 20px; background: var(--yf-ink-2); border: 1px solid var(--yf-ink-3); display: flex; align-items: flex-end; }
.yf-result:nth-child(4), .yf-result:nth-child(5) { grid-column: span 3; }
.yf-result__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .4s var(--yf-ease), opacity .3s; }
.yf-result:hover .yf-result__img { transform: scale(1.04); opacity: .4; }
.yf-result::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(20, 17, 18, .92) 85%); }
.yf-result__body { position: relative; z-index: 1; padding: 24px; }
.yf-result__title { font-size: 20px; line-height: 1.45; margin-bottom: 6px; color: var(--yf-on-dark); }
.yf-result__body p { margin: 0; color: var(--yf-yellow); font-weight: 700; font-size: 15px; }
@media (max-width: 960px) { .yf-results { grid-template-columns: 1fr 1fr; } .yf-result, .yf-result:nth-child(4), .yf-result:nth-child(5) { grid-column: span 1; } .yf-result:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 560px) { .yf-results { grid-template-columns: 1fr; } .yf-result:nth-child(5) { grid-column: auto; } .yf-result { min-height: 240px; } }

/* ---------- Landing with form ---------- */
.yf-landing__hero .yf-page-hero__title { max-width: 860px; }
.yf-landing__jump { margin: 24px 0 0; }
.yf-landing__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(24px, 4vw, 48px); align-items: start; padding-top: 48px; padding-bottom: 72px; }
.yf-landing__content { background: var(--yf-white); border: 1px solid var(--yf-line); border-radius: var(--yf-radius); padding: clamp(22px, 4vw, 44px); box-shadow: var(--yf-shadow); }
.yf-landing__content h2:first-child, .yf-landing__content > *:first-child { margin-top: 0; }
.yf-landing__content .yf-facts { padding: 20px 24px; border-radius: 16px; background: #FFFBEA; border: 1px solid #F3E3A6; }
.yf-landing__content .yf-facts p { margin: 0 0 6px; }
.yf-landing__content ol li::marker { color: var(--yf-yellow-ink); font-weight: 800; }
.yf-landing__aside { position: sticky; top: calc(var(--yf-header-h) + 20px); }
.admin-bar .yf-landing__aside { top: calc(var(--yf-header-h) + 52px); }
.yf-reg-card { padding: 26px 24px; border-radius: 22px; background: var(--yf-white); border: 2px solid var(--yf-yellow); box-shadow: 0 20px 50px rgba(20, 16, 17, .12); }
.yf-reg-card__title { font-size: 22px; margin-bottom: 6px; }
.yf-reg-card__text { color: var(--yf-muted); font-size: 15px; margin-bottom: 18px; }
@media (min-width: 961px) { .yf-landing__jump { display: none; } }
@media (max-width: 960px) {
	.yf-landing__grid { grid-template-columns: 1fr; }
	.yf-landing__aside { position: static; }
}

/* LTR snippets (numbers, English job titles) still align to the RTL start edge. */
.yf-edu__stats b, .yf-timeline__role, .yf-timeline__company, .yf-skill__name, .yf-spec__title { text-align: right; }
