/* Speaker Section Styles */
.speakersWrapper {
    overflow: hidden;
    padding: 70px 100px; /* Adds 50px padding on sides */
    background-color: ;
    background-image: linear-gradient(, );
    background-image: url(); /* Image upload setting */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Anton', sans-serif; /* Default font */
}

.speakersWrapper h2 {
    /* color:  !important; */
    font-size: 60px; /* Default size, editable if needed */
    font-style: normal;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 72px;
    text-align: center;
    margin-bottom: 50px; /* Adds space between title and content */
}

.speakersWrapper p {
    font-size: 18px;
    line-height: 26px; /* or 144% */
    color: #b5b5b5;
    margin: 0 auto 70px;
    max-width: 800px;
    text-align: center;
}

.speakersItemsRow {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Space between items */
    justify-content: space-between;
}

.speakersItemsColumn {
    flex: 0 0 calc(20% - 20px); /* Four columns by default */
    max-width: calc(20% - 20px);
    margin-bottom: 30px;
    position: relative;
}

.speakersItemsWrap {
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.speakersItemsColumn .speakerImage,
.speakersItemsColumn .speakerImage a {
    display: block;
    position: relative;
}

.speaker-img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3; /* Maintains consistent portrait ratio */
    border-radius: 10px;
    overflow: hidden;
}

.speaker-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures consistent cropping */
}

.speakersItemsColumn .speaker_info {
    line-height: 1;
    padding: 15px 0 0;
    text-align: left;
}

.speakersItemsColumn .speaker_info .speaker_name {
    /* color:  !important; */
    font-size: 20px;
    font-weight: 600;
    line-height: 23px;
    margin-bottom: 5px;
}

.speakersItemsColumn .speaker_info .designation {
    font-size: 16px;
    font-weight: 400;
    line-height: 23px;
}

/* Pop-up Modal */
.speaker-bio {
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    z-index: 999999;
    background-color: rgba(0, 0, 0, 0.9);
}

.speaker-bio.active {
    display: block;
}

.speaker-bio .popup {
    width: 80%;
    max-width: 1024px;
    margin: 50px auto 30px;
    background: #fff;
    padding: 20px;
    position: relative;
    display: flex;
    gap: 20px;
    box-sizing: border-box;
}

.speaker-bio .popup .close {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.speaker-bio .popup .close:hover {
    color: #40cf4a;
}

.popup-column {
    flex: 1;
}

.popup-column.image-column {
    max-width: 324px; /* Matches speaker image dimensions */
}

.popup-column.image-column .speaker-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0; /* Removes border radius in pop-up */
}

.popup-column.text-column {
    flex: 2;
}

.popup-column.text-column h2 {
    color:  !important;
    font-size: 26px;
    margin-bottom: 10px;
}

.popup-column.text-column h3 {
    color:  !important;
    font-size: 18px;
    margin-bottom: 20px;
}

.popup-column.text-column p {
    color: #000;
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
    .speakersItemsColumn {
        flex: 0 0 calc(50% - 20px); /* Two columns */
        max-width: calc(50% - 20px);
    }
}

@media screen and (max-width: 768px) {
    .speakersItemsColumn {
        flex: 0 0 100%; /* One column */
        max-width: 100%;
    }

    .popup-column.image-column {
        display: none; /* Hide image column in pop-ups for small screens */
    }

    .popup-column.text-column {
        flex: 1;
    }
}

/* Pop-up container */
.speaker-bio {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Dark transparent background */
  z-index: 99999999;
  overflow: auto; /* Ensure scrollability for long content */
}

.speaker-bio.active {
  display: block; /* Show the modal when active */
}

/* Pop-up inner content */
.speaker-bio .popup {
  background: #ffffff; /* White background for the modal content */
  margin: 50px auto; /* Centering the modal content */
  padding: 20px;
  width: 90%;
  max-width: 1024px; /* Ensures it doesn't go beyond this width */
  border-radius: 8px; /* Rounded corners for the modal */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
  font-family: 'Anton', sans-serif; /* Match module font */
  position: relative; /* Ensure child elements like the close button are positioned correctly */
}

/* Pop-up layout */
.speaker-bio .popup-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Space between image and text */
}

