.speakers-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 74% 10%,
      rgba(40, 74, 210, 0.34),
      transparent 42%
    ),
    linear-gradient(180deg, #101f7f 0%, #16276d 55%, #172868 100%);
  color: #fff;
}

.speakers-header {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #132170;
  box-shadow: 0 3px 12px rgba(5, 10, 36, 0.22);
}

.speakers-header-inner {
  width: 1326px;
  max-width: calc(100% - 36px);
  margin: 0 auto;
  padding: 14px 0;
}

.speakers-main {
  width: 100%;
  padding: 72px 0 96px;
}

.speakers-hero {
  width: 1326px;
  max-width: calc(100% - 36px);
  margin: 0 auto 40px;
}

.speakers-hero .section-titles {
  margin-bottom: 0;
}

.speakers-hero .section-titles h2 {
  align-self: auto;
  text-align: center;
  font-size: 48px;
}

.speakers-hero .section-titles p {
  color: #e5edff;
  margin: 0;
  max-width: 860px;
  text-align: center;
}

.speakers-grid-wrap {
  width: 1326px;
  max-width: calc(100% - 36px);
  margin: 0 auto;
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.speaker-card {
  position: relative;
  background: #163aab;
  border-radius: 18px;
  overflow: hidden;
  height: 387px;
}
.speaker-media {
  height: 282px;
  overflow: hidden;
  border-radius: 12px;
  margin: 16px 16px 0;
  position: relative;
}

.speaker-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #102b75;
}
.speaker-overlay .speaker-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-overlay-body::after {
  content: "";
  position: absolute;
  inset: 0; /* Matches the size of the card */
  border-radius: 18px;
  padding: 1px; /* This controls the border thickness */
  background: linear-gradient(to bottom, #ffcc00, #4e3f02);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 21;
}

.speaker-overlay-body {
  position: relative;
  z-index: 1;
      padding: 30px 16px 18px;
    height: 100%;
}
.speaker-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
  padding: 16px;
}

.speaker-content h3 {
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 115%; /* 23px */
  letter-spacing: -0.4px;
  margin: 0;
}

.speaker-content p {
  color: #f2f4fc;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 21px */
  letter-spacing: -0.28px;
  margin: 0;
}

.speaker-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 220ms ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: -1;
}
.speaker-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 35, 109, 0.42) 0%,
    rgba(25, 71, 148, 0.95) 100%
  );
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.speaker-overlay h3 {
color: #FC0;
font-size: 20px;
font-style: normal;
font-weight: 600;
line-height: 115%; /* 23px */
letter-spacing: -0.4px;
margin-bottom: 8px;
}

.speaker-overlay span {
color:  #F2F4FC;
font-size: 12px;
font-style: normal;
font-weight: 400;
line-height: 99%; /* 11.88px */
letter-spacing: -0.24px;
margin-bottom: 18px;
}

.speaker-overlay p {
color: var(--Colors-Neutral-Colors-Neutral-200, #F2F4FC);
font-family: "DM Sans";
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 150%; /* 21px */
letter-spacing: -0.28px;
}

.speaker-card:hover .speaker-overlay,
.speaker-card:focus-within .speaker-overlay {
  opacity: 1;
  z-index: 1;
}

.speakers-page .site-footer {
  margin-top: 0;
}

@media (max-width: 1200px) {
  .speakers-main {
    padding-top: 62px;
  }

  .speakers-hero .section-titles h2 {
    font-size: 44px;
  }

  .speakers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .speakers-header-inner,
  .speakers-hero,
  .speakers-grid-wrap {
    max-width: calc(100% - 24px);
  }

  .speakers-hero .section-titles h2 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .speakers-main {
    padding: 42px 0 70px;
  }

  .speakers-grid {
    grid-template-columns: 1fr;
  }

  .speakers-hero .section-titles h2 {
    font-size: 34px;
  }

  .speaker-content h3,
  .speaker-overlay h3 {
    font-size: 28px;
  }

  .speaker-content p {
    font-size: 15px;
  }
}
