/* Custom Overrides for AI Builders Site */

/* ========================================
   Hide Scrollbar (all browsers)
   ======================================== */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  display: none;
}

/* Firefox */
html {
  scrollbar-width: none;
}

/* IE/Edge legacy */
body {
  -ms-overflow-style: none;
}

/* ========================================
   Navbar
   ======================================== */

.navbar {
  border-bottom: none;
}

/* ========================================
   Speaking Page - Remove section gaps
   ======================================== */

body.body-2 .border {
  padding: 0;
  border: none;
}

/* ========================================
   Floating Photo Collage Animation
   ======================================== */

@keyframes float1 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(-1deg);
  }
}

@keyframes float3 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(0.5deg);
  }
}

@keyframes float4 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(-0.5deg);
  }
}

@keyframes float5 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@keyframes agitate {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  10% {
    transform: translate(-2px, -1px) rotate(-1deg);
  }

  20% {
    transform: translate(2px, 1px) rotate(1deg);
  }

  30% {
    transform: translate(-1px, 2px) rotate(-0.5deg);
  }

  40% {
    transform: translate(1px, -1px) rotate(0.5deg);
  }

  50% {
    transform: translate(-2px, 1px) rotate(-1deg);
  }

  60% {
    transform: translate(2px, -1px) rotate(1deg);
  }

  70% {
    transform: translate(-1px, -2px) rotate(-0.5deg);
  }

  80% {
    transform: translate(1px, 2px) rotate(0.5deg);
  }

  90% {
    transform: translate(-1px, 1px) rotate(-0.5deg);
  }
}

.uui-testimonial08_image {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}

