/* CEO profile section */
.leadership-section {
  background: #ffffff;
  padding: 8px 0 0;
}

.leadership-section .container {
  max-width: none;
  padding: 0 18px;
}

.leadership-layout {
  display: grid;
  grid-template-columns: minmax(245px, 23%) minmax(285px, 28%) minmax(380px, 1fr);
  align-items: stretch;
  justify-content: start;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dbe7f1;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 70, 125, 0.08);
}

.ceo-profile-panel {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  min-height: 285px;
  padding: 11px 12px;
  background:
    radial-gradient(circle at 50% 38%, rgba(0, 112, 243, 0.15), transparent 34%),
    linear-gradient(160deg, #f6fbff 0%, #eaf6ff 100%);
}

.ceo-portrait-frame {
  position: relative;
  width: 100%;
  min-height: 100%;
  padding: 6px;
  overflow: visible;
  border: 1px solid rgba(0, 112, 243, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 249, 255, 0.96));
  box-shadow:
    0 18px 34px rgba(26, 98, 168, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.86) inset;
}

.ceo-portrait-frame::before {
  content: '';
  position: absolute;
  inset: -9px;
  z-index: 0;
  border-radius: 24px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 112, 243, 0.36), rgba(70, 184, 255, 0.20) 38%, transparent 72%);
  filter: blur(12px);
  opacity: 0.55;
  animation: ceo-backlight-pulse 3.4s ease-in-out infinite;
}

.ceo-portrait-frame::after {
  content: '';
  position: absolute;
  inset: 2px;
  z-index: 2;
  border-radius: 11px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 26%, transparent 76%, rgba(5, 48, 98, 0.08));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.74),
    inset 0 0 0 6px rgba(245, 250, 255, 0.90);
}

.ceo-portrait-image {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  border-radius: 11px;
  object-fit: cover;
  object-position: center 10%;
  filter: saturate(1.03) contrast(1.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.ceo-content-panel h2 {
  margin: 0;
  color: var(--primary-color);
  font-weight: 800;
}

.ceo-content-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 100%;
  gap: 6px;
  padding: 22px 28px 20px;
  background: #ffffff;
}

.ceo-content-panel h2 {
  font-size: 1.48rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ceo-title {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 5px 11px;
  border: 1px solid #b9d9f4;
  border-radius: 999px;
  color: #163d61;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ceo-title span {
  width: 1px;
  height: 13px;
  background: #2480c9;
}

.ceo-expertise {
  margin: 0;
  color: #1778c9;
  font-size: 0.81rem;
  line-height: 1.45;
  font-weight: 500;
}

.ceo-content-line {
  width: 38px;
  height: 2px;
  margin: 3px 0 6px;
  background: #006dc9;
}

.ceo-bio {
  max-width: 360px;
  margin: 0;
  color: #34516c;
  font-size: 0.83rem;
  line-height: 1.55;
}

.ceo-skills {
  display: grid;
  justify-items: start;
  gap: 6px;
  width: min(100%, 360px);
  margin-top: 8px;
}

.ceo-skills span {
  display: inline-flex;
  width: 100%;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid #b8d9f4;
  border-radius: 8px;
  background: linear-gradient(180deg, #f4fbff, #eaf6ff);
  color: #245078;
  font-size: 0.73rem;
  font-weight: 500;
  box-sizing: border-box;
}

.leadership-blank {
  display: block;
  background: #ffffff;
  border-left: 1px solid #edf3f8;
}

.ceo-skills i {
  color: #0070d2;
}

@keyframes ceo-backlight-pulse {
  0%, 100% {
    opacity: 0.34;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.68;
    transform: scale(1.035);
  }
}

@media (max-width: 768px) {
  .leadership-section.section-padding {
    padding: 0 !important;
  }

  .leadership-section .container {
    padding: 0 !important;
  }

  .leadership-layout {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-right: 0;
    border-left: 0;
  }

  .ceo-profile-panel {
    min-height: auto;
    align-items: center;
    justify-content: center;
    padding: 24px 18px 20px;
  }

  .ceo-portrait-frame {
    width: min(78vw, 280px);
    aspect-ratio: 4 / 5;
    min-height: 0;
    padding: 7px;
    border-radius: 18px;
  }

  .ceo-portrait-frame::before {
    inset: -8px;
    border-radius: 24px;
    filter: blur(10px);
    opacity: 0.42;
  }

  .ceo-portrait-frame::after,
  .ceo-portrait-image {
    border-radius: 12px;
  }

  .ceo-portrait-image {
    object-position: center 14%;
  }

  .ceo-content-panel {
    padding: 24px 20px 28px;
  }

  .leadership-blank {
    display: none;
  }

  .ceo-content-panel h2 {
    font-size: 1.45rem;
  }

  .ceo-title {
    flex-wrap: wrap;
    font-size: 0.58rem;
    line-height: 1.45;
  }

  .ceo-bio {
    font-size: 0.84rem;
  }
}

@media (max-width: 420px) {
  .ceo-portrait-frame {
    width: min(82vw, 255px);
  }
}
