/* SHIAS-0001 owned layer: partners grid + join/contact forms + shared bits.
   Uses doob theme tokens (--color-*) so it follows the site identity. */

/* ---------- shared ---------- */
/* honeypot: sr-only clip pattern — NEVER use left:-9999px (extends RTL scroll area) */
.shias-hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0); clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0; pointer-events: none;
}

.shias-page .section-title .title { margin-bottom: 12px; }

.shias-loading {
  text-align: center;
  color: var(--color-body, #acacac);
  padding: 60px 0;
  font-size: 18px;
}

/* ---------- language toggle — round icon, grouped with the header buttons ---------- */
.shias-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0); clip-path: inset(50%);
  white-space: nowrap;
}
.mainmenu .shias-lang-item { display: flex; align-items: center; }
.shias-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  cursor: pointer;
  border: 1.5px solid var(--color-border, hsla(0, 0%, 100%, .16));
  border-radius: 50%;
  background: transparent;
  color: var(--color-heading, #fff);
  transition: border-color .28s ease, box-shadow .28s ease, transform .28s ease, background .28s ease;
}
.mainmenu .shias-lang-item .shias-lang-btn { margin-inline-start: 8px; }
.shias-lang-globe { flex: 0 0 auto; opacity: .9; display: block; }
@media (hover: hover) {
  .shias-lang-btn:hover {
    border-color: transparent;
    background: var(--shias-grad);
    color: #fff;
    box-shadow: 0 6px 16px rgba(227, 63, 161, .3);
    transform: translateY(-2px);
  }
}
.shias-lang-btn:active { transform: scale(.96); }
.shias-lang-btn:focus-visible { outline: 2px solid #E33FA1; outline-offset: 3px; }
/* mobile menu variant */
.mainmenu-item .shias-lang-item { margin-top: 14px; }
.mainmenu-item .shias-lang-btn { width: 46px; height: 46px; }

/* ---------- English mode (dir=ltr) refinements ---------- */
html.shias-en { direction: ltr; }
html.shias-en body { text-align: left; }
/* keep the header logo on the right / nav flow readable in LTR */
html.shias-en .mainmenu,
html.shias-en .mainmenu-item { direction: ltr; }
/* Latin-friendly type for English */
html.shias-en body,
html.shias-en .title,
html.shias-en .description,
html.shias-en .subtitle { letter-spacing: 0; }

/* ---------- client-panel login pill (menus) — theme-gradient identity ---------- */
.mainmenu .shias-login-item { display: flex; align-items: center; }
.mainmenu .shias-login-item > a,
.mainmenu-item .shias-login-item > a {
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: linear-gradient(var(--color-blackest, #0f0f11), var(--color-blackest, #0f0f11)) padding-box,
              var(--shias-grad) border-box;
  color: #fff !important;
  display: inline-block;
  transition: box-shadow .28s ease, transform .28s ease, filter .28s ease;
}
.mainmenu .shias-login-item > a {
  padding: 7px 20px !important;
  line-height: 1.6 !important;
  height: auto !important;
  margin-block: auto;
  margin-inline-start: 8px;
}
.mainmenu-item .shias-login-item > a {
  padding: 10px 24px !important;
  margin-top: 14px;
}
@media (hover: hover) {
  .shias-login-item > a:hover {
    background: var(--shias-grad) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(227, 63, 161, .35);
    transform: translateY(-2px);
  }
}
.shias-login-item > a:active { transform: scale(.96); }
.shias-login-item > a:focus-visible {
  outline: 2px solid #E33FA1;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .shias-login-item > a, .shias-login-item > a:hover { transition: none; transform: none; }
}

/* ---------- forms (join page select + response messages) ---------- */
/* the doob theme skips input[type=url] — match it to the themed text inputs */
.shias-form input[type="url"] {
  background: transparent;
  color: var(--color-body, #acacac);
  border: 2px solid var(--color-border, hsla(0, 0%, 100%, .1));
  border-radius: 10px;
  height: 70px;
  padding: 0 20px;
  font-size: 16px;
  width: 100%;
}
.shias-form input[type="url"]:focus { border-color: var(--color-primary, #059DFF); outline: none; }

.shias-select {
  width: 100%;
  background: var(--color-blackest, #0f0f11);
  color: var(--color-body, #acacac);
  border: 2px solid var(--color-border, hsla(0, 0%, 100%, .1));
  border-radius: 8px;
  height: 60px;
  padding: 0 20px;
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23acacac' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 20px center;
}
.shias-select:focus { border-color: var(--color-primary, #059DFF); outline: none; }
.shias-select option { background: var(--color-blackest, #0f0f11); }

.shias-response { display: none; margin-top: 20px; padding: 14px 18px; border-radius: 8px; font-size: 16px; line-height: 1.7; }
.shias-response.is-ok { display: block; border: 1px solid #2ecc71; color: #2ecc71; background: rgba(46, 204, 113, .08); }
.shias-response.is-err { display: block; border: 1px solid #e74c3c; color: #e74c3c; background: rgba(231, 76, 60, .08); }
.shias-form button[disabled] { opacity: .6; cursor: wait; }

/* theme identity gradient (measured from the live btn-default) */
:root {
  --shias-grad: linear-gradient(95deg, #059DFF 15%, #6549D5 45%, #E33FA1 75%, #FB5343 100%);
}

/* the form response box is empty until a message arrives — no floating bordered box */
.wpcf7-response-output { display: none; border: 0; margin: 0; padding: 0; }

/* contact page: the three info cards share one height (موقعنا wraps two lines) */
.elementor-3596 .single-service,
.elementor-3596 .single-service > .service { height: 100%; }

/* google-maps embed: night mode matching the site (cross-origin iframe -> CSS filter) */
.elementor-widget-google_maps .elementor-custom-embed { border-radius: 14px; overflow: hidden; }
.elementor-widget-google_maps iframe {
  filter: invert(90%) hue-rotate(180deg) brightness(.92) contrast(.92) saturate(.4);
  border: 1px solid var(--color-border, hsla(0, 0%, 100%, .1));
  border-radius: 14px;
  display: block;
}

/* nav links: hover/current take the theme gradient instead of the lone blue */
.mainmenu > li > a { transition: color .28s ease; }
.mainmenu > li:not(.shias-login-item):hover > a,
.mainmenu > li.current-menu-item:not(.shias-login-item) > a,
.mainmenu-item li:not(.shias-login-item):hover > a,
.mainmenu-item li.current-menu-item:not(.shias-login-item) > a {
  background: var(--shias-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #E33FA1 !important; /* fallback if background-clip:text unsupported */
}

/* ---------- join-page benefits ---------- */
.shias-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.shias-benefits li {
  background: var(--color-blackest, #0f0f11);
  border: 1px solid var(--color-border, hsla(0, 0%, 100%, .1));
  border-radius: 14px;
  padding: 22px 24px;
  color: var(--color-body, #acacac);
  font-size: 15px;
  line-height: 1.9;
}
.shias-benefits li strong {
  display: block;
  color: var(--color-heading, #fff);
  font-size: 17px;
  margin-bottom: 6px;
}
@media (max-width: 767px) {
  .shias-benefits { grid-template-columns: 1fr; }
}

/* ---------- partners ---------- */
.shias-partners { display: flex; flex-direction: column; gap: 30px; }

.shias-partner {
  background: var(--color-blackest, #0f0f11);
  border: 1px solid var(--color-border, hsla(0, 0%, 100%, .1));
  border-radius: 14px;
  padding: 20px 24px;
}

.shias-partner-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.shias-partner-avatar {
  width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  border: 2px solid var(--color-border, hsla(0, 0%, 100%, .1));
  background: var(--color-lessdark, #1e1e1e);
}
.shias-partner-info { flex: 1 1 220px; min-width: 0; }
.shias-partner-name { color: var(--color-heading, #fff); font-size: 18px; margin: 0 0 4px; }
.shias-partner-desc { color: var(--color-body, #acacac); font-size: 13.5px; margin: 0; line-height: 1.6; }
.shias-partner-visit { flex: 0 0 auto; }

.shias-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 225px));
  gap: 14px;
  justify-content: flex-start;
}
.shias-video {
  display: block; text-decoration: none;
  background: var(--color-lessdark, #1e1e1e);
  border: 1px solid var(--color-border, hsla(0, 0%, 100%, .1));
  border-radius: 10px; overflow: hidden;
  transition: transform .28s ease, border-color .28s ease;
}
.shias-video-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.shias-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shias-video-thumb::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 36px; height: 36px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath d='M66.5 7.7c-.8-2.9-3.1-5.2-6-6C55.8.5 34 .5 34 .5s-21.8 0-27.5 1.2c-2.9.8-5.2 3.1-6 6C-.7 13.4-.7 24-.7 24s0 10.6 1.2 16.3c.8 2.9 3.1 5.2 6 6C12.2 47.5 34 47.5 34 47.5s21.8 0 27.5-1.2c2.9-.8 5.2-3.1 6-6C68.7 34.6 68.7 24 68.7 24s0-10.6-1.2-16.3z' fill='%23f00'/%3E%3Cpath d='M45 24L27 14v20z' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .92;
}
.shias-video-body { padding: 9px 11px 11px; }
.shias-video-title {
  color: var(--color-heading, #fff); font-size: 12.5px; line-height: 1.55; margin: 0 0 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(1.55em * 2);
}
.shias-video-date { color: var(--color-midgray, #878787); font-size: 11px; margin: 0; }

.shias-partner-error { color: var(--color-midgray, #878787); font-size: 14px; padding: 8px 0; }

@media (hover: hover) {
  .shias-video:hover { transform: translateY(-4px); border-color: var(--color-primary, #059DFF); }
}
@media (prefers-reduced-motion: reduce) {
  .shias-video { transition: none; }
}
@media (max-width: 575px) {
  .shias-videos { grid-template-columns: repeat(2, 1fr); }
  .shias-partner { padding: 16px; }
}
