/* Page styles: auth */

:root {
  --field: #F3F0F1;
}
html[data-theme=dark] {
  --field: #2A1B24;
}
[dir=rtl] .fa-chevron-right,
[dir=rtl] .send i {
  transform: scaleX(-1);
}
.phero {
  padding: clamp(56px,8vw,96px) 0 clamp(48px,7vw,80px);
}
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--field);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.phero h1 {
  font-size: clamp(3rem,8vw,5.5rem);
  font-weight: 700;
  margin-bottom: 14px;
}
.phero p {
  margin: 0 auto;
  max-width: 520px;
}
.pg {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  padding-block: 56px 90px;
}
.aside {
  display: none;
  border: 1px solid var(--hair);
  background: var(--surface);
  padding: 24px;
}
.aside.open {
  display: block;
}
.fbtn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}
@media(min-width:900px) {
  .pg {
    grid-template-columns: 320px 1fr;
    align-items: start;
  }
  .aside {
    display: block;
    position: sticky;
    top: 96px;
  }
  .fbtn {
    display: none;
  }
}
.fld {
  margin-bottom: 18px;
}
.fld>b,
.fld>label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.fld input[type=text],
.fld input[type=number],
.fld select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid transparent;
  background: var(--field);
  color: var(--text);
  font: inherit;
  outline: 0;
}
.fld input:focus,
.fld select:focus {
  border-color: var(--green);
}
input[type=radio],
input[type=checkbox],
input[type=range] {
  accent-color: var(--green);
}
input[type=range] {
  width: 100%;
}
.prow {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.fbt {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  font: 700 17px var(--bf);
  cursor: pointer;
  transition: .25s;
}
html[data-theme=dark] .fbt {
  color: #1a0612;
}
.fbt:hover {
  background: transparent;
  color: var(--green);
}
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  color: var(--muted);
}
.bar>div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bar select {
  padding: 10px 14px;
  background: var(--field);
  color: var(--text);
  border: 0;
  font: inherit;
}
.li {
  display: grid;
  grid-template-columns: 1fr 112px;
  border: 1px solid var(--hair);
  background: var(--surface);
  margin-bottom: 20px;
  transition: .25s;
}
.li:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}
.lb {
  padding: 24px;
  min-width: 0;
}
.chip {
  display: inline-block;
  padding: 5px 14px;
  background: var(--field);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.lb h3 {
  font-size: 1.35rem;
  line-height: 1.45;
  margin-bottom: 14px;
  font-weight: 600;
}
.lm2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.who {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.av2 {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font: 700 13px var(--hf);
}
html[data-theme=dark] .av2 {
  color: #1a0612;
}
.lm2 i.fa-solid {
  color: var(--green);
  margin-inline-end: 6px;
}
.lr {
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 8px;
  border-inline-start: 1px solid var(--hair);
}
.send {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
}
html[data-theme=dark] .send {
  color: #1a0612;
}
.lr b {
  font: 700 1.05rem var(--hf);
}
.none {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--hair);
}
.pgn {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.pgn button {
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 600 16px var(--bf);
  cursor: pointer;
}
.pgn button.on {
  background: var(--field);
}
.pgn button:hover {
  color: var(--green);
}
@media(max-width:560px) {
  .li {
    grid-template-columns: 1fr 84px;
  }
  .lb {
    padding: 18px;
  }
}

/* ===== MENTORS PAGE ===== */
@media(min-width:1400px) {
  .pg {
    padding-top: clamp(72px,7vw,120px);
  }
  .aside {
    top: 112px;
  }
}
:root {
  --ok: #2E9E6B;
}
.mg {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media(min-width:700px) {
  .mg {
    grid-template-columns: 1fr 1fr;
  }
}
.mc {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--hair);
  padding: 20px 22px 0;
  transition: .25s;
}
.mc:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
}
.mtop {
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: var(--field);
  font: 700 15px var(--hf);
}
.rt i {
  color: var(--gold);
}
.rt sup {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.hp-vendor__verified-badge {
  color: var(--ok);
  font-size: 1.25rem;
}
.mav {
  width: 96px;
  height: 96px;
  margin: 2px auto 14px;
  font-size: 2.3rem;
  overflow: hidden;
  padding: 0;
}
.mav img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mc h3 {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
}
.dot {
  width: 9px;
  height: 9px;
  background: #C9C3C7;
  flex: none;
  border-radius: 50%!important;
}
.dot.on {
  background: var(--ok);
}
.since {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 20px;
}
.mm {
  align-self: stretch;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  padding: 18px 0;
  border-top: 1px solid var(--hair);
  font-size: 14px;
  color: var(--muted);
  text-align: start;
}
.mm span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mm i {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
}
.mf {
  align-self: stretch;
  display: flex;
  justify-content: flex-end;
  padding: 14px 0;
  margin-top: auto;
  border-top: 1px solid var(--hair);
}
.mf .send {
  transition: .2s;
}
.mc:hover .mf .send {
  background: var(--gold);
}
[dir=rtl] .mm {
  text-align: start;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.pgn .nav-links {
  display: contents;
}
.pgn .page-numbers {
  width: 46px;
  height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 600 16px var(--bf);
  cursor: pointer;
}
.pgn .page-numbers.current {
  background: var(--field);
}
.pgn a.page-numbers:hover {
  color: var(--green);
}
.pgn .page-numbers.dots {
  color: var(--muted);
  cursor: default;
}

/* ===== COMMUNITY (FORUM) ===== */
:root {
  --note: #FFF8C2;
  --note-b: #EADF8A;
}
html[data-theme=dark] {
  --note: #3A331A;
  --note-b: #5A4F25;
}
.fm {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 90px;
}
@media(min-width:1400px) {
  .fm {
    padding-top: clamp(72px,7vw,120px);
  }
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}
.crumb i {
  color: var(--muted);
}
.crumb a:hover {
  color: var(--green);
}
.note {
  background: var(--note);
  border: 1px solid var(--note-b);
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 34px;
}
.note a {
  text-decoration: underline;
  font-weight: 700;
  color: var(--green);
}
.ft {
  font-size: clamp(1.9rem,4vw,2.6rem);
  font-weight: 600;
  margin-bottom: 22px;
}
.box {
  border: 1px solid var(--hair);
  background: var(--surface);
  margin-bottom: 22px;
}
.bh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  background: var(--green);
  color: #fff;
  font: 700 15px var(--bf);
}
html[data-theme=dark] .bh {
  color: #1a0612;
}
.bh i {
  margin-inline-end: 10px;
}
.bh em {
  font-style: italic;
  font-weight: 600;
  width: 340px;
  text-align: center;
}
.fr {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hair);
}
.fr:first-of-type {
  border-top: 0;
}
.fr:nth-child(even) {
  background: var(--panel);
}
@media(min-width:760px) {
  .fr {
    grid-template-columns: 1fr 340px;
  }
  .fr .lp {
    border-inline-start: 1px solid var(--hair);
  }
}
.fi {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 20px;
  min-width: 0;
}
.fic {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-size: 1.5rem;
}
.fi h3 {
  font: 600 1.05rem var(--bf);
  margin-bottom: 4px;
}
.fi h3 a {
  color: var(--green);
}
.fi h3 a:hover {
  text-decoration: underline;
}
.fi small {
  color: var(--muted);
  font-size: 13px;
}
.lp {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  min-width: 0;
  border-top: 1px solid var(--hair);
}
@media(min-width:760px) {
  .lp {
    border-top: 0;
  }
}
.lp.none {
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.lav {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--green);
  color: #fff;
  font: 700 1rem var(--hf);
}
html[data-theme=dark] .lav {
  color: #1a0612;
}
.lav img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lt2 {
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
}
.lt2 a {
  display: block;
  color: var(--green);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lt2 a:hover {
  text-decoration: underline;
}
.lg2 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  margin-bottom: 22px;
  font-size: 15px;
}
.lg2 span,
.lg2 a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lg2 a {
  color: var(--green);
}
.lg2 a:hover {
  text-decoration: underline;
}
.pip {
  width: 12px;
  height: 12px;
  border-radius: 50%!important;
  background: var(--green);
}
.pip.g {
  background: #8C8590;
}
.sts {
  display: grid;
  grid-template-columns: repeat(2,1fr);
}
@media(min-width:760px) {
  .sts {
    grid-template-columns: repeat(5,1fr);
  }
}
.sts div {
  padding: 20px 10px;
  text-align: center;
  border-inline-start: 1px solid var(--hair);
  border-top: 1px solid var(--hair);
}
.sts div:first-child {
  border-inline-start: 0;
}
@media(min-width:760px) {
  .sts div {
    border-top: 0;
  }
}
.sts b {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font: 600 1.35rem var(--hf);
}
.sts b i {
  color: var(--green);
  font-size: 1.1rem;
}
.sts span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}
.sf {
  padding: 12px 20px;
  background: var(--panel);
  border-top: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
}
.sf i.fa-solid {
  margin-inline-end: 7px;
}
.sf em {
  color: var(--green);
}

