/* Section 1 - Reduced Text Size */
#ember49 .background-layer {
  background: 
    radial-gradient(
      circle at 20% 50%,
      #ED1B2F 0%,
      #C41425 70%,
      rgba(196, 20, 37, 0.9) 100%
    ) !important;
}

#ember49 .foreground-layer.bs-container {
  padding: 40px 20px !important;
  max-width: none !important;
}

/* Title - Slightly Reduced */
#ember49 .section-title p {
  display: inline-block !important;
  text-align: left !important;
  width: auto !important;
  padding-bottom: 5px !important;
  margin-bottom: 30px !important;
  position: relative !important;
  font-size: 28px !important; /* Added explicit size */
}

/* Underline Animation (Unchanged) */
#ember49 .section-title p::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 3px !important;
  background: white !important;
  transform: scaleX(0) !important;
  transform-origin: left !important;
  transition: transform 0.4s ease-out !important;
}

#ember49 .section-title:hover p::after {
  transform: scaleX(1) !important;
}

/* Content - Reduced Size */
#ember49 .markdown-contain {
  width: 100% !important;
  text-align: left !important;
}

#ember49 .markdown-contain p {
  color: white !important;
  font-size: 110% !important; /* Reduced from 130% */
  line-height: 1.5 !important; /* Tighter from 1.6 */
  text-shadow: 
    0 0 8px rgba(255, 255, 255, 0.5),
    0 0 16px rgba(255, 255, 255, 0.3) !important;
  margin-bottom: 1.2em !important; /* Reduced from 1.5em */
}


/* Floating Testimonial Cards with iPhone-Style Highlight */
#ember57 .li-item {
  background: white !important;
  border-radius: 16px !important;
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.04) !important;
  transform: translateY(-4px) scale(1.01) !important; /* Default hover state */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  border: 1px solid rgba(237, 27, 47, 0.08) !important;
  filter: brightness(0.98) !important;
}

/* iPhone-Style Highlight Interaction */
#ember57 .li-item:hover {
  transform: translateY(-8px) scale(1.03) !important;
  box-shadow: 
    0 16px 24px rgba(0, 0, 0, 0.12),
    0 6px 12px rgba(237, 27, 47, 0.1) !important;
  border-color: rgba(237, 27, 47, 0.2) !important;
  filter: brightness(1) !important;
  z-index: 2 !important;
}

/* Subtle Red Pulse Effect (Like iPhone's gentle highlight) */
#ember57 .li-item:hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 2px rgba(237, 27, 47, 0.15);
  animation: pulseGlow 2s infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0% { box-shadow: inset 0 0 0 2px rgba(237, 27, 47, 0.1); }
  50% { box-shadow: inset 0 0 0 3px rgba(237, 27, 47, 0.2); }
  100% { box-shadow: inset 0 0 0 2px rgba(237, 27, 47, 0.1); }
}

/* Profile Image Enhancement */
#ember57 .tile_photo {
  transition: all 0.5s ease !important;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1)) !important;
}

#ember57 .li-item:hover .tile_photo {
  transform: scale(1.08) !important;
  filter: drop-shadow(0 6px 12px rgba(237, 27, 47, 0.2)) !important;
}

/* Content Focus Effect */
#ember57 .li-item:hover .li-description {
  transform: translateY(-2px) !important;
}

/* Section 3 - Reduced Text Size Version */
#ember82 .background-layer {
  background: 
    radial-gradient(
      circle at 20% 50%,
      #ED1B2F 0%,
      #C41425 70%,
      rgba(196, 20, 37, 0.9) 100%
    ) !important;
}

#ember82 .foreground-layer.bs-container {
  padding: 40px 20px !important;
  max-width: none !important;
}

/* Title */
#ember82 .section-title p {
  display: inline-block !important;
  text-align: left !important;
  width: auto !important;
  padding-bottom: 5px !important;
  margin-bottom: 30px !important;
  position: relative !important;
  color: white !important;
  font-size: 28px !important; /* Reduced from default */
}

/* Animated Underline */
#ember82 .section-title p::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 3px !important;
  background: white !important;
  transform: scaleX(0) !important;
  transform-origin: left !important;
  transition: transform 0.4s ease-out !important;
}

#ember82 .section-title:hover p::after {
  transform: scaleX(1) !important;
}

/* Content - Reduced Text Size */
#ember82 .markdown-contain {
  width: 100% !important;
  text-align: left !important;
}

#ember82 .markdown-contain p,
#ember82 .markdown-contain span,
#ember82 .markdown-contain strong {
  color: white !important;
  font-size: 110% !important; /* Reduced from 130% */
  line-height: 1.5 !important; /* Tighter line spacing */
  text-shadow: 
    0 0 8px rgba(255, 255, 255, 0.5),
    0 0 16px rgba(255, 255, 255, 0.3) !important;
  margin-bottom: 1.2em !important; /* Reduced spacing */
}

/* Mission statement emphasis */
#ember82 .markdown-contain strong {
  font-size: 115% !important; /* Slightly larger than body */
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.7),
    0 0 20px rgba(255, 255, 255, 0.4) !important;
}

/* Banner Text Enhancement - Preserves Background */
#ember15 .banner-content {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Base shadow for readability */
}

/* Title Styling */
#ember17 p {
  display: inline-block;
  position: relative;
  color: white !important;
  font-weight: 300 !important;
  text-shadow: 
    0 0 8px rgba(255,255,255,0.5),
    0 0 16px rgba(255,255,255,0.2) !important;
}

/* Animated Underline (Discreet) */
#ember17 p::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: white;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  opacity: 0.7;
}

#ember17:hover p::after {
  transform: scaleX(1);
}

/* Date/Time/Location Enhancements */
#ember22 .dtl-text,
#ember33 .dtl-text {
  color: rgba(255,255,255,0.9) !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
  transition: all 0.3s ease;
}

#ember22 .dtl-text:hover,
#ember33 .dtl-text:hover {
  color: white !important;
  text-shadow: 0 0 8px rgba(255,255,255,0.4) !important;
}

/* Register Button - Enhanced but Subtle */
#ember119.bs-button {
  background: rgba(255,255,255,0.9) !important;
  color: #ED1B2F !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(2px) !important;
}

#ember119.bs-button:hover {
  background: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Countdown - Transparent Overlay */
#ember48.bs-countdown {
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  backdrop-filter: blur(4px) !important;
}

#ember48 .item {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}