.uui-testimonial08_image:hover {
  animation: agitate 0.4s ease-in-out;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.uui-testimonial08_image:nth-child(1) {
  animation: float1 6s ease-in-out infinite;
}

.uui-testimonial08_image:nth-child(2) {
  animation: float2 7s ease-in-out infinite;
  animation-delay: -1s;
}

.uui-testimonial08_image:nth-child(3) {
  animation: float3 8s ease-in-out infinite;
  animation-delay: -2s;
}

.uui-testimonial08_image:nth-child(4) {
  animation: float4 6.5s ease-in-out infinite;
  animation-delay: -3s;
}

.uui-testimonial08_image:nth-child(5) {
  animation: float5 7.5s ease-in-out infinite;
  animation-delay: -1.5s;
}


/* Past Speakers - Fixed Height for Content Cards */
.uui-testimonial15_content {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 1.25rem 0.5rem !important;
  text-align: center;
}

/* Fixed size container for speaker logos - at bottom */
.logo-speakers {
  width: 100%;
  height: 65px;
  max-width: none;
  object-fit: contain;
  margin-top: -0.5rem;
  margin-bottom: -0.25rem;
  padding: 0;
  display: block;
  order: 2;
}

/* Constrain wide logos for Netlify and Mozilla.ai */
img.logo-speakers[src*="netlify"],
img.logo-speakers[src*="mozillaai"] {
  transform: scale(0.55);
}

/* Make slides narrower */
.uui-testimonial15_slide {
  max-width: 180px !important;
  padding: 0 0.5rem !important;
}

/* Consistent speaker info layout - fixed height */
.uui-testimonial15_client {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  order: 1;
  min-height: 130px;
  justify-content: flex-start;
  padding-bottom: 0.75rem;
}

.uui-testimonial15_client-image-wrapper {
  margin-right: 0 !important;
  width: 56px !important;
  height: 56px !important;
}

.uui-testimonial15_customer-image {
  width: 56px !important;
  height: 56px !important;
}

.uui-testimonial15_client-info {
  text-align: center;
  min-height: 70px;
}

.uui-testimonial15_client-heading {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.2;
}

.uui-testimonial15_client-info .uui-text-size-small-3 {
  font-size: 0.75rem !important;
  line-height: 1.3;
  color: #667085;
}

/* Hide placeholder quotes and rating stars */
.uui-testimonial15_content .uui-heading-xxsmall-2,
.uui-testimonial15_rating-wrapper {
  display: none;
}

/* Reduce gap between slider controls and content cards */
.uui-testimonial15_component.w-slider {
  padding-bottom: 5rem !important;
  margin-top: 0 !important;
  overflow: visible !important;
}

.pastspeakers .uui-text-size-large-2 {
  margin-bottom: 2rem !important;
}


/* Hide navigation dots */
.uui-testimonial15_slide-nav.w-slider-nav {
  display: none !important;
}

.uui-testimonial15_arrow {
  position: absolute !important;
  bottom: 0.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  background: white !important;
  border: 1px solid #e4e7ec !important;
  border-radius: 8px !important;
  color: #344054 !important;
  z-index: 10 !important;
}

.uui-testimonial15_arrow.left {
  left: calc(50% - 60px) !important;
  right: auto !important;
}

.uui-testimonial15_arrow.w-slider-arrow-right {
  right: calc(50% - 40px) !important;
  left: auto !important;
}

/* Photo Collage - More Space Between Photos */
.uui-testimonial08_image-wrapper {
  grid-column-gap: 1.5rem !important;
  grid-row-gap: 1.5rem !important;
  position: relative;
}

.w-layout-grid.uui-testimonial08_component {
  padding-bottom: 50px;
}

/* Photo Collage - Image Positioning (shared across pages) */
.uui-testimonial08_image {
  position: relative;
  z-index: 1;
}

/* Left and right images offset lower */
.uui-testimonial08_image:nth-child(1) {
  margin-top: 60px;
}

.uui-testimonial08_image:nth-child(3) {
  margin-top: 40px;
}

.uui-testimonial08_image:nth-child(5) {
  margin-top: 60px;
}

/* Overlap effect with z-index layering */
.uui-testimonial08_image:nth-child(2) {
  z-index: 3;
}

.uui-testimonial08_image:nth-child(4) {
  z-index: 2;
}

/* Testimonials section fade-in animation */
.testimonials {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.testimonials.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Speaking Section Video - Smaller on Desktop */
.speaking-video-wrapper {
  max-width: 600px;
  margin: 2rem auto 0;
}

/* Reduce padding above video section */
.speaking .uui-padding-vertical-xhuge-5 {
  padding-top: 3rem;
}

/* Reduce padding above past speakers section */
.pastspeakers .uui-padding-vertical-xhuge-4 {
  padding-top: 3rem;
}

@media (max-width: 767px) {
  .speaking .uui-padding-vertical-xhuge-5 {
    padding-top: 2rem;
  }

  .pastspeakers .uui-padding-vertical-xhuge-4 {
    padding-top: 2rem;
  }
}

.speaking-video-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}

/* Speaking Section Button Margin */
.speaking .uui-button-row-5 {
  margin-top: 1.5rem;
}

/* Community Logos - Fixed Width Wrapper and Smaller Logos */
.uui-layout40_image-wrapper {
  width: 100%;
  max-width: 800px;
}

.uui-layout40_image {
  width: 80% !important;
  height: auto;
}

/* Mobile Responsive - Larger Logos */
@media (max-width: 768px) {
  .uui-layout40_image {
    width: 100% !important;
    max-width: 120px;
  }

  .uui-layout40_image-wrapper {
    max-width: 100%;
  }
}

/* Luma Events Display */
.event-info-container {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.event-date-location {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.event-date {
  font-weight: 500;
}

.event-location {
  color: #888;
}

.event-calendar-link {
  margin-top: 0.25rem;
}

.add-to-calendar-link {
  font-size: 0.875rem;
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s;
}

.add-to-calendar-link:hover {
  color: #0052a3;
  text-decoration: underline;
}

/* Event List on Home Page (replaces "Learn more" button) */
.event-list-container {
  margin-top: 0.75rem;
}

.event-list-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #344054;
  margin-bottom: 0.5rem;
}

.event-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.25rem 0;
}

.event-checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

.event-checkbox-wrapper span {
  font-size: 0.875rem;
  color: #667085;
  line-height: 1.5;
}

/* Active Nav State */
.nav-active .text-block-4 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Apply to Speak - Secondary Outline Button */
.apply-speak-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1.5px solid #7F56D9;
  border-radius: 8px;
  color: #7F56D9;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent;
}

.apply-speak-btn:hover {
  background: rgba(127, 86, 217, 0.08);
  color: #6941c6;
  border-color: #6941c6;
}

/* Mobile Menu Links - Show in hamburger menu */
.mobile-menu-link {
  display: none !important;
}

