.speaker-flex-row {
    display: flex;
    gap: 40px;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.speaker-box {
    position: relative;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.speaker-flex-row .speaker {
    min-height: 200px;
    overflow: hidden;
    border-radius: 0px 20px 0px 40px;
    background-color: rgba(225, 71, 51, .5);
}
.speaker-flex-row .speaker img {
    width: 100%;
    filter: saturate(0);
}

/* .speaker-flex-row center {
    display: flex;
    justify-content: center;
    overflow: hidden;
} */
.ts-speaker-info .ts-speaker-name {
    margin: 12px 0px 6px;
    color: #50555F;
    font-size: 18px;
    font-family: 'MesseUnivers-Bold';
}
.ts-speaker-info .ts-speaker-designation {
    margin: 0px;
    color: #8D8F95;
    font-size: 16px;
    font-family: 'MesseUnivers-Regular';
}
.ts-speaker-info .ts-speaker-designation b {
    margin-top: 16px;
    color: #8D8F95;
    font-family: 'MesseUnivers-Regular', 'Roboto';
}

.role-label {
    margin: 3px 6px;
    color: #363636;
    font-weight: normal;
    position: absolute;
    top: 0px;
    left: 6px;
    font-size: 13px;
    font-family: 'MesseUnivers-Regular', 'Roboto';
}

.section-para .bold {
    margin: 16px 0px 8px;
    font-weight: 700;
    color: rgb(48, 48, 48);
}  
.section-para p {
    font-size: 16.5px;
    font-weight: 300;
    color: #50565f;
}

.read-more-btn {
    font-family: 'MesseUnivers-Regular', 'Roboto';
    font-size: 14px;
    margin-top: 0px;
    padding: 4px 0px;
    border: none;
    background: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0px 12px;
}

.bio-text {
    font-size: 12.5px;
    line-height: 20px;
    transition: max-height 0.9s ease, opacity 0.9s ease;
    overflow: hidden;
    display: block;
    margin: 0px;
    font-family: 'MesseUnivers-Regular', 'Roboto';
    color: var(--text);
    padding: 0px 12px;
}

.bio-text.is-short {
    max-height: 60px;
    opacity: 0.8;
}

.bio-text:not(.is-short) {
    max-height: 500px;
    opacity: 1;
}

.speaker-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 45px;
}

.speaker-tab {
    padding: 10px 60px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: #7b7b7d;
    border-bottom: 1px solid #A7AAB1;
}

.speaker-tab.active {
    background: none;
    color: #E74E38;
    border-bottom: 1px solid #E74E38;
}

/* 🔥 CLICKABLE FEEL */
.speaker-box {
  cursor: pointer;
  transition: transform 0.2s ease;
}
.speaker-box:hover {
  transform: translateY(-5px);
}

/* 🔥 INFO ICON */
.speaker {
  position: relative;
}

.info-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary-100);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 🔥 MODAL BASE */
.speaker-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
}

/* 🔥 MODAL CARD */
.modal-content {
  position: relative;
  max-width: 600px;
  margin: 5% auto;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  overflow: hidden;
}

.modal-content .company-details {
    gap: 16px;
    display: flex;
    align-items: flex-end;
}

/* 🔥 TOP SECTION */
.modal-top {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.modal-top img {
  width: 140px;
  border-radius: 12px;
}

.modal-top h2 {
  margin: 0;
}

.designation {
  color: #666;
  font-size: 14px;
}

.company {
  font-weight: bold;
  margin: 0px;
  color: var(--text);
}

/* 🔥 BODY */
.modal-body {
  margin-top: 20px;
}

.bio {
  color: #444;
  line-height: 1.5;
}

/* 🔥 SESSION CARDS */
.sessions {
  margin-top: 20px;
}

.session-card {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  border-radius: 10px;
  background: #f7f7f7;
  margin-top: 10px;
}

.session-type {
  font-size: 11px;
  color: #888;
}

.session-card h4 {
  margin: 5px 0;
font-weight: 400;
font-size: 16px;
color: var(--text);
}

/* 🔥 CLOSE BUTTON */
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

.modal-content .company-details .modal-speaker-company {
    height: 45px;
    border-radius: 0!important;
    width: auto;
}

body[data-page="past-speakers"] .speaker-flex-row .speaker img {
  filter: unset;
}
body[data-page="past-speakers"] .speaker-flex-row .speaker {
      background-color: unset;
}

/* Mobile Device */
@media (max-width : 479px) {
    .modal-content {
        max-width: 90%;
    }
    .speaker-tab {
        padding: 0px;
        font-size: 14px;
    }
    .speaker-box {
        width: 137px;
    }
    .speaker-flex-row .speaker {
        min-height: 137px;
    }
    .modal-top {
        flex-direction: column;
        align-items: flex-start;
    }
}