/**
 * Leader / Executive Card Element - UX Builder
 * Category: A Elements
 */

.a-leader-card {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
}

.a-leader-card-inner {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: var(--a-card-min-h, 320px);
  border-radius: var(--a-card-radius, 16px);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* Card Hover */
.a-leader-card:hover .a-leader-card-inner {
  border-color: rgba(92, 124, 250, 0.35);
}

/* Position: Image on Right */
.a-leader-card.img-right .a-leader-card-inner {
  flex-direction: row-reverse;
}

/* Image Wrap */
.a-leader-image-wrap {
  position: relative;
  flex: 0 0 var(--a-img-width, 42%);
  width: var(--a-img-width, 42%);
  min-width: 160px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  z-index: 1;
}

/* Slanted Clip Path on Image Area */
.a-leader-card.slant-skew .a-leader-image-wrap {
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
  -webkit-clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.a-leader-card.img-right.slant-skew .a-leader-image-wrap {
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
  -webkit-clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.a-leader-card.slant-cut .a-leader-image-wrap {
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
  -webkit-clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.a-leader-card.slant-none .a-leader-image-wrap {
  clip-path: none;
  -webkit-clip-path: none;
}

.a-leader-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
}

.a-leader-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.a-leader-image svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.a-leader-card:hover .a-leader-image img,
.a-leader-card:hover .a-leader-image svg {
  transform: scale(1.05);
}

/* Content Area */
.a-leader-content {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 34px 36px 30px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  z-index: 2;
}

/* Name */
.a-leader-name {
  font-family: inherit;
  font-size: var(--a-name-size, 30px);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--a-name-color, #ffffff);
  margin: 0 0 12px 0;
  word-wrap: break-word;
  transition: color 0.25s ease;
}

/* Accent Line */
.a-leader-line {
  width: var(--a-line-w, 36px);
  height: var(--a-line-h, 3px);
  background: var(--a-line-color, #5c7cfa);
  border-radius: 2px;
  margin-bottom: 20px;
}

/* Bio / Description */
.a-leader-bio {
  font-family: inherit;
  font-size: var(--a-bio-size, 14px);
  line-height: 1.65;
  color: var(--a-bio-color, #cbd5e1);
  margin: 0 0 24px 0;
  word-wrap: break-word;
}

/* Action Link */
.a-leader-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--a-link-color, #5c7cfa);
  text-decoration: none;
  transition: color 0.25s ease;
  width: fit-content;
}

.a-leader-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.a-leader-arrow svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  display: block;
}

.a-leader-card:hover .a-leader-arrow {
  transform: translateX(5px);
}

.a-leader-card:hover .a-leader-link {
  color: #748ffc;
}

/* Full card clickable overlay */
.a-leader-cover-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  text-indent: -9999px;
  outline: none;
}

/* Responsive: Mobile & Tablet */
@media (max-width: 680px) {
  .a-leader-card-inner {
    flex-direction: column !important;
    min-height: auto;
  }

  .a-leader-image-wrap {
    flex: 0 0 auto;
    width: 100%;
    height: 340px;
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }

  .a-leader-content {
    padding: 24px 20px 24px 20px;
  }

  .a-leader-name {
    font-size: 24px;
  }

  .a-leader-bio {
    font-size: 13.5px;
  }
}