/* =============================================================================
   Speaker Cards — UI refinement (homepage "Say Hello to Our Speakers" section)
   Scoped to the speakers widget (.elementor-element-c398e20) so nothing else on
   the site is affected. Keeps the existing dark blue/purple glass design language;
   only improves image consistency, hierarchy, equal heights, hover, responsiveness
   and accessibility. No markup, data, or section-layout changes.
   ============================================================================= */

/* Stretch each column so all cards in a row share the same height */
.elementor-element-c398e20 .team-item { display: flex; }

.elementor-element-c398e20 .team-inner-wrap {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ---- Image area: fixed width + identical crop on every card ---------------- */
.elementor-element-c398e20 .image-wrap {
  flex: 0 0 42%;
  max-width: 42%;
  align-self: stretch;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}
.elementor-element-c398e20 .image-wrap a { display: block; width: 100%; height: 100%; }
.elementor-element-c398e20 .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;              /* never stretch/distort */
  object-position: center 22%;    /* keep faces in frame */
  border-radius: 18px;
  display: block;
  transition: transform 0.3s ease;
  will-change: transform;
}
.elementor-element-c398e20 .team-inner-wrap:hover .image-wrap img { transform: scale(1.03); }

/* Studio/whitespace photos (e.g. Satyam Rastogi) — zoom in so the face has the
   same visual weight as the other speakers, without distorting the image. */
.elementor-element-c398e20 .team-inner-wrap:has(a[href*="satyam-rastogi"]) .image-wrap img {
  object-position: center 30%;
  transform: scale(1.22);
  transform-origin: center 34%;
}
.elementor-element-c398e20 .team-inner-wrap:has(a[href*="satyam-rastogi"]):hover .image-wrap img {
  transform: scale(1.25);
}

/* ---- Content column ------------------------------------------------------- */
.elementor-element-c398e20 .team-content {
  flex: 1 1 auto;
  min-width: 0;                   /* enables ellipsis / line-clamp */
  padding: 22px 24px 22px 4px;
  gap: 10px;
}
/* The theme lays .team-content out as column-reverse, which already yields the
   desired hierarchy — Name → Title → Bio, with the Share control at the bottom.
   So we only refine spacing here and must NOT set `order` (that would invert it). */
.elementor-element-c398e20 .info-part { display: flex; flex-direction: column; gap: 6px; }
.elementor-element-c398e20 .contact-part { padding-top: 4px; }

/* Name — highest emphasis, single line */
.elementor-element-c398e20 .team-name { margin: 0; line-height: 1.15; }
.elementor-element-c398e20 .team-name,
.elementor-element-c398e20 .team-name a {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
/* Title — wraps naturally */
.elementor-element-c398e20 .team-title { display: block; line-height: 1.35; }
/* Bio — clamp to 3 lines for equal, tidy cards */
.elementor-element-c398e20 .team-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* ---- Hover: subtle lift + soft blue/purple glow --------------------------- */
.elementor-element-c398e20 .team-inner-wrap:hover {
  transform: translateY(-6px);
  border-color: rgba(146, 124, 255, 0.55);
  box-shadow: 0 18px 40px rgba(74, 58, 190, 0.35),
              0 0 0 1px rgba(146, 124, 255, 0.35);
}

/* ---- Accessibility: visible keyboard focus -------------------------------- */
.elementor-element-c398e20 a:focus-visible,
.elementor-element-c398e20 .social-trigger-btn:focus-visible {
  outline: 2px solid #b9a8ff;
  outline-offset: 3px;
  border-radius: 10px;
}

/* ---- Tablet: 2 per row, reduced spacing ----------------------------------- */
@media (max-width: 1024px) {
  .elementor-element-c398e20 .team-inner-wrap { gap: 16px; }
  .elementor-element-c398e20 .team-content { padding: 16px 18px 16px 4px; }
}

/* ---- Mobile: 1 per row, image on top, full width -------------------------- */
@media (max-width: 767px) {
  .elementor-element-c398e20 .team-inner-wrap { flex-direction: column; gap: 0; }
  .elementor-element-c398e20 .image-wrap {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 11;
    border-radius: 18px 18px 0 0;
  }
  .elementor-element-c398e20 .image-wrap img { border-radius: 18px 18px 0 0; }
  .elementor-element-c398e20 .team-content { padding: 18px 20px 20px; }
}