/* Hide the menu-left container completely on mobile (hamburger mode) */
@media (max-width: 991px) {
  .uui-navbar06_menu-left {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .mobile-menu-link {
    display: block !important;
    padding: 0.75rem 1rem;
    color: #344054;
    text-decoration: none;
    border-bottom: 1px solid #e4e7ec;
  }

  .mobile-menu-link:hover {
    background-color: #f9fafb;
  }

  .mobile-menu-link:last-child {
    border-bottom: none;
  }

  /* Inverse nav order on mobile - show items in normal order instead of reversed */
  .uui-navbar06_button-wrapper {
    flex-direction: column !important;
  }

  .uui-navbar06_menu-right {
    flex-direction: column !important;
  }
}

/* Events Section Heading - Reduced Padding */
.uui-padding-vertical-small {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

/* Reduce gap between heading and events scene */
.events .uui-page-padding-8 {
  padding-top: 0;
}

.events .uui-padding-vertical-xhuge-8 {
  padding-top: 0;
}

/* ========================================
   Community Cards - Events Grid
   ======================================== */

/* Main Scene Container */
#events-scene {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff;
  user-select: none;
}

/* Top Zone - Country Filters */
#top-zone {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem 1.5rem;
}

.country-filters-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.country-filter-item {
  position: relative;
  margin: 0;
}

.country-filter-item input[type="checkbox"] {
  display: none;
}

.country-filter-item label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  padding-left: 2rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: #667085;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  background: #fff;
}

.country-filter-item label:before {
  content: attr(data-flag);
  display: block;
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.country-filter-item label:hover {
  border-color: #98a2b3;
  background: #f9fafb;
}

.country-filter-item input[type="checkbox"]:checked~label {
  background: #f9fafb;
  border-color: #667085;
  color: #344054;
  font-weight: 500;
}

.country-filter-item input[type="checkbox"]:checked~label:before {
  opacity: 1;
}

/* Bottom Zone - Cards Display */
#bottom-zone {
  position: relative;
  background: #fff;
  padding: 0 1rem 2rem;
}

/* Community Cards Grid */
.community-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* Individual Community Card */
.community-card {
  display: flex;
  flex-direction: column;
}

.community-card.hidden {
  display: none;
}

/* Card Image Section - wrapper for image and avatars */
.card-image-section {
  position: relative;
  cursor: pointer;
}

/* Card Image Wrapper */
.card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-image-wrapper:hover .card-image {
  transform: scale(1.08);
}

/* City overlay with gradient */
.card-city-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 5rem 0.5rem 0.875rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  border-radius: 0 0 12px 12px;
}

.card-city-name {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Organizer Avatars - positioned bottom right, overlapping image edge */
.card-organizer-avatars {
  position: absolute;
  bottom: -14px;
  right: 12px;
  display: flex;
  flex-direction: row-reverse;
  z-index: 10;
}

.organizer-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  margin-left: -6px;
}

.organizer-avatar:last-child {
  margin-left: 0;
}

/* Card Info Section */
.card-info {
  padding: 1.25rem 0.25rem 0;
}

/* Dates Row */
.card-dates-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.card-dates {
  color: #667085;
  font-size: 0.8125rem;
  font-weight: 400;
}

.card-dates.no-dates {
  color: #98a2b3;
}

.card-dates.past-dates {
  color: #98a2b3;
  font-style: italic;
}

.card-date-link {
  color: #667085;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-date-link:hover {
  color: #7F56D9;
  text-decoration: underline;
}

