/* Override tab-content margin when speaker details are shown */
#referenten .tab-content {
  margin-top: 0 !important;
}

/* Or target more specifically */
.trox-tab-pane {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Remove margin from sectionBlockLayout inside tabs */
.trox-tab-pane .row.sectionBlockLayout {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* =========================
   SPEAKER DETAILS
========================= */
.speaker-details-wrapper {
  margin-bottom: 20px;
  margin-top: 0 !important;
  padding-top: 0 !important;
  animation: slideDown 0.4s ease-out;
}

.speaker-details {
  background: transparent;
  padding: 0;
  margin-top: 0 !important;
}

/* Override Bootstrap mt-5 class */
.speaker-details .row {
  margin-top: 0 !important;
}

.speaker-static-image {
  text-align: center;
  margin-bottom: 0.5rem;
  margin-top: 0;
  padding-top: 0;
}

.speaker-static-image img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
}

.speaker-contact-information {
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.speaker-contact-information h3 {
  font-size: 1.75rem;
  color: var(--color-title);
  margin-bottom: 10px;
  margin-top: 0;
}

.speaker-about {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.5;
    white-space: pre-wrap;
    text-align: left;
    margin-top: 3rem !important;
    margin-bottom: 1rem !important;
}

.speaker-links-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.speaker-links-container span {
  flex: 0 0 auto;
  width: auto !important;
}

.speaker-links-container a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--color-btn, #25ace7);
  color: white;
  font-size: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.speaker-links-container a:hover {
  background-color: var(--color-title, #00375f);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: white;
}

.x-hidden-focus:focus {
  outline: none;
}

.speaker-details hr {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
/* =========================
   SPEAKERS GRID
========================= */
.event-speakers-container {
  text-align: center;
}

.speaker-item {
  transition: opacity 0.3s ease;
}

.speaker-item.hidden {
  display: none;
}

.speaker-container {
  padding: 20px 10px;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.speaker-container:hover {
  transform: translateY(-5px);
}

.speaker-image {
  height: 150px;
  width: 150px;
  margin: 0 auto 15px;
  cursor: pointer;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  transition: all 0.3s ease;
}

.speaker-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.speaker-image:hover {
  box-shadow: 0 0 0 4px var(--color-btn, #25ace7);
}

.speaker-image:hover img {
  transform: scale(1.05);
}

.speaker-name {
  margin-top: 10px;
  cursor: pointer;
  font-size: 16px;
  color: var(--color-text);  
  transition: color 0.3s ease;
}

.speaker-title {
  font-size: 14px;
  color: #6c757d;
  margin-top: 5px;
  min-height: 20px;
}

/* =========================
   SPEAKER BUTTONS
========================= */
.view-more-btn {
  display: block;
  margin: 30px auto;
  padding: 12px 40px;
  background-color: var(--color-btn, #25ace7);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(37, 172, 231, 0.3);
}

.view-more-btn:hover {
  background-color: var(--color-title, #00375f);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 55, 95, 0.3);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .speaker-static-image img {
    width: 180px;
    height: 180px;
  }
  
  .speaker-contact-information h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .speaker-static-image img {
    width: 160px;
    height: 160px;
  }
  
  .speaker-image {
    height: 120px;
    width: 120px;
  }
  
  .speaker-contact-information h3 {
    font-size: 1.25rem;
  }
  
  .speaker-details-wrapper {
    margin-top: 15px;
    margin-bottom: 15px;
  }
}