/* Team member profile — Elementor page family (fady-salib, magy-salib). */
body #sec-team-profile.opx-team-profile {
  box-sizing: border-box;
  margin: 50px 0;
  padding: 0 5%;
}

body #sec-team-profile .opx-team-profile__inner.kit-boxed {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding: 0;
  box-sizing: border-box;
}

body #sec-team-profile .opx-team-profile__grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  box-sizing: border-box;
}

body #sec-team-profile .opx-team-profile__aside {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  margin: 4%;
  padding: 2em;
  background: var(--wp--preset--color--surface);
  border-radius: 20px;
  box-shadow: 0 20px 50px var(--wp--preset--color--shadow);
  text-align: center;
}

body #sec-team-profile .opx-team-profile__role + .opx-team-profile__divider {
  margin-top: 54px;
}

body #sec-team-profile .opx-team-profile__divider + .opx-team-profile__quote {
  margin-top: 12px;
}

body #sec-team-profile .opx-team-profile__aside .wp-block-image {
  margin: 0 0 8px;
}

body #sec-team-profile .opx-team-profile__aside .wp-block-image {
  margin-inline: auto;
}

body #sec-team-profile .opx-team-profile__aside .wp-block-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

body #sec-team-profile .opx-team-profile__name {
  margin: 8px 0 6px;
  text-align: center;
  font-size: var(--wp--preset--font-size--headline-m);
  line-height: var(--wp--custom--line-height--headline-m, 1.46);
}

body #sec-team-profile .opx-team-profile__role {
  margin: 0;
  text-align: center;
  color: var(--wp--preset--color--accent);
  font-size: 16px;
  line-height: 29px;
  font-weight: 300;
}

body #sec-team-profile .opx-team-profile__social {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 16px 0 20px;
}

body #sec-team-profile .opx-team-profile__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--surface);
  text-decoration: none;
}

body #sec-team-profile .opx-team-profile__social a:hover,
body #sec-team-profile .opx-team-profile__social a:focus-visible {
  opacity: 0.9;
}

body #sec-team-profile .opx-team-profile__social svg,
body #sec-team-profile .opx-team-profile__social img {
  width: 15px;
  height: 15px;
  display: block;
}

/* core/html LinkedIn (class opx-team-profile__linkedin) — match Elementor social-icons 15px */
body #sec-team-profile .opx-team-profile__aside .wp-block-html {
  margin: 16px 0 20px;
  text-align: center;
  line-height: 0;
}

body #sec-team-profile .opx-team-profile__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--surface);
  text-decoration: none;
}

body #sec-team-profile .opx-team-profile__linkedin:hover,
body #sec-team-profile .opx-team-profile__linkedin:focus-visible {
  opacity: 0.9;
}

body #sec-team-profile .opx-team-profile__linkedin svg {
  width: 15px;
  height: 15px;
  max-width: 15px;
  max-height: 15px;
  display: block;
  flex-shrink: 0;
}

body #sec-team-profile hr.opx-team-profile__divider.wp-block-separator,
body #sec-team-profile .opx-team-profile__divider.wp-block-separator {
  margin: 20px auto 0;
  width: 100%;
  max-width: 100%;
  height: 0 !important;
  min-height: 0;
  max-height: 0;
  flex-shrink: 0;
  border: none !important;
  border-top: 1px solid var(--wp--preset--color--border) !important;
  background: none !important;
  background-color: transparent !important;
  color: var(--wp--preset--color--border);
  opacity: 1 !important;
}

body #sec-team-profile .opx-team-profile__divider.has-css-opacity,
body #sec-team-profile .opx-team-profile__divider.has-alpha-channel-opacity {
  opacity: 1 !important;
}

body #sec-team-profile .opx-team-profile__quote {
  margin: 0;
  text-align: center;
  line-height: 35px;
}

body #sec-team-profile .opx-team-profile__main {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 30px 0 0;
  padding: 0;
}

body #sec-team-profile .opx-team-profile__title-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  margin: 0 0 20px;
}

body #sec-team-profile .opx-team-profile__title-row h1 {
  margin: 0;
}

body #sec-team-profile .opx-team-profile__credentials {
  margin: 5px 0 -5px 5px;
}

/* Michael Salib (and same Elementor widget order): social icons before divider */
body
  #sec-team-profile.opx-team-profile--social-first
  .opx-team-profile__social {
  margin: 16px 0 0;
}

body
  #sec-team-profile.opx-team-profile--social-first
  .opx-team-profile__aside
  .wp-block-html {
  margin: 16px 0 0;
}