/* Links Section */
.card-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card-register-link {
  color: #7F56D9;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

.card-register-link:hover {
  text-decoration: underline;
}

.card-register-link .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.card-register-link:hover .arrow {
  transform: translateX(3px);
}

.card-speak-link {
  color: #98a2b3;
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-speak-link:hover {
  color: #667085;
  text-decoration: underline;
}

/* No Results Message */
.no-events-message {
  text-align: center;
  color: #667085;
  padding: 4rem 2rem;
  font-size: 1rem;
  grid-column: 1 / -1;
}

/* Desktop - 3 columns */
@media (max-width: 1024px) {
  .community-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

/* Tablet - 2 columns from 425px up */
@media (max-width: 767px) {
  .community-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .organizer-avatar {
    width: 30px;
    height: 30px;
    margin-left: -5px;
  }

  .card-organizer-avatars {
    bottom: -12px;
    right: 10px;
  }

  .card-info {
    padding-top: 1rem;
  }

  .card-dates {
    font-size: 0.75rem;
  }
}

/* Mobile Responsive - 1 column below 425px */
@media (max-width: 424px) {
  #top-zone {
    padding: 0.5rem 0.5rem 1rem;
  }

  .country-filters-list {
    gap: 0.3rem;
  }

  .country-filter-item label {
    padding: 0.25rem 0.4rem 0.25rem 1.4rem;
    font-size: 0.7rem;
    border-radius: 4px;
  }

  .country-filter-item label:before {
    left: 0.3rem;
    font-size: 0.75rem;
  }

  #bottom-zone {
    padding: 0 0.5rem 1.5rem;
  }

  .community-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card-city-name {
    font-size: 1rem;
  }

  .organizer-avatar {
    width: 36px;
    height: 36px;
  }

  .card-organizer-avatars {
    bottom: -14px;
    right: 12px;
  }

  .card-info {
    padding-top: 1rem;
  }
}

/* ========================================
   Site Navigation Footer
   ======================================== */

.site-nav-footer {
  background: #fff;
  padding: 4rem 2rem;
  color: #344054;
  border-top: 1px solid #e4e7ec;
}

.site-nav-footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.site-nav-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.site-nav-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-nav-footer-logo {
  max-width: 180px;
  height: auto;
}

.site-nav-footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #667085;
  margin: 0;
  max-width: 300px;
}


/* Mobile Responsive */
@media (max-width: 991px) {
  .site-nav-footer {
    padding: 3rem 1.5rem;
  }

  .site-nav-footer-content {
    flex-direction: column;
    text-align: center;
  }

  .site-nav-footer-brand {
    align-items: center;
  }

  .site-nav-footer-tagline {
    text-align: center;
    max-width: 400px;
  }
}

/* Footer Social Icons */
.site-nav-footer-socials {
  display: flex;
  gap: 0.75rem;
}

.site-nav-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f2f4f7;
  color: #667085;
  transition: all 0.2s ease;
}

.site-nav-footer-social:hover {
  background: #8384c1;
  color: #fff;
  transform: translateY(-2px);
}

.site-nav-footer-social svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 991px) {
  .site-nav-footer-socials {
    justify-content: center;
  }
}

/* ========================================
   Event Hosts Display
   ======================================== */

.event-hosts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: 0.5rem;
  align-items: center;
}

.event-host {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #f9fafb;
  border-radius: 20px;
  padding: 0.2rem 0.6rem 0.2rem 0.2rem;
  border: 1px solid #e4e7ec;
}

.event-host-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e4e7ec;
}

.event-host-name {
  font-size: 0.75rem;
  color: #667085;
  font-weight: 500;
}

/* Hosts in city events list (speaking form) */
.city-event-checkbox .event-hosts {
  margin-left: 0.75rem;
}

.city-event-checkbox .event-host {
  padding: 0.15rem 0.5rem 0.15rem 0.15rem;
}

.city-event-checkbox .event-host-avatar {
  width: 20px;
  height: 20px;
}

.city-event-checkbox .event-host-name {
  font-size: 0.7rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .event-hosts {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .city-event-checkbox .event-hosts {
    margin-left: 0;
    margin-top: 0.35rem;
  }
}

/* Who Section Styling */
.who-section .who-content {
  text-align: center;
}

.who-section .uui-max-width-large-2 {
  max-width: 100%;
  margin: 0 auto;
}

.who-section .uui-heading-medium-2 {
  text-align: center;
}

.who-section .uui-text-size-large-2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ========================================
   Speaking Page Demographics Section
   ======================================== */

.demographics-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 120px;
}

.demographics-section .chart-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #101828;
  margin: 0 0 2rem 0;
}

/* Donut Chart with Labels */
.donut-chart-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 2rem;
}