/* ===== AUTH (shared split layout: illustration + form card) ===== */
.auth {
  min-height: calc(100vh - 72px); /* fill the viewport minus the header */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.5vh, 32px) 20px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 1200px;
}
.auth-illustration {
  display: none; /* تُعرض فقط على شاشات الحاسوب (≥900px)؛ على التابلت والجوال: النموذج فقط */
  min-width: 0;
  margin: 0;
}
.auth-illustration img {
  width: 100%;
  max-width: 560px;
  max-height: min(78vh, 620px);
  height: auto;
  object-fit: contain;
}
@media (min-width: 900px) {
  .auth-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
}
.auth-card {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding: 32px 36px;
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: var(--surface);
}
.auth-card h1 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 700;
  margin: 0 0 8px;
}
.auth-card .sub2 {
  color: var(--muted);
  margin: 0 0 20px;
}
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-card .fld {
  margin: 0;
}
.auth-card .fld > b,
.auth-card .fld > label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.auth-card .fld input[type=text],
.auth-card .fld input[type=email],
.auth-card .fld input[type=password],
.auth-card .fld input[type=number],
.auth-card .fld select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: 0;
  transition: border-color .15s;
}
.auth-card .fld input:focus,
.auth-card .fld select:focus {
  border-color: var(--green);
}
.auth-card .fbt {
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 16px;
  margin-top: 0;
}
.auth-card .alt {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
}
.auth-card .alt a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
}
.auth-card .demo {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--note);
  border: 1px solid var(--note-b);
  border-radius: 12px;
  font-size: 14px;
  display: none;
}