body
  #sec-team-profile.opx-team-profile--social-first
  .opx-team-profile__divider {
  margin: 12px auto 0;
}

body #sec-team-profile .opx-team-profile__main > p.is-style-body {
  margin: 0 0 14.4px;
  line-height: 29px;
}

body #sec-team-profile .opx-team-profile__main > p.is-style-body:last-of-type {
  margin-bottom: 0;
}

body #sec-team-profile .opx-team-profile__cta {
  margin-top: 20px;
}

body #sec-team-profile .opx-team-profile__cta .wp-block-button__link {
  border-radius: 16px;
  padding: 15px 40px;
  font-family: var(--wp--preset--font-family--poppins);
  font-size: var(--wp--preset--font-size--card-title);
  font-weight: 500;
  line-height: 1;
  border: 1px solid var(--wp--preset--color--accent);
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--surface);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

/* Hover: white fill, accent text + border (production Elementor / theme.json) */
body #sec-team-profile .opx-team-profile__cta .wp-block-button__link:hover,
body
  #sec-team-profile
  .opx-team-profile__cta
  .wp-block-button__link:focus-visible {
  background-color: var(--wp--preset--color--surface) !important;
  color: var(--wp--preset--color--accent) !important;
  border-color: var(--wp--preset--color--accent) !important;
  transform: none;
}

@media (max-width: 1024px) {
  body #sec-team-profile.opx-team-profile {
    padding: 8px 5% 16px;
    margin-bottom: 0;
  }

  body #sec-team-profile .opx-team-profile__aside {
    width: 100%;
    max-width: 922px;
    margin: 0 auto;
    padding: 45px 45px 36px;
    border-radius: 16px;
    box-sizing: border-box;
  }

  body #sec-team-profile .opx-team-profile__aside .wp-block-image {
    max-width: 266px;
  }

  body #sec-team-profile .opx-team-profile__main {
    margin: 19px 0 0;
    padding: 10px;
    box-sizing: border-box;
  }

  body #sec-team-profile .opx-team-profile__main > p.is-style-body {
    margin-bottom: 12px;
  }

  body #sec-team-profile .opx-team-profile__quote {
    margin-bottom: 14.4px;
    line-height: 35px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  body #sec-team-profile .opx-team-profile__quote {
    margin-top: 26px;
  }
}

@media (max-width: 767px) {
  body #sec-team-profile .opx-team-profile__quote {
    line-height: 27px;
  }
  body #sec-team-profile.opx-team-profile {
    padding: 0 10% 16px 4%;
  }

  body #sec-team-profile .opx-team-profile__aside {
    max-width: 691px;
    padding: 45px 45px 36px;
  }

  body #sec-team-profile .opx-team-profile__aside .wp-block-image {
    max-width: 192px;
  }

  body #sec-team-profile .opx-team-profile__main {
    padding: 10px 0;
  }

  body #sec-team-profile .opx-team-profile__cta .wp-block-button__link {
    padding: 13px 30px;
    font-size: 20px;
    line-height: 20px;
  }
}

@media (max-width: 390px) {
  body #sec-team-profile.opx-team-profile {
    padding: 22px 39px 16px 15.6px;
  }

  body #sec-team-profile .opx-team-profile__aside {
    max-width: 335px;
    padding: 36px;
  }

  body #sec-team-profile .opx-team-profile__aside .wp-block-image {
    max-width: 171px;
  }

  body #sec-team-profile .opx-team-profile__main {
    padding: 0;
  }
}

@media (min-width: 1025px) {
  body #sec-team-profile.opx-team-profile {
    padding: 0 10px 25px;
  }

  body #sec-team-profile .opx-team-profile__grid {
    flex-direction: row;
    align-items: stretch;
  }

  body #sec-team-profile .opx-team-profile__aside {
    flex: 0 0 31%;
    max-width: 436px;
    width: 31%;
    margin: 1%;
    padding: 45px 45px 36px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    box-sizing: border-box;
  }

  body #sec-team-profile .opx-team-profile__aside::after {
    content: "";
    flex: 1 1 auto;
    min-height: 0;
  }

  body #sec-team-profile .opx-team-profile__main {
    flex: 0 0 845px;
    width: 845px;
    max-width: 845px;
    min-width: 0;
    margin: 10px 76px 0 39px;
    padding: 10px;
    box-sizing: border-box;
  }

  body #sec-team-profile .opx-team-profile__main > p.is-style-body {
    font-size: 18px;
  }
}