.donut-chart {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

/* Pie segments with animation */
.donut-chart .pie-segment {
  transition: transform 0.3s ease, filter 0.3s ease;
  transform-origin: center;
  cursor: pointer;
}

.donut-chart .pie-segment:hover {
  filter: brightness(1.1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  transform: scale(1.03);
}

/* Chart Labels positioned around the donut */
.chart-label {
  position: absolute;
  font-size: 0.9rem;
  font-weight: 500;
  color: #344054;
  line-height: 1.3;
  white-space: nowrap;
  transition: transform 0.3s ease;
}

/* Hover removed per request */

.chart-label .label-text {
  display: block;
  padding-bottom: 3px;
  border-bottom: 3px solid transparent;
}

.chart-label strong {
  display: block;
  font-size: 1.1rem;
  color: #101828;
  font-weight: 700;
  transition: color 0.3s ease;
}

/* Label colors matching chart segments */
.label-sme {
  top: 30%;
  right: -95px;
  text-align: left;
}

.label-sme .label-text {
  border-bottom-color: #4DB6AC;
}

.label-sme strong {
  color: #4DB6AC;
}

.label-enterprise {
  bottom: 10%;
  left: -130px;
  text-align: right;
}

.label-enterprise .label-text {
  border-bottom-color: #1E3A5F;
}

.label-enterprise strong {
  color: #1E3A5F;
}

.label-self {
  top: 25%;
  left: -85px;
  text-align: right;
}

.label-self .label-text {
  border-bottom-color: #B39DDB;
}

.label-self strong {
  color: #9575CD;
}

.label-other {
  top: -5%;
  left: 30px;
  text-align: right;
}

.label-other .label-text {
  border-bottom-color: #80CBC4;
}

.label-other strong {
  color: #80CBC4;
}

/* Stats Counters Row */
.stats-counters {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.stat-counter {
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  padding: 1.25rem 2.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(77, 182, 172, 0.04) 0%, rgba(30, 58, 95, 0.04) 100%);
}

.stat-counter:hover {
  background: linear-gradient(135deg, rgba(77, 182, 172, 0.1) 0%, rgba(30, 58, 95, 0.08) 100%);
  box-shadow: 0 4px 20px rgba(77, 182, 172, 0.15);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1E3A5F;
  line-height: 1;
  margin-bottom: 0.35rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.stat-counter:hover .stat-number {
  color: #4DB6AC;
  transform: scale(1.05);
}

.stat-label {
  font-size: 0.85rem;
  color: #667085;
  max-width: 120px;
  transition: color 0.3s ease;
}

.stat-counter:hover .stat-label {
  color: #475467;
}

@media (max-width: 640px) {
  .demographics-section {
    padding: 0 20px;
  }

  .donut-chart-wrapper {
    width: 140px;
    height: 140px;
    margin-bottom: 1.5rem;
  }

  .chart-label {
    font-size: 0.65rem;
    border-bottom-width: 2px;
    position: static;
    white-space: normal;
  }

  .chart-label strong {
    font-size: 0.8rem;
    display: inline;
  }

  .chart-label .label-text {
    display: inline;
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Convert to legend layout below chart on mobile */
  .donut-chart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
  }

  .donut-chart {
    width: 140px;
    height: 140px;
    margin-bottom: 1rem;
  }

  /* Hide absolute labels on mobile, show legend instead */
  .label-sme,
  .label-enterprise,
  .label-self,
  .label-other {
    display: none;
  }

  .stats-counters {
    gap: 0.5rem;
  }

  .stat-counter {
    padding: 0.5rem 0.5rem;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.65rem;
    max-width: 70px;
  }
}

/* Add mobile legend for chart */
.chart-mobile-legend {
  display: none;
}

@media (max-width: 640px) {
  .chart-mobile-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .chart-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #344054;
  }

  .chart-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .chart-legend-dot.sme {
    background: #4DB6AC;
  }

  .chart-legend-dot.enterprise {
    background: #1E3A5F;
  }

  .chart-legend-dot.self {
    background: #B39DDB;
  }

  .chart-legend-dot.other {
    background: #80CBC4;
  }
}

@media (max-width: 400px) {
  .demographics-section {
    padding: 0 15px;
  }

  .donut-chart {
    width: 120px;
    height: 120px;
  }

  .stats-counters {
    gap: 0.5rem;
  }

  .stat-counter {
    padding: 0.5rem 0.5rem;
  }

  .stat-number {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.6rem;
    max-width: 60px;
  }
}

/* ========================================
   Hero Image - Move Lower
   ======================================== */

.uui-heroheader01_image-2 {
  margin-top: 10px;
}

/* ========================================
   Container Spacing
   ======================================== */

.uui-container-large-4 {
  margin-bottom: 30px;
}

/* ========================================
   Avatar Hover Tooltip - Host Info
   ======================================== */

.organizer-avatar {
  position: relative;
  cursor: default;
}

.organizer-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-left: -6px;
}

.organizer-avatar-wrapper:last-child {
  margin-left: 0;
}

.organizer-avatar-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1d2939;
  color: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 30;
}