.speaker-bio .popup-content .image-column {
  flex: 0 0 40%; /* Image takes 40% of the width */
  max-width: 40%;
}

.speaker-bio .popup-content .text-column {
  flex: 1; /* Text takes the remaining space */
  max-width: 60%;
  text-align: left; /* Align text to the left */
}

/* Image in pop-up */
.speaker-bio .popup-content .image-column img {
  width: 100%; /* Ensure image scales within its container */
  height: auto; /* Maintain aspect ratio */
  border-radius: 8px; /* Consistent rounding with the modal */
}

/* Name in pop-up */
.speaker-bio .popup-content .text-column h2 {
  color: ; /* #d0299f; /* Purple color */
  text-align: left !important;
  font-size: 32px !important;
  /* text-transform: uppercase; */
  line-height: 42px !important;
  margin-bottom: 10px !important;
}

/* Job title in pop-up */
.speaker-bio .popup-content .text-column h3 {
  font-weight: normal; /* Slightly lighter font */
  color: #d0299f /* ; /* Job title color */
  font-size: 22px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

/* Description text in pop-up */
.speaker-bio .popup-content .text-column p {
  font-size: 14px !important;
  line-height: 1.6;
  margin-bottom: 5px; /* Reduces the space between paragraphs */
  color: #000000; /* Body text color */
  text-align: left; /* Align to the left */
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    .speakersItemsColumn {
        flex: 0 0 calc(33.33% - 15px); /* Three columns on medium screens */
        max-width: calc(33.33% - 15px);
    }
}

@media screen and (max-width: 768px) {
    .speakersItemsColumn {
        flex: 0 0 calc(50% - 15px); /* Two columns on smaller screens */
        max-width: calc(50% - 15px);
    }
}

@media screen and (max-width: 480px) {
    .speakersItemsColumn {
        flex: 0 0 100%; /* One column on very small screens */
        max-width: 100%;
    }
}


/* Close button default styles */
.speaker-bio .popup .close {
  position: absolute;
  right: -25px; /* Aligns it to the top-right corner */
  top: -25px;   /* Adjusts distance from the top */
  font-size: 60px; /* Makes the X twice as big */
  font-weight: bold;
  color: white; /* Default X color */
  background: black; /* Default circle background */
  width: 55px; /* Size of the circle */
  height: 55px; /* Size of the circle */
  line-height: 45px; /* Centers the X vertically in the circle */
  text-align: center; /* Centers the X horizontally in the circle */
  border-radius: 50%; /* Makes the background a circle */
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for hover effect */
  z-index: 1000; /* Ensure it appears above other elements */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Optional: Adds a subtle shadow for depth */
}

/* Hover effect for the close button */
.speaker-bio .popup .close:hover {
  background-color: red; /* Highlight circle as red */
  color: white; /* Change X to white */
}

/* Grayscale effect for speaker images */
.speaker-img img {
  filter: grayscale(100%); /* Apply grayscale effect */
  transition: filter 0.3s ease-in-out; /* Smooth transition */
}

/* Remove grayscale on hover */
.speaker-img:hover img {
  filter: grayscale(0%); /* Remove grayscale to show original color */
}





@media screen and (max-width: 768px) {
    .speakersItemsColumn {
        flex: 0 0 calc(33.33% - 15px);
        max-width: calc(33.33% - 15px);
    }

    .speakersWrapper {
        padding: 35px 25px;
    }

    .speakersWrapper h2 {
        font-size: 36px;
        line-height: 44px;
    }
}

@media screen and (max-width: 480px) {
    .speakersItemsColumn {
        flex: 0 0 100%;
        max-width: 70%;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .speaker-bio .popup {
        width: 95%;
        margin: 25px auto;
        padding: 25px;
    }

    .popup-column {
        width: 95% !important;
        max-width: none !important;
    }

    .popup-content {
        flex-direction: column;
    }

    .popup-column.image-column {
        margin-bottom: 20px;
    }

    .popup-column.text-column h2 {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }

    .popup-column.text-column h3 {
        font-size: 18px;
    }

    .popup-column.text-column p {
        font-size: 14px;
        line-height: 1.4;
    }

    .speaker-bio .popup .close {
        width: 36px;
        height: 36px;
        line-height: 32px;
        font-size: 36px;
    }
}