/* ============================
 EIF SPEAKERS — ULTRA CINEMATIC
 BLACK & WHITE → COLOR HOVER
 NO SPLASH / CLEAN LOOK
============================= */

.eif-speakers-section {
  --brand-pink: #EC167F;
  --bg-dark: #050505;
  --grain-opacity: 0.55;
  --text-main: #fff;
  --text-muted: #999;

  max-width: 1320px;
  margin: 0 auto;
  padding: 70px 20px;
}

/* GRID */
.eif-speakers-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* CARD */
.eif-speaker-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Lift */
.eif-speaker-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236,22,127,0.25);
}

/* IMAGE FRAME */
.eif-speaker-image {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.06), transparent 55%),
    linear-gradient(135deg,#0e0e0e,#070707);
}

/* =========================
 SUBTLE GRAIN OVERLAY
========================= */
.eif-speaker-image::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: 1;
  opacity: var(--grain-opacity);
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.08) 1px,
      transparent 1px,
      transparent 2px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.06),
      rgba(255,255,255,0.06) 1px,
      transparent 1px,
      transparent 3px
    );
  transform: translate3d(0,0,0);
  transition: transform 0.6s ease-out;
  pointer-events: none;
}

/* Grain motion */
.eif-speaker-card:hover .eif-speaker-image::before {
  transform: translate3d(-10px, 8px, 0);
}

/* =========================
 PORTRAIT IMAGE
========================= */
.eif-speaker-image img {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter:
    grayscale(100%)
    contrast(115%)
    brightness(95%)
    saturate(0%);
  transition:
    transform 0.45s ease,
    filter 0.5s ease;
}

/* COLOR REVEAL */
.eif-speaker-card:hover .eif-speaker-image img {
  transform: scale(1.045);
  filter:
    grayscale(0%)
    contrast(118%)
    brightness(102%)
    saturate(115%);
}

/* INFO */
.eif-speaker-basic-info {
  text-align: center;
  margin-top: auto;
}

/* NAME */
.eif-speaker-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.eif-speaker-card:hover .eif-speaker-name {
  color: var(--brand-pink);
}

/* COMPANY */
.eif-speaker-company {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-pink);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ROLE */
.eif-speaker-role {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* FLOATING ICONS */
.eif-speaker-floating-icons {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(-6px);
  transition: 0.25s ease;
  z-index: 10;
}

.eif-speaker-card:hover .eif-speaker-floating-icons {
  opacity: 1;
  transform: translateY(0);
}

.eif-speaker-floating-icons a {
  width: 30px;
  height: 30px;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
}

.eif-speaker-floating-icons a:hover {
  background: var(--brand-pink);
}

/* POINTER */
.eif-speaker-card,
.eif-speaker-card * {
  cursor: pointer !important;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .eif-speakers-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .eif-speakers-grid { grid-template-columns: repeat(2, 1fr); }

  .eif-speaker-image {
    aspect-ratio: 2 / 3;
  }

  .eif-speaker-image img {
    object-position: center 18%;
  }
}

@media (max-width: 480px) {
  .eif-speakers-grid { grid-template-columns: 1fr; }

  .eif-speaker-image {
    aspect-ratio: 2 / 3;
  }

  .eif-speaker-image img {
    object-position: center 18%;
  }
}

.eif-speakers-coming-soon {
  text-align: center;
  margin-top: 40px;
  font-size: 18px;
  font-weight: 600;
  color: #EC167F;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* Make full-card speaker links behave like the old card block */
a.eif-speaker-card-link {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  text-decoration: none !important;
  color: inherit !important;
}

a.eif-speaker-card-link:hover,
a.eif-speaker-card-link:focus,
a.eif-speaker-card-link:active,
a.eif-speaker-card-link:visited {
  text-decoration: none !important;
  color: inherit !important;
}

.eif-speaker-profile-icon,
.eif-speaker-social-link-wrap a {
  width: 30px;
  height: 30px;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  border-radius: 50%;
  font-size: 13px;
  text-decoration: none !important;
}

.eif-speaker-profile-icon:hover,
.eif-speaker-social-link-wrap a:hover {
  background: #EC167F;
}