.organizer-avatar-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1d2939;
}

.organizer-avatar-wrapper:hover .organizer-avatar-tooltip {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   Testimonial Meetup Section - Centered
   ======================================== */

.testimonial-meetup {
  padding: 2rem 0 3rem;
}

.testimonial-meetup .meetup-stars-centered {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.testimonial-meetup .uui-testimonial08_client-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.testimonial-meetup .uui-heading-tiny {
  font-size: 0.875rem;
  font-weight: 600;
  color: #344054;
}

.testimonial-meetup .uui-testimonial08_rating-wrapper {
  display: flex;
  gap: 0.125rem;
}

.testimonial-meetup .uui-testimonial08_rating-icon {
  color: #FDB022;
}

.testimonial-meetup .uui-text-size-medium {
  font-size: 0.875rem;
  color: #667085;
}

.testimonial-meetup .uui-testimonial08_divider {
  width: 1px;
  height: 40px;
  background: #e4e7ec;
}

.testimonial-meetup .uui-testimonial08_logo-wrapper {
  display: flex;
  align-items: center;
}

.testimonial-meetup .uui-testimonial08_logo {
  height: 32px;
  width: auto;
}

@media (max-width: 640px) {
  .testimonial-meetup .meetup-stars-centered {
    flex-direction: column;
    gap: 1rem;
  }

  .testimonial-meetup .uui-testimonial08_client-info {
    align-items: center;
    text-align: center;
  }

  .testimonial-meetup .uui-testimonial08_divider {
    width: 60px;
    height: 1px;
  }
}

/* ========================================
   Speaking Form - Website Input Narrower
   ======================================== */

#speaker-company-url {
  max-width: 300px;
}

/* ========================================
   Referral Dropdown - Nobody & Someone Else at Bottom
   ======================================== */

.referral-option[data-value="Nobody"],
.referral-option[data-value="Other"] {
  order: 999;
  grid-column: 1 / -1;
  border-top: 1px solid #e4e7ec;
  background: #f9fafb;
}

.referral-option[data-value="Nobody"] {
  border-bottom: none;
}

.referral-option[data-value="Other"] {
  border-top: none;
}

/* ========================================
   Footer Meetup Rating - Desktop Only
   ======================================== */

.footer-meetup-rating {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.footer-rating-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.footer-rating-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #344054;
}

.footer-stars {
  display: flex;
  gap: 0.125rem;
}

.footer-rating-text {
  font-size: 0.8rem;
  color: #667085;
}

.footer-rating-text a,
.footer-rating-text a:visited,
.footer-rating-text a:hover,
.footer-rating-text a:active {
  color: #667085;
  text-decoration: underline;
}

.footer-rating-divider {
  display: none;
}

.footer-meetup-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* Hide on mobile/tablet */
@media (max-width: 991px) {
  .footer-meetup-rating {
    display: none;
  }
}

/* ========================================
   Hero Buttons - Same Width on Mobile
   ======================================== */

@media (max-width: 767px) {
  .uui-button-row-2 .uui-button-secondary-gray-4.is-button-large {
    width: 100%;
  }

  .uui-button-row-2 {
    margin-bottom: 1.5rem;
  }
}

/* ========================================
   Photo Collage - Scale on Mobile
   ======================================== */
@media (max-width: 991px) {
  .uui-testimonial08_image-wrapper {
    transform: scale(0.95);
    transform-origin: center top;
    margin-top: -30px;
    margin-bottom: -20px;
    width: 100% !important;
    margin-left: 0 !important;
    height: auto !important;
    min-height: auto !important;
  }
}

@media (max-width: 767px) {
  .uui-testimonial08_image-wrapper {
    transform: scale(0.9);
    margin-top: -50px;
    margin-bottom: -40px;
  }
}

@media (max-width: 479px) {
  .uui-testimonial08_image-wrapper {
    transform: scale(1.18);
    transform-origin: center top;
    margin-top: 0;
    margin-bottom: 0;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    aspect-ratio: 1 / 1;
  }

  .w-layout-grid.uui-testimonial08_component {
    padding-bottom: 80px;
  }

  .testimonials,
  .testimonials .uui-section_testimonial08,
  .testimonials .uui-page-padding-4 {
    height: auto !important;
    min-height: auto !important;
  }
}