/* =====================================================================
   Distinguished Speakers — card treatment
   Loaded last so it overrides the theme. The original markup was a bare
   column (image + h3 + p) with no box, and each photo set its own height,
   so the grid never lined up.
   ===================================================================== */
.addnewspeaker {
  --sc-accent: #E42425;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.speaker-col { margin-bottom: 26px; display: flex; }

.speaker-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, #141b23 0%, #0b1015 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 14px 30px -22px rgba(0, 0, 0, .95);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.speaker-card:hover {
  transform: translateY(-6px);
  border-color: rgba(228, 36, 37, .5);
  box-shadow: 0 22px 42px -22px rgba(0, 0, 0, 1),
              0 0 0 1px rgba(228, 36, 37, .16);
}

/* fixed square well: real photos and placeholders share one baseline */
.sc-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0a0e13;
}
.sc-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1);
  transition: transform .5s ease, filter .35s ease;
}
.speaker-card:hover .sc-photo img {
  transform: scale(1.05);
  filter: grayscale(0);
}
/* the placeholder is artwork, not a portrait — don't crop or desaturate it */
.sc-photo img[src$="no-image.svg"] {
  object-fit: contain;
  filter: none;
  opacity: .9;
}
.speaker-card:hover .sc-photo img[src$="no-image.svg"] {
  transform: none;
  filter: none;
  opacity: 1;
}

.sc-body {
  flex: 1;
  padding: 15px 13px 17px;
  text-align: center;
}
/* the theme floats h1/h3 — reset that inside the card */
.sc-body h3 {
  float: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .2px;
  color: #eceff3;
  text-transform: none;
}
.sc-body p {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #93a3b5;
}
.sc-body::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--sc-accent);
  opacity: .7;
}

@media (max-width: 767px) {
  .speaker-col { margin-bottom: 18px; }
  .sc-body { padding: 12px 10px 14px; }
  .sc-body h3 { font-size: 14px; }
  .sc-body p { font-size: 11.5px; }
}
