/* Reset and base styles */
body {
  font-family: 'Inter', sans-serif;
}

/* Container styles - keep the dark background */
#g-290581940 {
  background-color: #1a1a1a !important;
  padding: 3rem 7% !important;
}

/* Featured Speakers Heading */
#g-223041639 {
  margin-bottom: 3rem !important;
}

/* Grid layout for speakers */
#g-747347135 {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 20px !important;
}

/* Individual speaker item */
#g-747347135 > div[id^="g-"] {
  width: 250px !important;
  float: none !important;
  display: inline-block !important;
  vertical-align: top !important;
  padding: 10px !important;
  margin-bottom: 30px !important;
  transition: transform 0.3s ease !important;
}

#g-747347135 > div[id^="g-"]:hover {
  transform: translateY(-5px);
}

/* Speaker image container */
div[id^="g-"].drill-rep-faknqgqfm {
  width: 180px !important;
  height: 180px !important;
  margin: 0 auto 15px !important;
  padding: 0 0 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  filter: grayscale(100%);
  transition: all 0.4s ease !important;
}

div[id^="g-"].drill-rep-faknqgqfm:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Fix image aspect ratio and sizing */
div[id^="g-"].drill-rep-faknqgqfm .image-v2 img,
div[id^="g-"].drill-rep-faknqgqfm .image-v2 span {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

/* Speaker name */
div[id^="g-"].drill-rep-ucxexwyny {
  padding: 0.5rem 0 !important;
  text-align: center !important;
}

div[id^="g-"].drill-rep-ucxexwyny .title p {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  line-height: 1.4 !important;
}

/* Speaker title */
div[id^="g-"].drill-rep-l3thprvto {
  text-align: center !important;
  min-height: auto !important;
  padding: 0 !important;
}

div[id^="g-"].drill-rep-l3thprvto .body p {
  font-size: 1.125rem !important;
  line-height: 1.4 !important;
  color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #g-747347135 > div[id^="g-"] {
    width: 220px !important;
  }
  
  div[id^="g-"].drill-rep-faknqgqfm {
    width: 150px !important;
    height: 150px !important;
  }
  
  div[id^="g-"].drill-rep-ucxexwyny .title p {
    font-size: 1.3rem !important;
  }
}

@media (max-width: 480px) {
  #g-747347135 > div[id^="g-"] {
    width: 160px !important;
  }
  
  div[id^="g-"].drill-rep-faknqgqfm {
    width: 120px !important;
    height: 120px !important;
  }
  
  div[id^="g-"].drill-rep-ucxexwyny .title p {
    font-size: 1.25rem !important;
  }
  
  div[id^="g-"].drill-rep-l3thprvto .body p {
    font-size: 1rem !important;
  }
 
}

/* Grayscale box image effect with hover animation */
#g-576469705 .cms-component.cms-image-v2-element {
  transition: all 0.4s ease !important;
  position: relative !important;
  overflow: hidden !important;
  filter: grayscale(100%) !important;
  border-color: transparent !important; /* Make border invisible by default */
}

#g-576469705 .cms-component.cms-image-v2-element::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
  z-index: 1;
  pointer-events: none;
}

#g-576469705 .cms-component.cms-image-v2-element:hover {
  filter: grayscale(0%) !important;
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  border: 3px solid rgb(0, 103, 176) !important; /* Show border on hover */
}

#g-576469705 .cms-block-type-content[style*="position:absolute"] {
  z-index: 5 !important;
}

/* Remove this rule that was forcing the border to always be visible */
/*
#g-576469705 .cms-component.cms-image-v2-element[style*="border"] {
  border: 3px solid rgb(0, 103, 176) !important;
}
*/

#g-576469705 .cms-component.cms-image-v2-element img,
#g-576469705 .cms-component.cms-image-v2-element span[role="img"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#g-576469705 > div[id^="g-"] {
  position: relative !important;
}

@media (max-width: 992px) {
  #g-576469705 > div[id^="g-"] {
    width: 50% !important;
    margin-bottom: 20px !important;
  }
}

@media (max-width: 576px) {
  #g-576469705 > div[id^="g-"] {
    width: 100% !important;
  }
}




/* Responsive fixes for better mobile display */
@media (max-width: 768px) {
  /* Make all columns full width on mobile */
  #g-813606030 > div[id^="g-"] {
    width: 100% !important;
    border-width: 0 0 2px 0 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    padding: 15px !important;
    margin-bottom: 10px !important;
  }
  
  /* Remove last border */
  #g-813606030 > div[id^="g-"]:last-child {
    border-bottom: none !important;
  }
  
  /* Fix container heights */
  #g-813606030 .match-height-affected,
  #g-813606030 .is-match-height {
    min-height: auto !important;
    height: auto !important;
  }
  
  /* Fix blue time buttons - ensure text fits fully */
  .cms-block-type-content[id^="g-"][style*="background-color:rgb(0, 103, 176)"] {
    width: 160px !important;
    display: block !important;
    margin: 0 auto 10px !important;
    float: none !important;
    padding: 10px 5px !important;
    height: auto !important;
    min-height: auto !important;
    line-height: normal !important;
  }
  
  /* Ensure text inside blue buttons is properly sized and doesn't overflow */
  .cms-block-type-content[id^="g-"][style*="background-color:rgb(0, 103, 176)"] .body p {
    font-size: 0.9rem !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }
  
  /* Fix text alignment and spacing */
  #g-813606030 .cms-block-type-content {
    text-align: center !important;
    padding: 5px 10px !important;
  }
  
  /* Fix font sizes for better readability */
  #g-813606030 [style*="font-size:1.125rem"] {
    font-size: 1rem !important;
  }
  
  #g-813606030 [style*="font-size:1rem"] {
    font-size: 0.9rem !important;
  }
  
  /* Fix container padding */
  #g-813606030 .container-2col {
    padding: 0 !important;
    margin-bottom: 15px !important;
  }
  
  /* Add breathing room between sections */
  #g-813606030 .container-2col:not(:last-child) {
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  
  /* Make content containers consistent width */
  #g-813606030 .cms-component.cms-simple-container-container.drop-area {
    width: 100% !important;
    padding: 5px !important;
  }
}

/* Fix for very small screens */
@media (max-width: 480px) {
  #g-813606030 [style*="font-size:1.125rem"] {
    font-size: 0.95rem !important;
  }
  
  #g-813606030 [style*="font-size:1rem"] {
    font-size: 0.85rem !important;
  }
  
  /* Make time buttons slightly wider on very small screens */
  .cms-block-type-content[id^="g-"][style*="background-color:rgb(0, 103, 176)"] {
    width: 170px !important;
    padding: 8px 5px !important;
  }
  
  /* Ensure text in buttons doesn't wrap on tiny screens */
  .cms-block-type-content[id^="g-"][style*="background-color:rgb(0, 103, 176)"] .body p {
    font-size: 0.85rem !important;
  }
}


.grp {
    margin: 0 auto;
    width: 100%;
    /* float: left; */
    /*padding: .5em;*/
}

[data-field-name="Do you require accomodation?"] {
  display: none !important;
}