/* caption row above the password field (label + "Forgot password?" link) */
.fld-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.fld-head > label,
.fld-head > b {
  display: block;
  font-weight: 600;
}
.fld-head .fl-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}
.fld-head .fl-link:hover {
  text-decoration: underline;
}

/* "Back to Sign In" style link under the form */
.auth .note-link {
  display: block;
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
[dir=rtl] .note-link i {
  transform: scaleX(-1);
}
.auth .note-link a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}
.auth .note-link a:hover {
  text-decoration: underline;
}

/* ===== Segmented radio cards ("I want to": Learn / Teach) ===== */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
  overflow: hidden;
  clip-path: inset(50%);
}
.seg-opt {
  position: relative;
  margin: 0;
}
.seg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--field);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}
.seg-btn i {
  font-size: 18px;
  color: var(--muted);
  transition: color .15s;
}
.seg-opt:hover .seg-btn {
  border-color: var(--green);
}
.seg-opt input:checked + .seg-btn {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}
.seg-opt input:checked + .seg-btn i {
  color: var(--green);
}
.seg-opt input:focus-visible + .seg-btn {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

@media (max-width: 899px) {
  .auth {
    min-height: auto;
    padding: 16px 16px 56px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .auth-card {
    padding: 24px;
    border-radius: 16px;
  }
}
@media (max-width: 479px) {
  .seg-btn {
    font-size: 14px;
    gap: 6px;
  }
}
/* ===== Social sign-in buttons ===== */
.auth-card .or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.auth-card .or::before,
.auth-card .or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hair);
}
.auth-card .soc {
  display: grid;
  grid-template-columns: 1fr 1fr; /* exactly equal widths */
  gap: 12px;
}
.auth-card .sbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px; /* same as .fbt */
  padding: 0 14px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.auth-card .sbtn:hover {
  border-color: var(--green);
}
.auth-card .sbtn i {
  font-size: 20px;
  width: 22px;
  text-align: center;
}
@media(max-width:420px) {
  .auth-card .soc {
    grid-template-columns: 1fr;
  }
}

/* ===== AUTH: "check your inbox" (register) + unverified-resend (login) ===== */
.vsent { text-align: center; padding: 4px 0 2px; }
.vsent .vsent-ic { width: 64px; height: 64px; margin: 4px auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 26px; }
.vsent h2 { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.vsent p { color: var(--muted); margin: 0 0 12px; line-height: 1.9; }
.vsent-mail { direction: ltr; display: inline-block; background: var(--field); border-radius: 10px; padding: 8px 16px; color: var(--text); font-weight: 600; word-break: break-all; }
.vsent-btn { width: 100%; margin-top: 16px; justify-content: center; }
.vsent-note { color: var(--green); font-weight: 600; margin: 12px 0 0; }
.unver { line-height: 1.8; }
.alink { background: none; border: 0; padding: 0; color: var(--green); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; margin-top: 6px; }
.unver-done { display: inline-block; margin-top: 6px; color: var(--green); font-weight: 700; }
.vfy { text-align: center; }
.vfy .vfy-ic { width: 64px; height: 64px; margin: 4px auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 26px; }
.vfy p { color: var(--muted); line-height: 1.9; }
